google-cloud-gke_connect-gateway 1.0.0 → 1.1.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: 92d07aad92aabe96d62788b4a15577b3593438e1d5a85295b42286a94bf5f511
4
- data.tar.gz: 5f7ed10c355e5262650eb7fd1ad65adb46db68572d8ca20274f35789a6bfa7f0
3
+ metadata.gz: 2dc7fa6f11328119ad1f01bcdbae77d749575c95ddc98a9e1956836e15f0c481
4
+ data.tar.gz: 88a5ac151595839a6671e7adc39dd936d2938d642820aa12741d310f17212328
5
5
  SHA512:
6
- metadata.gz: 49919c10b881d3da673df8ec534e0908ba1a1e649b5ad3b58b0fb25b64978210357e3ccf73e552ad328aced36cf0109abdaa3dc5d6d9c9c24b6818fc46eb1f5a
7
- data.tar.gz: c685d35dd75dcad33ac8cf4a552fc67dd7ad53ca3655bc0e14ce7442e8118c2b63c7db8ae6f73c90b30aba7e191ea3f7e44d5267f5670486221c1b19c503b394
6
+ metadata.gz: df4709afe7a639e205d7633d5fcb332f71caf20019474300a05a663511a2e9bb051d7e24a54a15b6f0ec7cefd4ba53045bf2c2367fca1991a2ac6a8ac898a108
7
+ data.tar.gz: d996382ff1edd8fed089185107f9ed0669b1ca1f046a9ef42aad0f0207d791c543a9c8bbfab324d0481c5451a2c4b28a180e59e354726ac3d38e062217c04d35
data/AUTHENTICATION.md CHANGED
@@ -56,7 +56,7 @@ To configure a credentials file for an individual client initialization:
56
56
  ```ruby
57
57
  require "google/cloud/gke_connect/gateway"
58
58
 
59
- client = Google::Cloud::GkeConnect::Gateway.gateway_service do |config|
59
+ client = Google::Cloud::GkeConnect::Gateway.gateway_control do |config|
60
60
  config.credentials = "path/to/credentialfile.json"
61
61
  end
62
62
  ```
@@ -70,7 +70,7 @@ Google::Cloud::GkeConnect::Gateway.configure do |config|
70
70
  config.credentials = "path/to/credentialfile.json"
71
71
  end
72
72
 
73
- client = Google::Cloud::GkeConnect::Gateway.gateway_service
73
+ client = Google::Cloud::GkeConnect::Gateway.gateway_control
74
74
  ```
75
75
 
76
76
  ### Environment Variables
@@ -100,7 +100,7 @@ require "google/cloud/gke_connect/gateway"
100
100
 
101
101
  ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json"
102
102
 
103
- client = Google::Cloud::GkeConnect::Gateway.gateway_service
103
+ client = Google::Cloud::GkeConnect::Gateway.gateway_control
104
104
  ```
105
105
 
106
106
  ### Local ADC file
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module GkeConnect
23
23
  module Gateway
24
- VERSION = "1.0.0"
24
+ VERSION = "1.1.0"
25
25
  end
26
26
  end
27
27
  end
@@ -47,36 +47,32 @@ module Google
47
47
  module GkeConnect
48
48
  module Gateway
49
49
  ##
50
- # Create a new client object for GatewayService.
50
+ # Create a new client object for GatewayControl.
51
51
  #
52
52
  # By default, this returns an instance of
53
- # [Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-gke_connect-gateway-v1beta1/latest/Google-Cloud-GkeConnect-Gateway-V1beta1-GatewayService-Client)
53
+ # [Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayControl::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-gke_connect-gateway-v1beta1/latest/Google-Cloud-GkeConnect-Gateway-V1beta1-GatewayControl-Client)
54
54
  # for a gRPC client for version V1beta1 of the API.
55
55
  # However, you can specify a different API version by passing it in the
56
- # `version` parameter. If the GatewayService service is
56
+ # `version` parameter. If the GatewayControl service is
57
57
  # supported by that API version, and the corresponding gem is available, the
58
58
  # appropriate versioned client will be returned.
59
59
  #
60
- # ## About GatewayService
60
+ # ## About GatewayControl
61
61
  #
62
- # Gateway service is a public API which works as a Kubernetes resource model
63
- # proxy between end users and registered Kubernetes clusters. Each RPC in this
64
- # service matches with an HTTP verb. End user will initiate kubectl commands
65
- # against the Gateway service, and Gateway service will forward user requests
66
- # to clusters.
62
+ # GatewayControl is the control plane API for Connect Gateway.
67
63
  #
68
64
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
69
65
  # Defaults to `:v1beta1`.
70
66
  # @return [::Object] A client object for the specified version.
71
67
  #
72
- def self.gateway_service version: :v1beta1, &block
68
+ def self.gateway_control version: :v1beta1, &block
73
69
  require "google/cloud/gke_connect/gateway/#{version.to_s.downcase}"
74
70
 
75
71
  package_name = Google::Cloud::GkeConnect::Gateway
76
72
  .constants
77
73
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
78
74
  .first
79
- service_module = Google::Cloud::GkeConnect::Gateway.const_get(package_name).const_get(:GatewayService)
75
+ service_module = Google::Cloud::GkeConnect::Gateway.const_get(package_name).const_get(:GatewayControl)
80
76
  service_module.const_get(:Client).new(&block)
81
77
  end
82
78
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-gke_connect-gateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.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: 2024-08-05 00:00:00.000000000 Z
11
+ date: 2024-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core