google-apis-gkehub_v1alpha 0.1.0 → 0.6.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: fe26675d905ac64784201c2589238e9aa77b533a1cbbec6a812559a9fb6436d6
4
- data.tar.gz: 0fd937f0652d864b7708c4734217eabf9a27714b9489c2aee83e50f28f768aad
3
+ metadata.gz: 00dd8a542049f02de2228323ee4f6b54fd5099d1c482d7cbace6d0a4c909fe90
4
+ data.tar.gz: dacd02b7f0b8c131d1a271371659cef47495f4e04decb27a6f72076ad93bf946
5
5
  SHA512:
6
- metadata.gz: 6fad0c698e2fee6c9859499b9e227e79763ad8455ba75625bd80efed4d45c11542db199f1c630e3d2e2692687c2b9c51829cbc05c7aba666adbcb659d24ae350
7
- data.tar.gz: 86fcca5b859da3b9f7b400cc996389488c1cb1ebaf17b07f0de916ef2ab3e5d633cd5d4bf609591f4f25803d57f8e0060123a0e276360a7115ebab51fb09197e
6
+ metadata.gz: b3ab6eafd2535dd4e028c3a6604e777349734721b4bd07ec8d853af9b308b0c13cae911a919e9ac7b8c9f196866d9bd4425ed11b1202158acfcc4e133ad0eeb3
7
+ data.tar.gz: fd1f6cbc43f18a9b435efc373279a6cf781e4eac29e33554f33fb306adeec1f96af23be1b1c42349b0ba9e819f91799d6880d71b600300ffa13e3f0404d024b8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-gkehub_v1alpha
2
2
 
3
+ ### v0.6.0 (2021-06-25)
4
+
5
+ * Regenerated from discovery document revision 20210622
6
+ * Regenerated using generator version 0.3.0
7
+
8
+ ### v0.5.0 (2021-05-26)
9
+
10
+ * Regenerated from discovery document revision 20210521
11
+
12
+ ### v0.4.0 (2021-05-19)
13
+
14
+ * Unspecified changes
15
+
16
+ ### v0.3.0 (2021-05-13)
17
+
18
+ * Regenerated from discovery document revision 20210507
19
+
20
+ ### v0.2.0 (2021-03-24)
21
+
22
+ * Regenerated from discovery document revision 20210322
23
+
3
24
  ### v0.1.0 (2021-03-21)
4
25
 
5
26
  * Regenerated from discovery document revision 20210315
@@ -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
 
@@ -538,6 +545,12 @@ module Google
538
545
  class ConfigManagementGitConfig
539
546
  include Google::Apis::Core::Hashable
540
547
 
548
+ # The GCP Service Account Email used for auth when secret_type is
549
+ # gcpServiceAccount.
550
+ # Corresponds to the JSON property `gcpServiceAccountEmail`
551
+ # @return [String]
552
+ attr_accessor :gcp_service_account_email
553
+
541
554
  # URL for the HTTPS proxy to be used when communicating with the Git repo.
542
555
  # Corresponds to the JSON property `httpsProxy`
543
556
  # @return [String]
@@ -580,6 +593,7 @@ module Google
580
593
 
581
594
  # Update properties of this object
582
595
  def update!(**args)
596
+ @gcp_service_account_email = args[:gcp_service_account_email] if args.key?(:gcp_service_account_email)
583
597
  @https_proxy = args[:https_proxy] if args.key?(:https_proxy)
584
598
  @policy_dir = args[:policy_dir] if args.key?(:policy_dir)
585
599
  @secret_type = args[:secret_type] if args.key?(:secret_type)
@@ -749,8 +763,8 @@ module Google
749
763
  end
750
764
  end
751
765
 
752
- # Configuration for a single cluster. Intended to parallel the ConfigManagement
753
- # CR.
766
+ # **Anthos Config Management**: Configuration for a single cluster. Intended to
767
+ # parallel the ConfigManagement CR.
754
768
  class ConfigManagementMembershipSpec
755
769
  include Google::Apis::Core::Hashable
756
770
 
@@ -793,7 +807,7 @@ module Google
793
807
  end
794
808
  end
795
809
 
796
- # State for Anthos Config Management
810
+ # **Anthos Config Management**: State for a single cluster.
797
811
  class ConfigManagementMembershipState
