google-cloud-gke_connect-gateway 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d472d6c6810a2b2e9b384e20de1b2d47013627e5638fd5bcec88bc9b8ddd39da
4
- data.tar.gz: f923f2911dc97755c2002aef6bcec2adc7f555bbebd14e3595f6d7b1544b09e4
3
+ metadata.gz: 2dc7fa6f11328119ad1f01bcdbae77d749575c95ddc98a9e1956836e15f0c481
4
+ data.tar.gz: 88a5ac151595839a6671e7adc39dd936d2938d642820aa12741d310f17212328
5
5
  SHA512:
6
- metadata.gz: 06e0b7e7549c0a28aaf9ec24f7e69ea4a0426cba902160ad1119e8c9c523ba37313d9d30fc566946b4c88d724ff39947fc112614a1624216edcbfaa94d6fa099
7
- data.tar.gz: 9678731a236911cea59b09dadfecc7f2d5994d60a5183549520b254416a301fc960939892e0a986feb618141907409555dfef54aeaa226cc3355b4bc3744cf2f
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.1"
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.1
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-09 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