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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +7 -7
  3. data/README.md +4 -4
  4. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/client.rb +1289 -0
  5. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/credentials.rb +47 -0
  6. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/operations.rb +770 -0
  7. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/paths.rb +86 -0
  8. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters.rb +52 -0
  9. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/client.rb +96 -54
  10. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters.rb +1 -1
  11. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/client.rb +133 -79
  12. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters.rb +1 -1
  13. data/lib/google/cloud/gke_multi_cloud/v1/version.rb +1 -1
  14. data/lib/google/cloud/gke_multi_cloud/v1.rb +4 -3
  15. data/lib/google/cloud/gkemulticloud/v1/attached_resources_pb.rb +82 -0
  16. data/lib/google/cloud/gkemulticloud/v1/attached_service_pb.rb +84 -0
  17. data/lib/google/cloud/gkemulticloud/v1/attached_service_services_pb.rb +85 -0
  18. data/lib/google/cloud/gkemulticloud/v1/aws_resources_pb.rb +17 -0
  19. data/lib/google/cloud/gkemulticloud/v1/aws_service_services_pb.rb +19 -11
  20. data/lib/google/cloud/gkemulticloud/v1/azure_resources_pb.rb +19 -0
  21. data/lib/google/cloud/gkemulticloud/v1/azure_service_services_pb.rb +28 -17
  22. data/lib/google/cloud/gkemulticloud/v1/common_resources_pb.rb +10 -0
  23. data/proto_docs/google/api/client.rb +318 -0
  24. data/proto_docs/google/api/launch_stage.rb +71 -0
  25. data/proto_docs/google/cloud/gkemulticloud/v1/attached_resources.rb +239 -0
  26. data/proto_docs/google/cloud/gkemulticloud/v1/attached_service.rb +294 -0
  27. data/proto_docs/google/cloud/gkemulticloud/v1/aws_resources.rb +87 -30
  28. data/proto_docs/google/cloud/gkemulticloud/v1/aws_service.rb +82 -47
  29. data/proto_docs/google/cloud/gkemulticloud/v1/azure_resources.rb +100 -41
  30. data/proto_docs/google/cloud/gkemulticloud/v1/azure_service.rb +112 -68
  31. data/proto_docs/google/cloud/gkemulticloud/v1/common_resources.rb +36 -3
  32. data/proto_docs/google/protobuf/empty.rb +0 -2
  33. data/proto_docs/google/rpc/status.rb +4 -2
  34. metadata +17 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08a3eacfe3a7cee02721f31df2193933d3af2d58c1ff924e31be5b75ed249fd2'
4
- data.tar.gz: 1ee8ab434d6350e01ea8fc60789e1123982d910beeba7d55c81934cb31ecfba2
3
+ metadata.gz: 0f04e1f6312ea97e79b92118f2af0ba06c598b425d9cfed41940f67b6c5a4edf
4
+ data.tar.gz: fa5a8b29e28d8c06b559b710bc9f454a41c0855ce8522d918fa2ba08f72d6660
5
5
  SHA512:
6
- metadata.gz: 308affd84b8cdd5b81f7c89912dafd4e4ba6b8e14fd1222573820bb07c6315f76a0def9fc698af7231d19b6cf91b758f088d2366da0c3f15a19d6f380bd5267e
7
- data.tar.gz: 23b8e37d25fcd2c62e932ea23028e9503a1fa5994b1bceab51d8c176ad046c7a5f1955d014074832582fa2f5e120e7cd875be2607dc4313f7e9d5aed4e1257a1
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::AwsClusters::Client.new
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::AwsClusters::Credentials}):
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::AwsClusters::Client.new
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::AwsClusters::Client.new do |config|
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::AwsClusters::Client.configure do |config|
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::AwsClusters::Client.new
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::AwsClusters::Client.new
36
- request = ::Google::Cloud::GkeMultiCloud::V1::CreateAwsClusterRequest.new # (request fields as keyword arguments...)
37
- response = client.create_aws_cluster request
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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
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.