798
812
  include Google::Apis::Core::Hashable
799
813
 
@@ -820,8 +834,8 @@ module Google
820
834
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementHierarchyControllerState]
821
835
  attr_accessor :hierarchy_controller_state
822
836
 
823
- # Configuration for a single cluster. Intended to parallel the ConfigManagement
824
- # CR.
837
+ # **Anthos Config Management**: Configuration for a single cluster. Intended to
838
+ # parallel the ConfigManagement CR.
825
839
  # Corresponds to the JSON property `membershipSpec`
826
840
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementMembershipSpec]
827
841
  attr_accessor :membership_spec
@@ -912,6 +926,12 @@ module Google
912
926
  attr_accessor :log_denies_enabled
913
927
  alias_method :log_denies_enabled?, :log_denies_enabled
914
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
+
915
935
  # Enables the ability to use Constraint Templates that reference to objects
916
936
  # other than the object currently being evaluated.
917
937
  # Corresponds to the JSON property `referentialRulesEnabled`
@@ -935,6 +955,7 @@ module Google
935
955
  @enabled = args[:enabled] if args.key?(:enabled)
936
956
  @exemptable_namespaces = args[:exemptable_namespaces] if args.key?(:exemptable_namespaces)
937
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)
938
959
  @referential_rules_enabled = args[:referential_rules_enabled] if args.key?(:referential_rules_enabled)
939
960
  @template_library_installed = args[:template_library_installed] if args.key?(:template_library_installed)
940
961
  end
@@ -1037,9 +1058,9 @@ module Google
1037
1058
  # @return [String]
1038
1059
  attr_accessor :import_token
1039
1060
 
1040
- # Timestamp of when ACM last successfully synced the repo The time format is
1041
- # specified in https://golang.org/pkg/time/#Time.String This field is being
1042
- # 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
1043
1064
  # Corresponds to the JSON property `lastSync`
1044
1065
  # @return [String]
1045
1066
  attr_accessor :last_sync
@@ -1168,9 +1189,14 @@ module Google
1168
1189
  # Optional. Membership-specific configuration for this Feature. If this Feature
1169
1190
  # does not support any per-Membership configuration, this field may be unused.
1170
1191
  # The keys indicate which Membership the configuration is for, in the form:
1171
- # projects/`p`/locations/`l`/memberships/`m` Where `p` is the project number, `l`
1172
- # is a valid location and `m` is a valid Membership in this project at that
1173
- # 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.
1174
1200
  # Corresponds to the JSON property `membershipSpecs`
1175
1201
  # @return [Hash<String,Google::Apis::GkehubV1alpha::MembershipFeatureSpec>]
1176
1202
  attr_accessor :membership_specs
@@ -1186,7 +1212,7 @@ module Google
1186
1212
  attr_accessor :membership_states
1187
1213
 
1188
1214
  # Output only. The full, unique name of this Feature resource in the format `
1189
- # projects/*/locations/global/features/*`.
1215
+ # projects/*/locations/*/features/*`.
1190
1216
  # Corresponds to the JSON property `name`
1191
1217
  # @return [String]
1192
1218
  attr_accessor :name
@@ -1453,8 +1479,8 @@ module Google
1453
1479
  class MembershipFeatureSpec
1454
1480
  include Google::Apis::Core::Hashable
1455
1481
 
1456
- # Configuration for a single cluster. Intended to parallel the ConfigManagement
1457
- # CR.
1482
+ # **Anthos Config Management**: Configuration for a single cluster. Intended to
1483
+ # parallel the ConfigManagement CR.
1458
1484
  # Corresponds to the JSON property `configmanagement`
1459
1485
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementMembershipSpec]
1460
1486
  attr_accessor :configmanagement
@@ -1474,18 +1500,18 @@ module Google
1474
1500
  class MembershipFeatureState
1475
1501
  include Google::Apis::Core::Hashable
1476
1502
 
1477
- # State for Anthos Config Management
1503
+ # **Anthos Config Management**: State for a single cluster.
1478
1504
  # Corresponds to the JSON property `configmanagement`
1479
1505
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementMembershipState]
1480
1506
  attr_accessor :configmanagement
