google-apis-gkehub_v1beta 0.42.0 → 0.44.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: 925841ccaaedfdb750756ea4878f974c51eafa9f51d047976e6aa4d1892343e7
4
- data.tar.gz: d01062966a8ef9a4ad8052d5bbd498e58dafd4ad49ebecbcd0a4a8eca70422cb
3
+ metadata.gz: 9edd11f796859385a6bf91ba04e8601b873469b76d06f55590497518a2a27385
4
+ data.tar.gz: a8b6b9812bf0c2e3ab02e4ff80f7942504eaca34dfc0a4313016648e9252dfef
5
5
  SHA512:
6
- metadata.gz: c3d9f68f97a210e7da0537aec0ef458d60c81f1a031c218bbb483e9cfbbd97a9112da67a658b29967f63f41af16a0ae68d87a6579cb8b3fd843a158360f67d2c
7
- data.tar.gz: d23213df16d679cd0266d8fcbf02dc4bf7827e0fed0cbb0eaea37bb3e6c319e6c21e474774ebdcdde408c8318b05bdb8f4daaa03cdc711c9738b0aa176107694
6
+ metadata.gz: 626d52cbe028fd4e482b657a6587bbaa6181209c7ec82f724969ec7eb5445e7bdb66fecd9e18f321d08d7bd59a8bd6cb8478df67187e6383b20b4d23ec005d91
7
+ data.tar.gz: 634c6e45ebce2848c1984332d0a06cad7946ff81845c33eb15ca96111eb0a304a2af5975f74e7385003533ce77090a7c4e763f1c3f85235dfd4d640d89537f20
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-gkehub_v1beta
2
2
 
3
+ ### v0.44.0 (2023-04-16)
4
+
5
+ * Regenerated from discovery document revision 20230407
6
+
7
+ ### v0.43.0 (2023-03-26)
8
+
9
+ * Regenerated from discovery document revision 20230316
10
+
3
11
  ### v0.42.0 (2023-03-19)
4
12
 
5
13
  * Regenerated from discovery document revision 20230310
@@ -450,6 +450,11 @@ module Google
450
450
  # @return [Google::Apis::GkehubV1beta::ConfigManagementGitConfig]
451
451
  attr_accessor :git
452
452
 
453
+ # Configuration for Managed Config Sync.
454
+ # Corresponds to the JSON property `managed`
455
+ # @return [Google::Apis::GkehubV1beta::ConfigManagementManaged]
456
+ attr_accessor :managed
457
+
453
458
  # OCI repo configuration for a single cluster
454
459
  # Corresponds to the JSON property `oci`
455
460
  # @return [Google::Apis::GkehubV1beta::ConfigManagementOciConfig]
@@ -478,6 +483,7 @@ module Google
478
483
  @allow_vertical_scale = args[:allow_vertical_scale] if args.key?(:allow_vertical_scale)
479
484
  @enabled = args[:enabled] if args.key?(:enabled)
480
485
  @git = args[:git] if args.key?(:git)
486
+ @managed = args[:managed] if args.key?(:managed)
481
487
  @oci = args[:oci] if args.key?(:oci)
482
488
  @prevent_drift = args[:prevent_drift] if args.key?(:prevent_drift)
483
489
  @source_format = args[:source_format] if args.key?(:source_format)
@@ -917,6 +923,27 @@ module Google
917
923
  end
918
924
  end
919
925
 
926
+ # Configuration for Managed Config Sync.
927
+ class ConfigManagementManaged
928
+ include Google::Apis::Core::Hashable
929
+
930
+ # Set to true to enable Managed Config Sync. Defaults to false which disables
931
+ # Managed Config Sync.
932
+ # Corresponds to the JSON property `enabled`
933
+ # @return [Boolean]
934
+ attr_accessor :enabled
935
+ alias_method :enabled?, :enabled
936
+
937
+ def initialize(**args)
938
+ update!(**args)
939
+ end
940
+
941
+ # Update properties of this object
942
+ def update!(**args)
943
+ @enabled = args[:enabled] if args.key?(:enabled)
944
+ end
945
+ end
946
+
920
947
  # **Anthos Config Management**: Configuration for a single cluster. Intended to
