google-cloud-gke_multi_cloud-v1 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/client.rb +125 -4
  3. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/rest/client.rb +1327 -0
  4. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/rest/operations.rb +870 -0
  5. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/rest/service_stub.rb +583 -0
  6. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/rest.rb +55 -0
  7. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters.rb +6 -0
  8. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/client.rb +460 -2
  9. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/rest/client.rb +2095 -0
  10. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/rest/operations.rb +870 -0
  11. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/rest/service_stub.rb +998 -0
  12. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/rest.rb +54 -0
  13. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters.rb +6 -0
  14. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/client.rb +324 -2
  15. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/rest/client.rb +2403 -0
  16. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/rest/operations.rb +870 -0
  17. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/rest/service_stub.rb +1175 -0
  18. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/rest.rb +54 -0
  19. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters.rb +6 -0
  20. data/lib/google/cloud/gke_multi_cloud/v1/rest.rb +39 -0
  21. data/lib/google/cloud/gke_multi_cloud/v1/version.rb +1 -1
  22. data/lib/google/cloud/gke_multi_cloud/v1.rb +5 -0
  23. data/lib/google/cloud/gkemulticloud/v1/attached_resources_pb.rb +4 -1
  24. data/lib/google/cloud/gkemulticloud/v1/attached_service_pb.rb +6 -2
  25. data/lib/google/cloud/gkemulticloud/v1/attached_service_services_pb.rb +2 -0
  26. data/lib/google/cloud/gkemulticloud/v1/aws_resources_pb.rb +10 -1
  27. data/lib/google/cloud/gkemulticloud/v1/aws_service_pb.rb +8 -1
  28. data/lib/google/cloud/gkemulticloud/v1/aws_service_services_pb.rb +18 -0
  29. data/lib/google/cloud/gkemulticloud/v1/azure_resources_pb.rb +7 -1
  30. data/lib/google/cloud/gkemulticloud/v1/azure_service_pb.rb +7 -1
  31. data/lib/google/cloud/gkemulticloud/v1/azure_service_services_pb.rb +11 -0
  32. data/lib/google/cloud/gkemulticloud/v1/common_resources_pb.rb +4 -1
  33. data/proto_docs/google/api/client.rb +13 -0
  34. data/proto_docs/google/cloud/gkemulticloud/v1/attached_resources.rb +48 -2
  35. data/proto_docs/google/cloud/gkemulticloud/v1/attached_service.rb +55 -2
  36. data/proto_docs/google/cloud/gkemulticloud/v1/aws_resources.rb +181 -6
  37. data/proto_docs/google/cloud/gkemulticloud/v1/aws_service.rb +117 -0
  38. data/proto_docs/google/cloud/gkemulticloud/v1/azure_resources.rb +103 -6
  39. data/proto_docs/google/cloud/gkemulticloud/v1/azure_service.rb +80 -4
  40. data/proto_docs/google/cloud/gkemulticloud/v1/common_resources.rb +56 -0
  41. data/proto_docs/google/type/date.rb +53 -0
  42. metadata +17 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54678eb55c16a6d56112db4b5ad4a183dc93631661c4482ee95c45292f2f2c54
4
- data.tar.gz: 52feb6b37efb467f2951e9f01070ffb2bdd2fa3e295e2fb608d51ef54dc7f955
3
+ metadata.gz: 33d790060021dc68aad275efdd67f8ed8191cf6039aa55cef10ef69ade0e962f
4
+ data.tar.gz: 55c5495abbae0fa324cf86b5ec1ef42e4cb752e1da8d298b5eef7a6a0aa243bc
5
5
  SHA512:
6
- metadata.gz: 131b75cf08765233869207677601733b1de344b164d2d7bdb7cde0c22910f77d09b4850f01ee5084414ab9714500eb42794b4c2f06429d6d0b22ed50b4cd75da
7
- data.tar.gz: bc997c36e530db9fa2b790a51c9c378ad5448ef17c59bd4fbfd327cbfa89ef960713241f610374931f67cb34ecd3e9d820e1386b033196d23b101ce8f109733d
6
+ metadata.gz: 82f8d6f24c1bb395da87c0e6b63540552bea623d9d950b33864297b0a9eed5fa5be44f5f52b2a7ef8e6cd2b0b4f2044b2d334d4d446ce3b202a60c3c51f6fadd
7
+ data.tar.gz: eaeef267808d6c54d2cd8ef52d74d44e36df6b841301e5dfd5904fa4727eb93ec53b75cca50db72d080b0f94d485d7d6937b7ae712854aaccf75f3f24945ca1f
@@ -94,6 +94,11 @@ module Google
94
94
  initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
95
95
  }
96
96
 
97
+ default_config.rpcs.generate_attached_cluster_agent_token.timeout = 60.0
98
+ default_config.rpcs.generate_attached_cluster_agent_token.retry_policy = {
99
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
100
+ }
101
+
97
102
  default_config
98
103
  end
99
104
  yield @configure if block_given?
@@ -340,12 +345,16 @@ module Google
340
345
  # fields from
