google-cloud-tasks 0.1.0 → 0.2.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.
@@ -21,6 +21,9 @@ module Google
21
21
  # retry options, target types, and others.
22
22
  # @!attribute [rw] name
23
23
  # @return [String]
24
+ # Caller-specified and required in {Google::Cloud::Tasks::V2beta2::CloudTasks::CreateQueue CreateQueue},
25
+ # after which it becomes output only.
26
+ #
24
27
  # The queue name.
25
28
  #
26
29
  # The queue name must have the following format:
@@ -36,9 +39,6 @@ module Google
36
39
  # For more information, see https://cloud.google.com/about/locations/.
37
40
  # * +QUEUE_ID+ can contain letters ([A-Za-z]), numbers ([0-9]), or
38
41
  # hyphens (-). The maximum length is 100 characters.
39
- #
40
- # Caller-specified and required in {Google::Cloud::Tasks::V2beta2::CloudTasks::CreateQueue CreateQueue},
41
- # after which it becomes output only.
42
42
  # @!attribute [rw] app_engine_http_target
43
43
  # @return [Google::Cloud::Tasks::V2beta2::AppEngineHttpTarget]
44
44
  # App Engine HTTP target.
@@ -207,7 +207,7 @@ module Google
207
207
  # App service.
208
208
  #
209
209
  # By default, the task is sent to the service which is the default
210
- # service when the task is attempted ("default").
210
+ # service when the task is attempted.
211
211
  #
212
212
  # For some queues or tasks which were created using the App Engine
213
213
  # Task Queue API, {Google::Cloud::Tasks::V2beta2::AppEngineRouting#host host} is not parsable
@@ -225,7 +225,7 @@ module Google
225
225
  # App version.
226
226
  #
227
227
  # By default, the task is sent to the version which is the default
228
- # version when the task is attempted ("default").
228
+ # version when the task is attempted.
229
229
  #
230
230
  # For some queues or tasks which were created using the App Engine
231
231
  # Task Queue API, {Google::Cloud::Tasks::V2beta2::AppEngineRouting#host host} is not parsable
@@ -307,12 +307,6 @@ module Google
307
307
  # will be sent to an instance which is available when the task is
308
308
  # attempted.
309
309
  #
310
- # When {Google::Cloud::Tasks::V2beta2::AppEngineRouting#service service} is "default",
311
- # {Google::Cloud::Tasks::V2beta2::AppEngineRouting#version version} is "default", and
312
- # {Google::Cloud::Tasks::V2beta2::AppEngineRouting#instance instance} is empty,
313
- # {Google::Cloud::Tasks::V2beta2::AppEngineRouting#host host} is shortened to just the
314
- # +application_domain_name+.
315
- #
316
310
  # If {Google::Cloud::Tasks::V2beta2::AppEngineRouting#service service},
317
311
  # {Google::Cloud::Tasks::V2beta2::AppEngineRouting#version version}, or
318
312
  # {Google::Cloud::Tasks::V2beta2::AppEngineRouting#instance instance} is invalid, then the task
@@ -19,6 +19,8 @@ module Google
19
19
  # A unit of scheduled work.
20
20
  # @!attribute [rw] name
21
21
  # @return [String]
22
+ # Optionally caller-specified in {Google::Cloud::Tasks::V2beta2::CloudTasks::CreateTask CreateTask}.
23
+ #
22
24
  # The task name.
23
25
  #
24
26
  # The task name must have the following format:
@@ -36,8 +38,6 @@ module Google
36
38
  # hyphens (-). The maximum length is 100 characters.
37
39
  # * +TASK_ID+ can contain only letters ([A-Za-z]), numbers ([0-9]),
38
40
  # hyphens (-), or underscores (_). The maximum length is 500 characters.
39
- #
40
- # Optionally caller-specified in {Google::Cloud::Tasks::V2beta2::CloudTasks::CreateTask CreateTask}.
41
41
  # @!attribute [rw] app_engine_http_request
42
42
  # @return [Google::Cloud::Tasks::V2beta2::AppEngineHttpRequest]
43
43
  # App Engine HTTP request that is sent to the task's target. Can