921
948
  # parallel the ConfigManagement CR.
922
949
  class ConfigManagementMembershipSpec
@@ -1599,6 +1626,87 @@ module Google
1599
1626
  end
1600
1627
  end
1601
1628
 
1629
+ # Fleet contains the Fleet-wide metadata and configuration.
1630
+ class Fleet
1631
+ include Google::Apis::Core::Hashable
1632
+
1633
+ # Output only. When the Fleet was created.
1634
+ # Corresponds to the JSON property `createTime`
1635
+ # @return [String]
1636
+ attr_accessor :create_time
1637
+
1638
+ # Output only. When the Fleet was deleted.
1639
+ # Corresponds to the JSON property `deleteTime`
1640
+ # @return [String]
1641
+ attr_accessor :delete_time
1642
+
1643
+ # Optional. A user-assigned display name of the Fleet. When present, it must be
1644
+ # between 4 to 30 characters. Allowed characters are: lowercase and uppercase
1645
+ # letters, numbers, hyphen, single-quote, double-quote, space, and exclamation
1646
+ # point. Example: `Production Fleet`
1647
+ # Corresponds to the JSON property `displayName`
1648
+ # @return [String]
1649
+ attr_accessor :display_name
1650
+
1651
+ # Output only. The full, unique resource name of this fleet in the format of `
1652
+ # projects/`project`/locations/`location`/fleets/`fleet``. Each GCP project can
1653
+ # have at most one fleet resource, named "default".
1654
+ # Corresponds to the JSON property `name`
1655
+ # @return [String]
1656
+ attr_accessor :name
1657
+
1658
+ # FleetLifecycleState describes the state of a Fleet resource.
1659
+ # Corresponds to the JSON property `state`
1660
+ # @return [Google::Apis::GkehubV1beta::FleetLifecycleState]
1661
+ attr_accessor :state
1662
+
1663
+ # Output only. Google-generated UUID for this resource. This is unique across
1664
+ # all Fleet resources. If a Fleet resource is deleted and another resource with
1665
+ # the same name is created, it gets a different uid.
1666
+ # Corresponds to the JSON property `uid`
1667
+ # @return [String]
1668
+ attr_accessor :uid
1669
+
1670
+ # Output only. When the Fleet was last updated.
1671
+ # Corresponds to the JSON property `updateTime`
1672
+ # @return [String]
1673
+ attr_accessor :update_time
1674
+
1675
+ def initialize(**args)
1676
+ update!(**args)
1677
+ end
1678
+
1679
+ # Update properties of this object
1680
+ def update!(**args)
1681
+ @create_time = args[:create_time] if args.key?(:create_time)
1682
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
1683
+ @display_name = args[:display_name] if args.key?(:display_name)
1684
+ @name = args[:name] if args.key?(:name)
1685
+ @state = args[:state] if args.key?(:state)
1686
+ @uid = args[:uid] if args.key?(:uid)
1687
+ @update_time = args[:update_time] if args.key?(:update_time)
1688
+ end
1689
+ end
1690
+
1691
+ # FleetLifecycleState describes the state of a Fleet resource.
1692
+ class FleetLifecycleState
1693
+ include Google::Apis::Core::Hashable
1694
+
1695
+ # Output only. The current state of the Fleet resource.
1696
+ # Corresponds to the JSON property `code`
1697
+ # @return [String]
1698
+ attr_accessor :code
1699
+
1700
+ def initialize(**args)
1701
+ update!(**args)
1702
+ end
1703
+
1704
+ # Update properties of this object
1705
+ def update!(**args)
1706
+ @code = args[:code] if args.key?(:code)
1707
+ end
1708
+ end
1709
+
1602
1710
  # **Fleet Observability**: The Hub-wide input for the FleetObservability feature.
1603
1711
  class FleetObservabilityFeatureSpec
1604
1712
  include Google::Apis::Core::Hashable
@@ -1990,6 +2098,33 @@ module Google
1990
2098
  end
1991
2099
  end
1992
2100
 
