google-apis-gkehub_v1beta 0.46.0 → 0.48.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: 61e362ae4c32ce3fb6c2df104da443062c8abe3bb770a80eab9a8e27b771433d
4
- data.tar.gz: 07e70183345d22808f9a93a3e8eeeac01156aec403d382df88ffac5fd153f3e2
3
+ metadata.gz: 1bcf670f14b6e6e8d66e9c20a2567782f70c5a10df982c7193e0e79d336b5d24
4
+ data.tar.gz: 1842e658ae84c77b0eb581022a826fe4a65f181afbfa2353bcecf0fa578e0e12
5
5
  SHA512:
6
- metadata.gz: d54c805227d726ad6af077de600e71b12e0b2f3e3cc0fbb06d904aaf867708291dc9bbec8fddef36e28b4e30ccddcd34f2a83aefe0c40972c515e33d1216fe3c
7
- data.tar.gz: ca2fc1698ffc3979930fad809ecbce21c2f0fe4717d3b53f5ef16f5642f1bbe90f92241994f8cfd62c935e3a5caa49b370169db232d427070af9e9a4bf1068c8
6
+ metadata.gz: 2a612e44a03423ab241c4ff7fb0fd6556bfdba43c922f795d36f53a292c6b04f452849f875053298ee4837fa2287a0347cd1479ef335fb24b469504ff434e397
7
+ data.tar.gz: a7ecdc789decdae52a5a727d518df6304d63a6cfe7da08b8eba94ff1ec8076f3f859fc42259f4d9c09ae3fee634cafae322132b31c8dfcc79be448b816249699
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-gkehub_v1beta
2
2
 
3
+ ### v0.48.0 (2023-06-11)
4
+
5
+ * Regenerated from discovery document revision 20230606
6
+
7
+ ### v0.47.0 (2023-05-21)
8
+
9
+ * Regenerated from discovery document revision 20230515
10
+
3
11
  ### v0.46.0 (2023-04-30)
4
12
 
5
13
  * Regenerated from discovery document revision 20230424
@@ -315,8 +315,7 @@ module Google
315
315
  # @return [Google::Apis::GkehubV1beta::AppDevExperienceFeatureState]
316
316
  attr_accessor :appdevexperience
317
317
 
318
- # **FleetObservability**: An empty state left as an example Hub-wide Feature
319
- # state.
318
+ # **FleetObservability**: Hub-wide Feature for FleetObservability feature. state.
320
319
  # Corresponds to the JSON property `fleetobservability`
321
320
  # @return [Google::Apis::GkehubV1beta::FleetObservabilityFeatureState]
322
321
  attr_accessor :fleetobservability
@@ -437,9 +436,11 @@ module Google
437
436
 
438
437
  # Enables the installation of ConfigSync. If set to true, ConfigSync resources
439
438
  # will be created and the other ConfigSync fields will be applied if exist. If
440
- # set to false, all other ConfigSync fields will be ignored, ConfigSync
441
- # resources will be deleted. If omitted, ConfigSync resources will be managed
442
- # depends on the presence of git field.
439
+ # set to false and Managed Config Sync is disabled, all other ConfigSync fields
440
+ # will be ignored, ConfigSync resources will be deleted. Setting this field to
441
+ # false while enabling Managed Config Sync is invalid. If omitted, ConfigSync
442
+ # resources will be managed if: * the git or oci field is present; or * Managed
443
+ # Config Sync is enabled (i.e., managed.enabled is true).
443
444
  # Corresponds to the JSON property `enabled`
444
445
  # @return [Boolean]
445
446
  attr_accessor :enabled
@@ -455,6 +456,16 @@ module Google
455
456
  # @return [Google::Apis::GkehubV1beta::ConfigManagementManaged]
456
457
  attr_accessor :managed
457
458
 
459
+ # The Email of the GCP Service Account (GSA) used for exporting Config Sync
460
+ # metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is
461
+ # enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.
462
+ # metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the
463
+ # namespace `config-management-monitoring` should be binded to the GSA. This
464
+ # field is required when Managed Config Sync is enabled.
465
+ # Corresponds to the JSON property `metricsGcpServiceAccountEmail`
466
+ # @return [String]
467
+ attr_accessor :metrics_gcp_service_account_email
468
+
458
469
  # OCI repo configuration for a single cluster
