google-apis-gkehub_v1alpha 0.2.0 → 0.7.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: 64b073981dbc8a16c45efba791ab5347488bf25b14856382dd956e15843272bb
4
- data.tar.gz: 2770a37900c0e6a229c577f07af98c5ae7dc521b45873d8297c9d4951cf05816
3
+ metadata.gz: 8e51556f4d333aab87ac24a7a62ade344dc972f6dd013d70f802683db2547a80
4
+ data.tar.gz: e60101f54cee5d1c5d8c10e2514d5dbba75ca3add672015908ee48af0bc08497
5
5
  SHA512:
6
- metadata.gz: ad9a4ac1267728177ec268b1786523b18fbd2880367f38b4c29c15da8b211044b6ae3453f1d1e1e514e55faa79df0b27e38f048a0ca1c70856e7f88fbb0723ca
7
- data.tar.gz: 180631fc2c82aef7be8db37b4a47439238e441b0dc24245f847a3fadaea1dd5aa734827697464b9a8e5630c24d9f4619b1add16664e42af9698a78b2daf28880
6
+ metadata.gz: b89438d912a2ed186bb320782fc9f8acfe5bd431b1a2e13ea722726cd835a053fe5a421bb34e85b7a7e3ef5242282a83c4e54c7d9b6bbe793b5a4fdcf4fe5945
7
+ data.tar.gz: 5166d171ca5ea39ed426d52b9b4bcf5daff93ae36e536e74ae9e6305c12ace15693cdc8b7cbeb1c44fec375ebaf7a32e64af34b0ba380d6a38f8676638e4b09a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-gkehub_v1alpha
2
2
 
3
+ ### v0.7.0 (2021-06-30)
4
+
5
+ * Regenerated using generator version 0.4.0
6
+
7
+ ### v0.6.0 (2021-06-25)
8
+
9
+ * Regenerated from discovery document revision 20210622
10
+ * Regenerated using generator version 0.3.0
11
+
12
+ ### v0.5.0 (2021-05-26)
13
+
14
+ * Regenerated from discovery document revision 20210521
15
+
16
+ ### v0.4.0 (2021-05-19)
17
+
18
+ * Unspecified changes
19
+
20
+ ### v0.3.0 (2021-05-13)
21
+
22
+ * Regenerated from discovery document revision 20210507
23
+
3
24
  ### v0.2.0 (2021-03-24)
4
25
 
5
26
  * Regenerated from discovery document revision 20210322
@@ -177,7 +177,7 @@ module Google
177
177
  end
178
178
  end
179
179
 
180
- # Spec for Audit Logging Allowlisting.
180
+ # **Cloud Audit Logging**: Spec for Audit Logging Allowlisting.
181
181
  class CloudAuditLoggingFeatureSpec
182
182
  include Google::Apis::Core::Hashable
183
183
 
@@ -204,12 +204,13 @@ module Google
204
204
  class CommonFeatureSpec
205
205
  include Google::Apis::Core::Hashable
206
206
 
207
- # Spec for Audit Logging Allowlisting.
207
+ # **Cloud Audit Logging**: Spec for Audit Logging Allowlisting.
208
208
  # Corresponds to the JSON property `cloudauditlogging`
209
209
  # @return [Google::Apis::GkehubV1alpha::CloudAuditLoggingFeatureSpec]
210
210
  attr_accessor :cloudauditlogging
211
211
 
212
- # FeatureSpec contains the input for the MultiClusterIngress feature.
212
+ # **Multi-cluster Ingress**: The configuration for the MultiClusterIngress
213
+ # feature.
213
214
  # Corresponds to the JSON property `multiclusteringress`
214
215
  # @return [Google::Apis::GkehubV1alpha::MultiClusterIngressFeatureSpec]
215
216
  attr_accessor :multiclusteringress
@@ -229,8 +230,8 @@ module Google
229
230
  class CommonFeatureState
230
231
  include Google::Apis::Core::Hashable
231
232
 
232
- # FeatureState describes the state of the Service Mesh Hub Feature as analyzed
233
- # by the Service Mesh Hub Controller, for the whole Hub.
233
+ # **Service Mesh**: State for the whole Hub, as analyzed by the Service Mesh Hub
234
+ # Controller.
234
235
  # Corresponds to the JSON property `servicemesh`
235
236
  # @return [Google::Apis::GkehubV1alpha::ServiceMeshFeatureState]
236
237
  attr_accessor :servicemesh
@@ -523,6 +524,11 @@ module Google
523
524
  # @return [String]