2101
+ # Response message for the `GkeHub.ListFleetsResponse` method.
2102
+ class ListFleetsResponse
2103
+ include Google::Apis::Core::Hashable
2104
+
2105
+ # The list of matching fleets.
2106
+ # Corresponds to the JSON property `fleets`
2107
+ # @return [Array<Google::Apis::GkehubV1beta::Fleet>]
2108
+ attr_accessor :fleets
2109
+
2110
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
2111
+ # field is omitted, there are no subsequent pages. The token is only valid for
2112
+ # 1h.
2113
+ # Corresponds to the JSON property `nextPageToken`
2114
+ # @return [String]
2115
+ attr_accessor :next_page_token
2116
+
2117
+ def initialize(**args)
2118
+ update!(**args)
2119
+ end
2120
+
2121
+ # Update properties of this object
2122
+ def update!(**args)
2123
+ @fleets = args[:fleets] if args.key?(:fleets)
2124
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2125
+ end
2126
+ end
2127
+
1993
2128
  # The response message for Locations.ListLocations.
1994
2129
  class ListLocationsResponse
1995
2130
  include Google::Apis::Core::Hashable
@@ -2789,12 +2924,14 @@ module Google
2789
2924
  class PolicyControllerBundleInstallSpec
2790
2925
  include Google::Apis::Core::Hashable
2791
2926
 
2792
- # the set of namespaces to be exempted from the bundle
2927
+ # the set of namespaces to be exempted from the bundle TODO (b/271878194):
2928
+ # Decrement this
2793
2929
  # Corresponds to the JSON property `exemptedNamespaces`
2794
2930
  # @return [Array<String>]
2795
2931
  attr_accessor :exempted_namespaces
2796
2932
 
2797
- # Management specifies how the bundle will be managed by the controller.
2933
+ # Management specifies how the bundle will be managed by the controller. TODO (b/
2934
+ # 271878194): Remove this
2798
2935
  # Corresponds to the JSON property `management`
2799
2936
  # @return [String]
2800
2937
  attr_accessor :management
@@ -2939,11 +3076,16 @@ module Google
2939
3076
  attr_accessor :component_states
2940
3077
 
2941
3078
  # The state of the template library and any bundles included in the chosen
2942
- # version of the manifest
3079
+ # version of the manifest TODO (b/271878194): Remove this
2943
3080
  # Corresponds to the JSON property `contentStates`
2944
3081
  # @return [Hash<String,Google::Apis::GkehubV1beta::PolicyControllerOnClusterState>]
2945
3082
  attr_accessor :content_states
2946
3083
 
3084
+ # The state of the policy controller policy content
3085
+ # Corresponds to the JSON property `policyContentState`
3086
+ # @return [Google::Apis::GkehubV1beta::PolicyControllerPolicyContentState]
3087
+ attr_accessor :policy_content_state
3088
+
2947
3089
  # The overall Policy Controller lifecycle state observed by the Hub Feature
2948
3090
  # controller.
2949
3091
  # Corresponds to the JSON property `state`
@@ -2958,6 +3100,7 @@ module Google
2958
3100
  def update!(**args)
2959
3101
  @component_states = args[:component_states] if args.key?(:component_states)
2960
3102
  @content_states = args[:content_states] if args.key?(:content_states)
3103
+ @policy_content_state = args[:policy_content_state] if args.key?(:policy_content_state)
2961
3104
  @state = args[:state] if args.key?(:state)
2962
3105
  end
2963
3106
  end
@@ -3021,6 +3164,11 @@ module Google
3021
3164
  # @return [Hash<String,Google::Apis::GkehubV1beta::PolicyControllerBundleInstallSpec>]
3022
3165
  attr_accessor :bundles
3023
3166
 
3167
+ # The config specifying which default library templates to install.
3168
+ # Corresponds to the JSON property `templateLibrary`
3169
+ # @return [Google::Apis::GkehubV1beta::PolicyControllerTemplateLibraryConfig]
3170
+ attr_accessor :template_library
3171
+
3024
3172
  def initialize(**args)
3025
3173
  update!(**args)
3026
3174
  end
@@ -3028,6 +3176,32 @@ module Google
3028
3176
  # Update properties of this object
3029
3177
  def update!(**args)
