google-apis-gkehub_v1beta 0.51.0 → 0.53.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: 6f0698c84a56bf557bc84a1542e8a34c70b09dbede18a46394c909c09130397a
4
- data.tar.gz: a699c24b2f318e2b236b3d858cafd394af82469078da79b75144ab555c2ce571
3
+ metadata.gz: f2089a757a3d207b2bacb2226b7c02bffd0c2f95883a226f50e0596dc452c51d
4
+ data.tar.gz: 51c4c160a8e30fe84df91e3dae558024d521212e2840a55da7e67eea2a9b6951
5
5
  SHA512:
6
- metadata.gz: b867bfd71409afd340ae37ebdb86b2bd68132d8aca432fd986f1bd363b491e171708594974b57b5ecf28ffa81079d69e874867716127c02576bcd6b80b7e60b7
7
- data.tar.gz: 9c0afd46aa845874f7a3963441d461d667cae2f6c7c8d941eb0dca1b5ce27c730c6a128f3ade76cc3ddb20a7ea7724ed856b06fc82e02a24d3c1fa3e7fd3dd9b
6
+ metadata.gz: a18084c47dd759b2cbe180239f70d36bd558900e2c18b29e9042e3aea2c1671950bfdec42d1d896293e1d81948ecaa6a386c1201613abed2fdda6cea454e01bf
7
+ data.tar.gz: f43ec53ed2a66950127ab48bce477146daff30403f4e755b7907d469b6d33f47b20f0442d476bdfa6d567b36db8caa3fc3e13a0dadd5bb874bc315006e288406
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-gkehub_v1beta
2
2
 
3
+ ### v0.53.0 (2023-08-06)
4
+
5
+ * Regenerated from discovery document revision 20230728
6
+
7
+ ### v0.52.0 (2023-07-16)
8
+
9
+ * Regenerated from discovery document revision 20230707
10
+
3
11
  ### v0.51.0 (2023-07-02)
4
12
 
5
13
  * Regenerated from discovery document revision 20230627
@@ -453,7 +453,7 @@ module Google
453
453
  # Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is
454
454
  # enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.
455
455
  # metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the
456
- # namespace `config-management-monitoring` should be binded to the GSA. This
456
+ # namespace `config-management-monitoring` should be bound to the GSA. This
457
457
  # field is required when automatic Feature management is enabled.
458
458
  # Corresponds to the JSON property `metricsGcpServiceAccountEmail`
459
459
  # @return [String]
@@ -1692,6 +1692,11 @@ module Google
1692
1692
  # @return [String]
1693
1693
  attr_accessor :display_name
1694
1694
 
1695
+ # Optional. Labels for this Fleet.
1696
+ # Corresponds to the JSON property `labels`
1697
+ # @return [Hash<String,String>]
1698
+ attr_accessor :labels
1699
+
1695
1700
  # Output only. The full, unique resource name of this fleet in the format of `
1696
1701
  # projects/`project`/locations/`location`/fleets/`fleet``. Each Google Cloud
1697
1702
  # project can have at most one fleet resource, named "default".
@@ -1725,6 +1730,7 @@ module Google
1725
1730
  @create_time = args[:create_time] if args.key?(:create_time)
1726
1731
  @delete_time = args[:delete_time] if args.key?(:delete_time)
1727
1732
  @display_name = args[:display_name] if args.key?(:display_name)
1733
+ @labels = args[:labels] if args.key?(:labels)
1728
1734
  @name = args[:name] if args.key?(:name)
1729
1735
  @state = args[:state] if args.key?(:state)
1730
1736
  @uid = args[:uid] if args.key?(:uid)
@@ -2501,6 +2507,59 @@ module Google
2501
2507
  end
2502
2508
  end
2503
2509
 
