google-cloud-tasks-v2beta2 0.5.0 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks/client.rb +510 -149
- data/lib/google/cloud/tasks/v2beta2/cloudtasks_pb.rb +2 -2
- data/lib/google/cloud/tasks/v2beta2/cloudtasks_services_pb.rb +1 -1
- data/lib/google/cloud/tasks/v2beta2/queue_pb.rb +2 -2
- data/lib/google/cloud/tasks/v2beta2/target_pb.rb +1 -1
- data/lib/google/cloud/tasks/v2beta2/task_pb.rb +2 -2
- data/lib/google/cloud/tasks/v2beta2/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/cloud/tasks/v2beta2/queue.rb +1 -1
- data/proto_docs/google/type/expr.rb +35 -12
- metadata +15 -10
- data/lib/google/cloud/tasks/v2beta2/old_target_pb.rb +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c6425492fc93141b47489785518863e32c8045eef88e95ea043ab52300c8243
|
4
|
+
data.tar.gz: 38542bfedf5785b1659a0bcac5e8dcb343f3d3ac2869d52b136a4c6b4325cc4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4d03039d18e6e78194f896d98f344ad4ede4c4c8ad9d194066ec36d3f44fa66fbd881eb7a11ebffaff461fad2194ae6f014245c9dbe989cf1cee0ac51ac8c01
|
7
|
+
data.tar.gz: 7c0f6935cfb36f8291ff20478b90352dc0fec24016454af9c10cf1226da1c18e1fe6005a59edce2f1062e34eedcbb4da5b0ccc237be1fd48c58c858e654734f7
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-tasks-v2beta2
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::Tasks::V2beta2::CloudTasks::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `TASKS_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `TASKS_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/tasks/v2beta2"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Tasks::V2beta2::CloudTasks::Client.new
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/tasks/v2beta2"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Tasks::V2beta2::CloudTasks::Client.new do |config|
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/tasks/v2beta2"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/tasks/v2beta2"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::Tasks::V2beta2::CloudTasks::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::Tasks::V2beta2::ListQueuesRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.list_queues request
|
38
38
|
```
|
39
39
|
|