341
346
  # {::Google::Cloud::GkeMultiCloud::V1::AttachedCluster AttachedCluster}:
342
347
  #
343
- # * `description`.
344
348
  # * `annotations`.
345
- # * `platform_version`.
349
+ # * `authorization.admin_groups`.
346
350
  # * `authorization.admin_users`.
351
+ # * `binary_authorization.evaluation_mode`.
352
+ # * `description`.
347
353
  # * `logging_config.component_config.enable_components`.
348
354
  # * `monitoring_config.managed_prometheus_config.enabled`.
355
+ # * `platform_version`.
356
+ # * `proxy_config.kubernetes_secret.name`.
357
+ # * `proxy_config.kubernetes_secret.namespace`.
349
358
  #
350
359
  # @yield [response, operation] Access the result along with the RPC operation
351
360
  # @yieldparam response [::Gapic::Operation]
@@ -441,7 +450,7 @@ module Google
441
450
  # @param options [::Gapic::CallOptions, ::Hash]
442
451
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
443
452
  #
444
- # @overload import_attached_cluster(parent: nil, validate_only: nil, fleet_membership: nil, platform_version: nil, distribution: nil)
453
+ # @overload import_attached_cluster(parent: nil, validate_only: nil, fleet_membership: nil, platform_version: nil, distribution: nil, proxy_config: nil)
445
454
  # Pass arguments to `import_attached_cluster` via keyword arguments. Note that at
446
455
  # least one keyword argument is required. To specify no parameters, or to keep all
447
456
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -469,6 +478,8 @@ module Google
469
478
  # Required. The Kubernetes distribution of the underlying attached cluster.
470
479
  #
471
480
  # Supported values: ["eks", "aks"].
481
+ # @param proxy_config [::Google::Cloud::GkeMultiCloud::V1::AttachedProxyConfig, ::Hash]
482
+ # Optional. Proxy configuration for outbound HTTP(S) traffic.
472
483
  #
473
484
  # @yield [response, operation] Access the result along with the RPC operation
474
485
  # @yieldparam response [::Gapic::Operation]
@@ -980,7 +991,7 @@ module Google
980
991
  # @param options [::Gapic::CallOptions, ::Hash]
981
992
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
982
993
  #
983
- # @overload generate_attached_cluster_install_manifest(parent: nil, attached_cluster_id: nil, platform_version: nil)
994
+ # @overload generate_attached_cluster_install_manifest(parent: nil, attached_cluster_id: nil, platform_version: nil, proxy_config: nil)
984
995
  # Pass arguments to `generate_attached_cluster_install_manifest` via keyword arguments. Note that at
985
996
  # least one keyword argument is required. To specify no parameters, or to keep all
986
997
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1016,6 +1027,8 @@ module Google
1016
1027
  # You can list all supported versions on a given Google Cloud region by
1017
1028
  # calling
1018
1029
  # {::Google::Cloud::GkeMultiCloud::V1::AttachedClusters::Client#get_attached_server_config GetAttachedServerConfig}.
1030
+ # @param proxy_config [::Google::Cloud::GkeMultiCloud::V1::AttachedProxyConfig, ::Hash]
1031
+ # Optional. Proxy configuration for outbound HTTP(S) traffic.
1019
1032
  #
1020
1033
  # @yield [response, operation] Access the result along with the RPC operation
1021
1034
  # @yieldparam response [::Google::Cloud::GkeMultiCloud::V1::GenerateAttachedClusterInstallManifestResponse]
@@ -1081,6 +1094,107 @@ module Google
1081
1094
  raise ::Google::Cloud::Error.from_error(e)
1082
1095
  end
1083
1096
 