2510
+ # List of fleet namespaces.
2511
+ class ListScopeNamespacesResponse
2512
+ include Google::Apis::Core::Hashable
2513
+
2514
+ # A token to request the next page of resources from the `ListNamespaces` method.
2515
+ # The value of an empty string means that there are no more resources to return.
2516
+ # Corresponds to the JSON property `nextPageToken`
2517
+ # @return [String]
2518
+ attr_accessor :next_page_token
2519
+
2520
+ # The list of fleet namespaces
2521
+ # Corresponds to the JSON property `scopeNamespaces`
2522
+ # @return [Array<Google::Apis::GkehubV1beta::Namespace>]
2523
+ attr_accessor :scope_namespaces
2524
+
2525
+ def initialize(**args)
2526
+ update!(**args)
2527
+ end
2528
+
2529
+ # Update properties of this object
2530
+ def update!(**args)
2531
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2532
+ @scope_namespaces = args[:scope_namespaces] if args.key?(:scope_namespaces)
2533
+ end
2534
+ end
2535
+
2536
+ # List of Scope RBACRoleBindings.
2537
+ class ListScopeRbacRoleBindingsResponse
2538
+ include Google::Apis::Core::Hashable
2539
+
2540
+ # A token to request the next page of resources from the `
2541
+ # ListScopeRBACRoleBindings` method. The value of an empty string means that
2542
+ # there are no more resources to return.
2543
+ # Corresponds to the JSON property `nextPageToken`
2544
+ # @return [String]
2545
+ attr_accessor :next_page_token
2546
+
2547
+ # The list of Scope RBACRoleBindings.
2548
+ # Corresponds to the JSON property `rbacrolebindings`
2549
+ # @return [Array<Google::Apis::GkehubV1beta::RbacRoleBinding>]
2550
+ attr_accessor :rbacrolebindings
2551
+
2552
+ def initialize(**args)
2553
+ update!(**args)
2554
+ end
2555
+
2556
+ # Update properties of this object
2557
+ def update!(**args)
2558
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2559
+ @rbacrolebindings = args[:rbacrolebindings] if args.key?(:rbacrolebindings)
2560
+ end
2561
+ end
2562
+
2504
2563
  # List of Scopes.
2505
2564
  class ListScopesResponse
2506
2565
  include Google::Apis::Core::Hashable
@@ -2596,6 +2655,11 @@ module Google
2596
2655
  attr_accessor :fleet
2597
2656
  alias_method :fleet?, :fleet
2598
2657
 
2658
+ # Optional. Labels for this MembershipBinding.
2659
+ # Corresponds to the JSON property `labels`
2660
+ # @return [Hash<String,String>]
2661
+ attr_accessor :labels
2662
+
2599
2663
  # The resource name for the membershipbinding itself `projects/`project`/
2600
2664
  # locations/`location`/memberships/`membership`/bindings/`membershipbinding``
2601
2665
  # Corresponds to the JSON property `name`
@@ -2633,6 +2697,7 @@ module Google
2633
2697
  @create_time = args[:create_time] if args.key?(:create_time)
2634
2698
  @delete_time = args[:delete_time] if args.key?(:delete_time)
2635
2699
  @fleet = args[:fleet] if args.key?(:fleet)
2700
+ @labels = args[:labels] if args.key?(:labels)
2636
2701
  @name = args[:name] if args.key?(:name)
2637
2702
  @scope = args[:scope] if args.key?(:scope)
2638
2703
  @state = args[:state] if args.key?(:state)
@@ -2885,12 +2950,26 @@ module Google
2885
2950
  # @return [String]
2886
2951
  attr_accessor :delete_time
2887
2952
 
2953
+ # Optional. Labels for this Namespace.
2954
+ # Corresponds to the JSON property `labels`
2955
+ # @return [Hash<String,String>]
2956
+ attr_accessor :labels
2957
+
2888
2958
  # The resource name for the namespace `projects/`project`/locations/`location`/
2889
2959
  # namespaces/`namespace``
2890
2960
  # Corresponds to the JSON property `name`
2891
2961
  # @return [String]
2892
2962
  attr_accessor :name
2893
2963
 
2964
+ # Optional. Namespace-level cluster namespace labels. These labels are applied
2965
+ # to the related namespace of the member clusters bound to the parent Scope.
2966
+ # Scope-level labels (`namespace_labels` in the Fleet Scope resource) take
2967
+ # precedence over Namespace-level labels if they share a key. Keys and values
2968
+ # must be Kubernetes-conformant.
2969
+ # Corresponds to the JSON property `namespaceLabels`
2970
+ # @return [Hash<String,String>]
2971
+ attr_accessor :namespace_labels
2972
+
2894
2973
  # Required. Scope associated with the namespace
2895
2974
  # Corresponds to the JSON property `scope`
2896
2975
  # @return [String]
@@ -2921,7 +3000,9 @@ module Google
2921
3000
  def update!(**args)
2922
3001
  @create_time = args[:create_time] if args.key?(:create_time)