459
470
  # Corresponds to the JSON property `oci`
460
471
  # @return [Google::Apis::GkehubV1beta::ConfigManagementOciConfig]
@@ -484,6 +495,7 @@ module Google
484
495
  @enabled = args[:enabled] if args.key?(:enabled)
485
496
  @git = args[:git] if args.key?(:git)
486
497
  @managed = args[:managed] if args.key?(:managed)
498
+ @metrics_gcp_service_account_email = args[:metrics_gcp_service_account_email] if args.key?(:metrics_gcp_service_account_email)
487
499
  @oci = args[:oci] if args.key?(:oci)
488
500
  @prevent_drift = args[:prevent_drift] if args.key?(:prevent_drift)
489
501
  @source_format = args[:source_format] if args.key?(:source_format)
@@ -545,6 +557,25 @@ module Google
545
557
  end
546
558
  end
547
559
 
560
+ # Errors pertaining to the installation of Config Sync
561
+ class ConfigManagementConfigSyncError
562
+ include Google::Apis::Core::Hashable
563
+
564
+ # A string representing the user facing error message
565
+ # Corresponds to the JSON property `errorMessage`
566
+ # @return [String]
567
+ attr_accessor :error_message
568
+
569
+ def initialize(**args)
570
+ update!(**args)
571
+ end
572
+
573
+ # Update properties of this object
574
+ def update!(**args)
575
+ @error_message = args[:error_message] if args.key?(:error_message)
576
+ end
577
+ end
578
+
548
579
  # State information for ConfigSync
549
580
  class ConfigManagementConfigSyncState
550
581
  include Google::Apis::Core::Hashable
@@ -554,6 +585,11 @@ module Google
554
585
  # @return [Google::Apis::GkehubV1beta::ConfigManagementConfigSyncDeploymentState]
555
586
  attr_accessor :deployment_state
556
587
 
588
+ # Errors pertaining to the installation of Config Sync.
589
+ # Corresponds to the JSON property `errors`
590
+ # @return [Array<Google::Apis::GkehubV1beta::ConfigManagementConfigSyncError>]
591
+ attr_accessor :errors
592
+
557
593
  # State indicating an ACM's progress syncing configurations to a cluster
558
594
  # Corresponds to the JSON property `syncState`
559
595
  # @return [Google::Apis::GkehubV1beta::ConfigManagementSyncState]
@@ -571,6 +607,7 @@ module Google
571
607
  # Update properties of this object
572
608
  def update!(**args)
573
609
  @deployment_state = args[:deployment_state] if args.key?(:deployment_state)
610
+ @errors = args[:errors] if args.key?(:errors)
574
611
  @sync_state = args[:sync_state] if args.key?(:sync_state)
575
612
  @version = args[:version] if args.key?(:version)
576
613
  end
@@ -928,12 +965,20 @@ module Google
928
965
  include Google::Apis::Core::Hashable
929
966
 
930
967
  # Set to true to enable Managed Config Sync. Defaults to false which disables
931
- # Managed Config Sync.
968
+ # Managed Config Sync. Setting this field to true when configSync.enabled is
969
+ # false is invalid.
932
970
  # Corresponds to the JSON property `enabled`
933
971
  # @return [Boolean]
934
972
  attr_accessor :enabled
935
973
  alias_method :enabled?, :enabled
936
974
 
975
+ # Set to true to stop syncing configs for a single cluster. Default to false. If
976
+ # set to true, Managed Config Sync will not upgrade Config Sync.
977
+ # Corresponds to the JSON property `stopSyncing`
978
+ # @return [Boolean]
979
+ attr_accessor :stop_syncing
980
+ alias_method :stop_syncing?, :stop_syncing
981
+
937
982
  def initialize(**args)
938
983
  update!(**args)
939
984
  end
@@ -941,6 +986,7 @@ module Google
941
986
  # Update properties of this object
942
987
  def update!(**args)
943
988
  @enabled = args[:enabled] if args.key?(:enabled)
989
+ @stop_syncing = args[:stop_syncing] if args.key?(:stop_syncing)
944
990
  end
945
991
  end
946
992
 
