google-apis-gkehub_v1 0.46.0 → 0.48.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4f849bd64eba11110a6ed457f62aecb4aa76241a1ad7b3bfd9b7ededf18c34a
|
4
|
+
data.tar.gz: cb60335acc81462ba7bc6f698e31785f7086e9ef2e2c091f1b72b5e77b748c33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d16b8a00a61133412949da3a811787be060db61e7996a29170e27ea3dd4dfe7748dbef1c46b1880f82139647de23c33f46e18b6db41689c3b2aea22504a845e7
|
7
|
+
data.tar.gz: 65091f496c40642b83ea2e7dad03d9b70a86e2a60f47574095e32200d4d358ab0f3bd94583225ac262ad582fe2fd9cdfdeb4a1bdc45f8860198ff9f7df6a9312
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-gkehub_v1
|
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
|
@@ -330,8 +330,7 @@ module Google
|
|
330
330
|
# @return [Google::Apis::GkehubV1::AppDevExperienceFeatureState]
|
331
331
|
attr_accessor :appdevexperience
|
332
332
|
|
333
|
-
# **FleetObservability**:
|
334
|
-
# state.
|
333
|
+
# **FleetObservability**: Hub-wide Feature for FleetObservability feature. state.
|
335
334
|
# Corresponds to the JSON property `fleetobservability`
|
336
335
|
# @return [Google::Apis::GkehubV1::FleetObservabilityFeatureState]
|
337
336
|
attr_accessor :fleetobservability
|
@@ -382,9 +381,11 @@ module Google
|
|
382
381
|
|
383
382
|
# Enables the installation of ConfigSync. If set to true, ConfigSync resources
|
384
383
|
# will be created and the other ConfigSync fields will be applied if exist. If
|
385
|
-
# set to false, all other ConfigSync fields
|
386
|
-
#
|
387
|
-
#
|
384
|
+
# set to false and Managed Config Sync is disabled, all other ConfigSync fields
|
385
|
+
# will be ignored, ConfigSync resources will be deleted. Setting this field to
|
386
|
+
# false while enabling Managed Config Sync is invalid. If omitted, ConfigSync
|
387
|
+
# resources will be managed if: * the git or oci field is present; or * Managed
|
388
|
+
# Config Sync is enabled (i.e., managed.enabled is true).
|
388
389
|
# Corresponds to the JSON property `enabled`
|
389
390
|
# @return [Boolean]
|
390
391
|
attr_accessor :enabled
|
@@ -400,6 +401,16 @@ module Google
|
|
400
401
|
# @return [Google::Apis::GkehubV1::ConfigManagementManaged]
|
401
402
|
attr_accessor :managed
|
402
403
|
|
404
|
+
# The Email of the GCP Service Account (GSA) used for exporting Config Sync
|
405
|
+
# metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is
|
406
|
+
# enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.
|
407
|
+
# metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the
|
408
|
+
# namespace `config-management-monitoring` should be binded to the GSA. This
|
409
|
+
# field is required when Managed Config Sync is enabled.
|
410
|
+
# Corresponds to the JSON property `metricsGcpServiceAccountEmail`
|
411
|
+
# @return [String]
|
412
|
+
attr_accessor :metrics_gcp_service_account_email
|
413
|
+
|
403
414
|
# OCI repo configuration for a single cluster
|
404
415
|
# Corresponds to the JSON property `oci`
|
405
416
|
# @return [Google::Apis::GkehubV1::ConfigManagementOciConfig]
|
@@ -429,6 +440,7 @@ module Google
|
|
429
440
|
@enabled = args[:enabled] if args.key?(:enabled)
|
430
441
|
@git = args[:git] if args.key?(:git)
|
431
442
|
@managed = args[:managed] if args.key?(:managed)
|
443
|
+
@metrics_gcp_service_account_email = args[:metrics_gcp_service_account_email] if args.key?(:metrics_gcp_service_account_email)
|
432
444
|
@oci = args[:oci] if args.key?(:oci)
|
433
445
|
@prevent_drift = args[:prevent_drift] if args.key?(:prevent_drift)
|
434
446
|
@source_format = args[:source_format] if args.key?(:source_format)
|
@@ -490,6 +502,25 @@ module Google
|
|
490
502
|
end
|
491
503
|
end
|
492
504
|
|
505
|
+
# Errors pertaining to the installation of Config Sync
|
506
|
+
class ConfigManagementConfigSyncError
|
507
|
+
include Google::Apis::Core::Hashable
|
508
|
+
|
509
|
+
# A string representing the user facing error message
|
510
|
+
# Corresponds to the JSON property `errorMessage`
|
511
|
+
# @return [String]
|
512
|
+
attr_accessor :error_message
|
513
|
+
|
514
|
+
def initialize(**args)
|
515
|
+
update!(**args)
|
516
|
+
end
|
517
|
+
|
518
|
+
# Update properties of this object
|
519
|
+
def update!(**args)
|
520
|
+
@error_message = args[:error_message] if args.key?(:error_message)
|
521
|
+
end
|
522
|
+
end
|
523
|
+
|
493
524
|
# State information for ConfigSync
|
494
525
|
class ConfigManagementConfigSyncState
|
495
526
|
include Google::Apis::Core::Hashable
|
@@ -499,6 +530,11 @@ module Google
|
|
499
530
|
# @return [Google::Apis::GkehubV1::ConfigManagementConfigSyncDeploymentState]
|
500
531
|
attr_accessor :deployment_state
|
501
532
|
|
533
|
+
# Errors pertaining to the installation of Config Sync.
|
534
|
+
# Corresponds to the JSON property `errors`
|
535
|
+
# @return [Array<Google::Apis::GkehubV1::ConfigManagementConfigSyncError>]
|
536
|
+
attr_accessor :errors
|
537
|
+
|
502
538
|
# State indicating an ACM's progress syncing configurations to a cluster
|
503
539
|
# Corresponds to the JSON property `syncState`
|
504
540
|
# @return [Google::Apis::GkehubV1::ConfigManagementSyncState]
|
@@ -516,6 +552,7 @@ module Google
|
|
516
552
|
# Update properties of this object
|
517
553
|
def update!(**args)
|
518
554
|
@deployment_state = args[:deployment_state] if args.key?(:deployment_state)
|
555
|
+
@errors = args[:errors] if args.key?(:errors)
|
519
556
|
@sync_state = args[:sync_state] if args.key?(:sync_state)
|
520
557
|
@version = args[:version] if args.key?(:version)
|
521
558
|
end
|
@@ -873,12 +910,20 @@ module Google
|
|
873
910
|
include Google::Apis::Core::Hashable
|
874
911
|
|
875
912
|
# Set to true to enable Managed Config Sync. Defaults to false which disables
|
876
|
-
# Managed Config Sync.
|
913
|
+
# Managed Config Sync. Setting this field to true when configSync.enabled is
|
914
|
+
# false is invalid.
|
877
915
|
# Corresponds to the JSON property `enabled`
|
878
916
|
# @return [Boolean]
|
879
917
|
attr_accessor :enabled
|
880
918
|
alias_method :enabled?, :enabled
|
881
919
|
|
920
|
+
# Set to true to stop syncing configs for a single cluster. Default to false. If
|
921
|
+
# set to true, Managed Config Sync will not upgrade Config Sync.
|
922
|
+
# Corresponds to the JSON property `stopSyncing`
|
923
|
+
# @return [Boolean]
|
924
|
+
attr_accessor :stop_syncing
|
925
|
+
alias_method :stop_syncing?, :stop_syncing
|
926
|
+
|
882
927
|
def initialize(**args)
|
883
928
|
update!(**args)
|
884
929
|
end
|
@@ -886,6 +931,7 @@ module Google
|
|
886
931
|
# Update properties of this object
|
887
932
|
def update!(**args)
|
888
933
|
@enabled = args[:enabled] if args.key?(:enabled)
|
934
|
+
@stop_syncing = args[:stop_syncing] if args.key?(:stop_syncing)
|
889
935
|
end
|
890
936
|
end
|
891
937
|
|
@@ -894,6 +940,16 @@ module Google
|
|
894
940
|
class ConfigManagementMembershipSpec
|
895
941
|
include Google::Apis::Core::Hashable
|
896
942
|
|
943
|
+
# The user-specified cluster name used by Config Sync cluster-name-selector
|
944
|
+
# annotation or ClusterSelector, for applying configs to only a subset of
|
945
|
+
# clusters. Omit this field if the cluster's fleet membership name is used by
|
946
|
+
# Config Sync cluster-name-selector annotation or ClusterSelector. Set this
|
947
|
+
# field if a name different from the cluster's fleet membership name is used by
|
948
|
+
# Config Sync cluster-name-selector annotation or ClusterSelector.
|
949
|
+
# Corresponds to the JSON property `cluster`
|
950
|
+
# @return [String]
|
951
|
+
attr_accessor :cluster
|
952
|
+
|
897
953
|
# Configuration for Config Sync
|
898
954
|
# Corresponds to the JSON property `configSync`
|
899
955
|
# @return [Google::Apis::GkehubV1::ConfigManagementConfigSync]
|
@@ -920,6 +976,7 @@ module Google
|
|
920
976
|
|
921
977
|
# Update properties of this object
|
922
978
|
def update!(**args)
|
979
|
+
@cluster = args[:cluster] if args.key?(:cluster)
|
923
980
|
@config_sync = args[:config_sync] if args.key?(:config_sync)
|
924
981
|
@hierarchy_controller = args[:hierarchy_controller] if args.key?(:hierarchy_controller)
|
925
982
|
@policy_controller = args[:policy_controller] if args.key?(:policy_controller)
|
@@ -931,10 +988,8 @@ module Google
|
|
931
988
|
class ConfigManagementMembershipState
|
932
989
|
include Google::Apis::Core::Hashable
|
933
990
|
|
934
|
-
#
|
935
|
-
#
|
936
|
-
# user installed ACM on the cluster manually prior to enabling the ACM hub
|
937
|
-
# feature. Unique within a Anthos Config Management installation.
|
991
|
+
# This field is set to the `cluster_name` field of the Membership Spec if it is
|
992
|
+
# not empty. Otherwise, it is set to the cluster's fleet membership name.
|
938
993
|
# Corresponds to the JSON property `clusterName`
|
939
994
|
# @return [String]
|
940
995
|
attr_accessor :cluster_name
|
@@ -1620,8 +1675,7 @@ module Google
|
|
1620
1675
|
end
|
1621
1676
|
end
|
1622
1677
|
|
1623
|
-
# **FleetObservability**:
|
1624
|
-
# state.
|
1678
|
+
# **FleetObservability**: Hub-wide Feature for FleetObservability feature. state.
|
1625
1679
|
class FleetObservabilityFeatureState
|
1626
1680
|
include Google::Apis::Core::Hashable
|
1627
1681
|
|
@@ -1648,8 +1702,8 @@ module Google
|
|
1648
1702
|
end
|
1649
1703
|
end
|
1650
1704
|
|
1651
|
-
# **FleetObservability**:
|
1652
|
-
#
|
1705
|
+
# **FleetObservability**: Membership-specific Feature state for
|
1706
|
+
# fleetobservability.
|
1653
1707
|
class FleetObservabilityMembershipState
|
1654
1708
|
include Google::Apis::Core::Hashable
|
1655
1709
|
|
@@ -2480,7 +2534,7 @@ module Google
|
|
2480
2534
|
# @return [String]
|
2481
2535
|
attr_accessor :name
|
2482
2536
|
|
2483
|
-
# A
|
2537
|
+
# A Scope resource name in the format `projects/*/locations/*/scopes/*`.
|
2484
2538
|
# Corresponds to the JSON property `scope`
|
2485
2539
|
# @return [String]
|
2486
2540
|
attr_accessor :scope
|
@@ -2606,7 +2660,7 @@ module Google
|
|
2606
2660
|
end
|
2607
2661
|
|
2608
2662
|
# MembershipFeatureSpec contains configuration information for a single
|
2609
|
-
# Membership.
|
2663
|
+
# Membership. NOTE: Please use snake case in your feature name.
|
2610
2664
|
class MembershipFeatureSpec
|
2611
2665
|
include Google::Apis::Core::Hashable
|
2612
2666
|
|
@@ -2667,8 +2721,8 @@ module Google
|
|
2667
2721
|
# @return [Google::Apis::GkehubV1::ConfigManagementMembershipState]
|
2668
2722
|
attr_accessor :configmanagement
|
2669
2723
|
|
2670
|
-
# **FleetObservability**:
|
2671
|
-
#
|
2724
|
+
# **FleetObservability**: Membership-specific Feature state for
|
2725
|
+
# fleetobservability.
|
2672
2726
|
# Corresponds to the JSON property `fleetobservability`
|
2673
2727
|
# @return [Google::Apis::GkehubV1::FleetObservabilityMembershipState]
|
2674
2728
|
attr_accessor :fleetobservability
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module GkehubV1
|
18
18
|
# Version of the google-apis-gkehub_v1 gem
|
19
|
-
GEM_VERSION = "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 = "
|
25
|
+
REVISION = "20230606"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -100,6 +100,12 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
+
class ConfigManagementConfigSyncError
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
103
109
|
class ConfigManagementConfigSyncState
|
104
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
111
|
|
@@ -695,6 +701,7 @@ module Google
|
|
695
701
|
|
696
702
|
property :managed, as: 'managed', class: Google::Apis::GkehubV1::ConfigManagementManaged, decorator: Google::Apis::GkehubV1::ConfigManagementManaged::Representation
|
697
703
|
|
704
|
+
property :metrics_gcp_service_account_email, as: 'metricsGcpServiceAccountEmail'
|
698
705
|
property :oci, as: 'oci', class: Google::Apis::GkehubV1::ConfigManagementOciConfig, decorator: Google::Apis::GkehubV1::ConfigManagementOciConfig::Representation
|
699
706
|
|
700
707
|
property :prevent_drift, as: 'preventDrift'
|
@@ -715,11 +722,20 @@ module Google
|
|
715
722
|
end
|
716
723
|
end
|
717
724
|
|
725
|
+
class ConfigManagementConfigSyncError
|
726
|
+
# @private
|
727
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
728
|
+
property :error_message, as: 'errorMessage'
|
729
|
+
end
|
730
|
+
end
|
731
|
+
|
718
732
|
class ConfigManagementConfigSyncState
|
719
733
|
# @private
|
720
734
|
class Representation < Google::Apis::Core::JsonRepresentation
|
721
735
|
property :deployment_state, as: 'deploymentState', class: Google::Apis::GkehubV1::ConfigManagementConfigSyncDeploymentState, decorator: Google::Apis::GkehubV1::ConfigManagementConfigSyncDeploymentState::Representation
|
722
736
|
|
737
|
+
collection :errors, as: 'errors', class: Google::Apis::GkehubV1::ConfigManagementConfigSyncError, decorator: Google::Apis::GkehubV1::ConfigManagementConfigSyncError::Representation
|
738
|
+
|
723
739
|
property :sync_state, as: 'syncState', class: Google::Apis::GkehubV1::ConfigManagementSyncState, decorator: Google::Apis::GkehubV1::ConfigManagementSyncState::Representation
|
724
740
|
|
725
741
|
property :version, as: 'version', class: Google::Apis::GkehubV1::ConfigManagementConfigSyncVersion, decorator: Google::Apis::GkehubV1::ConfigManagementConfigSyncVersion::Representation
|
@@ -829,12 +845,14 @@ module Google
|
|
829
845
|
# @private
|
830
846
|
class Representation < Google::Apis::Core::JsonRepresentation
|
831
847
|
property :enabled, as: 'enabled'
|
848
|
+
property :stop_syncing, as: 'stopSyncing'
|
832
849
|
end
|
833
850
|
end
|
834
851
|
|
835
852
|
class ConfigManagementMembershipSpec
|
836
853
|
# @private
|
837
854
|
class Representation < Google::Apis::Core::JsonRepresentation
|
855
|
+
property :cluster, as: 'cluster'
|
838
856
|
property :config_sync, as: 'configSync', class: Google::Apis::GkehubV1::ConfigManagementConfigSync, decorator: Google::Apis::GkehubV1::ConfigManagementConfigSync::Representation
|
839
857
|
|
840
858
|
property :hierarchy_controller, as: 'hierarchyController', class: Google::Apis::GkehubV1::ConfigManagementHierarchyControllerConfig, decorator: Google::Apis::GkehubV1::ConfigManagementHierarchyControllerConfig::Representation
|
@@ -996,6 +996,9 @@ module Google
|
|
996
996
|
# @param [String] parent
|
997
997
|
# Required. The parent Membership for which the MembershipBindings will be
|
998
998
|
# listed. Specified in the format `projects/*/locations/*/memberships/*`.
|
999
|
+
# @param [String] filter
|
1000
|
+
# Optional. Lists MembershipBindings that match the filter expression, following
|
1001
|
+
# the syntax outlined in https://google.aip.dev/160.
|
999
1002
|
# @param [Fixnum] page_size
|
1000
1003
|
# Optional. When requesting a 'page' of resources, `page_size` specifies number
|
1001
1004
|
# of resources to return. If unspecified or set to 0, all resources will be
|
@@ -1021,11 +1024,12 @@ module Google
|
|
1021
1024
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1022
1025
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1023
1026
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1024
|
-
def list_project_location_membership_bindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1027
|
+
def list_project_location_membership_bindings(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1025
1028
|
command = make_simple_command(:get, 'v1/{+parent}/bindings', options)
|
1026
1029
|
command.response_representation = Google::Apis::GkehubV1::ListMembershipBindingsResponse::Representation
|
1027
1030
|
command.response_class = Google::Apis::GkehubV1::ListMembershipBindingsResponse
|
1028
1031
|
command.params['parent'] = parent unless parent.nil?
|
1032
|
+
command.query['filter'] = filter unless filter.nil?
|
1029
1033
|
command.query['pageSize'] = page_size unless page_size.nil?
|
1030
1034
|
command.query['pageToken'] = page_token unless page_token.nil?
|
1031
1035
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1313,6 +1317,51 @@ module Google
|
|
1313
1317
|
execute_or_queue_command(command, &block)
|
1314
1318
|
end
|
1315
1319
|
|
1320
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1321
|
+
# resource exists and does not have a policy set.
|
1322
|
+
# @param [String] resource
|
1323
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
1324
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1325
|
+
# appropriate value for this field.
|
1326
|
+
# @param [Fixnum] options_requested_policy_version
|
1327
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
1328
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1329
|
+
# rejected. Requests for policies with any conditional role bindings must
|
1330
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
1331
|
+
# valid value or leave the field unset. The policy in the response might use the
|
1332
|
+
# policy version that you specified, or it might use a lower policy version. For
|
1333
|
+
# example, if you specify version 3, but the policy has no conditional role
|
1334
|
+
# bindings, the response uses version 1. To learn which resources support
|
1335
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1336
|
+
# google.com/iam/help/conditions/resource-policies).
|
1337
|
+
# @param [String] fields
|
1338
|
+
# Selector specifying which fields to include in a partial response.
|
1339
|
+
# @param [String] quota_user
|
1340
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1341
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1342
|
+
# @param [Google::Apis::RequestOptions] options
|
1343
|
+
# Request-specific options
|
1344
|
+
#
|
1345
|
+
# @yield [result, err] Result & error if block supplied
|
1346
|
+
# @yieldparam result [Google::Apis::GkehubV1::Policy] parsed result object
|
1347
|
+
# @yieldparam err [StandardError] error object if request failed
|
1348
|
+
#
|
1349
|
+
# @return [Google::Apis::GkehubV1::Policy]
|
1350
|
+
#
|
1351
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1352
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1353
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1354
|
+
def get_project_location_scope_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1355
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
1356
|
+
command.response_representation = Google::Apis::GkehubV1::Policy::Representation
|
1357
|
+
command.response_class = Google::Apis::GkehubV1::Policy
|
1358
|
+
command.params['resource'] = resource unless resource.nil?
|
1359
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1360
|
+
command.query['fields'] = fields unless fields.nil?
|
1361
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1362
|
+
execute_or_queue_command(command, &block)
|
1363
|
+
end
|
1364
|
+
|
1316
1365
|
# Lists Scopes.
|
1317
1366
|
# @param [String] parent
|
1318
1367
|
# Required. The parent (project and location) where the Scope will be listed.
|
@@ -1352,6 +1401,82 @@ module Google
|
|
1352
1401
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1353
1402
|
execute_or_queue_command(command, &block)
|
1354
1403
|
end
|
1404
|
+
|
1405
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1406
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1407
|
+
# PERMISSION_DENIED` errors.
|
1408
|
+
# @param [String] resource
|
1409
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
1410
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1411
|
+
# appropriate value for this field.
|
1412
|
+
# @param [Google::Apis::GkehubV1::SetIamPolicyRequest] set_iam_policy_request_object
|
1413
|
+
# @param [String] fields
|
1414
|
+
# Selector specifying which fields to include in a partial response.
|
1415
|
+
# @param [String] quota_user
|
1416
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1417
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1418
|
+
# @param [Google::Apis::RequestOptions] options
|
1419
|
+
# Request-specific options
|
1420
|
+
#
|
1421
|
+
# @yield [result, err] Result & error if block supplied
|
1422
|
+
# @yieldparam result [Google::Apis::GkehubV1::Policy] parsed result object
|
1423
|
+
# @yieldparam err [StandardError] error object if request failed
|
1424
|
+
#
|
1425
|
+
# @return [Google::Apis::GkehubV1::Policy]
|
1426
|
+
#
|
1427
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1428
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1429
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1430
|
+
def set_scope_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1431
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
1432
|
+
command.request_representation = Google::Apis::GkehubV1::SetIamPolicyRequest::Representation
|
1433
|
+
command.request_object = set_iam_policy_request_object
|
1434
|
+
command.response_representation = Google::Apis::GkehubV1::Policy::Representation
|
1435
|
+
command.response_class = Google::Apis::GkehubV1::Policy
|
1436
|
+
command.params['resource'] = resource unless resource.nil?
|
1437
|
+
command.query['fields'] = fields unless fields.nil?
|
1438
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1439
|
+
execute_or_queue_command(command, &block)
|
1440
|
+
end
|
1441
|
+
|
1442
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1443
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
1444
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
1445
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1446
|
+
# This operation may "fail open" without warning.
|
1447
|
+
# @param [String] resource
|
1448
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
1449
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
1450
|
+
# appropriate value for this field.
|
1451
|
+
# @param [Google::Apis::GkehubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1452
|
+
# @param [String] fields
|
1453
|
+
# Selector specifying which fields to include in a partial response.
|
1454
|
+
# @param [String] quota_user
|
1455
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1456
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1457
|
+
# @param [Google::Apis::RequestOptions] options
|
1458
|
+
# Request-specific options
|
1459
|
+
#
|
1460
|
+
# @yield [result, err] Result & error if block supplied
|
1461
|
+
# @yieldparam result [Google::Apis::GkehubV1::TestIamPermissionsResponse] parsed result object
|
1462
|
+
# @yieldparam err [StandardError] error object if request failed
|
1463
|
+
#
|
1464
|
+
# @return [Google::Apis::GkehubV1::TestIamPermissionsResponse]
|
1465
|
+
#
|
1466
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1467
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1468
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1469
|
+
def test_scope_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1470
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
1471
|
+
command.request_representation = Google::Apis::GkehubV1::TestIamPermissionsRequest::Representation
|
1472
|
+
command.request_object = test_iam_permissions_request_object
|
1473
|
+
command.response_representation = Google::Apis::GkehubV1::TestIamPermissionsResponse::Representation
|
1474
|
+
command.response_class = Google::Apis::GkehubV1::TestIamPermissionsResponse
|
1475
|
+
command.params['resource'] = resource unless resource.nil?
|
1476
|
+
command.query['fields'] = fields unless fields.nil?
|
1477
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1478
|
+
execute_or_queue_command(command, &block)
|
1479
|
+
end
|
1355
1480
|
|
1356
1481
|
protected
|
1357
1482
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-gkehub_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 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-
|
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_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1/v0.48.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkehub_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|