3030
3178
  @bundles = args[:bundles] if args.key?(:bundles)
3179
+ @template_library = args[:template_library] if args.key?(:template_library)
3180
+ end
3181
+ end
3182
+
3183
+ # The state of the policy controller policy content
3184
+ class PolicyControllerPolicyContentState
3185
+ include Google::Apis::Core::Hashable
3186
+
3187
+ # The state of the any bundles included in the chosen version of the manifest
3188
+ # Corresponds to the JSON property `bundleStates`
3189
+ # @return [Hash<String,Google::Apis::GkehubV1beta::PolicyControllerOnClusterState>]
3190
+ attr_accessor :bundle_states
3191
+
3192
+ # OnClusterState represents the state of a sub-component of Policy Controller.
3193
+ # Corresponds to the JSON property `templateLibraryState`
3194
+ # @return [Google::Apis::GkehubV1beta::PolicyControllerOnClusterState]
3195
+ attr_accessor :template_library_state
3196
+
3197
+ def initialize(**args)
3198
+ update!(**args)
3199
+ end
3200
+
3201
+ # Update properties of this object
3202
+ def update!(**args)
3203
+ @bundle_states = args[:bundle_states] if args.key?(:bundle_states)
3204
+ @template_library_state = args[:template_library_state] if args.key?(:template_library_state)
3031
3205
  end
3032
3206
  end
3033
3207
 
@@ -3123,12 +3297,19 @@ module Google
3123
3297
  class PolicyControllerTemplateLibraryConfig
3124
3298
  include Google::Apis::Core::Hashable
3125
3299
 
3126
- # Whether the standard template library should be installed or not.
3300
+ # Whether the standard template library should be installed or not. TODO (b/
3301
+ # 271878194): Remove this
3127
3302
  # Corresponds to the JSON property `included`
3128
3303
  # @return [Boolean]
3129
3304
  attr_accessor :included
3130
3305
  alias_method :included?, :included
3131
3306
 
3307
+ # Configures the manner in which the template library is installed on the
3308
+ # cluster. TODO (b/271878194): Decrement this
3309
+ # Corresponds to the JSON property `installation`
3310
+ # @return [String]
3311
+ attr_accessor :installation
3312
+
3132
3313
  def initialize(**args)
3133
3314
  update!(**args)
3134
3315
  end
@@ -3136,6 +3317,7 @@ module Google
3136
3317
  # Update properties of this object
3137
3318
  def update!(**args)
3138
3319
  @included = args[:included] if args.key?(:included)
3320
+ @installation = args[:installation] if args.key?(:installation)
3139
3321
  end
3140
3322
  end
3141
3323
 
@@ -3448,7 +3630,8 @@ module Google
3448
3630
  class ServiceMeshMembershipSpec
3449
3631
  include Google::Apis::Core::Hashable
3450
3632
 
3451
- # Enables automatic control plane management.
3633
+ # Deprecated: use `management` instead Enables automatic control plane
3634
+ # management.
3452
3635
  # Corresponds to the JSON property `controlPlane`
3453
3636
  # @return [String]
3454
3637
  attr_accessor :control_plane
@@ -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.42.0"
19
+ GEM_VERSION = "0.44.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 = "20230310"
25
+ REVISION = "20230407"
26
26
  end
27
27
  end
28
28
  end
@@ -184,6 +184,12 @@ module Google
184
184
  include Google::Apis::Core::JsonObjectSupport
185
185
  end
186
186
 
187
+ class ConfigManagementManaged
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
187
193
  class ConfigManagementMembershipSpec
188
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
195
 
@@ -280,6 +286,18 @@ module Google
280
286
  include Google::Apis::Core::JsonObjectSupport
281
287
  end
282
288
 
289
+ class Fleet
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
295
+ class FleetLifecycleState
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
283
301
  class FleetObservabilityFeatureSpec
284
302
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
303
 
@@ -352,6 +370,12 @@ module Google
352
370
  include Google::Apis::Core::JsonObjectSupport
353
371
  end
354
372
 
373
+ class ListFleetsResponse
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
355
379
  class ListLocationsResponse
356
380
  class Representation < Google::Apis::Core::JsonRepresentation; end