@@ -954,6 +1000,16 @@ module Google
954
1000
  # @return [Google::Apis::GkehubV1beta::ConfigManagementBinauthzConfig]
955
1001
  attr_accessor :binauthz
956
1002
 
1003
+ # The user-specified cluster name used by Config Sync cluster-name-selector
1004
+ # annotation or ClusterSelector, for applying configs to only a subset of
1005
+ # clusters. Omit this field if the cluster's fleet membership name is used by
1006
+ # Config Sync cluster-name-selector annotation or ClusterSelector. Set this
1007
+ # field if a name different from the cluster's fleet membership name is used by
1008
+ # Config Sync cluster-name-selector annotation or ClusterSelector.
1009
+ # Corresponds to the JSON property `cluster`
1010
+ # @return [String]
1011
+ attr_accessor :cluster
1012
+
957
1013
  # Configuration for Config Sync
958
1014
  # Corresponds to the JSON property `configSync`
959
1015
  # @return [Google::Apis::GkehubV1beta::ConfigManagementConfigSync]
@@ -981,6 +1037,7 @@ module Google
981
1037
  # Update properties of this object
982
1038
  def update!(**args)
983
1039
  @binauthz = args[:binauthz] if args.key?(:binauthz)
1040
+ @cluster = args[:cluster] if args.key?(:cluster)
984
1041
  @config_sync = args[:config_sync] if args.key?(:config_sync)
985
1042
  @hierarchy_controller = args[:hierarchy_controller] if args.key?(:hierarchy_controller)
986
1043
  @policy_controller = args[:policy_controller] if args.key?(:policy_controller)
@@ -997,10 +1054,8 @@ module Google
997
1054
  # @return [Google::Apis::GkehubV1beta::ConfigManagementBinauthzState]
998
1055
  attr_accessor :binauthz_state
999
1056
 
1000
- # The user-defined name for the cluster used by ClusterSelectors to group
1001
- # clusters together. This should match Membership's membership_name, unless the
1002
- # user installed ACM on the cluster manually prior to enabling the ACM hub
1003
- # feature. Unique within a Anthos Config Management installation.
1057
+ # This field is set to the `cluster_name` field of the Membership Spec if it is
1058
+ # not empty. Otherwise, it is set to the cluster's fleet membership name.
1004
1059
  # Corresponds to the JSON property `clusterName`
1005
1060
  # @return [String]
1006
1061
  attr_accessor :cluster_name
@@ -1726,8 +1781,7 @@ module Google
1726
1781
  end
1727
1782
  end
1728
1783
 
1729
- # **FleetObservability**: An empty state left as an example Hub-wide Feature
1730
- # state.
1784
+ # **FleetObservability**: Hub-wide Feature for FleetObservability feature. state.
1731
1785
  class FleetObservabilityFeatureState
1732
1786
  include Google::Apis::Core::Hashable
1733
1787
 
@@ -1779,8 +1833,8 @@ module Google
1779
1833
  end
1780
1834
  end
1781
1835
 
1782
- # **FleetObservability**: An empty state left as an example membership-specific
1783
- # Feature state.
1836
+ # **FleetObservability**: Membership-specific Feature state for
1837
+ # fleetobservability.
1784
1838
  class FleetObservabilityMembershipState
1785
1839
  include Google::Apis::Core::Hashable
1786
1840
 
@@ -2406,7 +2460,7 @@ module Google
2406
2460
  # @return [String]
2407
2461
  attr_accessor :name
2408
2462
 
2409
- # A Workspace resource name in the format `projects/*/locations/*/scopes/*`.
2463
+ # A Scope resource name in the format `projects/*/locations/*/scopes/*`.
2410
2464
  # Corresponds to the JSON property `scope`
2411
2465
  # @return [String]
2412
2466
  attr_accessor :scope
@@ -2465,7 +2519,7 @@ module Google
2465
2519
  end
2466
2520
 
2467
2521
  # MembershipFeatureSpec contains configuration information for a single
2468
- # Membership.
2522
+ # Membership. NOTE: Please use snake case in your feature name.
2469
2523
  class MembershipFeatureSpec
2470
2524
  include Google::Apis::Core::Hashable
2471
2525
 