1481
1507
 
1482
- # Metering per-Membership Feature State.
1508
+ # **Metering**: Per-Membership Feature State.
1483
1509
  # Corresponds to the JSON property `metering`
1484
1510
  # @return [Google::Apis::GkehubV1alpha::MeteringMembershipState]
1485
1511
  attr_accessor :metering
1486
1512
 
1487
- # MembershipState describes the state of the Service Mesh Hub Feature as
1488
- # 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.
1489
1515
  # Corresponds to the JSON property `servicemesh`
1490
1516
  # @return [Google::Apis::GkehubV1alpha::ServiceMeshMembershipState]
1491
1517
  attr_accessor :servicemesh
@@ -1510,7 +1536,7 @@ module Google
1510
1536
  end
1511
1537
  end
1512
1538
 
1513
- # Metering per-Membership Feature State.
1539
+ # **Metering**: Per-Membership Feature State.
1514
1540
  class MeteringMembershipState
1515
1541
  include Google::Apis::Core::Hashable
1516
1542
 
@@ -1537,10 +1563,16 @@ module Google
1537
1563
  end
1538
1564
  end
1539
1565
 
1540
- # FeatureSpec contains the input for the MultiClusterIngress feature.
1566
+ # **Multi-cluster Ingress**: The configuration for the MultiClusterIngress
1567
+ # feature.
1541
1568
  class MultiClusterIngressFeatureSpec
1542
1569
  include Google::Apis::Core::Hashable
1543
1570
 
1571
+ # Customer's billing structure
1572
+ # Corresponds to the JSON property `billing`
1573
+ # @return [String]
1574
+ attr_accessor :billing
1575
+
1544
1576
  # Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
1545
1577
  # Example: `projects/foo-proj/locations/global/memberships/bar`
1546
1578
  # Corresponds to the JSON property `configMembership`
@@ -1553,6 +1585,7 @@ module Google
1553
1585
 
1554
1586
  # Update properties of this object
1555
1587
  def update!(**args)
1588
+ @billing = args[:billing] if args.key?(:billing)
1556
1589
  @config_membership = args[:config_membership] if args.key?(:config_membership)
1557
1590
  end
1558
1591
  end
@@ -1850,8 +1883,8 @@ module Google
1850
1883
  end
1851
1884
  end
1852
1885
 
1853
- # FeatureState describes the state of the Service Mesh Hub Feature as analyzed
1854
- # 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.
1855
1888
  class ServiceMeshFeatureState
1856
1889
  include Google::Apis::Core::Hashable
1857
1890
 
@@ -1870,8 +1903,8 @@ module Google
1870
1903
  end
1871
1904
  end
1872
1905
 
1873
- # MembershipState describes the state of the Service Mesh Hub Feature as
1874
- # 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.
1875
1908
  class ServiceMeshMembershipState
1876
1909
  include Google::Apis::Core::Hashable
1877
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.1.0"
19
+ GEM_VERSION = "0.6.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.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210315"
25
+ REVISION = "20210622"
26
26
  end
27
27
  end
28
28
  end
@@ -502,12 +502,14 @@ 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
 
508
509
  class ConfigManagementGitConfig
509
510
  # @private
510
511
  class Representation < Google::Apis::Core::JsonRepresentation
512
+ property :gcp_service_account_email, as: 'gcpServiceAccountEmail'
511
513
  property :https_proxy, as: 'httpsProxy'
512
514
  property :policy_dir, as: 'policyDir'
513
515
  property :secret_type, as: 'secretType'
@@ -620,6 +622,7 @@ module Google
620
622
  property :enabled, as: 'enabled'
621
623
  collection :exemptable_namespaces, as: 'exemptableNamespaces'
622
624
  property :log_denies_enabled, as: 'logDeniesEnabled'
625
+ property :mutation_enabled, as: 'mutationEnabled'
623
626
  property :referential_rules_enabled, as: 'referentialRulesEnabled'
624
627
  property :template_library_installed, as: 'templateLibraryInstalled'
625
628
  end
@@ -799,6 +802,7 @@ module Google
799
802
  class MultiClusterIngressFeatureSpec
800
803
  # @private
801
804
  class Representation < Google::Apis::Core::JsonRepresentation