2923
3002
  @delete_time = args[:delete_time] if args.key?(:delete_time)
3003
+ @labels = args[:labels] if args.key?(:labels)
2924
3004
  @name = args[:name] if args.key?(:name)
3005
+ @namespace_labels = args[:namespace_labels] if args.key?(:namespace_labels)
2925
3006
  @scope = args[:scope] if args.key?(:scope)
2926
3007
  @state = args[:state] if args.key?(:state)
2927
3008
  @uid = args[:uid] if args.key?(:uid)
@@ -3624,6 +3705,11 @@ module Google
3624
3705
  # @return [String]
3625
3706
  attr_accessor :group
3626
3707
 
3708
+ # Optional. Labels for this RBACRolebinding.
3709
+ # Corresponds to the JSON property `labels`
3710
+ # @return [Hash<String,String>]
3711
+ attr_accessor :labels
3712
+
3627
3713
  # The resource name for the rbacrolebinding `projects/`project`/locations/`
3628
3714
  # location`/namespaces/`namespace`/rbacrolebindings/`rbacrolebinding`` or `
3629
3715
  # projects/`project`/locations/`location`/memberships/`membership`/
@@ -3670,6 +3756,7 @@ module Google
3670
3756
  @create_time = args[:create_time] if args.key?(:create_time)
3671
3757
  @delete_time = args[:delete_time] if args.key?(:delete_time)
3672
3758
  @group = args[:group] if args.key?(:group)
3759
+ @labels = args[:labels] if args.key?(:labels)
3673
3760
  @name = args[:name] if args.key?(:name)
3674
3761
  @role = args[:role] if args.key?(:role)
3675
3762
  @state = args[:state] if args.key?(:state)
@@ -3738,12 +3825,26 @@ module Google
3738
3825
  # @return [String]
3739
3826
  attr_accessor :delete_time
3740
3827
 
3828
+ # Optional. Labels for this Scope.
3829
+ # Corresponds to the JSON property `labels`
3830
+ # @return [Hash<String,String>]
3831
+ attr_accessor :labels
3832
+
3741
3833
  # The resource name for the scope `projects/`project`/locations/`location`/
3742
3834
  # scopes/`scope``
3743
3835
  # Corresponds to the JSON property `name`
3744
3836
  # @return [String]
3745
3837
  attr_accessor :name
3746
3838
 
3839
+ # Optional. Scope-level cluster namespace labels. For the member clusters bound
3840
+ # to the Scope, these labels are applied to each namespace under the Scope.
3841
+ # Scope-level labels take precedence over Namespace-level labels (`
3842
+ # namespace_labels` in the Fleet Namespace resource) if they share a key. Keys
3843
+ # and values must be Kubernetes-conformant.
3844
+ # Corresponds to the JSON property `namespaceLabels`
3845
+ # @return [Hash<String,String>]
3846
+ attr_accessor :namespace_labels
3847
+
3747
3848
  # ScopeLifecycleState describes the state of a Scope resource.
3748
3849
  # Corresponds to the JSON property `state`
3749
3850
  # @return [Google::Apis::GkehubV1beta::ScopeLifecycleState]
@@ -3770,7 +3871,9 @@ module Google
3770
3871
  @all_memberships = args[:all_memberships] if args.key?(:all_memberships)
3771
3872
  @create_time = args[:create_time] if args.key?(:create_time)
3772
3873
  @delete_time = args[:delete_time] if args.key?(:delete_time)
3874
+ @labels = args[:labels] if args.key?(:labels)
3773
3875
  @name = args[:name] if args.key?(:name)
3876
+ @namespace_labels = args[:namespace_labels] if args.key?(:namespace_labels)
3774
3877
  @state = args[:state] if args.key?(:state)
3775
3878
  @uid = args[:uid] if args.key?(:uid)
3776
3879
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -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.51.0"
19
+ GEM_VERSION = "0.53.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 = "20230627"
25
+ REVISION = "20230728"
26
26
  end
27
27
  end
28
28
  end
@@ -454,6 +454,18 @@ module Google
454
454
  include Google::Apis::Core::JsonObjectSupport
455
455
  end
456
456
 
457
+ class ListScopeNamespacesResponse
458
+ class Representation < Google::Apis::Core::JsonRepresentation; end
459
+
460
+ include Google::Apis::Core::JsonObjectSupport
461
+ end
462
+
463
+ class ListScopeRbacRoleBindingsResponse
464
+ class Representation < Google::Apis::Core::JsonRepresentation; end
465
+
466
+ include Google::Apis::Core::JsonObjectSupport
467
+ end
468
+
457
469
  class ListScopesResponse