524
525
  attr_accessor :gatekeeper_controller_manager_state
525
526
 
527
+ # Status of the pod serving the mutation webhook.
528
+ # Corresponds to the JSON property `gatekeeperMutation`
529
+ # @return [String]
530
+ attr_accessor :gatekeeper_mutation
531
+
526
532
  def initialize(**args)
527
533
  update!(**args)
528
534
  end
@@ -531,6 +537,7 @@ module Google
531
537
  def update!(**args)
532
538
  @gatekeeper_audit = args[:gatekeeper_audit] if args.key?(:gatekeeper_audit)
533
539
  @gatekeeper_controller_manager_state = args[:gatekeeper_controller_manager_state] if args.key?(:gatekeeper_controller_manager_state)
540
+ @gatekeeper_mutation = args[:gatekeeper_mutation] if args.key?(:gatekeeper_mutation)
534
541
  end
535
542
  end
536
543
 
@@ -756,8 +763,8 @@ module Google
756
763
  end
757
764
  end
758
765
 
759
- # Configuration for a single cluster. Intended to parallel the ConfigManagement
760
- # CR.
766
+ # **Anthos Config Management**: Configuration for a single cluster. Intended to
767
+ # parallel the ConfigManagement CR.
761
768
  class ConfigManagementMembershipSpec
762
769
  include Google::Apis::Core::Hashable
763
770
 
@@ -800,7 +807,7 @@ module Google
800
807
  end
801
808
  end
802
809
 
803
- # State for Anthos Config Management
810
+ # **Anthos Config Management**: State for a single cluster.
804
811
  class ConfigManagementMembershipState
805
812
  include Google::Apis::Core::Hashable
806
813
 
@@ -827,8 +834,8 @@ module Google
827
834
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementHierarchyControllerState]
828
835
  attr_accessor :hierarchy_controller_state
829
836
 
830
- # Configuration for a single cluster. Intended to parallel the ConfigManagement
831
- # CR.
837
+ # **Anthos Config Management**: Configuration for a single cluster. Intended to
838
+ # parallel the ConfigManagement CR.
832
839
  # Corresponds to the JSON property `membershipSpec`
833
840
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementMembershipSpec]
834
841
  attr_accessor :membership_spec
@@ -919,6 +926,12 @@ module Google
919
926
  attr_accessor :log_denies_enabled
920
927
  alias_method :log_denies_enabled?, :log_denies_enabled
921
928
 
929
+ # Enable users to try out mutation for PolicyController.
930
+ # Corresponds to the JSON property `mutationEnabled`
931
+ # @return [Boolean]
932
+ attr_accessor :mutation_enabled
933
+ alias_method :mutation_enabled?, :mutation_enabled
934
+
922
935
  # Enables the ability to use Constraint Templates that reference to objects
923
936
  # other than the object currently being evaluated.
924
937
  # Corresponds to the JSON property `referentialRulesEnabled`
@@ -942,6 +955,7 @@ module Google
942
955
  @enabled = args[:enabled] if args.key?(:enabled)
943
956
  @exemptable_namespaces = args[:exemptable_namespaces] if args.key?(:exemptable_namespaces)
944
957
  @log_denies_enabled = args[:log_denies_enabled] if args.key?(:log_denies_enabled)
958
+ @mutation_enabled = args[:mutation_enabled] if args.key?(:mutation_enabled)
945
959
  @referential_rules_enabled = args[:referential_rules_enabled] if args.key?(:referential_rules_enabled)
946
960
  @template_library_installed = args[:template_library_installed] if args.key?(:template_library_installed)
947
961
  end
@@ -1044,9 +1058,9 @@ module Google
1044
1058
  # @return [String]
1045
1059
  attr_accessor :import_token
1046
1060
 
1047
- # Timestamp of when ACM last successfully synced the repo The time format is
1048
- # specified in https://golang.org/pkg/time/#Time.String This field is being
1049
- # deprecated. Use last_sync_time instead. (b/154053616)
1061
+ # Deprecated: use last_sync_time instead. Timestamp of when ACM last
1062
+ # successfully synced the repo The time format is specified in https://golang.
1063
+ # org/pkg/time/#Time.String
1050
1064
  # Corresponds to the JSON property `lastSync`
1051
1065
  # @return [String]
1052
1066
  attr_accessor :last_sync
@@ -1175,9 +1189,14 @@ module Google
1175
1189
  # Optional. Membership-specific configuration for this Feature. If this Feature