805
+ property :billing, as: 'billing'
802
806
  property :config_membership, as: 'configMembership'
803
807
  end
804
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,128 +122,24 @@ 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.
132
+ # @param [String] request_id
133
+ # Optional. A request ID to identify requests. Specify a unique request ID so
134
+ # that if you must retry your request, the server will know to ignore the
135
+ # request if it has already been completed. The server will guarantee that for
136
+ # at least 60 minutes after the first request. For example, consider a situation
137
+ # where you make an initial request and the request times out. If you make the
138
+ # request again with the same request ID, the server can check if original
139
+ # operation with the same request ID was received, and if so, will ignore the
140
+ # second request. This prevents clients from accidentally creating duplicate
141
+ # commitments. The request ID must be a valid UUID with the exception that zero
142
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
247
143
  # @param [String] fields
248
144
  # Selector specifying which fields to include in a partial response.
249
145
  # @param [String] quota_user
@@ -261,7 +157,7 @@ module Google
261
157
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
262
158
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
263
159
  # @raise [Google::Apis::AuthorizationError] Authorization is required
264
- def create_project_location_global_feature(parent, feature_object = nil, feature_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)
265
161
  command = make_simple_command(:post, 'v1alpha/{+parent}/features', options)
266
162
  command.request_representation = Google::Apis::GkehubV1alpha::Feature::Representation
267
163
  command.request_object = feature_object
@@ -269,6 +165,7 @@ module Google
269
165
  command.response_class = Google::Apis::GkehubV1alpha::Operation
270
166
  command.params['parent'] = parent unless parent.nil?
271
167
  command.query['featureId'] = feature_id unless feature_id.nil?
168
+ command.query['requestId'] = request_id unless request_id.nil?
272
169
  command.query['fields'] = fields unless fields.nil?
273
170
  command.query['quotaUser'] = quota_user unless quota_user.nil?
274
171
  execute_or_queue_command(command, &block)
@@ -276,12 +173,22 @@ module Google
276
173
 
277
174
  # Removes a Feature.
278
175
  # @param [String] name
279
- # The Feature resource name in the format `projects/*/locations/global/features/*
280
- # `.
176
+ # The Feature resource name in the format `projects/*/locations/*/features/*`.
281
177
  # @param [Boolean] force
282
178
  # If set to true, the delete will ignore any outstanding resources for this
283
179
  # Feature (that is, `FeatureState.has_resources` is set to true). These
284
180
  # resources will NOT be cleaned up or modified in any way.
181
+ # @param [String] request_id
182
+ # Optional. A request ID to identify requests. Specify a unique request ID so
183
+ # that if you must retry your request, the server will know to ignore the
184
+ # request if it has already been completed. The server will guarantee that for
185
+ # at least 60 minutes after the first request. For example, consider a situation
186
+ # where you make an initial request and the request times out. If you make the
187
+ # request again with the same request ID, the server can check if original
188
+ # operation with the same request ID was received, and if so, will ignore the
189
+ # second request. This prevents clients from accidentally creating duplicate
190
+ # commitments. The request ID must be a valid UUID with the exception that zero
191
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
285
192
  # @param [String] fields
286
193
  # Selector specifying which fields to include in a partial response.
287
194
  # @param [String] quota_user
@@ -299,12 +206,13 @@ module Google
299
206
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
300
207
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
301
208
  # @raise [Google::Apis::AuthorizationError] Authorization is required
302
- def delete_project_location_global_feature(name, force: 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)
303
210
  command = make_simple_command(:delete, 'v1alpha/{+name}', options)
304
211
  command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
305
212
  command.response_class = Google::Apis::GkehubV1alpha::Operation
306
213
  command.params['name'] = name unless name.nil?
307
214
  command.query['force'] = force unless force.nil?
215
+ command.query['requestId'] = request_id unless request_id.nil?
308
216
  command.query['fields'] = fields unless fields.nil?
309
217
  command.query['quotaUser'] = quota_user unless quota_user.nil?
310
218
  execute_or_queue_command(command, &block)
@@ -312,8 +220,7 @@ module Google
312
220
 
313
221
  # Gets details of a single Feature.
314
222
  # @param [String] name
315
- # The Feature resource name in the format `projects/*/locations/global/features/*
316
- # `
223
+ # The Feature resource name in the format `projects/*/locations/*/features/*`
317
224
  # @param [String] fields
318
225
  # Selector specifying which fields to include in a partial response.
319
226
  # @param [String] quota_user
@@ -331,7 +238,7 @@ module Google
331
238
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
332
239
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
333
240
  # @raise [Google::Apis::AuthorizationError] Authorization is required
334
- 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)
335
242
  command = make_simple_command(:get, 'v1alpha/{+name}', options)
336
243
  command.response_representation = Google::Apis::GkehubV1alpha::Feature::Representation
337
244
  command.response_class = Google::Apis::GkehubV1alpha::Feature
@@ -341,10 +248,51 @@ module Google
341
248
  execute_or_queue_command(command, &block)
342
249
  end
343
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
+
344
292
  # Lists Features in a given project and location.
345
293
  # @param [String] parent
346
294
  # The parent (project and location) where the Features will be listed. Specified
347
- # in the format `projects/*/locations/global`.
295
+ # in the format `projects/*/locations/*`.
348
296
  # @param [String] filter
349
297
  # Lists Features that match the filter expression, following the syntax outlined
350
298
  # in https://google.aip.dev/160. Examples: - Feature with the name "servicemesh"
@@ -378,7 +326,7 @@ module Google
378
326
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
379
327
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
380
328
  # @raise [Google::Apis::AuthorizationError] Authorization is required
381
- 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)
382
330
  command = make_simple_command(:get, 'v1alpha/{+parent}/features', options)
383
331
  command.response_representation = Google::Apis::GkehubV1alpha::ListFeaturesResponse::Representation
384
332
  command.response_class = Google::Apis::GkehubV1alpha::ListFeaturesResponse
@@ -394,9 +342,19 @@ module Google
394
342
 
395
343
  # Updates an existing Feature.
396
344
  # @param [String] name
397
- # The Feature resource name in the format `projects/*/locations/global/features/*
398
- # `.
345
+ # The Feature resource name in the format `projects/*/locations/*/features/*`.
399
346
  # @param [Google::Apis::GkehubV1alpha::Feature] feature_object
347
+ # @param [String] request_id
348
+ # Optional. A request ID to identify requests. Specify a unique request ID so
349
+ # that if you must retry your request, the server will know to ignore the
350
+ # request if it has already been completed. The server will guarantee that for
351
+ # at least 60 minutes after the first request. For example, consider a situation
352
+ # where you make an initial request and the request times out. If you make the
353
+ # request again with the same request ID, the server can check if original
354
+ # operation with the same request ID was received, and if so, will ignore the
355
+ # second request. This prevents clients from accidentally creating duplicate
356
+ # commitments. The request ID must be a valid UUID with the exception that zero
357
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
400
358
  # @param [String] update_mask
401
359
  # Mask of fields to update.
402
360
  # @param [String] fields
@@ -416,19 +374,94 @@ module Google
416
374
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
417
375
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
418
376
  # @raise [Google::Apis::AuthorizationError] Authorization is required
419
- def patch_project_location_global_feature(name, feature_object = 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)
420
378
  command = make_simple_command(:patch, 'v1alpha/{+name}', options)
421
379
  command.request_representation = Google::Apis::GkehubV1alpha::Feature::Representation
422
380
  command.request_object = feature_object
423
381
  command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
424
382
  command.response_class = Google::Apis::GkehubV1alpha::Operation
425
383
  command.params['name'] = name unless name.nil?
384
+ command.query['requestId'] = request_id unless request_id.nil?
426
385
  command.query['updateMask'] = update_mask unless update_mask.nil?
427
386
  command.query['fields'] = fields unless fields.nil?
428
387
  command.query['quotaUser'] = quota_user unless quota_user.nil?
429
388
  execute_or_queue_command(command, &block)
430
389
  end
431
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
+
432
465
  # Gets the access control policy for a resource. Returns an empty policy if the
433
466
  # resource exists and does not have a policy set.
434
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.1.0
4
+ version: 0.6.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-22 00:00:00.000000000 Z
11
+ date: 2021-06-28 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.3'
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.3'
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.1.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1alpha/v0.6.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