@@ -0,0 +1,62 @@
1
+ # Copyright 2018 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Iam
17
+ module V1
18
+ # Request message for +SetIamPolicy+ method.
19
+ # @!attribute [rw] resource
20
+ # @return [String]
21
+ # REQUIRED: The resource for which the policy is being specified.
22
+ # +resource+ is usually specified as a path. For example, a Project
23
+ # resource is specified as +projects/{project}+.
24
+ # @!attribute [rw] policy
25
+ # @return [Google::Iam::V1::Policy]
26
+ # REQUIRED: The complete policy to be applied to the +resource+. The size of
27
+ # the policy is limited to a few 10s of KB. An empty policy is a
28
+ # valid policy but certain Cloud Platform services (such as Projects)
29
+ # might reject them.
30
+ class SetIamPolicyRequest; end
31
+
32
+ # Request message for +GetIamPolicy+ method.
33
+ # @!attribute [rw] resource
34
+ # @return [String]
35
+ # REQUIRED: The resource for which the policy is being requested.
36
+ # +resource+ is usually specified as a path. For example, a Project
37
+ # resource is specified as +projects/{project}+.
38
+ class GetIamPolicyRequest; end
39
+
40
+ # Request message for +TestIamPermissions+ method.
41
+ # @!attribute [rw] resource
42
+ # @return [String]
43
+ # REQUIRED: The resource for which the policy detail is being requested.
44
+ # +resource+ is usually specified as a path. For example, a Project
45
+ # resource is specified as +projects/{project}+.
46
+ # @!attribute [rw] permissions
47
+ # @return [Array<String>]
48
+ # The set of permissions to check for the +resource+. Permissions with
49
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
50
+ # information see
51
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
52
+ class TestIamPermissionsRequest; end
53
+
54
+ # Response message for +TestIamPermissions+ method.
55
+ # @!attribute [rw] permissions
56
+ # @return [Array<String>]
57
+ # A subset of +TestPermissionsRequest.permissions+ that the caller is
58
+ # allowed.
59
+ class TestIamPermissionsResponse; end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,28 @@
1
+ # Copyright 2018 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Protobuf
17
+ # A generic empty message that you can re-use to avoid defining duplicated
18
+ # empty messages in your APIs. A typical example is to use it as the request
19
+ # or the response type of an API method. For instance:
20
+ #
21
+ # service Foo {
22
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
23
+ # }
24
+ #
25
+ # The JSON representation for +Empty+ is empty JSON object +{}+.
26
+ class Empty; end
27
+ end
28
+ end
@@ -20,8 +20,7 @@ module Google
20
20
  # # Ruby Client for Cloud Tasks API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
21
21
  #
22
22
  # [Cloud Tasks API][Product Documentation]:
23
- # Manages the execution of large numbers of distributed requests. Cloud Tasks
24
- # is in Alpha.
23
+ # Manages the execution of large numbers of distributed requests.
25
24
  # - [Product Documentation][]
26
25
  #
27
26
  # ## Quick Start
@@ -30,7 +29,7 @@ module Google
30
29
  #
31
30
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
32
31
  # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
33
- # 3. [Enable the Cloud Tasks API.](https://console.cloud.google.com/apis/api/cloudtasks)
32
+ # 3. [Enable the Cloud Tasks API.](https://console.cloud.google.com/apis/api/tasks)
34
33
  # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
35
34
  #
36
35
  # ### Installation
@@ -44,8 +43,33 @@ module Google
44
43
  # - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
45
44
  # to see the full list of Cloud APIs that we cover.
46
45
  #
47
- # [Product Documentation]: https://cloud.google.com/cloudtasks
46
+ # [Product Documentation]: https://cloud.google.com/tasks
48
47
  #
48
+ # ## Enabling Logging
49
+ #
50
+ # To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
51
+ # The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
52
+ # or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
53
+ # that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
54
+ # and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
55
+ #
56
+ # Configuring a Ruby stdlib logger:
57
+ #
58
+ # ```ruby
59
+ # require "logger"
60
+ #
61
+ # module MyLogger
62
+ # LOGGER = Logger.new $stderr, level: Logger::WARN
63
+ # def logger
64
+ # LOGGER
65
+ # end
66
+ # end
67
+ #
68
+ # # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
69
+ # module GRPC
70
+ # extend MyLogger
71
+ # end
72
+ # ```
49
73
  #
50
74
  module Tasks
51
75
  module V2beta2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.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: 2018-05-30 00:00:00.000000000 Z
11
+ date: 2018-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -90,18 +90,21 @@ files:
90
90
  - LICENSE
91
91
  - README.md
92
92
  - lib/google/cloud/tasks.rb
93
- - lib/google/cloud/tasks/credentials.rb
94
93
  - lib/google/cloud/tasks/v2beta2.rb
95
94
  - lib/google/cloud/tasks/v2beta2/cloud_tasks_client.rb
96
95
  - lib/google/cloud/tasks/v2beta2/cloud_tasks_client_config.json
97
96
  - lib/google/cloud/tasks/v2beta2/cloudtasks_pb.rb
98
97
  - lib/google/cloud/tasks/v2beta2/cloudtasks_services_pb.rb
98
+ - lib/google/cloud/tasks/v2beta2/credentials.rb
99
+ - lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/cloudtasks.rb
99
100
  - lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/queue.rb
100
101
  - lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/target.rb
101
102
  - lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/task.rb
103
+ - lib/google/cloud/tasks/v2beta2/doc/google/iam/v1/iam_policy.rb
102
104
  - lib/google/cloud/tasks/v2beta2/doc/google/iam/v1/policy.rb
103
105
  - lib/google/cloud/tasks/v2beta2/doc/google/protobuf/any.rb
104
106
  - lib/google/cloud/tasks/v2beta2/doc/google/protobuf/duration.rb
107
+ - lib/google/cloud/tasks/v2beta2/doc/google/protobuf/empty.rb
105
108
  - lib/google/cloud/tasks/v2beta2/doc/google/protobuf/field_mask.rb
106
109
  - lib/google/cloud/tasks/v2beta2/doc/google/protobuf/timestamp.rb
107
110
  - lib/google/cloud/tasks/v2beta2/doc/google/rpc/status.rb