1097
+ ##
1098
+ # Generates an access token for a cluster agent.
1099
+ #
1100
+ # @overload generate_attached_cluster_agent_token(request, options = nil)
1101
+ # Pass arguments to `generate_attached_cluster_agent_token` via a request object, either of type
1102
+ # {::Google::Cloud::GkeMultiCloud::V1::GenerateAttachedClusterAgentTokenRequest} or an equivalent Hash.
1103
+ #
1104
+ # @param request [::Google::Cloud::GkeMultiCloud::V1::GenerateAttachedClusterAgentTokenRequest, ::Hash]
1105
+ # A request object representing the call parameters. Required. To specify no
1106
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1107
+ # @param options [::Gapic::CallOptions, ::Hash]
1108
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1109
+ #
1110
+ # @overload generate_attached_cluster_agent_token(attached_cluster: nil, subject_token: nil, subject_token_type: nil, version: nil, grant_type: nil, audience: nil, scope: nil, requested_token_type: nil, options: nil)
1111
+ # Pass arguments to `generate_attached_cluster_agent_token` via keyword arguments. Note that at
1112
+ # least one keyword argument is required. To specify no parameters, or to keep all
1113
+ # the default parameter values, pass an empty Hash as a request object (see above).
1114
+ #
1115
+ # @param attached_cluster [::String]
1116
+ # Required.
1117
+ # @param subject_token [::String]
1118
+ # Required.
1119
+ # @param subject_token_type [::String]
1120
+ # Required.
1121
+ # @param version [::String]
1122
+ # Required.
1123
+ # @param grant_type [::String]
1124
+ # Optional.
1125
+ # @param audience [::String]
1126
+ # Optional.
1127
+ # @param scope [::String]
1128
+ # Optional.
1129
+ # @param requested_token_type [::String]
1130
+ # Optional.
1131
+ # @param options [::String]
1132
+ # Optional.
1133
+ #
1134
+ # @yield [response, operation] Access the result along with the RPC operation
1135
+ # @yieldparam response [::Google::Cloud::GkeMultiCloud::V1::GenerateAttachedClusterAgentTokenResponse]
1136
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1137
+ #
1138
+ # @return [::Google::Cloud::GkeMultiCloud::V1::GenerateAttachedClusterAgentTokenResponse]
1139
+ #
1140
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1141
+ #
1142
+ # @example Basic example
1143
+ # require "google/cloud/gke_multi_cloud/v1"
1144
+ #
1145
+ # # Create a client object. The client can be reused for multiple calls.
1146
+ # client = Google::Cloud::GkeMultiCloud::V1::AttachedClusters::Client.new
1147
+ #
1148
+ # # Create a request. To set request fields, pass in keyword arguments.
1149
+ # request = Google::Cloud::GkeMultiCloud::V1::GenerateAttachedClusterAgentTokenRequest.new
1150
+ #
1151
+ # # Call the generate_attached_cluster_agent_token method.
1152
+ # result = client.generate_attached_cluster_agent_token request
1153
+ #
1154
+ # # The returned object is of type Google::Cloud::GkeMultiCloud::V1::GenerateAttachedClusterAgentTokenResponse.
1155
+ # p result
1156
+ #
1157
+ def generate_attached_cluster_agent_token request, options = nil
1158
+ raise ::ArgumentError, "request must be provided" if request.nil?
1159
+
1160
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GkeMultiCloud::V1::GenerateAttachedClusterAgentTokenRequest
1161
+
1162
+ # Converts hash and nil to an options object
1163
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1164
+
1165
+ # Customize the options with defaults
1166
+ metadata = @config.rpcs.generate_attached_cluster_agent_token.metadata.to_h
1167
+
1168
+ # Set x-goog-api-client and x-goog-user-project headers
1169
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1170
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1171
+ gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
1172
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1173
+
1174
+ header_params = {}
1175
+ if request.attached_cluster
1176
+ header_params["attached_cluster"] = request.attached_cluster
1177
+ end
1178
+
1179
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1180
+ metadata[:"x-goog-request-params"] ||= request_params_header
1181
+
1182
+ options.apply_defaults timeout: @config.rpcs.generate_attached_cluster_agent_token.timeout,
1183
+ metadata: metadata,
1184
+ retry_policy: @config.rpcs.generate_attached_cluster_agent_token.retry_policy
1185
+
1186
+ options.apply_defaults timeout: @config.timeout,
1187
+ metadata: @config.metadata,
1188
+ retry_policy: @config.retry_policy
1189
+
1190
+ @attached_clusters_stub.call_rpc :generate_attached_cluster_agent_token, request, options: options do |response, operation|
1191
+ yield response, operation if block_given?
1192
+ return response
1193
+ end
1194
+ rescue ::GRPC::BadStatus => e
1195
+ raise ::Google::Cloud::Error.from_error(e)
1196
+ end
1197
+
1084
1198
  ##
1085
1199
  # Configuration class for the AttachedClusters API.
1086
1200
  #
@@ -1266,6 +1380,11 @@ module Google
1266
1380
  # @return [::Gapic::Config::Method]
1267
1381
  #
1268
1382
  attr_reader :generate_attached_cluster_install_manifest
1383
+ ##
1384
+ # RPC-specific configuration for `generate_attached_cluster_agent_token`
1385
+ # @return [::Gapic::Config::Method]
1386
+ #
1387
+ attr_reader :generate_attached_cluster_agent_token
1269
1388
 
1270
1389
  # @private
1271
1390
  def initialize parent_rpcs = nil
@@ -1285,6 +1404,8 @@ module Google
1285
1404
  @get_attached_server_config = ::Gapic::Config::Method.new get_attached_server_config_config
1286
1405
  generate_attached_cluster_install_manifest_config = parent_rpcs.generate_attached_cluster_install_manifest if parent_rpcs.respond_to? :generate_attached_cluster_install_manifest
1287
1406
  @generate_attached_cluster_install_manifest = ::Gapic::Config::Method.new generate_attached_cluster_install_manifest_config
1407
+ generate_attached_cluster_agent_token_config = parent_rpcs.generate_attached_cluster_agent_token if parent_rpcs.respond_to? :generate_attached_cluster_agent_token
1408
+ @generate_attached_cluster_agent_token = ::Gapic::Config::Method.new generate_attached_cluster_agent_token_config
1288
1409
 
1289
1410
  yield self if block_given?
1290
1411
  end