357
381
 
@@ -508,6 +532,12 @@ module Google
508
532
  include Google::Apis::Core::JsonObjectSupport
509
533
  end
510
534
 
535
+ class PolicyControllerPolicyContentState
536
+ class Representation < Google::Apis::Core::JsonRepresentation; end
537
+
538
+ include Google::Apis::Core::JsonObjectSupport
539
+ end
540
+
511
541
  class PolicyControllerPolicyControllerDeploymentConfig
512
542
  class Representation < Google::Apis::Core::JsonRepresentation; end
513
543
 
@@ -762,6 +792,8 @@ module Google
762
792
  property :enabled, as: 'enabled'
763
793
  property :git, as: 'git', class: Google::Apis::GkehubV1beta::ConfigManagementGitConfig, decorator: Google::Apis::GkehubV1beta::ConfigManagementGitConfig::Representation
764
794
 
795
+ property :managed, as: 'managed', class: Google::Apis::GkehubV1beta::ConfigManagementManaged, decorator: Google::Apis::GkehubV1beta::ConfigManagementManaged::Representation
796
+
765
797
  property :oci, as: 'oci', class: Google::Apis::GkehubV1beta::ConfigManagementOciConfig, decorator: Google::Apis::GkehubV1beta::ConfigManagementOciConfig::Representation
766
798
 
767
799
  property :prevent_drift, as: 'preventDrift'
@@ -892,6 +924,13 @@ module Google
892
924
  end
893
925
  end
894
926
 
927
+ class ConfigManagementManaged
928
+ # @private
929
+ class Representation < Google::Apis::Core::JsonRepresentation
930
+ property :enabled, as: 'enabled'
931
+ end
932
+ end
933
+
895
934
  class ConfigManagementMembershipSpec
896
935
  # @private
897
936
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1078,6 +1117,27 @@ module Google
1078
1117
  end
1079
1118
  end
1080
1119
 
1120
+ class Fleet
1121
+ # @private
1122
+ class Representation < Google::Apis::Core::JsonRepresentation
1123
+ property :create_time, as: 'createTime'
1124
+ property :delete_time, as: 'deleteTime'
1125
+ property :display_name, as: 'displayName'
1126
+ property :name, as: 'name'
1127
+ property :state, as: 'state', class: Google::Apis::GkehubV1beta::FleetLifecycleState, decorator: Google::Apis::GkehubV1beta::FleetLifecycleState::Representation
1128
+
1129
+ property :uid, as: 'uid'
1130
+ property :update_time, as: 'updateTime'
1131
+ end
1132
+ end
1133
+
1134
+ class FleetLifecycleState
1135
+ # @private
1136
+ class Representation < Google::Apis::Core::JsonRepresentation
1137
+ property :code, as: 'code'
1138
+ end
1139
+ end
1140
+
1081
1141
  class FleetObservabilityFeatureSpec
1082
1142
  # @private
1083
1143
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1191,6 +1251,15 @@ module Google
1191
1251
  end
1192
1252
  end
1193
1253
 
1254
+ class ListFleetsResponse
1255
+ # @private
1256
+ class Representation < Google::Apis::Core::JsonRepresentation
1257
+ collection :fleets, as: 'fleets', class: Google::Apis::GkehubV1beta::Fleet, decorator: Google::Apis::GkehubV1beta::Fleet::Representation
1258
+
1259
+ property :next_page_token, as: 'nextPageToken'
1260
+ end
1261
+ end
1262
+
1194
1263
  class ListLocationsResponse
1195
1264
  # @private
1196
1265
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1448,6 +1517,8 @@ module Google
1448
1517
 
1449
1518
  hash :content_states, as: 'contentStates', class: Google::Apis::GkehubV1beta::PolicyControllerOnClusterState, decorator: Google::Apis::GkehubV1beta::PolicyControllerOnClusterState::Representation
1450
1519
 
1520
+ property :policy_content_state, as: 'policyContentState', class: Google::Apis::GkehubV1beta::PolicyControllerPolicyContentState, decorator: Google::Apis::GkehubV1beta::PolicyControllerPolicyContentState::Representation
1521
+
1451
1522
  property :state, as: 'state'
