google-apis-gkehub_v1beta 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 85bf7ccb4c68a7fa01e55a937550c26530b8b08a164fe25b99c38d2956564908
|
|
4
|
+
data.tar.gz: ee1ffb3fc6dff77f7c44382b93e0de840a654a417252bed023739f7e127a79f9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7a357c7f035682dd48168639474daa904f3b9ca35d1101379b59807e543c75131206451b02531cd090baf5dc7b3a41a1906df395bb4652875f8698d5839779a5
|
|
7
|
+
data.tar.gz: 16806f65c7bd1ec26778f1285b2ca6582f033e9c8ac46bbaf285d0b16dc59a1e8f5632a36891f88769310947bddee50bd21e8b2fc10be74e3a84a23f6b90aa99
|
data/CHANGELOG.md
CHANGED
|
@@ -181,7 +181,8 @@ module Google
|
|
|
181
181
|
class CommonFeatureSpec
|
|
182
182
|
include Google::Apis::Core::Hashable
|
|
183
183
|
|
|
184
|
-
#
|
|
184
|
+
# **Multi-cluster Ingress**: The configuration for the MultiClusterIngress
|
|
185
|
+
# feature.
|
|
185
186
|
# Corresponds to the JSON property `multiclusteringress`
|
|
186
187
|
# @return [Google::Apis::GkehubV1beta::MultiClusterIngressFeatureSpec]
|
|
187
188
|
attr_accessor :multiclusteringress
|
|
@@ -720,8 +721,8 @@ module Google
|
|
|
720
721
|
end
|
|
721
722
|
end
|
|
722
723
|
|
|
723
|
-
# Configuration for a single cluster. Intended to
|
|
724
|
-
# CR.
|
|
724
|
+
# **Anthos Config Management**: Configuration for a single cluster. Intended to
|
|
725
|
+
# parallel the ConfigManagement CR.
|
|
725
726
|
class ConfigManagementMembershipSpec
|
|
726
727
|
include Google::Apis::Core::Hashable
|
|
727
728
|
|
|
@@ -764,7 +765,7 @@ module Google
|
|
|
764
765
|
end
|
|
765
766
|
end
|
|
766
767
|
|
|
767
|
-
# State for
|
|
768
|
+
# **Anthos Config Management**: State for a single cluster.
|
|
768
769
|
class ConfigManagementMembershipState
|
|
769
770
|
include Google::Apis::Core::Hashable
|
|
770
771
|
|
|
@@ -791,8 +792,8 @@ module Google
|
|
|
791
792
|
# @return [Google::Apis::GkehubV1beta::ConfigManagementHierarchyControllerState]
|
|
792
793
|
attr_accessor :hierarchy_controller_state
|
|
793
794
|
|
|
794
|
-
# Configuration for a single cluster. Intended to
|
|
795
|
-
# CR.
|
|
795
|
+
# **Anthos Config Management**: Configuration for a single cluster. Intended to
|
|
796
|
+
# parallel the ConfigManagement CR.
|
|
796
797
|
# Corresponds to the JSON property `membershipSpec`
|
|
797
798
|
# @return [Google::Apis::GkehubV1beta::ConfigManagementMembershipSpec]
|
|
798
799
|
attr_accessor :membership_spec
|
|
@@ -1139,9 +1140,14 @@ module Google
|
|
|
1139
1140
|
# Optional. Membership-specific configuration for this Feature. If this Feature
|
|
1140
1141
|
# does not support any per-Membership configuration, this field may be unused.
|
|
1141
1142
|
# The keys indicate which Membership the configuration is for, in the form:
|
|
1142
|
-
# projects/`p`/locations/`l`/memberships/`m` Where `p` is the project
|
|
1143
|
-
#
|
|
1144
|
-
#
|
|
1143
|
+
# projects/`p`/locations/`l`/memberships/`m` Where `p` is the project, `l` is a
|
|
1144
|
+
# valid location and `m` is a valid Membership in this project at that location.
|
|
1145
|
+
# `p` WILL match the Feature's project. `p` will always be returned as the
|
|
1146
|
+
# project number, but the project ID is also accepted during input. If the same
|
|
1147
|
+
# Membership is specified in the map twice (using the project ID form, and the
|
|
1148
|
+
# project number form), exactly ONE of the entries will be saved, with no
|
|
1149
|
+
# guarantees as to which. For this reason, it is recommended the same format be
|
|
1150
|
+
# used for all entries when mutating a Feature.
|
|
1145
1151
|
# Corresponds to the JSON property `membershipSpecs`
|
|
1146
1152
|
# @return [Hash<String,Google::Apis::GkehubV1beta::MembershipFeatureSpec>]
|
|
1147
1153
|
attr_accessor :membership_specs
|
|
@@ -1157,7 +1163,7 @@ module Google
|
|
|
1157
1163
|
attr_accessor :membership_states
|
|
1158
1164
|
|
|
1159
1165
|
# Output only. The full, unique name of this Feature resource in the format `
|
|
1160
|
-
# projects/*/locations
|
|
1166
|
+
# projects/*/locations/*/features/*`.
|
|
1161
1167
|
# Corresponds to the JSON property `name`
|
|
1162
1168
|
# @return [String]
|
|
1163
1169
|
attr_accessor :name
|
|
@@ -1424,8 +1430,8 @@ module Google
|
|
|
1424
1430
|
class MembershipFeatureSpec
|
|
1425
1431
|
include Google::Apis::Core::Hashable
|
|
1426
1432
|
|
|
1427
|
-
# Configuration for a single cluster. Intended to
|
|
1428
|
-
# CR.
|
|
1433
|
+
# **Anthos Config Management**: Configuration for a single cluster. Intended to
|
|
1434
|
+
# parallel the ConfigManagement CR.
|
|
1429
1435
|
# Corresponds to the JSON property `configmanagement`
|
|
1430
1436
|
# @return [Google::Apis::GkehubV1beta::ConfigManagementMembershipSpec]
|
|
1431
1437
|
attr_accessor :configmanagement
|
|
@@ -1445,12 +1451,12 @@ module Google
|
|
|
1445
1451
|
class MembershipFeatureState
|
|
1446
1452
|
include Google::Apis::Core::Hashable
|
|
1447
1453
|
|
|
1448
|
-
# State for
|
|
1454
|
+
# **Anthos Config Management**: State for a single cluster.
|
|
1449
1455
|
# Corresponds to the JSON property `configmanagement`
|
|
1450
1456
|
# @return [Google::Apis::GkehubV1beta::ConfigManagementMembershipState]
|
|
1451
1457
|
attr_accessor :configmanagement
|
|
1452
1458
|
|
|
1453
|
-
# Metering
|
|
1459
|
+
# **Metering**: Per-Membership Feature State.
|
|
1454
1460
|
# Corresponds to the JSON property `metering`
|
|
1455
1461
|
# @return [Google::Apis::GkehubV1beta::MeteringMembershipState]
|
|
1456
1462
|
attr_accessor :metering
|
|
@@ -1474,7 +1480,7 @@ module Google
|
|
|
1474
1480
|
end
|
|
1475
1481
|
end
|
|
1476
1482
|
|
|
1477
|
-
# Metering
|
|
1483
|
+
# **Metering**: Per-Membership Feature State.
|
|
1478
1484
|
class MeteringMembershipState
|
|
1479
1485
|
include Google::Apis::Core::Hashable
|
|
1480
1486
|
|
|
@@ -1501,10 +1507,16 @@ module Google
|
|
|
1501
1507
|
end
|
|
1502
1508
|
end
|
|
1503
1509
|
|
|
1504
|
-
#
|
|
1510
|
+
# **Multi-cluster Ingress**: The configuration for the MultiClusterIngress
|
|
1511
|
+
# feature.
|
|
1505
1512
|
class MultiClusterIngressFeatureSpec
|
|
1506
1513
|
include Google::Apis::Core::Hashable
|
|
1507
1514
|
|
|
1515
|
+
# Customer's billing structure
|
|
1516
|
+
# Corresponds to the JSON property `billing`
|
|
1517
|
+
# @return [String]
|
|
1518
|
+
attr_accessor :billing
|
|
1519
|
+
|
|
1508
1520
|
# Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
|
|
1509
1521
|
# Example: `projects/foo-proj/locations/global/memberships/bar`
|
|
1510
1522
|
# Corresponds to the JSON property `configMembership`
|
|
@@ -1517,6 +1529,7 @@ module Google
|
|
|
1517
1529
|
|
|
1518
1530
|
# Update properties of this object
|
|
1519
1531
|
def update!(**args)
|
|
1532
|
+
@billing = args[:billing] if args.key?(:billing)
|
|
1520
1533
|
@config_membership = args[:config_membership] if args.key?(:config_membership)
|
|
1521
1534
|
end
|
|
1522
1535
|
end
|
|
@@ -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.
|
|
19
|
+
GEM_VERSION = "0.3.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.2.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20210507"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -87,7 +87,7 @@ module Google
|
|
|
87
87
|
# accepts strings like "displayName=tokyo", and is documented in more detail in [
|
|
88
88
|
# AIP-160](https://google.aip.dev/160).
|
|
89
89
|
# @param [Fixnum] page_size
|
|
90
|
-
# The maximum number of results to return. If not set, the service
|
|
90
|
+
# The maximum number of results to return. If not set, the service selects a
|
|
91
91
|
# default.
|
|
92
92
|
# @param [String] page_token
|
|
93
93
|
# A page token received from the `next_page_token` field in the response. Send
|
|
@@ -122,125 +122,10 @@ module Google
|
|
|
122
122
|
execute_or_queue_command(command, &block)
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
-
# Gets the access control policy for a resource. Returns an empty policy if the
|
|
126
|
-
# resource exists and does not have a policy set.
|
|
127
|
-
# @param [String] resource
|
|
128
|
-
# REQUIRED: The resource for which the policy is being requested. See the
|
|
129
|
-
# operation documentation for the appropriate value for this field.
|
|
130
|
-
# @param [Fixnum] options_requested_policy_version
|
|
131
|
-
# Optional. The policy format version to be returned. Valid values are 0, 1, and
|
|
132
|
-
# 3. Requests specifying an invalid value will be rejected. Requests for
|
|
133
|
-
# policies with any conditional bindings must specify version 3. Policies
|
|
134
|
-
# without any conditional bindings may specify any valid value or leave the
|
|
135
|
-
# field unset. To learn which resources support conditions in their IAM policies,
|
|
136
|
-
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
|
137
|
-
# resource-policies).
|
|
138
|
-
# @param [String] fields
|
|
139
|
-
# Selector specifying which fields to include in a partial response.
|
|
140
|
-
# @param [String] quota_user
|
|
141
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
142
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
143
|
-
# @param [Google::Apis::RequestOptions] options
|
|
144
|
-
# Request-specific options
|
|
145
|
-
#
|
|
146
|
-
# @yield [result, err] Result & error if block supplied
|
|
147
|
-
# @yieldparam result [Google::Apis::GkehubV1beta::Policy] parsed result object
|
|
148
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
149
|
-
#
|
|
150
|
-
# @return [Google::Apis::GkehubV1beta::Policy]
|
|
151
|
-
#
|
|
152
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
153
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
154
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
155
|
-
def get_project_location_feature_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
156
|
-
command = make_simple_command(:get, 'v1beta/{+resource}:getIamPolicy', options)
|
|
157
|
-
command.response_representation = Google::Apis::GkehubV1beta::Policy::Representation
|
|
158
|
-
command.response_class = Google::Apis::GkehubV1beta::Policy
|
|
159
|
-
command.params['resource'] = resource unless resource.nil?
|
|
160
|
-
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
|
161
|
-
command.query['fields'] = fields unless fields.nil?
|
|
162
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
163
|
-
execute_or_queue_command(command, &block)
|
|
164
|
-
end
|
|
165
|
-
|
|
166
|
-
# Sets the access control policy on the specified resource. Replaces any
|
|
167
|
-
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
|
168
|
-
# PERMISSION_DENIED` errors.
|
|
169
|
-
# @param [String] resource
|
|
170
|
-
# REQUIRED: The resource for which the policy is being specified. See the
|
|
171
|
-
# operation documentation for the appropriate value for this field.
|
|
172
|
-
# @param [Google::Apis::GkehubV1beta::SetIamPolicyRequest] set_iam_policy_request_object
|
|
173
|
-
# @param [String] fields
|
|
174
|
-
# Selector specifying which fields to include in a partial response.
|
|
175
|
-
# @param [String] quota_user
|
|
176
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
177
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
178
|
-
# @param [Google::Apis::RequestOptions] options
|
|
179
|
-
# Request-specific options
|
|
180
|
-
#
|
|
181
|
-
# @yield [result, err] Result & error if block supplied
|
|
182
|
-
# @yieldparam result [Google::Apis::GkehubV1beta::Policy] parsed result object
|
|
183
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
184
|
-
#
|
|
185
|
-
# @return [Google::Apis::GkehubV1beta::Policy]
|
|
186
|
-
#
|
|
187
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
188
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
189
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
190
|
-
def set_feature_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
191
|
-
command = make_simple_command(:post, 'v1beta/{+resource}:setIamPolicy', options)
|
|
192
|
-
command.request_representation = Google::Apis::GkehubV1beta::SetIamPolicyRequest::Representation
|
|
193
|
-
command.request_object = set_iam_policy_request_object
|
|
194
|
-
command.response_representation = Google::Apis::GkehubV1beta::Policy::Representation
|
|
195
|
-
command.response_class = Google::Apis::GkehubV1beta::Policy
|
|
196
|
-
command.params['resource'] = resource unless resource.nil?
|
|
197
|
-
command.query['fields'] = fields unless fields.nil?
|
|
198
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
199
|
-
execute_or_queue_command(command, &block)
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
# Returns permissions that a caller has on the specified resource. If the
|
|
203
|
-
# resource does not exist, this will return an empty set of permissions, not a `
|
|
204
|
-
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
|
205
|
-
# permission-aware UIs and command-line tools, not for authorization checking.
|
|
206
|
-
# This operation may "fail open" without warning.
|
|
207
|
-
# @param [String] resource
|
|
208
|
-
# REQUIRED: The resource for which the policy detail is being requested. See the
|
|
209
|
-
# operation documentation for the appropriate value for this field.
|
|
210
|
-
# @param [Google::Apis::GkehubV1beta::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
211
|
-
# @param [String] fields
|
|
212
|
-
# Selector specifying which fields to include in a partial response.
|
|
213
|
-
# @param [String] quota_user
|
|
214
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
215
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
216
|
-
# @param [Google::Apis::RequestOptions] options
|
|
217
|
-
# Request-specific options
|
|
218
|
-
#
|
|
219
|
-
# @yield [result, err] Result & error if block supplied
|
|
220
|
-
# @yieldparam result [Google::Apis::GkehubV1beta::TestIamPermissionsResponse] parsed result object
|
|
221
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
222
|
-
#
|
|
223
|
-
# @return [Google::Apis::GkehubV1beta::TestIamPermissionsResponse]
|
|
224
|
-
#
|
|
225
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
226
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
227
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
228
|
-
def test_feature_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
229
|
-
command = make_simple_command(:post, 'v1beta/{+resource}:testIamPermissions', options)
|
|
230
|
-
command.request_representation = Google::Apis::GkehubV1beta::TestIamPermissionsRequest::Representation
|
|
231
|
-
command.request_object = test_iam_permissions_request_object
|
|
232
|
-
command.response_representation = Google::Apis::GkehubV1beta::TestIamPermissionsResponse::Representation
|
|
233
|
-
command.response_class = Google::Apis::GkehubV1beta::TestIamPermissionsResponse
|
|
234
|
-
command.params['resource'] = resource unless resource.nil?
|
|
235
|
-
command.query['fields'] = fields unless fields.nil?
|
|
236
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
237
|
-
execute_or_queue_command(command, &block)
|
|
238
|
-
end
|
|
239
|
-
|
|
240
125
|
# Adds a new Feature.
|
|
241
126
|
# @param [String] parent
|
|
242
127
|
# The parent (project and location) where the Feature will be created. Specified
|
|
243
|
-
# in the format `projects/*/locations
|
|
128
|
+
# in the format `projects/*/locations/*`.
|
|
244
129
|
# @param [Google::Apis::GkehubV1beta::Feature] feature_object
|
|
245
130
|
# @param [String] feature_id
|
|
246
131
|
# The ID of the feature to create.
|
|
@@ -272,7 +157,7 @@ module Google
|
|
|
272
157
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
273
158
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
274
159
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
275
|
-
def
|
|
160
|
+
def create_project_location_feature(parent, feature_object = nil, feature_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
276
161
|
command = make_simple_command(:post, 'v1beta/{+parent}/features', options)
|
|
277
162
|
command.request_representation = Google::Apis::GkehubV1beta::Feature::Representation
|
|
278
163
|
command.request_object = feature_object
|
|
@@ -288,8 +173,7 @@ module Google
|
|
|
288
173
|
|
|
289
174
|
# Removes a Feature.
|
|
290
175
|
# @param [String] name
|
|
291
|
-
# The Feature resource name in the format `projects/*/locations
|
|
292
|
-
# `.
|
|
176
|
+
# The Feature resource name in the format `projects/*/locations/*/features/*`.
|
|
293
177
|
# @param [Boolean] force
|
|
294
178
|
# If set to true, the delete will ignore any outstanding resources for this
|
|
295
179
|
# Feature (that is, `FeatureState.has_resources` is set to true). These
|
|
@@ -322,7 +206,7 @@ module Google
|
|
|
322
206
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
323
207
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
324
208
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
325
|
-
def
|
|
209
|
+
def delete_project_location_feature(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
326
210
|
command = make_simple_command(:delete, 'v1beta/{+name}', options)
|
|
327
211
|
command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
|
|
328
212
|
command.response_class = Google::Apis::GkehubV1beta::Operation
|
|
@@ -336,8 +220,7 @@ module Google
|
|
|
336
220
|
|
|
337
221
|
# Gets details of a single Feature.
|
|
338
222
|
# @param [String] name
|
|
339
|
-
# The Feature resource name in the format `projects/*/locations
|
|
340
|
-
# `
|
|
223
|
+
# The Feature resource name in the format `projects/*/locations/*/features/*`
|
|
341
224
|
# @param [String] fields
|
|
342
225
|
# Selector specifying which fields to include in a partial response.
|
|
343
226
|
# @param [String] quota_user
|
|
@@ -355,7 +238,7 @@ module Google
|
|
|
355
238
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
356
239
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
357
240
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
358
|
-
def
|
|
241
|
+
def get_project_location_feature(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
359
242
|
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
|
360
243
|
command.response_representation = Google::Apis::GkehubV1beta::Feature::Representation
|
|
361
244
|
command.response_class = Google::Apis::GkehubV1beta::Feature
|
|
@@ -365,10 +248,51 @@ module Google
|
|
|
365
248
|
execute_or_queue_command(command, &block)
|
|
366
249
|
end
|
|
367
250
|
|
|
251
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
|
252
|
+
# resource exists and does not have a policy set.
|
|
253
|
+
# @param [String] resource
|
|
254
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
|
255
|
+
# operation documentation for the appropriate value for this field.
|
|
256
|
+
# @param [Fixnum] options_requested_policy_version
|
|
257
|
+
# Optional. The policy format version to be returned. Valid values are 0, 1, and
|
|
258
|
+
# 3. Requests specifying an invalid value will be rejected. Requests for
|
|
259
|
+
# policies with any conditional bindings must specify version 3. Policies
|
|
260
|
+
# without any conditional bindings may specify any valid value or leave the
|
|
261
|
+
# field unset. To learn which resources support conditions in their IAM policies,
|
|
262
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
|
263
|
+
# resource-policies).
|
|
264
|
+
# @param [String] fields
|
|
265
|
+
# Selector specifying which fields to include in a partial response.
|
|
266
|
+
# @param [String] quota_user
|
|
267
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
268
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
269
|
+
# @param [Google::Apis::RequestOptions] options
|
|
270
|
+
# Request-specific options
|
|
271
|
+
#
|
|
272
|
+
# @yield [result, err] Result & error if block supplied
|
|
273
|
+
# @yieldparam result [Google::Apis::GkehubV1beta::Policy] parsed result object
|
|
274
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
275
|
+
#
|
|
276
|
+
# @return [Google::Apis::GkehubV1beta::Policy]
|
|
277
|
+
#
|
|
278
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
279
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
280
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
281
|
+
def get_project_location_feature_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
282
|
+
command = make_simple_command(:get, 'v1beta/{+resource}:getIamPolicy', options)
|
|
283
|
+
command.response_representation = Google::Apis::GkehubV1beta::Policy::Representation
|
|
284
|
+
command.response_class = Google::Apis::GkehubV1beta::Policy
|
|
285
|
+
command.params['resource'] = resource unless resource.nil?
|
|
286
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
|
287
|
+
command.query['fields'] = fields unless fields.nil?
|
|
288
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
289
|
+
execute_or_queue_command(command, &block)
|
|
290
|
+
end
|
|
291
|
+
|
|
368
292
|
# Lists Features in a given project and location.
|
|
369
293
|
# @param [String] parent
|
|
370
294
|
# The parent (project and location) where the Features will be listed. Specified
|
|
371
|
-
# in the format `projects/*/locations
|
|
295
|
+
# in the format `projects/*/locations/*`.
|
|
372
296
|
# @param [String] filter
|
|
373
297
|
# Lists Features that match the filter expression, following the syntax outlined
|
|
374
298
|
# in https://google.aip.dev/160. Examples: - Feature with the name "servicemesh"
|
|
@@ -402,7 +326,7 @@ module Google
|
|
|
402
326
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
403
327
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
404
328
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
405
|
-
def
|
|
329
|
+
def list_project_location_features(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
406
330
|
command = make_simple_command(:get, 'v1beta/{+parent}/features', options)
|
|
407
331
|
command.response_representation = Google::Apis::GkehubV1beta::ListFeaturesResponse::Representation
|
|
408
332
|
command.response_class = Google::Apis::GkehubV1beta::ListFeaturesResponse
|
|
@@ -418,8 +342,7 @@ module Google
|
|
|
418
342
|
|
|
419
343
|
# Updates an existing Feature.
|
|
420
344
|
# @param [String] name
|
|
421
|
-
# The Feature resource name in the format `projects/*/locations
|
|
422
|
-
# `.
|
|
345
|
+
# The Feature resource name in the format `projects/*/locations/*/features/*`.
|
|
423
346
|
# @param [Google::Apis::GkehubV1beta::Feature] feature_object
|
|
424
347
|
# @param [String] request_id
|
|
425
348
|
# Optional. A request ID to identify requests. Specify a unique request ID so
|
|
@@ -451,7 +374,7 @@ module Google
|
|
|
451
374
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
452
375
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
453
376
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
454
|
-
def
|
|
377
|
+
def patch_project_location_feature(name, feature_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
455
378
|
command = make_simple_command(:patch, 'v1beta/{+name}', options)
|
|
456
379
|
command.request_representation = Google::Apis::GkehubV1beta::Feature::Representation
|
|
457
380
|
command.request_object = feature_object
|
|
@@ -465,6 +388,80 @@ module Google
|
|
|
465
388
|
execute_or_queue_command(command, &block)
|
|
466
389
|
end
|
|
467
390
|
|
|
391
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
392
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
|
393
|
+
# PERMISSION_DENIED` errors.
|
|
394
|
+
# @param [String] resource
|
|
395
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
|
396
|
+
# operation documentation for the appropriate value for this field.
|
|
397
|
+
# @param [Google::Apis::GkehubV1beta::SetIamPolicyRequest] set_iam_policy_request_object
|
|
398
|
+
# @param [String] fields
|
|
399
|
+
# Selector specifying which fields to include in a partial response.
|
|
400
|
+
# @param [String] quota_user
|
|
401
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
402
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
403
|
+
# @param [Google::Apis::RequestOptions] options
|
|
404
|
+
# Request-specific options
|
|
405
|
+
#
|
|
406
|
+
# @yield [result, err] Result & error if block supplied
|
|
407
|
+
# @yieldparam result [Google::Apis::GkehubV1beta::Policy] parsed result object
|
|
408
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
409
|
+
#
|
|
410
|
+
# @return [Google::Apis::GkehubV1beta::Policy]
|
|
411
|
+
#
|
|
412
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
413
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
414
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
415
|
+
def set_feature_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
416
|
+
command = make_simple_command(:post, 'v1beta/{+resource}:setIamPolicy', options)
|
|
417
|
+
command.request_representation = Google::Apis::GkehubV1beta::SetIamPolicyRequest::Representation
|
|
418
|
+
command.request_object = set_iam_policy_request_object
|
|
419
|
+
command.response_representation = Google::Apis::GkehubV1beta::Policy::Representation
|
|
420
|
+
command.response_class = Google::Apis::GkehubV1beta::Policy
|
|
421
|
+
command.params['resource'] = resource unless resource.nil?
|
|
422
|
+
command.query['fields'] = fields unless fields.nil?
|
|
423
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
424
|
+
execute_or_queue_command(command, &block)
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
# Returns permissions that a caller has on the specified resource. If the
|
|
428
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
|
429
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
|
430
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
|
431
|
+
# This operation may "fail open" without warning.
|
|
432
|
+
# @param [String] resource
|
|
433
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
|
434
|
+
# operation documentation for the appropriate value for this field.
|
|
435
|
+
# @param [Google::Apis::GkehubV1beta::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
436
|
+
# @param [String] fields
|
|
437
|
+
# Selector specifying which fields to include in a partial response.
|
|
438
|
+
# @param [String] quota_user
|
|
439
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
440
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
441
|
+
# @param [Google::Apis::RequestOptions] options
|
|
442
|
+
# Request-specific options
|
|
443
|
+
#
|
|
444
|
+
# @yield [result, err] Result & error if block supplied
|
|
445
|
+
# @yieldparam result [Google::Apis::GkehubV1beta::TestIamPermissionsResponse] parsed result object
|
|
446
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
447
|
+
#
|
|
448
|
+
# @return [Google::Apis::GkehubV1beta::TestIamPermissionsResponse]
|
|
449
|
+
#
|
|
450
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
451
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
452
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
453
|
+
def test_feature_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
454
|
+
command = make_simple_command(:post, 'v1beta/{+resource}:testIamPermissions', options)
|
|
455
|
+
command.request_representation = Google::Apis::GkehubV1beta::TestIamPermissionsRequest::Representation
|
|
456
|
+
command.request_object = test_iam_permissions_request_object
|
|
457
|
+
command.response_representation = Google::Apis::GkehubV1beta::TestIamPermissionsResponse::Representation
|
|
458
|
+
command.response_class = Google::Apis::GkehubV1beta::TestIamPermissionsResponse
|
|
459
|
+
command.params['resource'] = resource unless resource.nil?
|
|
460
|
+
command.query['fields'] = fields unless fields.nil?
|
|
461
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
462
|
+
execute_or_queue_command(command, &block)
|
|
463
|
+
end
|
|
464
|
+
|
|
468
465
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
|
469
466
|
# resource exists and does not have a policy set.
|
|
470
467
|
# @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.
|
|
4
|
+
version: 0.3.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: 2021-
|
|
11
|
+
date: 2021-05-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-apis-core
|
|
@@ -52,7 +52,7 @@ licenses:
|
|
|
52
52
|
metadata:
|
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-gkehub_v1beta/CHANGELOG.md
|
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1beta/v0.
|
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1beta/v0.3.0
|
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-gkehub_v1beta
|
|
57
57
|
post_install_message:
|
|
58
58
|
rdoc_options: []
|
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
69
69
|
- !ruby/object:Gem::Version
|
|
70
70
|
version: '0'
|
|
71
71
|
requirements: []
|
|
72
|
-
rubygems_version: 3.2.
|
|
72
|
+
rubygems_version: 3.2.17
|
|
73
73
|
signing_key:
|
|
74
74
|
specification_version: 4
|
|
75
75
|
summary: Simple REST client for GKE Hub V1beta
|