1176
1190
  # does not support any per-Membership configuration, this field may be unused.
1177
1191
  # The keys indicate which Membership the configuration is for, in the form:
1178
- # projects/`p`/locations/`l`/memberships/`m` Where `p` is the project number, `l`
1179
- # is a valid location and `m` is a valid Membership in this project at that
1180
- # location. `p` MUST match the Feature's project number.
1192
+ # projects/`p`/locations/`l`/memberships/`m` Where `p` is the project, `l` is a
1193
+ # valid location and `m` is a valid Membership in this project at that location.
1194
+ # `p` WILL match the Feature's project. `p` will always be returned as the
1195
+ # project number, but the project ID is also accepted during input. If the same
1196
+ # Membership is specified in the map twice (using the project ID form, and the
1197
+ # project number form), exactly ONE of the entries will be saved, with no
1198
+ # guarantees as to which. For this reason, it is recommended the same format be
1199
+ # used for all entries when mutating a Feature.
1181
1200
  # Corresponds to the JSON property `membershipSpecs`
1182
1201
  # @return [Hash<String,Google::Apis::GkehubV1alpha::MembershipFeatureSpec>]
1183
1202
  attr_accessor :membership_specs
@@ -1193,7 +1212,7 @@ module Google
1193
1212
  attr_accessor :membership_states
1194
1213
 
1195
1214
  # Output only. The full, unique name of this Feature resource in the format `
1196
- # projects/*/locations/global/features/*`.
1215
+ # projects/*/locations/*/features/*`.
1197
1216
  # Corresponds to the JSON property `name`
1198
1217
  # @return [String]
1199
1218
  attr_accessor :name
@@ -1460,8 +1479,8 @@ module Google
1460
1479
  class MembershipFeatureSpec
1461
1480
  include Google::Apis::Core::Hashable
1462
1481
 
1463
- # Configuration for a single cluster. Intended to parallel the ConfigManagement
1464
- # CR.
1482
+ # **Anthos Config Management**: Configuration for a single cluster. Intended to
1483
+ # parallel the ConfigManagement CR.
1465
1484
  # Corresponds to the JSON property `configmanagement`
1466
1485
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementMembershipSpec]
1467
1486
  attr_accessor :configmanagement
@@ -1481,18 +1500,18 @@ module Google
1481
1500
  class MembershipFeatureState
1482
1501
  include Google::Apis::Core::Hashable
1483
1502
 
1484
- # State for Anthos Config Management
1503
+ # **Anthos Config Management**: State for a single cluster.
1485
1504
  # Corresponds to the JSON property `configmanagement`
1486
1505
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementMembershipState]
1487
1506
  attr_accessor :configmanagement
1488
1507
 
1489
- # Metering per-Membership Feature State.
1508
+ # **Metering**: Per-Membership Feature State.
1490
1509
  # Corresponds to the JSON property `metering`
1491
1510
  # @return [Google::Apis::GkehubV1alpha::MeteringMembershipState]
1492
1511
  attr_accessor :metering
1493
1512
 
1494
- # MembershipState describes the state of the Service Mesh Hub Feature as
1495
- # analyzed by the Service Mesh Hub Controller, for single Membership.
1513
+ # **Service Mesh**: State for a single Membership, as analyzed by the Service
1514
+ # Mesh Hub Controller.
1496
1515
  # Corresponds to the JSON property `servicemesh`
1497
1516
  # @return [Google::Apis::GkehubV1alpha::ServiceMeshMembershipState]
1498
1517
  attr_accessor :servicemesh
@@ -1517,7 +1536,7 @@ module Google
1517
1536
  end
1518
1537
  end
1519
1538
 
1520
- # Metering per-Membership Feature State.
1539
+ # **Metering**: Per-Membership Feature State.
1521
1540
  class MeteringMembershipState
1522
1541
  include Google::Apis::Core::Hashable
1523
1542
 
@@ -1544,10 +1563,16 @@ module Google
1544
1563
  end
1545
1564
  end
1546
1565
 
1547
- # FeatureSpec contains the input for the MultiClusterIngress feature.
1566
+ # **Multi-cluster Ingress**: The configuration for the MultiClusterIngress
1567
+ # feature.
1548
1568
  class MultiClusterIngressFeatureSpec
1549
1569
  include Google::Apis::Core::Hashable
1550
1570
 
1571
+ # Customer's billing structure
1572
+ # Corresponds to the JSON property `billing`
1573
+ # @return [String]
1574
+ attr_accessor :billing
1575
+
1551
1576
  # Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
