google-cloud-gke_multi_cloud-v1 0.1.0 → 0.3.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 +4 -4
- data/AUTHENTICATION.md +7 -7
- data/README.md +9 -9
- data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/client.rb +1289 -0
- data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/credentials.rb +47 -0
- data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/operations.rb +770 -0
- data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/paths.rb +86 -0
- data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters.rb +52 -0
- data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/client.rb +93 -51
- data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/operations.rb +3 -0
- data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters.rb +1 -1
- data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/client.rb +126 -75
- data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/operations.rb +3 -0
- data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters.rb +1 -1
- data/lib/google/cloud/gke_multi_cloud/v1/version.rb +1 -1
- data/lib/google/cloud/gke_multi_cloud/v1.rb +4 -3
- data/lib/google/cloud/gkemulticloud/v1/attached_resources_pb.rb +82 -0
- data/lib/google/cloud/gkemulticloud/v1/attached_service_pb.rb +84 -0
- data/lib/google/cloud/gkemulticloud/v1/attached_service_services_pb.rb +85 -0
- data/lib/google/cloud/gkemulticloud/v1/aws_resources_pb.rb +17 -0
- data/lib/google/cloud/gkemulticloud/v1/aws_service_services_pb.rb +19 -11
- data/lib/google/cloud/gkemulticloud/v1/azure_resources_pb.rb +11 -0
- data/lib/google/cloud/gkemulticloud/v1/azure_service_services_pb.rb +28 -17
- data/lib/google/cloud/gkemulticloud/v1/common_resources_pb.rb +10 -0
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/gkemulticloud/v1/attached_resources.rb +239 -0
- data/proto_docs/google/cloud/gkemulticloud/v1/attached_service.rb +294 -0
- data/proto_docs/google/cloud/gkemulticloud/v1/aws_resources.rb +86 -29
- data/proto_docs/google/cloud/gkemulticloud/v1/aws_service.rb +79 -44
- data/proto_docs/google/cloud/gkemulticloud/v1/azure_resources.rb +75 -37
- data/proto_docs/google/cloud/gkemulticloud/v1/azure_service.rb +105 -64
- data/proto_docs/google/cloud/gkemulticloud/v1/common_resources.rb +36 -3
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +24 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da80a219c1109e503f02010db3d68ba11315bd4adb426bea2954a6505d1c86ff
|
4
|
+
data.tar.gz: cafbc60120cf2b4e602440264664d88e6d460a4bb3449c4dacfb996425e1f9de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a95671e4cad369299277888f4e88fe56cccd5bbcde247f79ffd5f7ad715f0b797d7e2200bffa73bba5e9349b89736100d0ab5018d844fc3ab2694fd4e0d1708
|
7
|
+
data.tar.gz: 166374276b202431493e346ee23b84fdde4ba803df82ba3311d764d2707e6662fad4bb21a98b88a5332266eb329664a0e2836139bd9e1525ebf57bb2852a5620
|
data/AUTHENTICATION.md
CHANGED
@@ -27,7 +27,7 @@ export GOOGLE_CLOUD_CREDENTIALS=path/to/keyfile.json
|
|
27
27
|
```ruby
|
28
28
|
require "google/cloud/gke_multi_cloud/v1"
|
29
29
|
|
30
|
-
client = ::Google::Cloud::GkeMultiCloud::V1::
|
30
|
+
client = ::Google::Cloud::GkeMultiCloud::V1::AttachedClusters::Client.new
|
31
31
|
```
|
32
32
|
|
33
33
|
## Credential Lookup
|
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
|
|
64
64
|
|
65
65
|
The environment variables that google-cloud-gke_multi_cloud-v1
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
{::Google::Cloud::GkeMultiCloud::V1::
|
67
|
+
{::Google::Cloud::GkeMultiCloud::V1::AttachedClusters::Credentials}):
|
68
68
|
|
69
69
|
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
70
|
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
@@ -75,7 +75,7 @@ require "google/cloud/gke_multi_cloud/v1"
|
|
75
75
|
|
76
76
|
ENV["GOOGLE_CLOUD_CREDENTIALS"] = "path/to/keyfile.json"
|
77
77
|
|
78
|
-
client = ::Google::Cloud::GkeMultiCloud::V1::
|
78
|
+
client = ::Google::Cloud::GkeMultiCloud::V1::AttachedClusters::Client.new
|
79
79
|
```
|
80
80
|
|
81
81
|
### Configuration
|
@@ -86,7 +86,7 @@ it in an environment variable. Either on an individual client initialization:
|
|
86
86
|
```ruby
|
87
87
|
require "google/cloud/gke_multi_cloud/v1"
|
88
88
|
|
89
|
-
client = ::Google::Cloud::GkeMultiCloud::V1::
|
89
|
+
client = ::Google::Cloud::GkeMultiCloud::V1::AttachedClusters::Client.new do |config|
|
90
90
|
config.credentials = "path/to/keyfile.json"
|
91
91
|
end
|
92
92
|
```
|
@@ -96,11 +96,11 @@ Or globally for all clients:
|
|
96
96
|
```ruby
|
97
97
|
require "google/cloud/gke_multi_cloud/v1"
|
98
98
|
|
99
|
-
::Google::Cloud::GkeMultiCloud::V1::
|
99
|
+
::Google::Cloud::GkeMultiCloud::V1::AttachedClusters::Client.configure do |config|
|
100
100
|
config.credentials = "path/to/keyfile.json"
|
101
101
|
end
|
102
102
|
|
103
|
-
client = ::Google::Cloud::GkeMultiCloud::V1::
|
103
|
+
client = ::Google::Cloud::GkeMultiCloud::V1::AttachedClusters::Client.new
|
104
104
|
```
|
105
105
|
|
106
106
|
### Cloud SDK
|
@@ -112,7 +112,7 @@ credentials are discovered.
|
|
112
112
|
To configure your system for this, simply:
|
113
113
|
|
114
114
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
115
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
115
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
116
116
|
3. Write code as if already authenticated.
|
117
117
|
|
118
118
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -32,9 +32,9 @@ In order to use this library, you first need to go through the following steps:
|
|
32
32
|
```ruby
|
33
33
|
require "google/cloud/gke_multi_cloud/v1"
|
34
34
|
|
35
|
-
client = ::Google::Cloud::GkeMultiCloud::V1::
|
36
|
-
request = ::Google::Cloud::GkeMultiCloud::V1::
|
37
|
-
response = client.
|
35
|
+
client = ::Google::Cloud::GkeMultiCloud::V1::AttachedClusters::Client.new
|
36
|
+
request = ::Google::Cloud::GkeMultiCloud::V1::CreateAttachedClusterRequest.new # (request fields as keyword arguments...)
|
37
|
+
response = client.create_attached_cluster request
|
38
38
|
```
|
39
39
|
|
40
40
|
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-gke_multi_cloud-v1/latest)
|
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -76,14 +76,14 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
76
76
|
|
77
77
|
## Supported Ruby Versions
|
78
78
|
|
79
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
80
80
|
|
81
81
|
Google provides official support for Ruby versions that are actively supported
|
82
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
83
|
-
in security maintenance, and not end of life.
|
84
|
-
|
85
|
-
|
86
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
87
87
|
|
88
88
|
## Which client should I use?
|
89
89
|
|