1452
1523
  end
1453
1524
  end
@@ -1472,6 +1543,18 @@ module Google
1472
1543
  class Representation < Google::Apis::Core::JsonRepresentation
1473
1544
  hash :bundles, as: 'bundles', class: Google::Apis::GkehubV1beta::PolicyControllerBundleInstallSpec, decorator: Google::Apis::GkehubV1beta::PolicyControllerBundleInstallSpec::Representation
1474
1545
 
1546
+ property :template_library, as: 'templateLibrary', class: Google::Apis::GkehubV1beta::PolicyControllerTemplateLibraryConfig, decorator: Google::Apis::GkehubV1beta::PolicyControllerTemplateLibraryConfig::Representation
1547
+
1548
+ end
1549
+ end
1550
+
1551
+ class PolicyControllerPolicyContentState
1552
+ # @private
1553
+ class Representation < Google::Apis::Core::JsonRepresentation
1554
+ hash :bundle_states, as: 'bundleStates', class: Google::Apis::GkehubV1beta::PolicyControllerOnClusterState, decorator: Google::Apis::GkehubV1beta::PolicyControllerOnClusterState::Representation
1555
+
1556
+ property :template_library_state, as: 'templateLibraryState', class: Google::Apis::GkehubV1beta::PolicyControllerOnClusterState, decorator: Google::Apis::GkehubV1beta::PolicyControllerOnClusterState::Representation
1557
+
1475
1558
  end
1476
1559
  end
1477
1560
 
@@ -1509,6 +1592,7 @@ module Google
1509
1592
  # @private
1510
1593
  class Representation < Google::Apis::Core::JsonRepresentation
1511
1594
  property :included, as: 'included'
1595
+ property :installation, as: 'installation'
1512
1596
  end
1513
1597
  end
1514
1598
 
@@ -49,6 +49,48 @@ module Google
49
49
  @batch_path = 'batch'
50
50
  end
51
51
 
52
+ # Returns all fleets within an organization or a project that the caller has
53
+ # access to.
54
+ # @param [String] parent
55
+ # Required. The organization or project to list for Fleets under, in the format `
56
+ # organizations/*/locations/*` or `projects/*/locations/*`.
57
+ # @param [Fixnum] page_size
58
+ # Optional. The maximum number of fleets to return. The service may return fewer
59
+ # than this value. If unspecified, at most 200 fleets will be returned. The
60
+ # maximum value is 1000; values above 1000 will be coerced to 1000.
61
+ # @param [String] page_token
62
+ # Optional. A page token, received from a previous `ListFleets` call. Provide
63
+ # this to retrieve the subsequent page. When paginating, all other parameters
64
+ # provided to `ListFleets` must match the call that provided the page token.
65
+ # @param [String] fields
66
+ # Selector specifying which fields to include in a partial response.
67
+ # @param [String] quota_user
68
+ # Available to use for quota purposes for server-side applications. Can be any
69
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
70
+ # @param [Google::Apis::RequestOptions] options
71
+ # Request-specific options
72
+ #
73
+ # @yield [result, err] Result & error if block supplied
74
+ # @yieldparam result [Google::Apis::GkehubV1beta::ListFleetsResponse] parsed result object
75
+ # @yieldparam err [StandardError] error object if request failed
76
+ #
77
+ # @return [Google::Apis::GkehubV1beta::ListFleetsResponse]
78
+ #
79
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
80
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
82
+ def list_organization_location_fleets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
83
+ command = make_simple_command(:get, 'v1beta/{+parent}/fleets', options)
84
+ command.response_representation = Google::Apis::GkehubV1beta::ListFleetsResponse::Representation
85
+ command.response_class = Google::Apis::GkehubV1beta::ListFleetsResponse
86
+ command.params['parent'] = parent unless parent.nil?
87
+ command.query['pageSize'] = page_size unless page_size.nil?
88
+ command.query['pageToken'] = page_token unless page_token.nil?
89
+ command.query['fields'] = fields unless fields.nil?
90
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
91
+ execute_or_queue_command(command, &block)
92
+ end
93
+
52
94
  # Gets information about a location.