1552
1577
  # Example: `projects/foo-proj/locations/global/memberships/bar`
1553
1578
  # Corresponds to the JSON property `configMembership`
@@ -1560,6 +1585,7 @@ module Google
1560
1585
 
1561
1586
  # Update properties of this object
1562
1587
  def update!(**args)
1588
+ @billing = args[:billing] if args.key?(:billing)
1563
1589
  @config_membership = args[:config_membership] if args.key?(:config_membership)
1564
1590
  end
1565
1591
  end
@@ -1857,8 +1883,8 @@ module Google
1857
1883
  end
1858
1884
  end
1859
1885
 
1860
- # FeatureState describes the state of the Service Mesh Hub Feature as analyzed
1861
- # by the Service Mesh Hub Controller, for the whole Hub.
1886
+ # **Service Mesh**: State for the whole Hub, as analyzed by the Service Mesh Hub
1887
+ # Controller.
1862
1888
  class ServiceMeshFeatureState
1863
1889
  include Google::Apis::Core::Hashable
1864
1890
 
@@ -1877,8 +1903,8 @@ module Google
1877
1903
  end
1878
1904
  end
1879
1905
 
1880
- # MembershipState describes the state of the Service Mesh Hub Feature as
1881
- # analyzed by the Service Mesh Hub Controller, for single Membership.
1906
+ # **Service Mesh**: State for a single Membership, as analyzed by the Service
1907
+ # Mesh Hub Controller.
1882
1908
  class ServiceMeshMembershipState
1883
1909
  include Google::Apis::Core::Hashable
1884
1910
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module GkehubV1alpha
18
18
  # Version of the google-apis-gkehub_v1alpha gem
19
- GEM_VERSION = "0.2.0"
19
+ GEM_VERSION = "0.7.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210322"
25
+ REVISION = "20210622"
26
26
  end
27
27
  end
28
28
  end
@@ -502,6 +502,7 @@ module Google
502
502
  class Representation < Google::Apis::Core::JsonRepresentation
503
503
  property :gatekeeper_audit, as: 'gatekeeperAudit'
504
504
  property :gatekeeper_controller_manager_state, as: 'gatekeeperControllerManagerState'
505
+ property :gatekeeper_mutation, as: 'gatekeeperMutation'
505
506
  end
506
507
  end
507
508
 
@@ -621,6 +622,7 @@ module Google
621
622
  property :enabled, as: 'enabled'
622
623
  collection :exemptable_namespaces, as: 'exemptableNamespaces'
623
624
  property :log_denies_enabled, as: 'logDeniesEnabled'
625
+ property :mutation_enabled, as: 'mutationEnabled'
624
626
  property :referential_rules_enabled, as: 'referentialRulesEnabled'
625
627
  property :template_library_installed, as: 'templateLibraryInstalled'
626
628
  end
@@ -800,6 +802,7 @@ module Google
800
802
  class MultiClusterIngressFeatureSpec
801
803
  # @private
802
804
  class Representation < Google::Apis::Core::JsonRepresentation
805
+ property :billing, as: 'billing'
803
806
  property :config_membership, as: 'configMembership'
804
807
  end
