google-apis-gkehub_v1 0.48.0 → 0.49.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03f6db70fd45a6fbf82a9c6b9d9ccc0c76ff2d7f3e31ec6fc07e0a8343d203d9
|
4
|
+
data.tar.gz: 6f20742f100cea7857d8feb546142ba961befa38912e03681dacca7490dd0667
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12f3fdd4186b3bd1649c18ae801a6738dd2c020bd4e29b1b873c3a225d85ff6cc646774056bba64d2fbdba16a519f55727ee7deb725594ee0c03230b7bae4bf8
|
7
|
+
data.tar.gz: 366a71ccae50e36fd1df1e5c158819e837f575c235b351569498737a1bdba44d796356fab242f251d53c626c46420bc4f5ca6902440089d5468d69e8a2ab66ca
|
data/CHANGELOG.md
CHANGED
@@ -1168,6 +1168,11 @@ module Google
|
|
1168
1168
|
attr_accessor :template_library_installed
|
1169
1169
|
alias_method :template_library_installed?, :template_library_installed
|
1170
1170
|
|
1171
|
+
# Output only. Last time this membership spec was updated.
|
1172
|
+
# Corresponds to the JSON property `updateTime`
|
1173
|
+
# @return [String]
|
1174
|
+
attr_accessor :update_time
|
1175
|
+
|
1171
1176
|
def initialize(**args)
|
1172
1177
|
update!(**args)
|
1173
1178
|
end
|
@@ -1182,6 +1187,7 @@ module Google
|
|
1182
1187
|
@mutation_enabled = args[:mutation_enabled] if args.key?(:mutation_enabled)
|
1183
1188
|
@referential_rules_enabled = args[:referential_rules_enabled] if args.key?(:referential_rules_enabled)
|
1184
1189
|
@template_library_installed = args[:template_library_installed] if args.key?(:template_library_installed)
|
1190
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
1185
1191
|
end
|
1186
1192
|
end
|
1187
1193
|
|
@@ -1189,6 +1195,11 @@ module Google
|
|
1189
1195
|
class ConfigManagementPolicyControllerMigration
|
1190
1196
|
include Google::Apis::Core::Hashable
|
1191
1197
|
|
1198
|
+
# Last time this membership spec was copied to PoCo feature.
|
1199
|
+
# Corresponds to the JSON property `copyTime`
|
1200
|
+
# @return [String]
|
1201
|
+
attr_accessor :copy_time
|
1202
|
+
|
1192
1203
|
# Stage of the migration.
|
1193
1204
|
# Corresponds to the JSON property `stage`
|
1194
1205
|
# @return [String]
|
@@ -1200,6 +1211,7 @@ module Google
|
|
1200
1211
|
|
1201
1212
|
# Update properties of this object
|
1202
1213
|
def update!(**args)
|
1214
|
+
@copy_time = args[:copy_time] if args.key?(:copy_time)
|
1203
1215
|
@stage = args[:stage] if args.key?(:stage)
|
1204
1216
|
end
|
1205
1217
|
end
|
@@ -1662,6 +1674,87 @@ module Google
|
|
1662
1674
|
end
|
1663
1675
|
end
|
1664
1676
|
|
1677
|
+
# Fleet contains the Fleet-wide metadata and configuration.
|
1678
|
+
class Fleet
|
1679
|
+
include Google::Apis::Core::Hashable
|
1680
|
+
|
1681
|
+
# Output only. When the Fleet was created.
|
1682
|
+
# Corresponds to the JSON property `createTime`
|
1683
|
+
# @return [String]
|
1684
|
+
attr_accessor :create_time
|
1685
|
+
|
1686
|
+
# Output only. When the Fleet was deleted.
|
1687
|
+
# Corresponds to the JSON property `deleteTime`
|
1688
|
+
# @return [String]
|
1689
|
+
attr_accessor :delete_time
|
1690
|
+
|
1691
|
+
# Optional. A user-assigned display name of the Fleet. When present, it must be
|
1692
|
+
# between 4 to 30 characters. Allowed characters are: lowercase and uppercase
|
1693
|
+
# letters, numbers, hyphen, single-quote, double-quote, space, and exclamation
|
1694
|
+
# point. Example: `Production Fleet`
|
1695
|
+
# Corresponds to the JSON property `displayName`
|
1696
|
+
# @return [String]
|
1697
|
+
attr_accessor :display_name
|
1698
|
+
|
1699
|
+
# Output only. The full, unique resource name of this fleet in the format of `
|
1700
|
+
# projects/`project`/locations/`location`/fleets/`fleet``. Each Google Cloud
|
1701
|
+
# project can have at most one fleet resource, named "default".
|
1702
|
+
# Corresponds to the JSON property `name`
|
1703
|
+
# @return [String]
|
1704
|
+
attr_accessor :name
|
1705
|
+
|
1706
|
+
# FleetLifecycleState describes the state of a Fleet resource.
|
1707
|
+
# Corresponds to the JSON property `state`
|
1708
|
+
# @return [Google::Apis::GkehubV1::FleetLifecycleState]
|
1709
|
+
attr_accessor :state
|
1710
|
+
|
1711
|
+
# Output only. Google-generated UUID for this resource. This is unique across
|
1712
|
+
# all Fleet resources. If a Fleet resource is deleted and another resource with
|
1713
|
+
# the same name is created, it gets a different uid.
|
1714
|
+
# Corresponds to the JSON property `uid`
|
1715
|
+
# @return [String]
|
1716
|
+
attr_accessor :uid
|
1717
|
+
|
1718
|
+
# Output only. When the Fleet was last updated.
|
1719
|
+
# Corresponds to the JSON property `updateTime`
|
1720
|
+
# @return [String]
|
1721
|
+
attr_accessor :update_time
|
1722
|
+
|
1723
|
+
def initialize(**args)
|
1724
|
+
update!(**args)
|
1725
|
+
end
|
1726
|
+
|
1727
|
+
# Update properties of this object
|
1728
|
+
def update!(**args)
|
1729
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1730
|
+
@delete_time = args[:delete_time] if args.key?(:delete_time)
|
1731
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1732
|
+
@name = args[:name] if args.key?(:name)
|
1733
|
+
@state = args[:state] if args.key?(:state)
|
1734
|
+
@uid = args[:uid] if args.key?(:uid)
|
1735
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
1736
|
+
end
|
1737
|
+
end
|
1738
|
+
|
1739
|
+
# FleetLifecycleState describes the state of a Fleet resource.
|
1740
|
+
class FleetLifecycleState
|
1741
|
+
include Google::Apis::Core::Hashable
|
1742
|
+
|
1743
|
+
# Output only. The current state of the Fleet resource.
|
1744
|
+
# Corresponds to the JSON property `code`
|
1745
|
+
# @return [String]
|
1746
|
+
attr_accessor :code
|
1747
|
+
|
1748
|
+
def initialize(**args)
|
1749
|
+
update!(**args)
|
1750
|
+
end
|
1751
|
+
|
1752
|
+
# Update properties of this object
|
1753
|
+
def update!(**args)
|
1754
|
+
@code = args[:code] if args.key?(:code)
|
1755
|
+
end
|
1756
|
+
end
|
1757
|
+
|
1665
1758
|
# **Fleet Observability**: The Hub-wide input for the FleetObservability feature.
|
1666
1759
|
class FleetObservabilityFeatureSpec
|
1667
1760
|
include Google::Apis::Core::Hashable
|
@@ -2213,6 +2306,33 @@ module Google
|
|
2213
2306
|
end
|
2214
2307
|
end
|
2215
2308
|
|
2309
|
+
# Response message for the `GkeHub.ListFleetsResponse` method.
|
2310
|
+
class ListFleetsResponse
|
2311
|
+
include Google::Apis::Core::Hashable
|
2312
|
+
|
2313
|
+
# The list of matching fleets.
|
2314
|
+
# Corresponds to the JSON property `fleets`
|
2315
|
+
# @return [Array<Google::Apis::GkehubV1::Fleet>]
|
2316
|
+
attr_accessor :fleets
|
2317
|
+
|
2318
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
2319
|
+
# field is omitted, there are no subsequent pages. The token is only valid for
|
2320
|
+
# 1h.
|
2321
|
+
# Corresponds to the JSON property `nextPageToken`
|
2322
|
+
# @return [String]
|
2323
|
+
attr_accessor :next_page_token
|
2324
|
+
|
2325
|
+
def initialize(**args)
|
2326
|
+
update!(**args)
|
2327
|
+
end
|
2328
|
+
|
2329
|
+
# Update properties of this object
|
2330
|
+
def update!(**args)
|
2331
|
+
@fleets = args[:fleets] if args.key?(:fleets)
|
2332
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2333
|
+
end
|
2334
|
+
end
|
2335
|
+
|
2216
2336
|
# The response message for Locations.ListLocations.
|
2217
2337
|
class ListLocationsResponse
|
2218
2338
|
include Google::Apis::Core::Hashable
|
@@ -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.49.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 = "20230609"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -286,6 +286,18 @@ module Google
|
|
286
286
|
include Google::Apis::Core::JsonObjectSupport
|
287
287
|
end
|
288
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
|
+
|
289
301
|
class FleetObservabilityFeatureSpec
|
290
302
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
291
303
|
|
@@ -382,6 +394,12 @@ module Google
|
|
382
394
|
include Google::Apis::Core::JsonObjectSupport
|
383
395
|
end
|
384
396
|
|
397
|
+
class ListFleetsResponse
|
398
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
|
+
|
400
|
+
include Google::Apis::Core::JsonObjectSupport
|
401
|
+
end
|
402
|
+
|
385
403
|
class ListLocationsResponse
|
386
404
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
405
|
|
@@ -913,12 +931,14 @@ module Google
|
|
913
931
|
property :mutation_enabled, as: 'mutationEnabled'
|
914
932
|
property :referential_rules_enabled, as: 'referentialRulesEnabled'
|
915
933
|
property :template_library_installed, as: 'templateLibraryInstalled'
|
934
|
+
property :update_time, as: 'updateTime'
|
916
935
|
end
|
917
936
|
end
|
918
937
|
|
919
938
|
class ConfigManagementPolicyControllerMigration
|
920
939
|
# @private
|
921
940
|
class Representation < Google::Apis::Core::JsonRepresentation
|
941
|
+
property :copy_time, as: 'copyTime'
|
922
942
|
property :stage, as: 'stage'
|
923
943
|
end
|
924
944
|
end
|
@@ -1048,6 +1068,27 @@ module Google
|
|
1048
1068
|
end
|
1049
1069
|
end
|
1050
1070
|
|
1071
|
+
class Fleet
|
1072
|
+
# @private
|
1073
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1074
|
+
property :create_time, as: 'createTime'
|
1075
|
+
property :delete_time, as: 'deleteTime'
|
1076
|
+
property :display_name, as: 'displayName'
|
1077
|
+
property :name, as: 'name'
|
1078
|
+
property :state, as: 'state', class: Google::Apis::GkehubV1::FleetLifecycleState, decorator: Google::Apis::GkehubV1::FleetLifecycleState::Representation
|
1079
|
+
|
1080
|
+
property :uid, as: 'uid'
|
1081
|
+
property :update_time, as: 'updateTime'
|
1082
|
+
end
|
1083
|
+
end
|
1084
|
+
|
1085
|
+
class FleetLifecycleState
|
1086
|
+
# @private
|
1087
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1088
|
+
property :code, as: 'code'
|
1089
|
+
end
|
1090
|
+
end
|
1091
|
+
|
1051
1092
|
class FleetObservabilityFeatureSpec
|
1052
1093
|
# @private
|
1053
1094
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1202,6 +1243,15 @@ module Google
|
|
1202
1243
|
end
|
1203
1244
|
end
|
1204
1245
|
|
1246
|
+
class ListFleetsResponse
|
1247
|
+
# @private
|
1248
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1249
|
+
collection :fleets, as: 'fleets', class: Google::Apis::GkehubV1::Fleet, decorator: Google::Apis::GkehubV1::Fleet::Representation
|
1250
|
+
|
1251
|
+
property :next_page_token, as: 'nextPageToken'
|
1252
|
+
end
|
1253
|
+
end
|
1254
|
+
|
1205
1255
|
class ListLocationsResponse
|
1206
1256
|
# @private
|
1207
1257
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -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::GkehubV1::ListFleetsResponse] parsed result object
|
75
|
+
# @yieldparam err [StandardError] error object if request failed
|
76
|
+
#
|
77
|
+
# @return [Google::Apis::GkehubV1::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, 'v1/{+parent}/fleets', options)
|
84
|
+
command.response_representation = Google::Apis::GkehubV1::ListFleetsResponse::Representation
|
85
|
+
command.response_class = Google::Apis::GkehubV1::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::GkehubV1::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::GkehubV1::Operation] parsed result object
|
531
|
+
# @yieldparam err [StandardError] error object if request failed
|
532
|
+
#
|
533
|
+
# @return [Google::Apis::GkehubV1::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, 'v1/{+parent}/fleets', options)
|
540
|
+
command.request_representation = Google::Apis::GkehubV1::Fleet::Representation
|
541
|
+
command.request_object = fleet_object
|
542
|
+
command.response_representation = Google::Apis::GkehubV1::Operation::Representation
|
543
|
+
command.response_class = Google::Apis::GkehubV1::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::GkehubV1::Operation] parsed result object
|
564
|
+
# @yieldparam err [StandardError] error object if request failed
|
565
|
+
#
|
566
|
+
# @return [Google::Apis::GkehubV1::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, 'v1/{+name}', options)
|
573
|
+
command.response_representation = Google::Apis::GkehubV1::Operation::Representation
|
574
|
+
command.response_class = Google::Apis::GkehubV1::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::GkehubV1::Fleet] parsed result object
|
595
|
+
# @yieldparam err [StandardError] error object if request failed
|
596
|
+
#
|
597
|
+
# @return [Google::Apis::GkehubV1::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, 'v1/{+name}', options)
|
604
|
+
command.response_representation = Google::Apis::GkehubV1::Fleet::Representation
|
605
|
+
command.response_class = Google::Apis::GkehubV1::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::GkehubV1::ListFleetsResponse] parsed result object
|
635
|
+
# @yieldparam err [StandardError] error object if request failed
|
636
|
+
#
|
637
|
+
# @return [Google::Apis::GkehubV1::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, 'v1/{+parent}/fleets', options)
|
644
|
+
command.response_representation = Google::Apis::GkehubV1::ListFleetsResponse::Representation
|
645
|
+
command.response_class = Google::Apis::GkehubV1::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 Google Cloud
|
658
|
+
# project can have at most one fleet resource, named "default".
|
659
|
+
# @param [Google::Apis::GkehubV1::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::GkehubV1::Operation] parsed result object
|
672
|
+
# @yieldparam err [StandardError] error object if request failed
|
673
|
+
#
|
674
|
+
# @return [Google::Apis::GkehubV1::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, 'v1/{+name}', options)
|
681
|
+
command.request_representation = Google::Apis::GkehubV1::Fleet::Representation
|
682
|
+
command.request_object = fleet_object
|
683
|
+
command.response_representation = Google::Apis::GkehubV1::Operation::Representation
|
684
|
+
command.response_class = Google::Apis::GkehubV1::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
|
# Creates a new Membership. **This is currently only supported for GKE clusters
|
475
693
|
# on Google Cloud**. To register other clusters, follow the instructions at
|
476
694
|
# https://cloud.google.com/anthos/multicluster-management/connect/registering-a-
|
@@ -1402,6 +1620,43 @@ module Google
|
|
1402
1620
|
execute_or_queue_command(command, &block)
|
1403
1621
|
end
|
1404
1622
|
|
1623
|
+
# Updates a scopes.
|
1624
|
+
# @param [String] name
|
1625
|
+
# The resource name for the scope `projects/`project`/locations/`location`/
|
1626
|
+
# scopes/`scope``
|
1627
|
+
# @param [Google::Apis::GkehubV1::Scope] scope_object
|
1628
|
+
# @param [String] update_mask
|
1629
|
+
# Required. The fields to be updated.
|
1630
|
+
# @param [String] fields
|
1631
|
+
# Selector specifying which fields to include in a partial response.
|
1632
|
+
# @param [String] quota_user
|
1633
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1634
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1635
|
+
# @param [Google::Apis::RequestOptions] options
|
1636
|
+
# Request-specific options
|
1637
|
+
#
|
1638
|
+
# @yield [result, err] Result & error if block supplied
|
1639
|
+
# @yieldparam result [Google::Apis::GkehubV1::Operation] parsed result object
|
1640
|
+
# @yieldparam err [StandardError] error object if request failed
|
1641
|
+
#
|
1642
|
+
# @return [Google::Apis::GkehubV1::Operation]
|
1643
|
+
#
|
1644
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1645
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1646
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1647
|
+
def patch_project_location_scope(name, scope_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1648
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1649
|
+
command.request_representation = Google::Apis::GkehubV1::Scope::Representation
|
1650
|
+
command.request_object = scope_object
|
1651
|
+
command.response_representation = Google::Apis::GkehubV1::Operation::Representation
|
1652
|
+
command.response_class = Google::Apis::GkehubV1::Operation
|
1653
|
+
command.params['name'] = name unless name.nil?
|
1654
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1655
|
+
command.query['fields'] = fields unless fields.nil?
|
1656
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1657
|
+
execute_or_queue_command(command, &block)
|
1658
|
+
end
|
1659
|
+
|
1405
1660
|
# Sets the access control policy on the specified resource. Replaces any
|
1406
1661
|
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1407
1662
|
# PERMISSION_DENIED` errors.
|
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.49.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-06-
|
11
|
+
date: 2023-06-18 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.49.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: []
|