53
95
  # @param [String] name
54
96
  # Resource name for the location.
@@ -471,6 +513,182 @@ module Google
471
513
  execute_or_queue_command(command, &block)
472
514
  end
473
515
 
516
+ # Creates a fleet.
517
+ # @param [String] parent
518
+ # Required. The parent (project and location) where the Fleet will be created.
519
+ # Specified in the format `projects/*/locations/*`.
520
+ # @param [Google::Apis::GkehubV1beta::Fleet] fleet_object
521
+ # @param [String] fields
522
+ # Selector specifying which fields to include in a partial response.
523
+ # @param [String] quota_user
524
+ # Available to use for quota purposes for server-side applications. Can be any
525
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
526
+ # @param [Google::Apis::RequestOptions] options
527
+ # Request-specific options
528
+ #
529
+ # @yield [result, err] Result & error if block supplied
530
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
531
+ # @yieldparam err [StandardError] error object if request failed
532
+ #
533
+ # @return [Google::Apis::GkehubV1beta::Operation]
534
+ #
535
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
536
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
537
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
538
+ def create_project_location_fleet(parent, fleet_object = nil, fields: nil, quota_user: nil, options: nil, &block)
539
+ command = make_simple_command(:post, 'v1beta/{+parent}/fleets', options)
540
+ command.request_representation = Google::Apis::GkehubV1beta::Fleet::Representation
541
+ command.request_object = fleet_object
542
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
543
+ command.response_class = Google::Apis::GkehubV1beta::Operation
544
+ command.params['parent'] = parent unless parent.nil?
545
+ command.query['fields'] = fields unless fields.nil?
546
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
547
+ execute_or_queue_command(command, &block)
548
+ end
549
+
550
+ # Removes a Fleet. There must be no memberships remaining in the Fleet.
551
+ # @param [String] name
552
+ # Required. The Fleet resource name in the format `projects/*/locations/*/fleets/
553
+ # *`.
554
+ # @param [String] fields
555
+ # Selector specifying which fields to include in a partial response.
556
+ # @param [String] quota_user
557
+ # Available to use for quota purposes for server-side applications. Can be any
558
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
559
+ # @param [Google::Apis::RequestOptions] options
560
+ # Request-specific options
561
+ #
562
+ # @yield [result, err] Result & error if block supplied
563
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
564
+ # @yieldparam err [StandardError] error object if request failed
565
+ #
566
+ # @return [Google::Apis::GkehubV1beta::Operation]
567
+ #
568
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
569
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
570
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
571
+ def delete_project_location_fleet(name, fields: nil, quota_user: nil, options: nil, &block)
572
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
573
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
574
+ command.response_class = Google::Apis::GkehubV1beta::Operation
575
+ command.params['name'] = name unless name.nil?
576
+ command.query['fields'] = fields unless fields.nil?
577
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
578
+ execute_or_queue_command(command, &block)
579
+ end
580
+
581
+ # Returns the details of a fleet.
582
+ # @param [String] name
583
+ # Required. The Fleet resource name in the format `projects/*/locations/*/fleets/
584
+ # *`.
585
+ # @param [String] fields
586
+ # Selector specifying which fields to include in a partial response.
587
+ # @param [String] quota_user
588
+ # Available to use for quota purposes for server-side applications. Can be any
589
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
590
+ # @param [Google::Apis::RequestOptions] options
591
+ # Request-specific options
592
+ #
593
+ # @yield [result, err] Result & error if block supplied
594
+ # @yieldparam result [Google::Apis::GkehubV1beta::Fleet] parsed result object
595
+ # @yieldparam err [StandardError] error object if request failed
596
+ #
597
+ # @return [Google::Apis::GkehubV1beta::Fleet]
598
+ #
599
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
600
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
601
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
602
+ def get_project_location_fleet(name, fields: nil, quota_user: nil, options: nil, &block)
603
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
604
+ command.response_representation = Google::Apis::GkehubV1beta::Fleet::Representation
605
+ command.response_class = Google::Apis::GkehubV1beta::Fleet
606
+ command.params['name'] = name unless name.nil?
607
+ command.query['fields'] = fields unless fields.nil?
608
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
609
+ execute_or_queue_command(command, &block)
610
+ end
611
+
612
+ # Returns all fleets within an organization or a project that the caller has
613
+ # access to.
614
+ # @param [String] parent
615
+ # Required. The organization or project to list for Fleets under, in the format `
616
+ # organizations/*/locations/*` or `projects/*/locations/*`.
617
+ # @param [Fixnum] page_size
618
+ # Optional. The maximum number of fleets to return. The service may return fewer
619
+ # than this value. If unspecified, at most 200 fleets will be returned. The
620
+ # maximum value is 1000; values above 1000 will be coerced to 1000.
621
+ # @param [String] page_token
622
+ # Optional. A page token, received from a previous `ListFleets` call. Provide
623
+ # this to retrieve the subsequent page. When paginating, all other parameters
624
+ # provided to `ListFleets` must match the call that provided the page token.
625
+ # @param [String] fields
626
+ # Selector specifying which fields to include in a partial response.
627
+ # @param [String] quota_user
628
+ # Available to use for quota purposes for server-side applications. Can be any
629
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
630
+ # @param [Google::Apis::RequestOptions] options
631
+ # Request-specific options
632
+ #
633
+ # @yield [result, err] Result & error if block supplied
634
+ # @yieldparam result [Google::Apis::GkehubV1beta::ListFleetsResponse] parsed result object
635
+ # @yieldparam err [StandardError] error object if request failed
636
+ #
637
+ # @return [Google::Apis::GkehubV1beta::ListFleetsResponse]
638
+ #
639
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
640
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
641
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
642
+ def list_project_location_fleets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
643
+ command = make_simple_command(:get, 'v1beta/{+parent}/fleets', options)
644
+ command.response_representation = Google::Apis::GkehubV1beta::ListFleetsResponse::Representation
645
+ command.response_class = Google::Apis::GkehubV1beta::ListFleetsResponse
646
+ command.params['parent'] = parent unless parent.nil?
647
+ command.query['pageSize'] = page_size unless page_size.nil?
648
+ command.query['pageToken'] = page_token unless page_token.nil?
649
+ command.query['fields'] = fields unless fields.nil?
650
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
651
+ execute_or_queue_command(command, &block)
652
+ end
653
+
654
+ # Updates a fleet.
655
+ # @param [String] name
656
+ # Output only. The full, unique resource name of this fleet in the format of `
657
+ # projects/`project`/locations/`location`/fleets/`fleet``. Each GCP project can
658
+ # have at most one fleet resource, named "default".
659
+ # @param [Google::Apis::GkehubV1beta::Fleet] fleet_object
660
+ # @param [String] update_mask
661
+ # Required. The fields to be updated;
662
+ # @param [String] fields
663
+ # Selector specifying which fields to include in a partial response.
664
+ # @param [String] quota_user
665
+ # Available to use for quota purposes for server-side applications. Can be any
666
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
667
+ # @param [Google::Apis::RequestOptions] options
668
+ # Request-specific options
669
+ #
670
+ # @yield [result, err] Result & error if block supplied
671
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
672
+ # @yieldparam err [StandardError] error object if request failed
673
+ #
674
+ # @return [Google::Apis::GkehubV1beta::Operation]
675
+ #
676
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
677
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
678
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
679
+ def patch_project_location_fleet(name, fleet_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
680
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
681
+ command.request_representation = Google::Apis::GkehubV1beta::Fleet::Representation
682
+ command.request_object = fleet_object
683
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
684
+ command.response_class = Google::Apis::GkehubV1beta::Operation
685
+ command.params['name'] = name unless name.nil?
686
+ command.query['updateMask'] = update_mask unless update_mask.nil?
687
+ command.query['fields'] = fields unless fields.nil?
688
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
689
+ execute_or_queue_command(command, &block)
690
+ end
691
+
474
692
  # Gets the access control policy for a resource. Returns an empty policy if the
475
693
  # resource exists and does not have a policy set.
476
694
  # @param [String] resource
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.42.0
4
+ version: 0.44.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-03-19 00:00:00.000000000 Z
11
+ date: 2023-04-16 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.42.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1beta/v0.44.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: []