@@ -2545,8 +2599,8 @@ module Google
2545
2599
  # @return [Google::Apis::GkehubV1beta::ConfigManagementMembershipState]
2546
2600
  attr_accessor :configmanagement
2547
2601
 
2548
- # **FleetObservability**: An empty state left as an example membership-specific
2549
- # Feature state.
2602
+ # **FleetObservability**: Membership-specific Feature state for
2603
+ # fleetobservability.
2550
2604
  # Corresponds to the JSON property `fleetobservability`
2551
2605
  # @return [Google::Apis::GkehubV1beta::FleetObservabilityMembershipState]
2552
2606
  attr_accessor :fleetobservability
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module GkehubV1beta
18
18
  # Version of the google-apis-gkehub_v1beta gem
19
- GEM_VERSION = "0.46.0"
19
+ GEM_VERSION = "0.48.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230424"
25
+ REVISION = "20230606"
26
26
  end
27
27
  end
28
28
  end
@@ -118,6 +118,12 @@ module Google
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
+ class ConfigManagementConfigSyncError
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
121
127
  class ConfigManagementConfigSyncState
122
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
129
 
@@ -806,6 +812,7 @@ module Google
806
812
 
807
813
  property :managed, as: 'managed', class: Google::Apis::GkehubV1beta::ConfigManagementManaged, decorator: Google::Apis::GkehubV1beta::ConfigManagementManaged::Representation
808
814
 
815
+ property :metrics_gcp_service_account_email, as: 'metricsGcpServiceAccountEmail'
809
816
  property :oci, as: 'oci', class: Google::Apis::GkehubV1beta::ConfigManagementOciConfig, decorator: Google::Apis::GkehubV1beta::ConfigManagementOciConfig::Representation
810
817
 
811
818
  property :prevent_drift, as: 'preventDrift'
@@ -826,11 +833,20 @@ module Google
826
833
  end
827
834
  end
828
835
 
836
+ class ConfigManagementConfigSyncError
837
+ # @private
838
+ class Representation < Google::Apis::Core::JsonRepresentation
839
+ property :error_message, as: 'errorMessage'
840
+ end
841
+ end
842
+
829
843
  class ConfigManagementConfigSyncState
830
844
  # @private
831
845
  class Representation < Google::Apis::Core::JsonRepresentation
832
846
  property :deployment_state, as: 'deploymentState', class: Google::Apis::GkehubV1beta::ConfigManagementConfigSyncDeploymentState, decorator: Google::Apis::GkehubV1beta::ConfigManagementConfigSyncDeploymentState::Representation
833
847
 
848
+ collection :errors, as: 'errors', class: Google::Apis::GkehubV1beta::ConfigManagementConfigSyncError, decorator: Google::Apis::GkehubV1beta::ConfigManagementConfigSyncError::Representation
849
+
834
850
  property :sync_state, as: 'syncState', class: Google::Apis::GkehubV1beta::ConfigManagementSyncState, decorator: Google::Apis::GkehubV1beta::ConfigManagementSyncState::Representation
835
851
 
836
852
  property :version, as: 'version', class: Google::Apis::GkehubV1beta::ConfigManagementConfigSyncVersion, decorator: Google::Apis::GkehubV1beta::ConfigManagementConfigSyncVersion::Representation
@@ -940,6 +956,7 @@ module Google
940
956
  # @private
941
957
  class Representation < Google::Apis::Core::JsonRepresentation
942
958
  property :enabled, as: 'enabled'
959
+ property :stop_syncing, as: 'stopSyncing'
943
960
  end
944
961
  end
945
962
 
@@ -948,6 +965,7 @@ module Google
948
965
  class Representation < Google::Apis::Core::JsonRepresentation
949
966
  property :binauthz, as: 'binauthz', class: Google::Apis::GkehubV1beta::ConfigManagementBinauthzConfig, decorator: Google::Apis::GkehubV1beta::ConfigManagementBinauthzConfig::Representation
950
967
 
968
+ property :cluster, as: 'cluster'
951
969
  property :config_sync, as: 'configSync', class: Google::Apis::GkehubV1beta::ConfigManagementConfigSync, decorator: Google::Apis::GkehubV1beta::ConfigManagementConfigSync::Representation
952
970
 