805
808
  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 will select a
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::GkehubV1alpha::Policy] parsed result object
148
- # @yieldparam err [StandardError] error object if request failed
149
- #
150
- # @return [Google::Apis::GkehubV1alpha::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, 'v1alpha/{+resource}:getIamPolicy', options)
157
- command.response_representation = Google::Apis::GkehubV1alpha::Policy::Representation
158
- command.response_class = Google::Apis::GkehubV1alpha::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::GkehubV1alpha::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::GkehubV1alpha::Policy] parsed result object
183
- # @yieldparam err [StandardError] error object if request failed
184
- #
185
- # @return [Google::Apis::GkehubV1alpha::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, 'v1alpha/{+resource}:setIamPolicy', options)
192
- command.request_representation = Google::Apis::GkehubV1alpha::SetIamPolicyRequest::Representation
193
- command.request_object = set_iam_policy_request_object
194
- command.response_representation = Google::Apis::GkehubV1alpha::Policy::Representation
195
- command.response_class = Google::Apis::GkehubV1alpha::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::GkehubV1alpha::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::GkehubV1alpha::TestIamPermissionsResponse] parsed result object
221
- # @yieldparam err [StandardError] error object if request failed
222
- #
223
- # @return [Google::Apis::GkehubV1alpha::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, 'v1alpha/{+resource}:testIamPermissions', options)
230
- command.request_representation = Google::Apis::GkehubV1alpha::TestIamPermissionsRequest::Representation
231
- command.request_object = test_iam_permissions_request_object
232
- command.response_representation = Google::Apis::GkehubV1alpha::TestIamPermissionsResponse::Representation
233
- command.response_class = Google::Apis::GkehubV1alpha::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/global`.
128
+ # in the format `projects/*/locations/*`.
244
129
  # @param [Google::Apis::GkehubV1alpha::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 create_project_location_global_feature(parent, feature_object = nil, feature_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
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, 'v1alpha/{+parent}/features', options)
277
162
  command.request_representation = Google::Apis::GkehubV1alpha::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/global/features/*
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 delete_project_location_global_feature(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
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, 'v1alpha/{+name}', options)
327
211
  command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
328
212
  command.response_class = Google::Apis::GkehubV1alpha::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/global/features/*
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 get_project_location_global_feature(name, fields: nil, quota_user: nil, options: nil, &block)
241
+ def get_project_location_feature(name, fields: nil, quota_user: nil, options: nil, &block)
359
242
  command = make_simple_command(:get, 'v1alpha/{+name}', options)
360
243
  command.response_representation = Google::Apis::GkehubV1alpha::Feature::Representation
361
244
  command.response_class = Google::Apis::GkehubV1alpha::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::GkehubV1alpha::Policy] parsed result object
274
+ # @yieldparam err [StandardError] error object if request failed
275
+ #
276
+ # @return [Google::Apis::GkehubV1alpha::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, 'v1alpha/{+resource}:getIamPolicy', options)
283
+ command.response_representation = Google::Apis::GkehubV1alpha::Policy::Representation
284
+ command.response_class = Google::Apis::GkehubV1alpha::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/global`.
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 list_project_location_global_features(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
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, 'v1alpha/{+parent}/features', options)
407
331
  command.response_representation = Google::Apis::GkehubV1alpha::ListFeaturesResponse::Representation
408
332
  command.response_class = Google::Apis::GkehubV1alpha::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/global/features/*
422
- # `.
345
+ # The Feature resource name in the format `projects/*/locations/*/features/*`.
423
346
  # @param [Google::Apis::GkehubV1alpha::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 patch_project_location_global_feature(name, feature_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
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, 'v1alpha/{+name}', options)
456
379
  command.request_representation = Google::Apis::GkehubV1alpha::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::GkehubV1alpha::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::GkehubV1alpha::Policy] parsed result object
408
+ # @yieldparam err [StandardError] error object if request failed
409
+ #
410
+ # @return [Google::Apis::GkehubV1alpha::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, 'v1alpha/{+resource}:setIamPolicy', options)
417
+ command.request_representation = Google::Apis::GkehubV1alpha::SetIamPolicyRequest::Representation
418
+ command.request_object = set_iam_policy_request_object
419
+ command.response_representation = Google::Apis::GkehubV1alpha::Policy::Representation
420
+ command.response_class = Google::Apis::GkehubV1alpha::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::GkehubV1alpha::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::GkehubV1alpha::TestIamPermissionsResponse] parsed result object
446
+ # @yieldparam err [StandardError] error object if request failed
447
+ #
448
+ # @return [Google::Apis::GkehubV1alpha::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, 'v1alpha/{+resource}:testIamPermissions', options)
455
+ command.request_representation = Google::Apis::GkehubV1alpha::TestIamPermissionsRequest::Representation
456
+ command.request_object = test_iam_permissions_request_object
457
+ command.response_representation = Google::Apis::GkehubV1alpha::TestIamPermissionsResponse::Representation
458
+ command.response_class = Google::Apis::GkehubV1alpha::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,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-gkehub_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.7.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-03-29 00:00:00.000000000 Z
11
+ date: 2021-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for GKE Hub V1alpha. Simple REST clients
28
34
  are Ruby client libraries that provide access to Google services via their HTTP
29
35
  REST API endpoints. These libraries are generated and updated automatically based
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-gkehub_v1alpha/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1alpha/v0.2.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1alpha/v0.7.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-gkehub_v1alpha
57
63
  post_install_message:
58
64
  rdoc_options: []
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
75
  - !ruby/object:Gem::Version
70
76
  version: '0'
71
77
  requirements: []
72
- rubygems_version: 3.2.13
78
+ rubygems_version: 3.2.17
73
79
  signing_key:
74
80
  specification_version: 4
75
81
  summary: Simple REST client for GKE Hub V1alpha