google-cloud-scheduler 1.2.1 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +2 -1
- data/AUTHENTICATION.md +51 -59
- data/LICENSE.md +203 -0
- data/MIGRATING.md +321 -0
- data/README.md +36 -24
- data/lib/{google/cloud/scheduler/v1/doc/google/protobuf/empty.rb → google-cloud-scheduler.rb} +4 -14
- data/lib/google/cloud/scheduler.rb +88 -117
- data/lib/google/cloud/scheduler/version.rb +6 -2
- metadata +75 -74
- data/LICENSE +0 -201
- data/lib/google/cloud/scheduler/v1.rb +0 -147
- data/lib/google/cloud/scheduler/v1/cloud_scheduler_client.rb +0 -613
- data/lib/google/cloud/scheduler/v1/cloud_scheduler_client_config.json +0 -66
- data/lib/google/cloud/scheduler/v1/cloudscheduler_pb.rb +0 -65
- data/lib/google/cloud/scheduler/v1/cloudscheduler_services_pb.rb +0 -84
- data/lib/google/cloud/scheduler/v1/credentials.rb +0 -41
- data/lib/google/cloud/scheduler/v1/doc/google/cloud/scheduler/v1/cloudscheduler.rb +0 -124
- data/lib/google/cloud/scheduler/v1/doc/google/cloud/scheduler/v1/job.rb +0 -219
- data/lib/google/cloud/scheduler/v1/doc/google/cloud/scheduler/v1/target.rb +0 -336
- data/lib/google/cloud/scheduler/v1/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/scheduler/v1/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/scheduler/v1/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/scheduler/v1/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/scheduler/v1/doc/google/rpc/status.rb +0 -39
- data/lib/google/cloud/scheduler/v1/helpers.rb +0 -48
- data/lib/google/cloud/scheduler/v1/job_pb.rb +0 -58
- data/lib/google/cloud/scheduler/v1/target_pb.rb +0 -72
- data/lib/google/cloud/scheduler/v1beta1.rb +0 -147
- data/lib/google/cloud/scheduler/v1beta1/cloud_scheduler_client.rb +0 -610
- data/lib/google/cloud/scheduler/v1beta1/cloud_scheduler_client_config.json +0 -66
- data/lib/google/cloud/scheduler/v1beta1/cloudscheduler_pb.rb +0 -65
- data/lib/google/cloud/scheduler/v1beta1/cloudscheduler_services_pb.rb +0 -84
- data/lib/google/cloud/scheduler/v1beta1/credentials.rb +0 -41
- data/lib/google/cloud/scheduler/v1beta1/doc/google/cloud/scheduler/v1beta1/cloudscheduler.rb +0 -124
- data/lib/google/cloud/scheduler/v1beta1/doc/google/cloud/scheduler/v1beta1/job.rb +0 -221
- data/lib/google/cloud/scheduler/v1beta1/doc/google/cloud/scheduler/v1beta1/target.rb +0 -336
- data/lib/google/cloud/scheduler/v1beta1/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/scheduler/v1beta1/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/scheduler/v1beta1/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/scheduler/v1beta1/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/scheduler/v1beta1/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/scheduler/v1beta1/doc/google/rpc/status.rb +0 -39
- data/lib/google/cloud/scheduler/v1beta1/helpers.rb +0 -48
- data/lib/google/cloud/scheduler/v1beta1/job_pb.rb +0 -58
- data/lib/google/cloud/scheduler/v1beta1/target_pb.rb +0 -72
@@ -1,39 +0,0 @@
|
|
1
|
-
# Copyright 2020 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
|
-
|
16
|
-
module Google
|
17
|
-
module Rpc
|
18
|
-
# The `Status` type defines a logical error model that is suitable for
|
19
|
-
# different programming environments, including REST APIs and RPC APIs. It is
|
20
|
-
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
21
|
-
# three pieces of data: error code, error message, and error details.
|
22
|
-
#
|
23
|
-
# You can find out more about this error model and how to work with it in the
|
24
|
-
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
25
|
-
# @!attribute [rw] code
|
26
|
-
# @return [Integer]
|
27
|
-
# The status code, which should be an enum value of {Google::Rpc::Code}.
|
28
|
-
# @!attribute [rw] message
|
29
|
-
# @return [String]
|
30
|
-
# A developer-facing error message, which should be in English. Any
|
31
|
-
# user-facing error message should be localized and sent in the
|
32
|
-
# {Google::Rpc::Status#details} field, or localized by the client.
|
33
|
-
# @!attribute [rw] details
|
34
|
-
# @return [Array<Google::Protobuf::Any>]
|
35
|
-
# A list of messages that carry the error details. There is a common set of
|
36
|
-
# message types for APIs to use.
|
37
|
-
class Status; end
|
38
|
-
end
|
39
|
-
end
|
@@ -1,48 +0,0 @@
|
|
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 Cloud
|
17
|
-
module Scheduler
|
18
|
-
module V1beta1
|
19
|
-
class CloudSchedulerClient
|
20
|
-
|
21
|
-
# Alias for Google::Cloud::Scheduler::V1beta1::CloudSchedulerClient.job_path.
|
22
|
-
# @param project [String]
|
23
|
-
# @param location [String]
|
24
|
-
# @param job [String]
|
25
|
-
# @return [String]
|
26
|
-
def job_path project, location, job
|
27
|
-
self.class.job_path project, location, job
|
28
|
-
end
|
29
|
-
|
30
|
-
# Alias for Google::Cloud::Scheduler::V1beta1::CloudSchedulerClient.location_path.
|
31
|
-
# @param project [String]
|
32
|
-
# @param location [String]
|
33
|
-
# @return [String]
|
34
|
-
def location_path project, location
|
35
|
-
self.class.location_path project, location
|
36
|
-
end
|
37
|
-
|
38
|
-
# Alias for Google::Cloud::Scheduler::V1beta1::CloudSchedulerClient.project_path.
|
39
|
-
# @param project [String]
|
40
|
-
# @return [String]
|
41
|
-
def project_path project
|
42
|
-
self.class.project_path project
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
@@ -1,58 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/scheduler/v1beta1/job.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/resource_pb'
|
8
|
-
require 'google/cloud/scheduler/v1beta1/target_pb'
|
9
|
-
require 'google/protobuf/duration_pb'
|
10
|
-
require 'google/protobuf/timestamp_pb'
|
11
|
-
require 'google/rpc/status_pb'
|
12
|
-
require 'google/api/annotations_pb'
|
13
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
|
-
add_message "google.cloud.scheduler.v1beta1.Job" do
|
15
|
-
optional :name, :string, 1
|
16
|
-
optional :description, :string, 2
|
17
|
-
optional :schedule, :string, 20
|
18
|
-
optional :time_zone, :string, 21
|
19
|
-
optional :user_update_time, :message, 9, "google.protobuf.Timestamp"
|
20
|
-
optional :state, :enum, 10, "google.cloud.scheduler.v1beta1.Job.State"
|
21
|
-
optional :status, :message, 11, "google.rpc.Status"
|
22
|
-
optional :schedule_time, :message, 17, "google.protobuf.Timestamp"
|
23
|
-
optional :last_attempt_time, :message, 18, "google.protobuf.Timestamp"
|
24
|
-
optional :retry_config, :message, 19, "google.cloud.scheduler.v1beta1.RetryConfig"
|
25
|
-
optional :attempt_deadline, :message, 22, "google.protobuf.Duration"
|
26
|
-
oneof :target do
|
27
|
-
optional :pubsub_target, :message, 4, "google.cloud.scheduler.v1beta1.PubsubTarget"
|
28
|
-
optional :app_engine_http_target, :message, 5, "google.cloud.scheduler.v1beta1.AppEngineHttpTarget"
|
29
|
-
optional :http_target, :message, 6, "google.cloud.scheduler.v1beta1.HttpTarget"
|
30
|
-
end
|
31
|
-
end
|
32
|
-
add_enum "google.cloud.scheduler.v1beta1.Job.State" do
|
33
|
-
value :STATE_UNSPECIFIED, 0
|
34
|
-
value :ENABLED, 1
|
35
|
-
value :PAUSED, 2
|
36
|
-
value :DISABLED, 3
|
37
|
-
value :UPDATE_FAILED, 4
|
38
|
-
end
|
39
|
-
add_message "google.cloud.scheduler.v1beta1.RetryConfig" do
|
40
|
-
optional :retry_count, :int32, 1
|
41
|
-
optional :max_retry_duration, :message, 2, "google.protobuf.Duration"
|
42
|
-
optional :min_backoff_duration, :message, 3, "google.protobuf.Duration"
|
43
|
-
optional :max_backoff_duration, :message, 4, "google.protobuf.Duration"
|
44
|
-
optional :max_doublings, :int32, 5
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
module Google
|
49
|
-
module Cloud
|
50
|
-
module Scheduler
|
51
|
-
module V1beta1
|
52
|
-
Job = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.Job").msgclass
|
53
|
-
Job::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.Job.State").enummodule
|
54
|
-
RetryConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.RetryConfig").msgclass
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
@@ -1,72 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/scheduler/v1beta1/target.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/resource_pb'
|
8
|
-
require 'google/api/annotations_pb'
|
9
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
-
add_message "google.cloud.scheduler.v1beta1.HttpTarget" do
|
11
|
-
optional :uri, :string, 1
|
12
|
-
optional :http_method, :enum, 2, "google.cloud.scheduler.v1beta1.HttpMethod"
|
13
|
-
map :headers, :string, :string, 3
|
14
|
-
optional :body, :bytes, 4
|
15
|
-
oneof :authorization_header do
|
16
|
-
optional :oauth_token, :message, 5, "google.cloud.scheduler.v1beta1.OAuthToken"
|
17
|
-
optional :oidc_token, :message, 6, "google.cloud.scheduler.v1beta1.OidcToken"
|
18
|
-
end
|
19
|
-
end
|
20
|
-
add_message "google.cloud.scheduler.v1beta1.AppEngineHttpTarget" do
|
21
|
-
optional :http_method, :enum, 1, "google.cloud.scheduler.v1beta1.HttpMethod"
|
22
|
-
optional :app_engine_routing, :message, 2, "google.cloud.scheduler.v1beta1.AppEngineRouting"
|
23
|
-
optional :relative_uri, :string, 3
|
24
|
-
map :headers, :string, :string, 4
|
25
|
-
optional :body, :bytes, 5
|
26
|
-
end
|
27
|
-
add_message "google.cloud.scheduler.v1beta1.PubsubTarget" do
|
28
|
-
optional :topic_name, :string, 1
|
29
|
-
optional :data, :bytes, 3
|
30
|
-
map :attributes, :string, :string, 4
|
31
|
-
end
|
32
|
-
add_message "google.cloud.scheduler.v1beta1.AppEngineRouting" do
|
33
|
-
optional :service, :string, 1
|
34
|
-
optional :version, :string, 2
|
35
|
-
optional :instance, :string, 3
|
36
|
-
optional :host, :string, 4
|
37
|
-
end
|
38
|
-
add_message "google.cloud.scheduler.v1beta1.OAuthToken" do
|
39
|
-
optional :service_account_email, :string, 1
|
40
|
-
optional :scope, :string, 2
|
41
|
-
end
|
42
|
-
add_message "google.cloud.scheduler.v1beta1.OidcToken" do
|
43
|
-
optional :service_account_email, :string, 1
|
44
|
-
optional :audience, :string, 2
|
45
|
-
end
|
46
|
-
add_enum "google.cloud.scheduler.v1beta1.HttpMethod" do
|
47
|
-
value :HTTP_METHOD_UNSPECIFIED, 0
|
48
|
-
value :POST, 1
|
49
|
-
value :GET, 2
|
50
|
-
value :HEAD, 3
|
51
|
-
value :PUT, 4
|
52
|
-
value :DELETE, 5
|
53
|
-
value :PATCH, 6
|
54
|
-
value :OPTIONS, 7
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
module Google
|
59
|
-
module Cloud
|
60
|
-
module Scheduler
|
61
|
-
module V1beta1
|
62
|
-
HttpTarget = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.HttpTarget").msgclass
|
63
|
-
AppEngineHttpTarget = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.AppEngineHttpTarget").msgclass
|
64
|
-
PubsubTarget = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.PubsubTarget").msgclass
|
65
|
-
AppEngineRouting = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.AppEngineRouting").msgclass
|
66
|
-
OAuthToken = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.OAuthToken").msgclass
|
67
|
-
OidcToken = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.OidcToken").msgclass
|
68
|
-
HttpMethod = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.HttpMethod").enummodule
|
69
|
-
end
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|