953
971
  property :hierarchy_controller, as: 'hierarchyController', class: Google::Apis::GkehubV1beta::ConfigManagementHierarchyControllerConfig, decorator: Google::Apis::GkehubV1beta::ConfigManagementHierarchyControllerConfig::Representation
@@ -913,6 +913,9 @@ module Google
913
913
  # @param [String] parent
914
914
  # Required. The parent Membership for which the MembershipBindings will be
915
915
  # listed. Specified in the format `projects/*/locations/*/memberships/*`.
916
+ # @param [String] filter
917
+ # Optional. Lists MembershipBindings that match the filter expression, following
918
+ # the syntax outlined in https://google.aip.dev/160.
916
919
  # @param [Fixnum] page_size
917
920
  # Optional. When requesting a 'page' of resources, `page_size` specifies number
918
921
  # of resources to return. If unspecified or set to 0, all resources will be
@@ -938,11 +941,12 @@ module Google
938
941
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
939
942
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
940
943
  # @raise [Google::Apis::AuthorizationError] Authorization is required
941
- def list_project_location_membership_bindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
944
+ def list_project_location_membership_bindings(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
942
945
  command = make_simple_command(:get, 'v1beta/{+parent}/bindings', options)
943
946
  command.response_representation = Google::Apis::GkehubV1beta::ListMembershipBindingsResponse::Representation
944
947
  command.response_class = Google::Apis::GkehubV1beta::ListMembershipBindingsResponse
945
948
  command.params['parent'] = parent unless parent.nil?
949
+ command.query['filter'] = filter unless filter.nil?
946
950
  command.query['pageSize'] = page_size unless page_size.nil?
947
951
  command.query['pageToken'] = page_token unless page_token.nil?
948
952
  command.query['fields'] = fields unless fields.nil?
@@ -1593,6 +1597,51 @@ module Google
1593
1597
  execute_or_queue_command(command, &block)
1594
1598
  end
1595
1599
 
1600
+ # Gets the access control policy for a resource. Returns an empty policy if the
1601
+ # resource exists and does not have a policy set.
1602
+ # @param [String] resource
1603
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
1604
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1605
+ # appropriate value for this field.
1606
+ # @param [Fixnum] options_requested_policy_version
1607
+ # Optional. The maximum policy version that will be used to format the policy.
1608
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1609
+ # rejected. Requests for policies with any conditional role bindings must
1610
+ # specify version 3. Policies with no conditional role bindings may specify any
1611
+ # valid value or leave the field unset. The policy in the response might use the
1612
+ # policy version that you specified, or it might use a lower policy version. For
1613
+ # example, if you specify version 3, but the policy has no conditional role
1614
+ # bindings, the response uses version 1. To learn which resources support
1615
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1616
+ # google.com/iam/help/conditions/resource-policies).
1617
+ # @param [String] fields
1618
+ # Selector specifying which fields to include in a partial response.
1619
+ # @param [String] quota_user
1620
+ # Available to use for quota purposes for server-side applications. Can be any
1621
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1622
+ # @param [Google::Apis::RequestOptions] options
1623
+ # Request-specific options
1624
+ #
1625
+ # @yield [result, err] Result & error if block supplied
1626
+ # @yieldparam result [Google::Apis::GkehubV1beta::Policy] parsed result object
1627
+ # @yieldparam err [StandardError] error object if request failed
1628
+ #
1629
+ # @return [Google::Apis::GkehubV1beta::Policy]
1630
+ #
1631
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1632
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1633
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1634
+ def get_project_location_scope_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1635
+ command = make_simple_command(:get, 'v1beta/{+resource}:getIamPolicy', options)
1636
+ command.response_representation = Google::Apis::GkehubV1beta::Policy::Representation
1637
+ command.response_class = Google::Apis::GkehubV1beta::Policy
1638
+ command.params['resource'] = resource unless resource.nil?
1639
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1640
+ command.query['fields'] = fields unless fields.nil?
1641
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1642
+ execute_or_queue_command(command, &block)
1643
+ end
1644
+
1596
1645
  # Lists Scopes.
1597
1646
  # @param [String] parent
1598
1647
  # Required. The parent (project and location) where the Scope will be listed.
@@ -1669,6 +1718,82 @@ module Google
1669
1718
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1670
1719
  execute_or_queue_command(command, &block)
1671
1720
  end
1721
+
1722
+ # Sets the access control policy on the specified resource. Replaces any
1723
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1724
+ # PERMISSION_DENIED` errors.
1725
+ # @param [String] resource
1726
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1727
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1728
+ # appropriate value for this field.
1729
+ # @param [Google::Apis::GkehubV1beta::SetIamPolicyRequest] set_iam_policy_request_object
1730
+ # @param [String] fields
1731
+ # Selector specifying which fields to include in a partial response.
1732
+ # @param [String] quota_user
1733
+ # Available to use for quota purposes for server-side applications. Can be any
1734
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1735
+ # @param [Google::Apis::RequestOptions] options
1736
+ # Request-specific options
1737
+ #
1738
+ # @yield [result, err] Result & error if block supplied
1739
+ # @yieldparam result [Google::Apis::GkehubV1beta::Policy] parsed result object
1740
+ # @yieldparam err [StandardError] error object if request failed
1741
+ #
1742
+ # @return [Google::Apis::GkehubV1beta::Policy]
1743
+ #
1744
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1745
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1746
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1747
+ def set_scope_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1748
+ command = make_simple_command(:post, 'v1beta/{+resource}:setIamPolicy', options)
1749
+ command.request_representation = Google::Apis::GkehubV1beta::SetIamPolicyRequest::Representation
1750
+ command.request_object = set_iam_policy_request_object
1751
+ command.response_representation = Google::Apis::GkehubV1beta::Policy::Representation
1752
+ command.response_class = Google::Apis::GkehubV1beta::Policy
1753
+ command.params['resource'] = resource unless resource.nil?
1754
+ command.query['fields'] = fields unless fields.nil?
1755
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1756
+ execute_or_queue_command(command, &block)
1757
+ end
1758
+
1759
+ # Returns permissions that a caller has on the specified resource. If the
1760
+ # resource does not exist, this will return an empty set of permissions, not a `
1761
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1762
+ # permission-aware UIs and command-line tools, not for authorization checking.
1763
+ # This operation may "fail open" without warning.
1764
+ # @param [String] resource
1765
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1766
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1767
+ # appropriate value for this field.
1768
+ # @param [Google::Apis::GkehubV1beta::TestIamPermissionsRequest] test_iam_permissions_request_object
1769
+ # @param [String] fields
1770
+ # Selector specifying which fields to include in a partial response.
1771
+ # @param [String] quota_user
1772
+ # Available to use for quota purposes for server-side applications. Can be any
1773
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1774
+ # @param [Google::Apis::RequestOptions] options
1775
+ # Request-specific options
1776
+ #
1777
+ # @yield [result, err] Result & error if block supplied
1778
+ # @yieldparam result [Google::Apis::GkehubV1beta::TestIamPermissionsResponse] parsed result object
1779
+ # @yieldparam err [StandardError] error object if request failed
1780
+ #
1781
+ # @return [Google::Apis::GkehubV1beta::TestIamPermissionsResponse]
1782
+ #
1783
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1784
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1785
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1786
+ def test_scope_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1787
+ command = make_simple_command(:post, 'v1beta/{+resource}:testIamPermissions', options)
1788
+ command.request_representation = Google::Apis::GkehubV1beta::TestIamPermissionsRequest::Representation
1789
+ command.request_object = test_iam_permissions_request_object
1790
+ command.response_representation = Google::Apis::GkehubV1beta::TestIamPermissionsResponse::Representation
1791
+ command.response_class = Google::Apis::GkehubV1beta::TestIamPermissionsResponse
1792
+ command.params['resource'] = resource unless resource.nil?
1793
+ command.query['fields'] = fields unless fields.nil?
1794
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1795
+ execute_or_queue_command(command, &block)
1796
+ end
1672
1797
 
1673
1798
  protected
1674
1799
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-gkehub_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.46.0
4
+ version: 0.48.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: 2023-04-30 00:00:00.000000000 Z
11
+ date: 2023-06-11 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-gkehub_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1beta/v0.46.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1beta/v0.48.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkehub_v1beta
63
63
  post_install_message:
64
64
  rdoc_options: []