google-cloud-gke_multi_cloud-v1 0.5.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/client.rb +135 -5
  3. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/operations.rb +10 -1
  4. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/rest/client.rb +1327 -0
  5. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/rest/operations.rb +870 -0
  6. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/rest/service_stub.rb +583 -0
  7. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/rest.rb +55 -0
  8. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters.rb +6 -0
  9. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/client.rb +470 -3
  10. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/operations.rb +10 -1
  11. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/rest/client.rb +2095 -0
  12. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/rest/operations.rb +870 -0
  13. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/rest/service_stub.rb +998 -0
  14. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/rest.rb +54 -0
  15. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters.rb +6 -0
  16. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/client.rb +334 -3
  17. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/operations.rb +10 -1
  18. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/rest/client.rb +2403 -0
  19. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/rest/operations.rb +870 -0
  20. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/rest/service_stub.rb +1175 -0
  21. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/rest.rb +54 -0
  22. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters.rb +6 -0
  23. data/lib/google/cloud/gke_multi_cloud/v1/rest.rb +39 -0
  24. data/lib/google/cloud/gke_multi_cloud/v1/version.rb +1 -1
  25. data/lib/google/cloud/gke_multi_cloud/v1.rb +5 -0
  26. data/lib/google/cloud/gkemulticloud/v1/attached_resources_pb.rb +4 -1
  27. data/lib/google/cloud/gkemulticloud/v1/attached_service_pb.rb +6 -2
  28. data/lib/google/cloud/gkemulticloud/v1/attached_service_services_pb.rb +2 -0
  29. data/lib/google/cloud/gkemulticloud/v1/aws_resources_pb.rb +10 -1
  30. data/lib/google/cloud/gkemulticloud/v1/aws_service_pb.rb +8 -1
  31. data/lib/google/cloud/gkemulticloud/v1/aws_service_services_pb.rb +18 -0
  32. data/lib/google/cloud/gkemulticloud/v1/azure_resources_pb.rb +7 -1
  33. data/lib/google/cloud/gkemulticloud/v1/azure_service_pb.rb +7 -1
  34. data/lib/google/cloud/gkemulticloud/v1/azure_service_services_pb.rb +11 -0
  35. data/lib/google/cloud/gkemulticloud/v1/common_resources_pb.rb +4 -1
  36. data/proto_docs/google/api/client.rb +13 -0
  37. data/proto_docs/google/api/field_behavior.rb +14 -0
  38. data/proto_docs/google/cloud/gkemulticloud/v1/attached_resources.rb +48 -2
  39. data/proto_docs/google/cloud/gkemulticloud/v1/attached_service.rb +55 -2
  40. data/proto_docs/google/cloud/gkemulticloud/v1/aws_resources.rb +181 -6
  41. data/proto_docs/google/cloud/gkemulticloud/v1/aws_service.rb +117 -0
  42. data/proto_docs/google/cloud/gkemulticloud/v1/azure_resources.rb +103 -6
  43. data/proto_docs/google/cloud/gkemulticloud/v1/azure_service.rb +80 -4
  44. data/proto_docs/google/cloud/gkemulticloud/v1/common_resources.rb +56 -0
  45. data/proto_docs/google/type/date.rb +53 -0
  46. metadata +19 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc02e5a425611aa5e2e1b4007e3f719af0a73c5b16af773e091ebd7c431c6311
4
- data.tar.gz: bd3cddc86c8ab48ae5c6b3e604200c0b388b7db45f7859b1ad0444dccedc9f27
3
+ metadata.gz: 33d790060021dc68aad275efdd67f8ed8191cf6039aa55cef10ef69ade0e962f
4
+ data.tar.gz: 55c5495abbae0fa324cf86b5ec1ef42e4cb752e1da8d298b5eef7a6a0aa243bc
5
5
  SHA512:
6
- metadata.gz: f6ad66bb563b588503204aed3650ccc23c78dd9ece2e7ab44dcfbe8b2e4bc8ba4c92fcf4445398e5c16c0342491d590c6ddcab87d55952bdc037966c98186547
7
- data.tar.gz: 974724d9cc213b20eaae2d191cff5b11d9113dd4ea522d86f3497f25cbea20749615f87451c91bccf88a3f0c9d357d9347457e17c12fb5d01e40a79398f8ddf6
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?
@@ -174,7 +179,8 @@ module Google
174
179
  credentials: credentials,