458
470
  class Representation < Google::Apis::Core::JsonRepresentation; end
459
471
 
@@ -1183,6 +1195,7 @@ module Google
1183
1195
  property :create_time, as: 'createTime'
1184
1196
  property :delete_time, as: 'deleteTime'
1185
1197
  property :display_name, as: 'displayName'
1198
+ hash :labels, as: 'labels'
1186
1199
  property :name, as: 'name'
1187
1200
  property :state, as: 'state', class: Google::Apis::GkehubV1beta::FleetLifecycleState, decorator: Google::Apis::GkehubV1beta::FleetLifecycleState::Representation
1188
1201
 
@@ -1439,6 +1452,24 @@ module Google
1439
1452
  end
1440
1453
  end
1441
1454
 
1455
+ class ListScopeNamespacesResponse
1456
+ # @private
1457
+ class Representation < Google::Apis::Core::JsonRepresentation
1458
+ property :next_page_token, as: 'nextPageToken'
1459
+ collection :scope_namespaces, as: 'scopeNamespaces', class: Google::Apis::GkehubV1beta::Namespace, decorator: Google::Apis::GkehubV1beta::Namespace::Representation
1460
+
1461
+ end
1462
+ end
1463
+
1464
+ class ListScopeRbacRoleBindingsResponse
1465
+ # @private
1466
+ class Representation < Google::Apis::Core::JsonRepresentation
1467
+ property :next_page_token, as: 'nextPageToken'
1468
+ collection :rbacrolebindings, as: 'rbacrolebindings', class: Google::Apis::GkehubV1beta::RbacRoleBinding, decorator: Google::Apis::GkehubV1beta::RbacRoleBinding::Representation
1469
+
1470
+ end
1471
+ end
1472
+
1442
1473
  class ListScopesResponse
1443
1474
  # @private
1444
1475
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1465,6 +1496,7 @@ module Google
1465
1496
  property :create_time, as: 'createTime'
1466
1497
  property :delete_time, as: 'deleteTime'
1467
1498
  property :fleet, as: 'fleet'
1499
+ hash :labels, as: 'labels'
1468
1500
  property :name, as: 'name'
1469
1501
  property :scope, as: 'scope'
1470
1502
  property :state, as: 'state', class: Google::Apis::GkehubV1beta::MembershipBindingLifecycleState, decorator: Google::Apis::GkehubV1beta::MembershipBindingLifecycleState::Representation
@@ -1554,7 +1586,9 @@ module Google
1554
1586
  class Representation < Google::Apis::Core::JsonRepresentation
1555
1587
  property :create_time, as: 'createTime'
1556
1588
  property :delete_time, as: 'deleteTime'
1589
+ hash :labels, as: 'labels'
1557
1590
  property :name, as: 'name'
1591
+ hash :namespace_labels, as: 'namespaceLabels'
1558
1592
  property :scope, as: 'scope'
1559
1593
  property :state, as: 'state', class: Google::Apis::GkehubV1beta::NamespaceLifecycleState, decorator: Google::Apis::GkehubV1beta::NamespaceLifecycleState::Representation
1560
1594
 
@@ -1751,6 +1785,7 @@ module Google
1751
1785
  property :create_time, as: 'createTime'
1752
1786
  property :delete_time, as: 'deleteTime'
1753
1787
  property :group, as: 'group'
1788
+ hash :labels, as: 'labels'
1754
1789
  property :name, as: 'name'
1755
1790
  property :role, as: 'role', class: Google::Apis::GkehubV1beta::Role, decorator: Google::Apis::GkehubV1beta::Role::Representation
1756
1791
 
@@ -1782,7 +1817,9 @@ module Google
1782
1817
  property :all_memberships, as: 'allMemberships'
1783
1818
  property :create_time, as: 'createTime'
1784
1819
  property :delete_time, as: 'deleteTime'
1820
+ hash :labels, as: 'labels'
1785
1821
  property :name, as: 'name'
1822
+ hash :namespace_labels, as: 'namespaceLabels'
1786
1823
  property :state, as: 'state', class: Google::Apis::GkehubV1beta::ScopeLifecycleState, decorator: Google::Apis::GkehubV1beta::ScopeLifecycleState::Representation
1787
1824
 
1788
1825
  property :uid, as: 'uid'
@@ -2019,6 +2019,369 @@ module Google
2019
2019
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2020
2020
  execute_or_queue_command(command, &block)
2021
2021
  end
2022
+
2023
+ # Creates a fleet namespace.
2024
+ # @param [String] parent
2025
+ # Required. The parent (project and location) where the Namespace will be
2026
+ # created. Specified in the format `projects/*/locations/*/scopes/*`.
2027
+ # @param [Google::Apis::GkehubV1beta::Namespace] namespace_object
2028
+ # @param [String] scope_namespace_id
2029
+ # Required. Client chosen ID for the Namespace. `namespace_id` must be a valid
2030
+ # RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must
2031
+ # consist of lower case alphanumeric characters or `-` 3. It must start and end
2032
+ # with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([
2033
+ # -a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.
2034
+ # @param [String] fields
2035
+ # Selector specifying which fields to include in a partial response.
2036
+ # @param [String] quota_user
2037
+ # Available to use for quota purposes for server-side applications. Can be any
2038
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2039
+ # @param [Google::Apis::RequestOptions] options
2040
+ # Request-specific options
2041
+ #
2042
+ # @yield [result, err] Result & error if block supplied
2043
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
2044
+ # @yieldparam err [StandardError] error object if request failed
2045
+ #
2046
+ # @return [Google::Apis::GkehubV1beta::Operation]
2047
+ #
2048
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2049
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2050
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2051
+ def create_project_location_scope_namespace(parent, namespace_object = nil, scope_namespace_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2052
+ command = make_simple_command(:post, 'v1beta/{+parent}/namespaces', options)
2053
+ command.request_representation = Google::Apis::GkehubV1beta::Namespace::Representation
2054
+ command.request_object = namespace_object
2055
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
2056
+ command.response_class = Google::Apis::GkehubV1beta::Operation
2057
+ command.params['parent'] = parent unless parent.nil?
2058
+ command.query['scopeNamespaceId'] = scope_namespace_id unless scope_namespace_id.nil?
2059
+ command.query['fields'] = fields unless fields.nil?
2060
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2061
+ execute_or_queue_command(command, &block)
2062
+ end
2063
+
2064
+ # Deletes a fleet namespace.
2065
+ # @param [String] name
2066
+ # Required. The Namespace resource name in the format `projects/*/locations/*/
2067
+ # scopes/*/namespaces/*`.
2068
+ # @param [String] fields
2069
+ # Selector specifying which fields to include in a partial response.
2070
+ # @param [String] quota_user
2071
+ # Available to use for quota purposes for server-side applications. Can be any
2072
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2073
+ # @param [Google::Apis::RequestOptions] options
2074
+ # Request-specific options
2075
+ #
2076
+ # @yield [result, err] Result & error if block supplied
2077
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
2078
+ # @yieldparam err [StandardError] error object if request failed
2079
+ #
2080
+ # @return [Google::Apis::GkehubV1beta::Operation]
2081
+ #
2082
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2083
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2084
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2085
+ def delete_project_location_scope_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
2086
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
2087
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
2088
+ command.response_class = Google::Apis::GkehubV1beta::Operation
2089
+ command.params['name'] = name unless name.nil?
2090
+ command.query['fields'] = fields unless fields.nil?
2091
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2092
+ execute_or_queue_command(command, &block)
2093
+ end
2094
+
2095
+ # Returns the details of a fleet namespace.
2096
+ # @param [String] name
2097
+ # Required. The Namespace resource name in the format `projects/*/locations/*/
2098
+ # scopes/*/namespaces/*`.
2099
+ # @param [String] fields
2100
+ # Selector specifying which fields to include in a partial response.
2101
+ # @param [String] quota_user
2102
+ # Available to use for quota purposes for server-side applications. Can be any
2103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2104
+ # @param [Google::Apis::RequestOptions] options
2105
+ # Request-specific options
2106
+ #
2107
+ # @yield [result, err] Result & error if block supplied
2108
+ # @yieldparam result [Google::Apis::GkehubV1beta::Namespace] parsed result object
2109
+ # @yieldparam err [StandardError] error object if request failed
2110
+ #
2111
+ # @return [Google::Apis::GkehubV1beta::Namespace]
2112
+ #
2113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2116
+ def get_project_location_scope_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
2117
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
2118
+ command.response_representation = Google::Apis::GkehubV1beta::Namespace::Representation
2119
+ command.response_class = Google::Apis::GkehubV1beta::Namespace
2120
+ command.params['name'] = name unless name.nil?
2121
+ command.query['fields'] = fields unless fields.nil?
2122
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2123
+ execute_or_queue_command(command, &block)
2124
+ end
2125
+
2126
+ # Lists fleet namespaces.
2127
+ # @param [String] parent
2128
+ # Required. The parent (project and location) where the Features will be listed.
2129
+ # Specified in the format `projects/*/locations/*/scopes/*`.
2130
+ # @param [Fixnum] page_size
2131
+ # Optional. When requesting a 'page' of resources, `page_size` specifies number
2132
+ # of resources to return. If unspecified or set to 0, all resources will be
2133
+ # returned.
2134
+ # @param [String] page_token
2135
+ # Optional. Token returned by previous call to `ListFeatures` which specifies
2136
+ # the position in the list from where to continue listing the resources.
2137
+ # @param [String] fields
2138
+ # Selector specifying which fields to include in a partial response.
2139
+ # @param [String] quota_user
2140
+ # Available to use for quota purposes for server-side applications. Can be any
2141
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2142
+ # @param [Google::Apis::RequestOptions] options
2143
+ # Request-specific options
2144
+ #
2145
+ # @yield [result, err] Result & error if block supplied
2146
+ # @yieldparam result [Google::Apis::GkehubV1beta::ListScopeNamespacesResponse] parsed result object
2147
+ # @yieldparam err [StandardError] error object if request failed
2148
+ #
2149
+ # @return [Google::Apis::GkehubV1beta::ListScopeNamespacesResponse]
2150
+ #
2151
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2152
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2153
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2154
+ def list_project_location_scope_namespaces(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2155
+ command = make_simple_command(:get, 'v1beta/{+parent}/namespaces', options)
2156
+ command.response_representation = Google::Apis::GkehubV1beta::ListScopeNamespacesResponse::Representation
2157
+ command.response_class = Google::Apis::GkehubV1beta::ListScopeNamespacesResponse
2158
+ command.params['parent'] = parent unless parent.nil?
2159
+ command.query['pageSize'] = page_size unless page_size.nil?
2160
+ command.query['pageToken'] = page_token unless page_token.nil?
2161
+ command.query['fields'] = fields unless fields.nil?
2162
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2163
+ execute_or_queue_command(command, &block)
2164
+ end
2165
+
2166
+ # Updates a fleet namespace.
2167
+ # @param [String] name
2168
+ # The resource name for the namespace `projects/`project`/locations/`location`/
2169
+ # namespaces/`namespace``
2170
+ # @param [Google::Apis::GkehubV1beta::Namespace] namespace_object
2171
+ # @param [String] update_mask
2172
+ # Required. The fields to be updated.
2173
+ # @param [String] fields
2174
+ # Selector specifying which fields to include in a partial response.
2175
+ # @param [String] quota_user
2176
+ # Available to use for quota purposes for server-side applications. Can be any
2177
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2178
+ # @param [Google::Apis::RequestOptions] options
2179
+ # Request-specific options
2180
+ #
2181
+ # @yield [result, err] Result & error if block supplied
2182
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
2183
+ # @yieldparam err [StandardError] error object if request failed
2184
+ #
2185
+ # @return [Google::Apis::GkehubV1beta::Operation]
2186
+ #
2187
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2188
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2189
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2190
+ def patch_project_location_scope_namespace(name, namespace_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2191
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
2192
+ command.request_representation = Google::Apis::GkehubV1beta::Namespace::Representation
2193
+ command.request_object = namespace_object
2194
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
2195
+ command.response_class = Google::Apis::GkehubV1beta::Operation
2196
+ command.params['name'] = name unless name.nil?
2197
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2198
+ command.query['fields'] = fields unless fields.nil?
2199
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2200
+ execute_or_queue_command(command, &block)
2201
+ end
2202
+
2203
+ # Creates a Scope RBACRoleBinding.
2204
+ # @param [String] parent
2205
+ # Required. The parent (project and location) where the RBACRoleBinding will be
2206
+ # created. Specified in the format `projects/*/locations/*/scopes/*`.
2207
+ # @param [Google::Apis::GkehubV1beta::RbacRoleBinding] rbac_role_binding_object
2208
+ # @param [String] rbacrolebinding_id
2209
+ # Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` must
2210
+ # be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2.
2211
+ # It must consist of lower case alphanumeric characters or `-` 3. It must start
2212
+ # and end with an alphanumeric character Which can be expressed as the regex: `[
2213
+ # a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.
2214
+ # @param [String] fields
2215
+ # Selector specifying which fields to include in a partial response.
2216
+ # @param [String] quota_user
2217
+ # Available to use for quota purposes for server-side applications. Can be any
2218
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2219
+ # @param [Google::Apis::RequestOptions] options
2220
+ # Request-specific options
2221
+ #
2222
+ # @yield [result, err] Result & error if block supplied
2223
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
2224
+ # @yieldparam err [StandardError] error object if request failed
2225
+ #
2226
+ # @return [Google::Apis::GkehubV1beta::Operation]
2227
+ #
2228
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2229
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2230
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2231
+ def create_project_location_scope_rbacrolebinding(parent, rbac_role_binding_object = nil, rbacrolebinding_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2232
+ command = make_simple_command(:post, 'v1beta/{+parent}/rbacrolebindings', options)
2233
+ command.request_representation = Google::Apis::GkehubV1beta::RbacRoleBinding::Representation
2234
+ command.request_object = rbac_role_binding_object
2235
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
2236
+ command.response_class = Google::Apis::GkehubV1beta::Operation
2237
+ command.params['parent'] = parent unless parent.nil?
2238
+ command.query['rbacrolebindingId'] = rbacrolebinding_id unless rbacrolebinding_id.nil?
2239
+ command.query['fields'] = fields unless fields.nil?
2240
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2241
+ execute_or_queue_command(command, &block)
2242
+ end
2243
+
2244
+ # Deletes a Scope RBACRoleBinding.
2245
+ # @param [String] name
2246
+ # Required. The RBACRoleBinding resource name in the format `projects/*/
2247
+ # locations/*/scopes/*/rbacrolebindings/*`.
2248
+ # @param [String] fields
2249
+ # Selector specifying which fields to include in a partial response.
2250
+ # @param [String] quota_user
2251
+ # Available to use for quota purposes for server-side applications. Can be any
2252
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2253
+ # @param [Google::Apis::RequestOptions] options
2254
+ # Request-specific options
2255
+ #
2256
+ # @yield [result, err] Result & error if block supplied
2257
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
2258
+ # @yieldparam err [StandardError] error object if request failed
2259
+ #
2260
+ # @return [Google::Apis::GkehubV1beta::Operation]
2261
+ #
2262
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2263
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2264
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2265
+ def delete_project_location_scope_rbacrolebinding(name, fields: nil, quota_user: nil, options: nil, &block)
2266
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
2267
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
2268
+ command.response_class = Google::Apis::GkehubV1beta::Operation
2269
+ command.params['name'] = name unless name.nil?
2270
+ command.query['fields'] = fields unless fields.nil?
2271
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2272
+ execute_or_queue_command(command, &block)
2273
+ end
2274
+
2275
+ # Returns the details of a Scope RBACRoleBinding.
2276
+ # @param [String] name
2277
+ # Required. The RBACRoleBinding resource name in the format `projects/*/
2278
+ # locations/*/scopes/*/rbacrolebindings/*`.
2279
+ # @param [String] fields
2280
+ # Selector specifying which fields to include in a partial response.
2281
+ # @param [String] quota_user
2282
+ # Available to use for quota purposes for server-side applications. Can be any
2283
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2284
+ # @param [Google::Apis::RequestOptions] options
2285
+ # Request-specific options
2286
+ #
2287
+ # @yield [result, err] Result & error if block supplied
2288
+ # @yieldparam result [Google::Apis::GkehubV1beta::RbacRoleBinding] parsed result object
2289
+ # @yieldparam err [StandardError] error object if request failed
2290
+ #
2291
+ # @return [Google::Apis::GkehubV1beta::RbacRoleBinding]
2292
+ #
2293
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2294
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2295
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2296
+ def get_project_location_scope_rbacrolebinding(name, fields: nil, quota_user: nil, options: nil, &block)
2297
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
2298
+ command.response_representation = Google::Apis::GkehubV1beta::RbacRoleBinding::Representation
2299
+ command.response_class = Google::Apis::GkehubV1beta::RbacRoleBinding
2300
+ command.params['name'] = name unless name.nil?
2301
+ command.query['fields'] = fields unless fields.nil?
2302
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2303
+ execute_or_queue_command(command, &block)
2304
+ end
2305
+
2306
+ # Lists all Scope RBACRoleBindings.
2307
+ # @param [String] parent
2308
+ # Required. The parent (project and location) where the Features will be listed.
2309
+ # Specified in the format `projects/*/locations/*/scopes/*`.
2310
+ # @param [Fixnum] page_size
2311
+ # Optional. When requesting a 'page' of resources, `page_size` specifies number
2312
+ # of resources to return. If unspecified or set to 0, all resources will be
2313
+ # returned.
2314
+ # @param [String] page_token
2315
+ # Optional. Token returned by previous call to `ListScopeRBACRoleBindings` which
2316
+ # specifies the position in the list from where to continue listing the
2317
+ # resources.
2318
+ # @param [String] fields
2319
+ # Selector specifying which fields to include in a partial response.
2320
+ # @param [String] quota_user
2321
+ # Available to use for quota purposes for server-side applications. Can be any
2322
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2323
+ # @param [Google::Apis::RequestOptions] options
2324
+ # Request-specific options
2325
+ #
2326
+ # @yield [result, err] Result & error if block supplied
2327
+ # @yieldparam result [Google::Apis::GkehubV1beta::ListScopeRbacRoleBindingsResponse] parsed result object
2328
+ # @yieldparam err [StandardError] error object if request failed
2329
+ #
2330
+ # @return [Google::Apis::GkehubV1beta::ListScopeRbacRoleBindingsResponse]
2331
+ #
2332
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2333
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2334
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2335
+ def list_project_location_scope_rbacrolebindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2336
+ command = make_simple_command(:get, 'v1beta/{+parent}/rbacrolebindings', options)
2337
+ command.response_representation = Google::Apis::GkehubV1beta::ListScopeRbacRoleBindingsResponse::Representation
2338
+ command.response_class = Google::Apis::GkehubV1beta::ListScopeRbacRoleBindingsResponse
2339
+ command.params['parent'] = parent unless parent.nil?
2340
+ command.query['pageSize'] = page_size unless page_size.nil?
2341
+ command.query['pageToken'] = page_token unless page_token.nil?
2342
+ command.query['fields'] = fields unless fields.nil?
2343
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2344
+ execute_or_queue_command(command, &block)
2345
+ end
2346
+
2347
+ # Updates a Scope RBACRoleBinding.
2348
+ # @param [String] name
2349
+ # The resource name for the rbacrolebinding `projects/`project`/locations/`
2350
+ # location`/namespaces/`namespace`/rbacrolebindings/`rbacrolebinding`` or `
2351
+ # projects/`project`/locations/`location`/memberships/`membership`/
2352
+ # rbacrolebindings/`rbacrolebinding``
2353
+ # @param [Google::Apis::GkehubV1beta::RbacRoleBinding] rbac_role_binding_object
2354
+ # @param [String] update_mask
2355
+ # Required. The fields to be updated.
2356
+ # @param [String] fields
2357
+ # Selector specifying which fields to include in a partial response.
2358
+ # @param [String] quota_user
2359
+ # Available to use for quota purposes for server-side applications. Can be any
2360
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2361
+ # @param [Google::Apis::RequestOptions] options
2362
+ # Request-specific options
2363
+ #
2364
+ # @yield [result, err] Result & error if block supplied
2365
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
2366
+ # @yieldparam err [StandardError] error object if request failed
2367
+ #
2368
+ # @return [Google::Apis::GkehubV1beta::Operation]
2369
+ #
2370
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2371
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2372
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2373
+ def patch_project_location_scope_rbacrolebinding(name, rbac_role_binding_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2374
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
2375
+ command.request_representation = Google::Apis::GkehubV1beta::RbacRoleBinding::Representation
2376
+ command.request_object = rbac_role_binding_object
2377
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
2378
+ command.response_class = Google::Apis::GkehubV1beta::Operation
2379
+ command.params['name'] = name unless name.nil?
2380
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2381
+ command.query['fields'] = fields unless fields.nil?
2382
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2383
+ execute_or_queue_command(command, &block)
2384
+ end
2022
2385
 
2023
2386
  protected
2024
2387
 
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.51.0
4
+ version: 0.53.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-07-02 00:00:00.000000000 Z
11
+ date: 2023-08-06 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.51.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1beta/v0.53.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: []