google-cloud-scheduler 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +9 -0
- data/LICENSE +201 -0
- data/README.md +68 -0
- data/lib/google/cloud/scheduler.rb +141 -0
- data/lib/google/cloud/scheduler/v1beta1.rb +139 -0
- data/lib/google/cloud/scheduler/v1beta1/cloud_scheduler_client.rb +609 -0
- data/lib/google/cloud/scheduler/v1beta1/cloud_scheduler_client_config.json +66 -0
- data/lib/google/cloud/scheduler/v1beta1/cloudscheduler_pb.rb +62 -0
- data/lib/google/cloud/scheduler/v1beta1/cloudscheduler_services_pb.rb +84 -0
- data/lib/google/cloud/scheduler/v1beta1/credentials.rb +41 -0
- data/lib/google/cloud/scheduler/v1beta1/doc/google/cloud/scheduler/v1beta1/cloudscheduler.rb +142 -0
- data/lib/google/cloud/scheduler/v1beta1/doc/google/cloud/scheduler/v1beta1/job.rb +199 -0
- data/lib/google/cloud/scheduler/v1beta1/doc/google/cloud/scheduler/v1beta1/target.rb +280 -0
- data/lib/google/cloud/scheduler/v1beta1/doc/google/protobuf/any.rb +130 -0
- data/lib/google/cloud/scheduler/v1beta1/doc/google/protobuf/duration.rb +91 -0
- data/lib/google/cloud/scheduler/v1beta1/doc/google/protobuf/empty.rb +29 -0
- data/lib/google/cloud/scheduler/v1beta1/doc/google/protobuf/field_mask.rb +230 -0
- data/lib/google/cloud/scheduler/v1beta1/doc/google/protobuf/timestamp.rb +109 -0
- data/lib/google/cloud/scheduler/v1beta1/doc/google/rpc/status.rb +84 -0
- data/lib/google/cloud/scheduler/v1beta1/helpers.rb +48 -0
- data/lib/google/cloud/scheduler/v1beta1/job_pb.rb +56 -0
- data/lib/google/cloud/scheduler/v1beta1/target_pb.rb +58 -0
- metadata +149 -0
@@ -0,0 +1,48 @@
|
|
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.project_path.
|
31
|
+
# @param project [String]
|
32
|
+
# @return [String]
|
33
|
+
def project_path project
|
34
|
+
self.class.project_path project
|
35
|
+
end
|
36
|
+
|
37
|
+
# Alias for Google::Cloud::Scheduler::V1beta1::CloudSchedulerClient.location_path.
|
38
|
+
# @param project [String]
|
39
|
+
# @param location [String]
|
40
|
+
# @return [String]
|
41
|
+
def location_path project, location
|
42
|
+
self.class.location_path project, location
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,56 @@
|
|
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/annotations_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
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
+
add_message "google.cloud.scheduler.v1beta1.Job" do
|
14
|
+
optional :name, :string, 1
|
15
|
+
optional :description, :string, 2
|
16
|
+
optional :schedule, :string, 20
|
17
|
+
optional :time_zone, :string, 21
|
18
|
+
optional :user_update_time, :message, 9, "google.protobuf.Timestamp"
|
19
|
+
optional :state, :enum, 10, "google.cloud.scheduler.v1beta1.Job.State"
|
20
|
+
optional :status, :message, 11, "google.rpc.Status"
|
21
|
+
optional :schedule_time, :message, 17, "google.protobuf.Timestamp"
|
22
|
+
optional :last_attempt_time, :message, 18, "google.protobuf.Timestamp"
|
23
|
+
optional :retry_config, :message, 19, "google.cloud.scheduler.v1beta1.RetryConfig"
|
24
|
+
oneof :target do
|
25
|
+
optional :pubsub_target, :message, 4, "google.cloud.scheduler.v1beta1.PubsubTarget"
|
26
|
+
optional :app_engine_http_target, :message, 5, "google.cloud.scheduler.v1beta1.AppEngineHttpTarget"
|
27
|
+
optional :http_target, :message, 6, "google.cloud.scheduler.v1beta1.HttpTarget"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
add_enum "google.cloud.scheduler.v1beta1.Job.State" do
|
31
|
+
value :STATE_UNSPECIFIED, 0
|
32
|
+
value :ENABLED, 1
|
33
|
+
value :PAUSED, 2
|
34
|
+
value :DISABLED, 3
|
35
|
+
value :UPDATE_FAILED, 4
|
36
|
+
end
|
37
|
+
add_message "google.cloud.scheduler.v1beta1.RetryConfig" do
|
38
|
+
optional :retry_count, :int32, 1
|
39
|
+
optional :max_retry_duration, :message, 2, "google.protobuf.Duration"
|
40
|
+
optional :min_backoff_duration, :message, 3, "google.protobuf.Duration"
|
41
|
+
optional :max_backoff_duration, :message, 4, "google.protobuf.Duration"
|
42
|
+
optional :max_doublings, :int32, 5
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
module Google
|
47
|
+
module Cloud
|
48
|
+
module Scheduler
|
49
|
+
module V1beta1
|
50
|
+
Job = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.Job").msgclass
|
51
|
+
Job::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.Job.State").enummodule
|
52
|
+
RetryConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.RetryConfig").msgclass
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,58 @@
|
|
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/annotations_pb'
|
8
|
+
require 'google/protobuf/any_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
|
+
end
|
16
|
+
add_message "google.cloud.scheduler.v1beta1.AppEngineHttpTarget" do
|
17
|
+
optional :http_method, :enum, 1, "google.cloud.scheduler.v1beta1.HttpMethod"
|
18
|
+
optional :app_engine_routing, :message, 2, "google.cloud.scheduler.v1beta1.AppEngineRouting"
|
19
|
+
optional :relative_uri, :string, 3
|
20
|
+
map :headers, :string, :string, 4
|
21
|
+
optional :body, :bytes, 5
|
22
|
+
end
|
23
|
+
add_message "google.cloud.scheduler.v1beta1.PubsubTarget" do
|
24
|
+
optional :topic_name, :string, 1
|
25
|
+
optional :data, :bytes, 3
|
26
|
+
map :attributes, :string, :string, 4
|
27
|
+
end
|
28
|
+
add_message "google.cloud.scheduler.v1beta1.AppEngineRouting" do
|
29
|
+
optional :service, :string, 1
|
30
|
+
optional :version, :string, 2
|
31
|
+
optional :instance, :string, 3
|
32
|
+
optional :host, :string, 4
|
33
|
+
end
|
34
|
+
add_enum "google.cloud.scheduler.v1beta1.HttpMethod" do
|
35
|
+
value :HTTP_METHOD_UNSPECIFIED, 0
|
36
|
+
value :POST, 1
|
37
|
+
value :GET, 2
|
38
|
+
value :HEAD, 3
|
39
|
+
value :PUT, 4
|
40
|
+
value :DELETE, 5
|
41
|
+
value :PATCH, 6
|
42
|
+
value :OPTIONS, 7
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
module Google
|
47
|
+
module Cloud
|
48
|
+
module Scheduler
|
49
|
+
module V1beta1
|
50
|
+
HttpTarget = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.HttpTarget").msgclass
|
51
|
+
AppEngineHttpTarget = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.AppEngineHttpTarget").msgclass
|
52
|
+
PubsubTarget = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.PubsubTarget").msgclass
|
53
|
+
AppEngineRouting = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.AppEngineRouting").msgclass
|
54
|
+
HttpMethod = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.HttpMethod").enummodule
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
metadata
ADDED
@@ -0,0 +1,149 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: google-cloud-scheduler
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Google LLC
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-12-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: google-gax
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: minitest
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5.10'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '5.10'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: redcarpet
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.59.2
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.59.2
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: simplecov
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.9'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.9'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: yard
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.9'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.9'
|
97
|
+
description: google-cloud-scheduler is the official library for Cloud Scheduler API.
|
98
|
+
email: googleapis-packages@google.com
|
99
|
+
executables: []
|
100
|
+
extensions: []
|
101
|
+
extra_rdoc_files: []
|
102
|
+
files:
|
103
|
+
- ".yardopts"
|
104
|
+
- LICENSE
|
105
|
+
- README.md
|
106
|
+
- lib/google/cloud/scheduler.rb
|
107
|
+
- lib/google/cloud/scheduler/v1beta1.rb
|
108
|
+
- lib/google/cloud/scheduler/v1beta1/cloud_scheduler_client.rb
|
109
|
+
- lib/google/cloud/scheduler/v1beta1/cloud_scheduler_client_config.json
|
110
|
+
- lib/google/cloud/scheduler/v1beta1/cloudscheduler_pb.rb
|
111
|
+
- lib/google/cloud/scheduler/v1beta1/cloudscheduler_services_pb.rb
|
112
|
+
- lib/google/cloud/scheduler/v1beta1/credentials.rb
|
113
|
+
- lib/google/cloud/scheduler/v1beta1/doc/google/cloud/scheduler/v1beta1/cloudscheduler.rb
|
114
|
+
- lib/google/cloud/scheduler/v1beta1/doc/google/cloud/scheduler/v1beta1/job.rb
|
115
|
+
- lib/google/cloud/scheduler/v1beta1/doc/google/cloud/scheduler/v1beta1/target.rb
|
116
|
+
- lib/google/cloud/scheduler/v1beta1/doc/google/protobuf/any.rb
|
117
|
+
- lib/google/cloud/scheduler/v1beta1/doc/google/protobuf/duration.rb
|
118
|
+
- lib/google/cloud/scheduler/v1beta1/doc/google/protobuf/empty.rb
|
119
|
+
- lib/google/cloud/scheduler/v1beta1/doc/google/protobuf/field_mask.rb
|
120
|
+
- lib/google/cloud/scheduler/v1beta1/doc/google/protobuf/timestamp.rb
|
121
|
+
- lib/google/cloud/scheduler/v1beta1/doc/google/rpc/status.rb
|
122
|
+
- lib/google/cloud/scheduler/v1beta1/helpers.rb
|
123
|
+
- lib/google/cloud/scheduler/v1beta1/job_pb.rb
|
124
|
+
- lib/google/cloud/scheduler/v1beta1/target_pb.rb
|
125
|
+
homepage: https://github.com/googleapis/googleapis
|
126
|
+
licenses:
|
127
|
+
- Apache-2.0
|
128
|
+
metadata: {}
|
129
|
+
post_install_message:
|
130
|
+
rdoc_options: []
|
131
|
+
require_paths:
|
132
|
+
- lib
|
133
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: 2.0.0
|
138
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
|
+
requirements:
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0'
|
143
|
+
requirements: []
|
144
|
+
rubyforge_project:
|
145
|
+
rubygems_version: 2.7.7
|
146
|
+
signing_key:
|
147
|
+
specification_version: 4
|
148
|
+
summary: API Client library for Cloud Scheduler API
|
149
|
+
test_files: []
|