175
180
  endpoint: @config.endpoint,
176
181
  channel_args: @config.channel_args,
177
- interceptors: @config.interceptors
182
+ interceptors: @config.interceptors,
183
+ channel_pool_config: @config.channel_pool
178
184
  )
179
185
  end
180
186
 
@@ -339,12 +345,16 @@ module Google
339
345
  # fields from
340
346
  # {::Google::Cloud::GkeMultiCloud::V1::AttachedCluster AttachedCluster}:
341
347
  #
342
- # * `description`.
343
348
  # * `annotations`.
344
- # * `platform_version`.
349
+ # * `authorization.admin_groups`.
345
350
  # * `authorization.admin_users`.
351
+ # * `binary_authorization.evaluation_mode`.
352
+ # * `description`.
346
353
  # * `logging_config.component_config.enable_components`.
347
354
  # * `monitoring_config.managed_prometheus_config.enabled`.
355
+ # * `platform_version`.
356
+ # * `proxy_config.kubernetes_secret.name`.
357
+ # * `proxy_config.kubernetes_secret.namespace`.
348
358
  #
349
359
  # @yield [response, operation] Access the result along with the RPC operation
350
360
  # @yieldparam response [::Gapic::Operation]
@@ -440,7 +450,7 @@ module Google
440
450
  # @param options [::Gapic::CallOptions, ::Hash]
441
451
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
442
452
  #
443
- # @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)
444
454
  # Pass arguments to `import_attached_cluster` via keyword arguments. Note that at
445
455
  # least one keyword argument is required. To specify no parameters, or to keep all
446
456
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -468,6 +478,8 @@ module Google
468
478
  # Required. The Kubernetes distribution of the underlying attached cluster.
469
479
  #
470
480
  # Supported values: ["eks", "aks"].
481
+ # @param proxy_config [::Google::Cloud::GkeMultiCloud::V1::AttachedProxyConfig, ::Hash]
482
+ # Optional. Proxy configuration for outbound HTTP(S) traffic.
471
483
  #
472
484
  # @yield [response, operation] Access the result along with the RPC operation
473
485
  # @yieldparam response [::Gapic::Operation]
@@ -979,7 +991,7 @@ module Google
979
991
  # @param options [::Gapic::CallOptions, ::Hash]
980
992
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
981
993
  #
982
- # @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)
983
995
  # Pass arguments to `generate_attached_cluster_install_manifest` via keyword arguments. Note that at
984
996
  # least one keyword argument is required. To specify no parameters, or to keep all
985
997
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1015,6 +1027,8 @@ module Google
1015
1027
  # You can list all supported versions on a given Google Cloud region by
1016
1028
  # calling
1017
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.
1018
1032
  #
1019
1033
  # @yield [response, operation] Access the result along with the RPC operation
1020
1034
  # @yieldparam response [::Google::Cloud::GkeMultiCloud::V1::GenerateAttachedClusterInstallManifestResponse]
@@ -1080,6 +1094,107 @@ module Google
1080
1094
  raise ::Google::Cloud::Error.from_error(e)
1081
1095
  end
1082
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
+
1083
1198
  ##
1084
1199
  # Configuration class for the AttachedClusters API.
1085
1200
  #
@@ -1199,6 +1314,14 @@ module Google
1199
1314
  end
1200
1315
  end
1201
1316
 
1317
+ ##
1318
+ # Configuration for the channel pool
1319
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1320
+ #
1321
+ def channel_pool
1322
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1323
+ end
1324
+
1202
1325
  ##
1203
1326
  # Configuration RPC class for the AttachedClusters API.
1204
1327
  #
@@ -1257,6 +1380,11 @@ module Google
1257
1380
  # @return [::Gapic::Config::Method]
1258
1381
  #
1259
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
1260
1388
 
1261
1389
  # @private
1262
1390
  def initialize parent_rpcs = nil
@@ -1276,6 +1404,8 @@ module Google
1276
1404
  @get_attached_server_config = ::Gapic::Config::Method.new get_attached_server_config_config
1277
1405
  generate_attached_cluster_install_manifest_config = parent_rpcs.generate_attached_cluster_install_manifest if parent_rpcs.respond_to? :generate_attached_cluster_install_manifest
1278
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
1279
1409
 
1280
1410
  yield self if block_given?
1281
1411
  end
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #