google-cloud-gke_multi_cloud-v1 0.2.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +7 -7
- data/README.md +4 -4
- 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 +96 -54
- 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 +133 -79
- 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 +19 -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 +87 -30
- data/proto_docs/google/cloud/gkemulticloud/v1/aws_service.rb +82 -47
- data/proto_docs/google/cloud/gkemulticloud/v1/azure_resources.rb +100 -41
- data/proto_docs/google/cloud/gkemulticloud/v1/azure_service.rb +112 -68
- 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 +17 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f04e1f6312ea97e79b92118f2af0ba06c598b425d9cfed41940f67b6c5a4edf
|
4
|
+
data.tar.gz: fa5a8b29e28d8c06b559b710bc9f454a41c0855ce8522d918fa2ba08f72d6660
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ba5a74176bdfdf87c174ab8465a42ac63123cad617d3f367cb23ed6722779f5c1e9644ede01a45d28bf31105848fb7661119fa42fd40569c9c01377cbd02b52
|
7
|
+
data.tar.gz: 27630b36ea801feed49e4248dd293541201a90129d07a7e1ee64d1d0a5ff35e8acf0a8c0d319288f5f057036f44d09b6deb92921c162ad6bea1433091f4c18bb
|
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.
|