Documentation ¶
Index ¶
- Variables
- func RegisterCloudSchedulerServer(s *grpc.Server, srv CloudSchedulerServer)
- type AppEngineHttpTarget
- func (*AppEngineHttpTarget) Descriptor() ([]byte, []int)
- func (m *AppEngineHttpTarget) GetAppEngineRouting() *AppEngineRouting
- func (m *AppEngineHttpTarget) GetBody() []byte
- func (m *AppEngineHttpTarget) GetHeaders() map[string]string
- func (m *AppEngineHttpTarget) GetHttpMethod() HttpMethod
- func (m *AppEngineHttpTarget) GetRelativeUri() string
- func (*AppEngineHttpTarget) ProtoMessage()
- func (m *AppEngineHttpTarget) Reset()
- func (m *AppEngineHttpTarget) String() string
- func (m *AppEngineHttpTarget) XXX_DiscardUnknown()
- func (m *AppEngineHttpTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AppEngineHttpTarget) XXX_Merge(src proto.Message)
- func (m *AppEngineHttpTarget) XXX_Size() int
- func (m *AppEngineHttpTarget) XXX_Unmarshal(b []byte) error
- type AppEngineRouting
- func (*AppEngineRouting) Descriptor() ([]byte, []int)
- func (m *AppEngineRouting) GetHost() string
- func (m *AppEngineRouting) GetInstance() string
- func (m *AppEngineRouting) GetService() string
- func (m *AppEngineRouting) GetVersion() string
- func (*AppEngineRouting) ProtoMessage()
- func (m *AppEngineRouting) Reset()
- func (m *AppEngineRouting) String() string
- func (m *AppEngineRouting) XXX_DiscardUnknown()
- func (m *AppEngineRouting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AppEngineRouting) XXX_Merge(src proto.Message)
- func (m *AppEngineRouting) XXX_Size() int
- func (m *AppEngineRouting) XXX_Unmarshal(b []byte) error
- type CloudSchedulerClient
- type CloudSchedulerServer
- type CreateJobRequest
- func (*CreateJobRequest) Descriptor() ([]byte, []int)
- func (m *CreateJobRequest) GetJob() *Job
- func (m *CreateJobRequest) GetParent() string
- func (*CreateJobRequest) ProtoMessage()
- func (m *CreateJobRequest) Reset()
- func (m *CreateJobRequest) String() string
- func (m *CreateJobRequest) XXX_DiscardUnknown()
- func (m *CreateJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateJobRequest) XXX_Merge(src proto.Message)
- func (m *CreateJobRequest) XXX_Size() int
- func (m *CreateJobRequest) XXX_Unmarshal(b []byte) error
- type DeleteJobRequest
- func (*DeleteJobRequest) Descriptor() ([]byte, []int)
- func (m *DeleteJobRequest) GetName() string
- func (*DeleteJobRequest) ProtoMessage()
- func (m *DeleteJobRequest) Reset()
- func (m *DeleteJobRequest) String() string
- func (m *DeleteJobRequest) XXX_DiscardUnknown()
- func (m *DeleteJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteJobRequest) XXX_Merge(src proto.Message)
- func (m *DeleteJobRequest) XXX_Size() int
- func (m *DeleteJobRequest) XXX_Unmarshal(b []byte) error
- type GetJobRequest
- func (*GetJobRequest) Descriptor() ([]byte, []int)
- func (m *GetJobRequest) GetName() string
- func (*GetJobRequest) ProtoMessage()
- func (m *GetJobRequest) Reset()
- func (m *GetJobRequest) String() string
- func (m *GetJobRequest) XXX_DiscardUnknown()
- func (m *GetJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetJobRequest) XXX_Merge(src proto.Message)
- func (m *GetJobRequest) XXX_Size() int
- func (m *GetJobRequest) XXX_Unmarshal(b []byte) error
- type HttpMethod
- type HttpTarget
- func (*HttpTarget) Descriptor() ([]byte, []int)
- func (m *HttpTarget) GetAuthorizationHeader() isHttpTarget_AuthorizationHeader
- func (m *HttpTarget) GetBody() []byte
- func (m *HttpTarget) GetHeaders() map[string]string
- func (m *HttpTarget) GetHttpMethod() HttpMethod
- func (m *HttpTarget) GetOauthToken() *OAuthToken
- func (m *HttpTarget) GetOidcToken() *OidcToken
- func (m *HttpTarget) GetUri() string
- func (*HttpTarget) ProtoMessage()
- func (m *HttpTarget) Reset()
- func (m *HttpTarget) String() string
- func (m *HttpTarget) XXX_DiscardUnknown()
- func (m *HttpTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HttpTarget) XXX_Merge(src proto.Message)
- func (*HttpTarget) XXX_OneofWrappers() []interface{}
- func (m *HttpTarget) XXX_Size() int
- func (m *HttpTarget) XXX_Unmarshal(b []byte) error
- type HttpTarget_OauthToken
- type HttpTarget_OidcToken
- type Job
- func (*Job) Descriptor() ([]byte, []int)
- func (m *Job) GetAppEngineHttpTarget() *AppEngineHttpTarget
- func (m *Job) GetAttemptDeadline() *duration.Duration
- func (m *Job) GetDescription() string
- func (m *Job) GetHttpTarget() *HttpTarget
- func (m *Job) GetLastAttemptTime() *timestamp.Timestamp
- func (m *Job) GetName() string
- func (m *Job) GetPubsubTarget() *PubsubTarget
- func (m *Job) GetRetryConfig() *RetryConfig
- func (m *Job) GetSchedule() string
- func (m *Job) GetScheduleTime() *timestamp.Timestamp
- func (m *Job) GetState() Job_State
- func (m *Job) GetStatus() *status.Status
- func (m *Job) GetTarget() isJob_Target
- func (m *Job) GetTimeZone() string
- func (m *Job) GetUserUpdateTime() *timestamp.Timestamp
- func (*Job) ProtoMessage()
- func (m *Job) Reset()
- func (m *Job) String() string
- func (m *Job) XXX_DiscardUnknown()
- func (m *Job) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Job) XXX_Merge(src proto.Message)
- func (*Job) XXX_OneofWrappers() []interface{}
- func (m *Job) XXX_Size() int
- func (m *Job) XXX_Unmarshal(b []byte) error
- type Job_AppEngineHttpTarget
- type Job_HttpTarget
- type Job_PubsubTarget
- type Job_State
- type ListJobsRequest
- func (*ListJobsRequest) Descriptor() ([]byte, []int)
- func (m *ListJobsRequest) GetPageSize() int32
- func (m *ListJobsRequest) GetPageToken() string
- func (m *ListJobsRequest) GetParent() string
- func (*ListJobsRequest) ProtoMessage()
- func (m *ListJobsRequest) Reset()
- func (m *ListJobsRequest) String() string
- func (m *ListJobsRequest) XXX_DiscardUnknown()
- func (m *ListJobsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListJobsRequest) XXX_Merge(src proto.Message)
- func (m *ListJobsRequest) XXX_Size() int
- func (m *ListJobsRequest) XXX_Unmarshal(b []byte) error
- type ListJobsResponse
- func (*ListJobsResponse) Descriptor() ([]byte, []int)
- func (m *ListJobsResponse) GetJobs() []*Job
- func (m *ListJobsResponse) GetNextPageToken() string
- func (*ListJobsResponse) ProtoMessage()
- func (m *ListJobsResponse) Reset()
- func (m *ListJobsResponse) String() string
- func (m *ListJobsResponse) XXX_DiscardUnknown()
- func (m *ListJobsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListJobsResponse) XXX_Merge(src proto.Message)
- func (m *ListJobsResponse) XXX_Size() int
- func (m *ListJobsResponse) XXX_Unmarshal(b []byte) error
- type OAuthToken
- func (*OAuthToken) Descriptor() ([]byte, []int)
- func (m *OAuthToken) GetScope() string
- func (m *OAuthToken) GetServiceAccountEmail() string
- func (*OAuthToken) ProtoMessage()
- func (m *OAuthToken) Reset()
- func (m *OAuthToken) String() string
- func (m *OAuthToken) XXX_DiscardUnknown()
- func (m *OAuthToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OAuthToken) XXX_Merge(src proto.Message)
- func (m *OAuthToken) XXX_Size() int
- func (m *OAuthToken) XXX_Unmarshal(b []byte) error
- type OidcToken
- func (*OidcToken) Descriptor() ([]byte, []int)
- func (m *OidcToken) GetAudience() string
- func (m *OidcToken) GetServiceAccountEmail() string
- func (*OidcToken) ProtoMessage()
- func (m *OidcToken) Reset()
- func (m *OidcToken) String() string
- func (m *OidcToken) XXX_DiscardUnknown()
- func (m *OidcToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OidcToken) XXX_Merge(src proto.Message)
- func (m *OidcToken) XXX_Size() int
- func (m *OidcToken) XXX_Unmarshal(b []byte) error
- type PauseJobRequest
- func (*PauseJobRequest) Descriptor() ([]byte, []int)
- func (m *PauseJobRequest) GetName() string
- func (*PauseJobRequest) ProtoMessage()
- func (m *PauseJobRequest) Reset()
- func (m *PauseJobRequest) String() string
- func (m *PauseJobRequest) XXX_DiscardUnknown()
- func (m *PauseJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PauseJobRequest) XXX_Merge(src proto.Message)
- func (m *PauseJobRequest) XXX_Size() int
- func (m *PauseJobRequest) XXX_Unmarshal(b []byte) error
- type PubsubTarget
- func (*PubsubTarget) Descriptor() ([]byte, []int)
- func (m *PubsubTarget) GetAttributes() map[string]string
- func (m *PubsubTarget) GetData() []byte
- func (m *PubsubTarget) GetTopicName() string
- func (*PubsubTarget) ProtoMessage()
- func (m *PubsubTarget) Reset()
- func (m *PubsubTarget) String() string
- func (m *PubsubTarget) XXX_DiscardUnknown()
- func (m *PubsubTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PubsubTarget) XXX_Merge(src proto.Message)
- func (m *PubsubTarget) XXX_Size() int
- func (m *PubsubTarget) XXX_Unmarshal(b []byte) error
- type ResumeJobRequest
- func (*ResumeJobRequest) Descriptor() ([]byte, []int)
- func (m *ResumeJobRequest) GetName() string
- func (*ResumeJobRequest) ProtoMessage()
- func (m *ResumeJobRequest) Reset()
- func (m *ResumeJobRequest) String() string
- func (m *ResumeJobRequest) XXX_DiscardUnknown()
- func (m *ResumeJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResumeJobRequest) XXX_Merge(src proto.Message)
- func (m *ResumeJobRequest) XXX_Size() int
- func (m *ResumeJobRequest) XXX_Unmarshal(b []byte) error
- type RetryConfig
- func (*RetryConfig) Descriptor() ([]byte, []int)
- func (m *RetryConfig) GetMaxBackoffDuration() *duration.Duration
- func (m *RetryConfig) GetMaxDoublings() int32
- func (m *RetryConfig) GetMaxRetryDuration() *duration.Duration
- func (m *RetryConfig) GetMinBackoffDuration() *duration.Duration
- func (m *RetryConfig) GetRetryCount() int32
- func (*RetryConfig) ProtoMessage()
- func (m *RetryConfig) Reset()
- func (m *RetryConfig) String() string
- func (m *RetryConfig) XXX_DiscardUnknown()
- func (m *RetryConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RetryConfig) XXX_Merge(src proto.Message)
- func (m *RetryConfig) XXX_Size() int
- func (m *RetryConfig) XXX_Unmarshal(b []byte) error
- type RunJobRequest
- func (*RunJobRequest) Descriptor() ([]byte, []int)
- func (m *RunJobRequest) GetName() string
- func (*RunJobRequest) ProtoMessage()
- func (m *RunJobRequest) Reset()
- func (m *RunJobRequest) String() string
- func (m *RunJobRequest) XXX_DiscardUnknown()
- func (m *RunJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RunJobRequest) XXX_Merge(src proto.Message)
- func (m *RunJobRequest) XXX_Size() int
- func (m *RunJobRequest) XXX_Unmarshal(b []byte) error
- type UnimplementedCloudSchedulerServer
- func (*UnimplementedCloudSchedulerServer) CreateJob(ctx context.Context, req *CreateJobRequest) (*Job, error)
- func (*UnimplementedCloudSchedulerServer) DeleteJob(ctx context.Context, req *DeleteJobRequest) (*empty.Empty, error)
- func (*UnimplementedCloudSchedulerServer) GetJob(ctx context.Context, req *GetJobRequest) (*Job, error)
- func (*UnimplementedCloudSchedulerServer) ListJobs(ctx context.Context, req *ListJobsRequest) (*ListJobsResponse, error)
- func (*UnimplementedCloudSchedulerServer) PauseJob(ctx context.Context, req *PauseJobRequest) (*Job, error)
- func (*UnimplementedCloudSchedulerServer) ResumeJob(ctx context.Context, req *ResumeJobRequest) (*Job, error)
- func (*UnimplementedCloudSchedulerServer) RunJob(ctx context.Context, req *RunJobRequest) (*Job, error)
- func (*UnimplementedCloudSchedulerServer) UpdateJob(ctx context.Context, req *UpdateJobRequest) (*Job, error)
- type UpdateJobRequest
- func (*UpdateJobRequest) Descriptor() ([]byte, []int)
- func (m *UpdateJobRequest) GetJob() *Job
- func (m *UpdateJobRequest) GetUpdateMask() *field_mask.FieldMask
- func (*UpdateJobRequest) ProtoMessage()
- func (m *UpdateJobRequest) Reset()
- func (m *UpdateJobRequest) String() string
- func (m *UpdateJobRequest) XXX_DiscardUnknown()
- func (m *UpdateJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateJobRequest) XXX_Merge(src proto.Message)
- func (m *UpdateJobRequest) XXX_Size() int
- func (m *UpdateJobRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var HttpMethod_name = map[int32]string{
0: "HTTP_METHOD_UNSPECIFIED",
1: "POST",
2: "GET",
3: "HEAD",
4: "PUT",
5: "DELETE",
6: "PATCH",
7: "OPTIONS",
}
var HttpMethod_value = map[string]int32{
"HTTP_METHOD_UNSPECIFIED": 0,
"POST": 1,
"GET": 2,
"HEAD": 3,
"PUT": 4,
"DELETE": 5,
"PATCH": 6,
"OPTIONS": 7,
}
var Job_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "ENABLED",
2: "PAUSED",
3: "DISABLED",
4: "UPDATE_FAILED",
}
var Job_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"ENABLED": 1,
"PAUSED": 2,
"DISABLED": 3,
"UPDATE_FAILED": 4,
}
Functions ¶
func RegisterCloudSchedulerServer ¶
func RegisterCloudSchedulerServer(s *grpc.Server, srv CloudSchedulerServer)
Types ¶
type AppEngineHttpTarget ¶
type AppEngineHttpTarget struct { // The HTTP method to use for the request. PATCH and OPTIONS are not // permitted. HttpMethod HttpMethod `` /* 139-byte string literal not displayed */ // App Engine Routing setting for the job. AppEngineRouting *AppEngineRouting `protobuf:"bytes,2,opt,name=app_engine_routing,json=appEngineRouting,proto3" json:"app_engine_routing,omitempty"` // The relative URI. // // The relative URL must begin with "/" and must be a valid HTTP relative URL. // It can contain a path, query string arguments, and `#` fragments. // If the relative URL is empty, then the root path "/" will be used. // No spaces are allowed, and the maximum length allowed is 2083 characters. RelativeUri string `protobuf:"bytes,3,opt,name=relative_uri,json=relativeUri,proto3" json:"relative_uri,omitempty"` // HTTP request headers. // // This map contains the header field names and values. Headers can be set // when the job is created. // // Cloud Scheduler sets some headers to default values: // // * `User-Agent`: By default, this header is // `"AppEngine-Google; (+http://code.google.com/appengine)"`. // This header can be modified, but Cloud Scheduler will append // `"AppEngine-Google; (+http://code.google.com/appengine)"` to the // modified `User-Agent`. // * `X-CloudScheduler`: This header will be set to true. // // If the job has an [body][google.cloud.scheduler.v1beta1.AppEngineHttpTarget.body], Cloud Scheduler sets // the following headers: // // * `Content-Type`: By default, the `Content-Type` header is set to // `"application/octet-stream"`. The default can be overridden by explictly // setting `Content-Type` to a particular media type when the job is // created. // For example, `Content-Type` can be set to `"application/json"`. // * `Content-Length`: This is computed by Cloud Scheduler. This value is // output only. It cannot be changed. // // The headers below are output only. They cannot be set or overridden: // // * `X-Google-*`: For Google internal use only. // * `X-AppEngine-*`: For Google internal use only. // // In addition, some App Engine headers, which contain // job-specific information, are also be sent to the job handler. Headers map[string]string `` /* 155-byte string literal not displayed */ // Body. // // HTTP request body. A request body is allowed only if the HTTP method is // POST or PUT. It will result in invalid argument error to set a body on a // job with an incompatible [HttpMethod][google.cloud.scheduler.v1beta1.HttpMethod]. Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
App Engine target. The job will be pushed to a job handler by means of an HTTP request via an [http_method][google.cloud.scheduler.v1beta1.AppEngineHttpTarget.http_method] such as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an HTTP response code in the range [200 - 299]. Error 503 is considered an App Engine system error instead of an application error. Requests returning error 503 will be retried regardless of retry configuration and not counted against retry counts. Any other response code, or a failure to receive a response before the deadline, constitutes a failed attempt.
func (*AppEngineHttpTarget) Descriptor ¶
func (*AppEngineHttpTarget) Descriptor() ([]byte, []int)
func (*AppEngineHttpTarget) GetAppEngineRouting ¶
func (m *AppEngineHttpTarget) GetAppEngineRouting() *AppEngineRouting
func (*AppEngineHttpTarget) GetBody ¶
func (m *AppEngineHttpTarget) GetBody() []byte
func (*AppEngineHttpTarget) GetHeaders ¶
func (m *AppEngineHttpTarget) GetHeaders() map[string]string
func (*AppEngineHttpTarget) GetHttpMethod ¶
func (m *AppEngineHttpTarget) GetHttpMethod() HttpMethod
func (*AppEngineHttpTarget) GetRelativeUri ¶
func (m *AppEngineHttpTarget) GetRelativeUri() string
func (*AppEngineHttpTarget) ProtoMessage ¶
func (*AppEngineHttpTarget) ProtoMessage()
func (*AppEngineHttpTarget) Reset ¶
func (m *AppEngineHttpTarget) Reset()
func (*AppEngineHttpTarget) String ¶
func (m *AppEngineHttpTarget) String() string
func (*AppEngineHttpTarget) XXX_DiscardUnknown ¶
func (m *AppEngineHttpTarget) XXX_DiscardUnknown()
func (*AppEngineHttpTarget) XXX_Marshal ¶
func (m *AppEngineHttpTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AppEngineHttpTarget) XXX_Merge ¶
func (m *AppEngineHttpTarget) XXX_Merge(src proto.Message)
func (*AppEngineHttpTarget) XXX_Size ¶
func (m *AppEngineHttpTarget) XXX_Size() int
func (*AppEngineHttpTarget) XXX_Unmarshal ¶
func (m *AppEngineHttpTarget) XXX_Unmarshal(b []byte) error
type AppEngineRouting ¶
type AppEngineRouting struct { // App service. // // By default, the job is sent to the service which is the default // service when the job is attempted. Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // App version. // // By default, the job is sent to the version which is the default // version when the job is attempted. Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // App instance. // // By default, the job is sent to an instance which is available when // the job is attempted. // // Requests can only be sent to a specific instance if // [manual scaling is used in App Engine // Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). // App Engine Flex does not support instances. For more information, see // [App Engine Standard request // routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) // and [App Engine Flex request // routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). Instance string `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"` // Output only. The host that the job is sent to. // // For more information about how App Engine requests are routed, see // [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). // // The host is constructed as: // // // * `host = [application_domain_name]`</br> // `| [service] + '.' + [application_domain_name]`</br> // `| [version] + '.' + [application_domain_name]`</br> // `| [version_dot_service]+ '.' + [application_domain_name]`</br> // `| [instance] + '.' + [application_domain_name]`</br> // `| [instance_dot_service] + '.' + [application_domain_name]`</br> // `| [instance_dot_version] + '.' + [application_domain_name]`</br> // `| [instance_dot_version_dot_service] + '.' + [application_domain_name]` // // * `application_domain_name` = The domain name of the app, for // example <app-id>.appspot.com, which is associated with the // job's project ID. // // * `service =` [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] // // * `version =` [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] // // * `version_dot_service =` // [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` // [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] // // * `instance =` [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] // // * `instance_dot_service =` // [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` // [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] // // * `instance_dot_version =` // [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` // [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] // // * `instance_dot_version_dot_service =` // [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` // [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` // [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] // // // If [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] is empty, then the job will be sent // to the service which is the default service when the job is attempted. // // If [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] is empty, then the job will be sent // to the version which is the default version when the job is attempted. // // If [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] is empty, then the job will be // sent to an instance which is available when the job is attempted. // // If [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service], // [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version], or // [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] is invalid, then the job will be sent // to the default version of the default service when the job is attempted. Host string `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
App Engine Routing.
For more information about services, versions, and instances see [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine), [Microservices Architecture on Google App Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine), [App Engine Standard request routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed), and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
func (*AppEngineRouting) Descriptor ¶
func (*AppEngineRouting) Descriptor() ([]byte, []int)
func (*AppEngineRouting) GetHost ¶
func (m *AppEngineRouting) GetHost() string
func (*AppEngineRouting) GetInstance ¶
func (m *AppEngineRouting) GetInstance() string
func (*AppEngineRouting) GetService ¶
func (m *AppEngineRouting) GetService() string
func (*AppEngineRouting) GetVersion ¶
func (m *AppEngineRouting) GetVersion() string
func (*AppEngineRouting) ProtoMessage ¶
func (*AppEngineRouting) ProtoMessage()
func (*AppEngineRouting) Reset ¶
func (m *AppEngineRouting) Reset()
func (*AppEngineRouting) String ¶
func (m *AppEngineRouting) String() string
func (*AppEngineRouting) XXX_DiscardUnknown ¶
func (m *AppEngineRouting) XXX_DiscardUnknown()
func (*AppEngineRouting) XXX_Marshal ¶
func (m *AppEngineRouting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AppEngineRouting) XXX_Merge ¶
func (m *AppEngineRouting) XXX_Merge(src proto.Message)
func (*AppEngineRouting) XXX_Size ¶
func (m *AppEngineRouting) XXX_Size() int
func (*AppEngineRouting) XXX_Unmarshal ¶
func (m *AppEngineRouting) XXX_Unmarshal(b []byte) error
type CloudSchedulerClient ¶
type CloudSchedulerClient interface { // Lists jobs. ListJobs(ctx context.Context, in *ListJobsRequest, opts ...grpc.CallOption) (*ListJobsResponse, error) // Gets a job. GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*Job, error) // Creates a job. CreateJob(ctx context.Context, in *CreateJobRequest, opts ...grpc.CallOption) (*Job, error) // Updates a job. // // If successful, the updated [Job][google.cloud.scheduler.v1beta1.Job] is returned. If the job does // not exist, `NOT_FOUND` is returned. // // If UpdateJob does not successfully return, it is possible for the // job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1beta1.Job.State.UPDATE_FAILED] state. A job in this state may // not be executed. If this happens, retry the UpdateJob request // until a successful response is received. UpdateJob(ctx context.Context, in *UpdateJobRequest, opts ...grpc.CallOption) (*Job, error) // Deletes a job. DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Pauses a job. // // If a job is paused then the system will stop executing the job // until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob]. The // state of the job is stored in [state][google.cloud.scheduler.v1beta1.Job.state]; if paused it // will be set to [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED] // to be paused. PauseJob(ctx context.Context, in *PauseJobRequest, opts ...grpc.CallOption) (*Job, error) // Resume a job. // // This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. The // state of a job is stored in [Job.state][google.cloud.scheduler.v1beta1.Job.state]; after calling this method it // will be set to [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED]. A job must be in // [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED] to be resumed. ResumeJob(ctx context.Context, in *ResumeJobRequest, opts ...grpc.CallOption) (*Job, error) // Forces a job to run now. // // When this method is called, Cloud Scheduler will dispatch the job, even // if the job is already running. RunJob(ctx context.Context, in *RunJobRequest, opts ...grpc.CallOption) (*Job, error) }
CloudSchedulerClient is the client API for CloudScheduler service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCloudSchedulerClient ¶
func NewCloudSchedulerClient(cc grpc.ClientConnInterface) CloudSchedulerClient
type CloudSchedulerServer ¶
type CloudSchedulerServer interface { // Lists jobs. ListJobs(context.Context, *ListJobsRequest) (*ListJobsResponse, error) // Gets a job. GetJob(context.Context, *GetJobRequest) (*Job, error) // Creates a job. CreateJob(context.Context, *CreateJobRequest) (*Job, error) // Updates a job. // // If successful, the updated [Job][google.cloud.scheduler.v1beta1.Job] is returned. If the job does // not exist, `NOT_FOUND` is returned. // // If UpdateJob does not successfully return, it is possible for the // job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1beta1.Job.State.UPDATE_FAILED] state. A job in this state may // not be executed. If this happens, retry the UpdateJob request // until a successful response is received. UpdateJob(context.Context, *UpdateJobRequest) (*Job, error) // Deletes a job. DeleteJob(context.Context, *DeleteJobRequest) (*empty.Empty, error) // Pauses a job. // // If a job is paused then the system will stop executing the job // until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob]. The // state of the job is stored in [state][google.cloud.scheduler.v1beta1.Job.state]; if paused it // will be set to [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED] // to be paused. PauseJob(context.Context, *PauseJobRequest) (*Job, error) // Resume a job. // // This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. The // state of a job is stored in [Job.state][google.cloud.scheduler.v1beta1.Job.state]; after calling this method it // will be set to [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED]. A job must be in // [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED] to be resumed. ResumeJob(context.Context, *ResumeJobRequest) (*Job, error) // Forces a job to run now. // // When this method is called, Cloud Scheduler will dispatch the job, even // if the job is already running. RunJob(context.Context, *RunJobRequest) (*Job, error) }
CloudSchedulerServer is the server API for CloudScheduler service.
type CreateJobRequest ¶
type CreateJobRequest struct { // Required. The location name. For example: // `projects/PROJECT_ID/locations/LOCATION_ID`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The job to add. The user can optionally specify a name for the // job in [name][google.cloud.scheduler.v1beta1.Job.name]. [name][google.cloud.scheduler.v1beta1.Job.name] cannot be the same as an // existing job. If a name is not specified then the system will // generate a random unique name that will be returned // ([name][google.cloud.scheduler.v1beta1.Job.name]) in the response. Job *Job `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for [CreateJob][google.cloud.scheduler.v1beta1.CloudScheduler.CreateJob].
func (*CreateJobRequest) Descriptor ¶
func (*CreateJobRequest) Descriptor() ([]byte, []int)
func (*CreateJobRequest) GetJob ¶
func (m *CreateJobRequest) GetJob() *Job
func (*CreateJobRequest) GetParent ¶
func (m *CreateJobRequest) GetParent() string
func (*CreateJobRequest) ProtoMessage ¶
func (*CreateJobRequest) ProtoMessage()
func (*CreateJobRequest) Reset ¶
func (m *CreateJobRequest) Reset()
func (*CreateJobRequest) String ¶
func (m *CreateJobRequest) String() string
func (*CreateJobRequest) XXX_DiscardUnknown ¶
func (m *CreateJobRequest) XXX_DiscardUnknown()
func (*CreateJobRequest) XXX_Marshal ¶
func (m *CreateJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateJobRequest) XXX_Merge ¶
func (m *CreateJobRequest) XXX_Merge(src proto.Message)
func (*CreateJobRequest) XXX_Size ¶
func (m *CreateJobRequest) XXX_Size() int
func (*CreateJobRequest) XXX_Unmarshal ¶
func (m *CreateJobRequest) XXX_Unmarshal(b []byte) error
type DeleteJobRequest ¶
type DeleteJobRequest struct { // Required. The job name. For example: // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for deleting a job using [DeleteJob][google.cloud.scheduler.v1beta1.CloudScheduler.DeleteJob].
func (*DeleteJobRequest) Descriptor ¶
func (*DeleteJobRequest) Descriptor() ([]byte, []int)
func (*DeleteJobRequest) GetName ¶
func (m *DeleteJobRequest) GetName() string
func (*DeleteJobRequest) ProtoMessage ¶
func (*DeleteJobRequest) ProtoMessage()
func (*DeleteJobRequest) Reset ¶
func (m *DeleteJobRequest) Reset()
func (*DeleteJobRequest) String ¶
func (m *DeleteJobRequest) String() string
func (*DeleteJobRequest) XXX_DiscardUnknown ¶
func (m *DeleteJobRequest) XXX_DiscardUnknown()
func (*DeleteJobRequest) XXX_Marshal ¶
func (m *DeleteJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteJobRequest) XXX_Merge ¶
func (m *DeleteJobRequest) XXX_Merge(src proto.Message)
func (*DeleteJobRequest) XXX_Size ¶
func (m *DeleteJobRequest) XXX_Size() int
func (*DeleteJobRequest) XXX_Unmarshal ¶
func (m *DeleteJobRequest) XXX_Unmarshal(b []byte) error
type GetJobRequest ¶
type GetJobRequest struct { // Required. The job name. For example: // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for [GetJob][google.cloud.scheduler.v1beta1.CloudScheduler.GetJob].
func (*GetJobRequest) Descriptor ¶
func (*GetJobRequest) Descriptor() ([]byte, []int)
func (*GetJobRequest) GetName ¶
func (m *GetJobRequest) GetName() string
func (*GetJobRequest) ProtoMessage ¶
func (*GetJobRequest) ProtoMessage()
func (*GetJobRequest) Reset ¶
func (m *GetJobRequest) Reset()
func (*GetJobRequest) String ¶
func (m *GetJobRequest) String() string
func (*GetJobRequest) XXX_DiscardUnknown ¶
func (m *GetJobRequest) XXX_DiscardUnknown()
func (*GetJobRequest) XXX_Marshal ¶
func (m *GetJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetJobRequest) XXX_Merge ¶
func (m *GetJobRequest) XXX_Merge(src proto.Message)
func (*GetJobRequest) XXX_Size ¶
func (m *GetJobRequest) XXX_Size() int
func (*GetJobRequest) XXX_Unmarshal ¶
func (m *GetJobRequest) XXX_Unmarshal(b []byte) error
type HttpMethod ¶
type HttpMethod int32
The HTTP method used to execute the job.
const ( // HTTP method unspecified. Defaults to POST. HttpMethod_HTTP_METHOD_UNSPECIFIED HttpMethod = 0 // HTTP POST HttpMethod_POST HttpMethod = 1 // HTTP GET HttpMethod_GET HttpMethod = 2 // HTTP HEAD HttpMethod_HEAD HttpMethod = 3 // HTTP PUT HttpMethod_PUT HttpMethod = 4 // HTTP DELETE HttpMethod_DELETE HttpMethod = 5 // HTTP PATCH HttpMethod_PATCH HttpMethod = 6 // HTTP OPTIONS HttpMethod_OPTIONS HttpMethod = 7 )
func (HttpMethod) EnumDescriptor ¶
func (HttpMethod) EnumDescriptor() ([]byte, []int)
func (HttpMethod) String ¶
func (x HttpMethod) String() string
type HttpTarget ¶
type HttpTarget struct { // Required. The full URI path that the request will be sent to. This string // must begin with either "http://" or "https://". Some examples of // valid values for [uri][google.cloud.scheduler.v1beta1.HttpTarget.uri] are: // `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will // encode some characters for safety and compatibility. The maximum allowed // URL length is 2083 characters after encoding. Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` // Which HTTP method to use for the request. HttpMethod HttpMethod `` /* 139-byte string literal not displayed */ // The user can specify HTTP request headers to send with the job's // HTTP request. This map contains the header field names and // values. Repeated headers are not supported, but a header value can // contain commas. These headers represent a subset of the headers // that will accompany the job's HTTP request. Some HTTP request // headers will be ignored or replaced. A partial list of headers that // will be ignored or replaced is below: // - Host: This will be computed by Cloud Scheduler and derived from // [uri][google.cloud.scheduler.v1beta1.HttpTarget.uri]. // * `Content-Length`: This will be computed by Cloud Scheduler. // * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. // * `X-Google-*`: Google internal use only. // * `X-AppEngine-*`: Google internal use only. // // The total size of headers must be less than 80KB. Headers map[string]string `` /* 155-byte string literal not displayed */ // HTTP request body. A request body is allowed only if the HTTP // method is POST, PUT, or PATCH. It is an error to set body on a job with an // incompatible [HttpMethod][google.cloud.scheduler.v1beta1.HttpMethod]. Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` // The mode for generating an `Authorization` header for HTTP requests. // // If specified, all `Authorization` headers in the [HttpTarget.headers][google.cloud.scheduler.v1beta1.HttpTarget.headers] // field will be overridden. // // Types that are valid to be assigned to AuthorizationHeader: // *HttpTarget_OauthToken // *HttpTarget_OidcToken AuthorizationHeader isHttpTarget_AuthorizationHeader `protobuf_oneof:"authorization_header"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Http target. The job will be pushed to the job handler by means of an HTTP request via an [http_method][google.cloud.scheduler.v1beta1.HttpTarget.http_method] such as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an HTTP response code in the range [200 - 299]. A failure to receive a response constitutes a failed execution. For a redirected request, the response returned by the redirected request is considered.
func (*HttpTarget) Descriptor ¶
func (*HttpTarget) Descriptor() ([]byte, []int)
func (*HttpTarget) GetAuthorizationHeader ¶
func (m *HttpTarget) GetAuthorizationHeader() isHttpTarget_AuthorizationHeader
func (*HttpTarget) GetBody ¶
func (m *HttpTarget) GetBody() []byte
func (*HttpTarget) GetHeaders ¶
func (m *HttpTarget) GetHeaders() map[string]string
func (*HttpTarget) GetHttpMethod ¶
func (m *HttpTarget) GetHttpMethod() HttpMethod
func (*HttpTarget) GetOauthToken ¶
func (m *HttpTarget) GetOauthToken() *OAuthToken
func (*HttpTarget) GetOidcToken ¶
func (m *HttpTarget) GetOidcToken() *OidcToken
func (*HttpTarget) GetUri ¶
func (m *HttpTarget) GetUri() string
func (*HttpTarget) ProtoMessage ¶
func (*HttpTarget) ProtoMessage()
func (*HttpTarget) Reset ¶
func (m *HttpTarget) Reset()
func (*HttpTarget) String ¶
func (m *HttpTarget) String() string
func (*HttpTarget) XXX_DiscardUnknown ¶
func (m *HttpTarget) XXX_DiscardUnknown()
func (*HttpTarget) XXX_Marshal ¶
func (m *HttpTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HttpTarget) XXX_Merge ¶
func (m *HttpTarget) XXX_Merge(src proto.Message)
func (*HttpTarget) XXX_OneofWrappers ¶
func (*HttpTarget) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*HttpTarget) XXX_Size ¶
func (m *HttpTarget) XXX_Size() int
func (*HttpTarget) XXX_Unmarshal ¶
func (m *HttpTarget) XXX_Unmarshal(b []byte) error
type HttpTarget_OauthToken ¶
type HttpTarget_OauthToken struct {
OauthToken *OAuthToken `protobuf:"bytes,5,opt,name=oauth_token,json=oauthToken,proto3,oneof"`
}
type HttpTarget_OidcToken ¶
type HttpTarget_OidcToken struct {
OidcToken *OidcToken `protobuf:"bytes,6,opt,name=oidc_token,json=oidcToken,proto3,oneof"`
}
type Job ¶
type Job struct { // Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1beta1.CloudScheduler.CreateJob], after // which it becomes output only. // // The job name. For example: // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. // // * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), // hyphens (-), colons (:), or periods (.). // For more information, see // [Identifying // projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) // * `LOCATION_ID` is the canonical ID for the job's location. // The list of available locations can be obtained by calling // [ListLocations][google.cloud.location.Locations.ListLocations]. // For more information, see https://cloud.google.com/about/locations/. // * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), // hyphens (-), or underscores (_). The maximum length is 500 characters. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1beta1.CloudScheduler.CreateJob] or // [UpdateJob][google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob]. // // A human-readable description for the job. This string must not contain // more than 500 characters. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Required. // // Delivery settings containing destination and parameters. // // Types that are valid to be assigned to Target: // *Job_PubsubTarget // *Job_AppEngineHttpTarget // *Job_HttpTarget Target isJob_Target `protobuf_oneof:"target"` // Required, except when used with [UpdateJob][google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob]. // // Describes the schedule on which the job will be executed. // // The schedule can be either of the following types: // // * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview) // * English-like // [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules) // // As a general rule, execution `n + 1` of a job will not begin // until execution `n` has finished. Cloud Scheduler will never // allow two simultaneously outstanding executions. For example, // this implies that if the `n+1`th execution is scheduled to run at // 16:00 but the `n`th execution takes until 16:15, the `n+1`th // execution will not start until `16:15`. // A scheduled start time will be delayed if the previous // execution has not ended when its scheduled time occurs. // // If [retry_count][google.cloud.scheduler.v1beta1.RetryConfig.retry_count] > 0 and a job attempt fails, // the job will be tried a total of [retry_count][google.cloud.scheduler.v1beta1.RetryConfig.retry_count] // times, with exponential backoff, until the next scheduled start // time. Schedule string `protobuf:"bytes,20,opt,name=schedule,proto3" json:"schedule,omitempty"` // Specifies the time zone to be used in interpreting // [schedule][google.cloud.scheduler.v1beta1.Job.schedule]. The value of this field must be a time // zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database). // // Note that some time zones include a provision for // daylight savings time. The rules for daylight saving time are // determined by the chosen tz. For UTC use the string "utc". If a // time zone is not specified, the default will be in UTC (also known // as GMT). TimeZone string `protobuf:"bytes,21,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"` // Output only. The creation time of the job. UserUpdateTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=user_update_time,json=userUpdateTime,proto3" json:"user_update_time,omitempty"` // Output only. State of the job. State Job_State `protobuf:"varint,10,opt,name=state,proto3,enum=google.cloud.scheduler.v1beta1.Job_State" json:"state,omitempty"` // Output only. The response from the target for the last attempted execution. Status *status.Status `protobuf:"bytes,11,opt,name=status,proto3" json:"status,omitempty"` // Output only. The next time the job is scheduled. Note that this may be a // retry of a previously failed attempt or the next execution time // according to the schedule. ScheduleTime *timestamp.Timestamp `protobuf:"bytes,17,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"` // Output only. The time the last job attempt started. LastAttemptTime *timestamp.Timestamp `protobuf:"bytes,18,opt,name=last_attempt_time,json=lastAttemptTime,proto3" json:"last_attempt_time,omitempty"` // Settings that determine the retry behavior. RetryConfig *RetryConfig `protobuf:"bytes,19,opt,name=retry_config,json=retryConfig,proto3" json:"retry_config,omitempty"` // The deadline for job attempts. If the request handler does not respond by // this deadline then the request is cancelled and the attempt is marked as a // `DEADLINE_EXCEEDED` failure. The failed attempt can be viewed in // execution logs. Cloud Scheduler will retry the job according // to the [RetryConfig][google.cloud.scheduler.v1beta1.RetryConfig]. // // The allowed duration for this deadline is: // // * For [HTTP targets][google.cloud.scheduler.v1beta1.Job.http_target], between 15 seconds and 30 minutes. // * For [App Engine HTTP targets][google.cloud.scheduler.v1beta1.Job.app_engine_http_target], between 15 // seconds and 24 hours. // * For [PubSub targets][google.cloud.scheduler.v1beta1.Job.pubsub_target], this field is ignored. AttemptDeadline *duration.Duration `protobuf:"bytes,22,opt,name=attempt_deadline,json=attemptDeadline,proto3" json:"attempt_deadline,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Configuration for a job. The maximum allowed size for a job is 100KB.
func (*Job) Descriptor ¶
func (*Job) GetAppEngineHttpTarget ¶
func (m *Job) GetAppEngineHttpTarget() *AppEngineHttpTarget
func (*Job) GetAttemptDeadline ¶
func (*Job) GetDescription ¶
func (*Job) GetHttpTarget ¶
func (m *Job) GetHttpTarget() *HttpTarget
func (*Job) GetLastAttemptTime ¶
func (*Job) GetPubsubTarget ¶
func (m *Job) GetPubsubTarget() *PubsubTarget
func (*Job) GetRetryConfig ¶
func (m *Job) GetRetryConfig() *RetryConfig
func (*Job) GetSchedule ¶
func (*Job) GetScheduleTime ¶
func (*Job) GetTimeZone ¶
func (*Job) GetUserUpdateTime ¶
func (*Job) ProtoMessage ¶
func (*Job) ProtoMessage()
func (*Job) XXX_DiscardUnknown ¶
func (m *Job) XXX_DiscardUnknown()
func (*Job) XXX_OneofWrappers ¶
func (*Job) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Job) XXX_Unmarshal ¶
type Job_AppEngineHttpTarget ¶
type Job_AppEngineHttpTarget struct {
AppEngineHttpTarget *AppEngineHttpTarget `protobuf:"bytes,5,opt,name=app_engine_http_target,json=appEngineHttpTarget,proto3,oneof"`
}
type Job_HttpTarget ¶
type Job_HttpTarget struct {
HttpTarget *HttpTarget `protobuf:"bytes,6,opt,name=http_target,json=httpTarget,proto3,oneof"`
}
type Job_PubsubTarget ¶
type Job_PubsubTarget struct {
PubsubTarget *PubsubTarget `protobuf:"bytes,4,opt,name=pubsub_target,json=pubsubTarget,proto3,oneof"`
}
type Job_State ¶
type Job_State int32
State of the job.
const ( // Unspecified state. Job_STATE_UNSPECIFIED Job_State = 0 // The job is executing normally. Job_ENABLED Job_State = 1 // The job is paused by the user. It will not execute. A user can // intentionally pause the job using // [PauseJobRequest][google.cloud.scheduler.v1beta1.PauseJobRequest]. Job_PAUSED Job_State = 2 // The job is disabled by the system due to error. The user // cannot directly set a job to be disabled. Job_DISABLED Job_State = 3 // The job state resulting from a failed [CloudScheduler.UpdateJob][google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob] // operation. To recover a job from this state, retry // [CloudScheduler.UpdateJob][google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob] until a successful response is received. Job_UPDATE_FAILED Job_State = 4 )
func (Job_State) EnumDescriptor ¶
type ListJobsRequest ¶
type ListJobsRequest struct { // Required. The location name. For example: // `projects/PROJECT_ID/locations/LOCATION_ID`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Requested page size. // // The maximum page size is 500. If unspecified, the page size will // be the maximum. Fewer jobs than requested might be returned, // even if more jobs exist; use next_page_token to determine if more // jobs exist. PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A token identifying a page of results the server will return. To // request the first page results, page_token must be empty. To // request the next page of results, page_token must be the value of // [next_page_token][google.cloud.scheduler.v1beta1.ListJobsResponse.next_page_token] returned from // the previous call to [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs]. It is an error to // switch the value of [filter][google.cloud.scheduler.v1beta1.ListJobsRequest.filter] or // [order_by][google.cloud.scheduler.v1beta1.ListJobsRequest.order_by] while iterating through pages. PageToken string `protobuf:"bytes,6,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for listing jobs using [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs].
func (*ListJobsRequest) Descriptor ¶
func (*ListJobsRequest) Descriptor() ([]byte, []int)
func (*ListJobsRequest) GetPageSize ¶
func (m *ListJobsRequest) GetPageSize() int32
func (*ListJobsRequest) GetPageToken ¶
func (m *ListJobsRequest) GetPageToken() string
func (*ListJobsRequest) GetParent ¶
func (m *ListJobsRequest) GetParent() string
func (*ListJobsRequest) ProtoMessage ¶
func (*ListJobsRequest) ProtoMessage()
func (*ListJobsRequest) Reset ¶
func (m *ListJobsRequest) Reset()
func (*ListJobsRequest) String ¶
func (m *ListJobsRequest) String() string
func (*ListJobsRequest) XXX_DiscardUnknown ¶
func (m *ListJobsRequest) XXX_DiscardUnknown()
func (*ListJobsRequest) XXX_Marshal ¶
func (m *ListJobsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListJobsRequest) XXX_Merge ¶
func (m *ListJobsRequest) XXX_Merge(src proto.Message)
func (*ListJobsRequest) XXX_Size ¶
func (m *ListJobsRequest) XXX_Size() int
func (*ListJobsRequest) XXX_Unmarshal ¶
func (m *ListJobsRequest) XXX_Unmarshal(b []byte) error
type ListJobsResponse ¶
type ListJobsResponse struct { // The list of jobs. Jobs []*Job `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty"` // A token to retrieve next page of results. Pass this value in the // [page_token][google.cloud.scheduler.v1beta1.ListJobsRequest.page_token] field in the subsequent call to // [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs] to retrieve the next page of results. // If this is empty it indicates that there are no more results // through which to paginate. // // The page token is valid for only 2 hours. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response message for listing jobs using [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs].
func (*ListJobsResponse) Descriptor ¶
func (*ListJobsResponse) Descriptor() ([]byte, []int)
func (*ListJobsResponse) GetJobs ¶
func (m *ListJobsResponse) GetJobs() []*Job
func (*ListJobsResponse) GetNextPageToken ¶
func (m *ListJobsResponse) GetNextPageToken() string
func (*ListJobsResponse) ProtoMessage ¶
func (*ListJobsResponse) ProtoMessage()
func (*ListJobsResponse) Reset ¶
func (m *ListJobsResponse) Reset()
func (*ListJobsResponse) String ¶
func (m *ListJobsResponse) String() string
func (*ListJobsResponse) XXX_DiscardUnknown ¶
func (m *ListJobsResponse) XXX_DiscardUnknown()
func (*ListJobsResponse) XXX_Marshal ¶
func (m *ListJobsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListJobsResponse) XXX_Merge ¶
func (m *ListJobsResponse) XXX_Merge(src proto.Message)
func (*ListJobsResponse) XXX_Size ¶
func (m *ListJobsResponse) XXX_Size() int
func (*ListJobsResponse) XXX_Unmarshal ¶
func (m *ListJobsResponse) XXX_Unmarshal(b []byte) error
type OAuthToken ¶
type OAuthToken struct { // [Service account email](https://cloud.google.com/iam/docs/service-accounts) // to be used for generating OAuth token. // The service account must be within the same project as the job. The caller // must have iam.serviceAccounts.actAs permission for the service account. ServiceAccountEmail string `protobuf:"bytes,1,opt,name=service_account_email,json=serviceAccountEmail,proto3" json:"service_account_email,omitempty"` // OAuth scope to be used for generating OAuth access token. // If not specified, "https://www.googleapis.com/auth/cloud-platform" // will be used. Scope string `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Contains information needed for generating an [OAuth token](https://developers.google.com/identity/protocols/OAuth2). This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.
func (*OAuthToken) Descriptor ¶
func (*OAuthToken) Descriptor() ([]byte, []int)
func (*OAuthToken) GetScope ¶
func (m *OAuthToken) GetScope() string
func (*OAuthToken) GetServiceAccountEmail ¶
func (m *OAuthToken) GetServiceAccountEmail() string
func (*OAuthToken) ProtoMessage ¶
func (*OAuthToken) ProtoMessage()
func (*OAuthToken) Reset ¶
func (m *OAuthToken) Reset()
func (*OAuthToken) String ¶
func (m *OAuthToken) String() string
func (*OAuthToken) XXX_DiscardUnknown ¶
func (m *OAuthToken) XXX_DiscardUnknown()
func (*OAuthToken) XXX_Marshal ¶
func (m *OAuthToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OAuthToken) XXX_Merge ¶
func (m *OAuthToken) XXX_Merge(src proto.Message)
func (*OAuthToken) XXX_Size ¶
func (m *OAuthToken) XXX_Size() int
func (*OAuthToken) XXX_Unmarshal ¶
func (m *OAuthToken) XXX_Unmarshal(b []byte) error
type OidcToken ¶
type OidcToken struct { // [Service account email](https://cloud.google.com/iam/docs/service-accounts) // to be used for generating OIDC token. // The service account must be within the same project as the job. The caller // must have iam.serviceAccounts.actAs permission for the service account. ServiceAccountEmail string `protobuf:"bytes,1,opt,name=service_account_email,json=serviceAccountEmail,proto3" json:"service_account_email,omitempty"` // Audience to be used when generating OIDC token. If not specified, the URI // specified in target will be used. Audience string `protobuf:"bytes,2,opt,name=audience,proto3" json:"audience,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Contains information needed for generating an [OpenID Connect token](https://developers.google.com/identity/protocols/OpenIDConnect). This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself.
func (*OidcToken) Descriptor ¶
func (*OidcToken) GetAudience ¶
func (*OidcToken) GetServiceAccountEmail ¶
func (*OidcToken) ProtoMessage ¶
func (*OidcToken) ProtoMessage()
func (*OidcToken) XXX_DiscardUnknown ¶
func (m *OidcToken) XXX_DiscardUnknown()
func (*OidcToken) XXX_Marshal ¶
func (*OidcToken) XXX_Unmarshal ¶
type PauseJobRequest ¶
type PauseJobRequest struct { // Required. The job name. For example: // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for [PauseJob][google.cloud.scheduler.v1beta1.CloudScheduler.PauseJob].
func (*PauseJobRequest) Descriptor ¶
func (*PauseJobRequest) Descriptor() ([]byte, []int)
func (*PauseJobRequest) GetName ¶
func (m *PauseJobRequest) GetName() string
func (*PauseJobRequest) ProtoMessage ¶
func (*PauseJobRequest) ProtoMessage()
func (*PauseJobRequest) Reset ¶
func (m *PauseJobRequest) Reset()
func (*PauseJobRequest) String ¶
func (m *PauseJobRequest) String() string
func (*PauseJobRequest) XXX_DiscardUnknown ¶
func (m *PauseJobRequest) XXX_DiscardUnknown()
func (*PauseJobRequest) XXX_Marshal ¶
func (m *PauseJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PauseJobRequest) XXX_Merge ¶
func (m *PauseJobRequest) XXX_Merge(src proto.Message)
func (*PauseJobRequest) XXX_Size ¶
func (m *PauseJobRequest) XXX_Size() int
func (*PauseJobRequest) XXX_Unmarshal ¶
func (m *PauseJobRequest) XXX_Unmarshal(b []byte) error
type PubsubTarget ¶
type PubsubTarget struct { // Required. The name of the Cloud Pub/Sub topic to which messages will // be published when a job is delivered. The topic name must be in the // same format as required by PubSub's // [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest), // for example `projects/PROJECT_ID/topics/TOPIC_ID`. // // The topic must be in the same project as the Cloud Scheduler job. TopicName string `protobuf:"bytes,1,opt,name=topic_name,json=topicName,proto3" json:"topic_name,omitempty"` // The message payload for PubsubMessage. // // Pubsub message must contain either non-empty data, or at least one // attribute. Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // Attributes for PubsubMessage. // // Pubsub message must contain either non-empty data, or at least one // attribute. Attributes map[string]string `` /* 161-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Pub/Sub target. The job will be delivered by publishing a message to the given Pub/Sub topic.
func (*PubsubTarget) Descriptor ¶
func (*PubsubTarget) Descriptor() ([]byte, []int)
func (*PubsubTarget) GetAttributes ¶
func (m *PubsubTarget) GetAttributes() map[string]string
func (*PubsubTarget) GetData ¶
func (m *PubsubTarget) GetData() []byte
func (*PubsubTarget) GetTopicName ¶
func (m *PubsubTarget) GetTopicName() string
func (*PubsubTarget) ProtoMessage ¶
func (*PubsubTarget) ProtoMessage()
func (*PubsubTarget) Reset ¶
func (m *PubsubTarget) Reset()
func (*PubsubTarget) String ¶
func (m *PubsubTarget) String() string
func (*PubsubTarget) XXX_DiscardUnknown ¶
func (m *PubsubTarget) XXX_DiscardUnknown()
func (*PubsubTarget) XXX_Marshal ¶
func (m *PubsubTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PubsubTarget) XXX_Merge ¶
func (m *PubsubTarget) XXX_Merge(src proto.Message)
func (*PubsubTarget) XXX_Size ¶
func (m *PubsubTarget) XXX_Size() int
func (*PubsubTarget) XXX_Unmarshal ¶
func (m *PubsubTarget) XXX_Unmarshal(b []byte) error
type ResumeJobRequest ¶
type ResumeJobRequest struct { // Required. The job name. For example: // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for [ResumeJob][google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob].
func (*ResumeJobRequest) Descriptor ¶
func (*ResumeJobRequest) Descriptor() ([]byte, []int)
func (*ResumeJobRequest) GetName ¶
func (m *ResumeJobRequest) GetName() string
func (*ResumeJobRequest) ProtoMessage ¶
func (*ResumeJobRequest) ProtoMessage()
func (*ResumeJobRequest) Reset ¶
func (m *ResumeJobRequest) Reset()
func (*ResumeJobRequest) String ¶
func (m *ResumeJobRequest) String() string
func (*ResumeJobRequest) XXX_DiscardUnknown ¶
func (m *ResumeJobRequest) XXX_DiscardUnknown()
func (*ResumeJobRequest) XXX_Marshal ¶
func (m *ResumeJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResumeJobRequest) XXX_Merge ¶
func (m *ResumeJobRequest) XXX_Merge(src proto.Message)
func (*ResumeJobRequest) XXX_Size ¶
func (m *ResumeJobRequest) XXX_Size() int
func (*ResumeJobRequest) XXX_Unmarshal ¶
func (m *ResumeJobRequest) XXX_Unmarshal(b []byte) error
type RetryConfig ¶
type RetryConfig struct { // The number of attempts that the system will make to run a job using the // exponential backoff procedure described by // [max_doublings][google.cloud.scheduler.v1beta1.RetryConfig.max_doublings]. // // The default value of retry_count is zero. // // If retry_count is zero, a job attempt will *not* be retried if // it fails. Instead the Cloud Scheduler system will wait for the // next scheduled execution time. // // If retry_count is set to a non-zero number then Cloud Scheduler // will retry failed attempts, using exponential backoff, // retry_count times, or until the next scheduled execution time, // whichever comes first. // // Values greater than 5 and negative values are not allowed. RetryCount int32 `protobuf:"varint,1,opt,name=retry_count,json=retryCount,proto3" json:"retry_count,omitempty"` // The time limit for retrying a failed job, measured from time when an // execution was first attempted. If specified with // [retry_count][google.cloud.scheduler.v1beta1.RetryConfig.retry_count], the job will be retried until both // limits are reached. // // The default value for max_retry_duration is zero, which means retry // duration is unlimited. MaxRetryDuration *duration.Duration `protobuf:"bytes,2,opt,name=max_retry_duration,json=maxRetryDuration,proto3" json:"max_retry_duration,omitempty"` // The minimum amount of time to wait before retrying a job after // it fails. // // The default value of this field is 5 seconds. MinBackoffDuration *duration.Duration `protobuf:"bytes,3,opt,name=min_backoff_duration,json=minBackoffDuration,proto3" json:"min_backoff_duration,omitempty"` // The maximum amount of time to wait before retrying a job after // it fails. // // The default value of this field is 1 hour. MaxBackoffDuration *duration.Duration `protobuf:"bytes,4,opt,name=max_backoff_duration,json=maxBackoffDuration,proto3" json:"max_backoff_duration,omitempty"` // The time between retries will double `max_doublings` times. // // A job's retry interval starts at // [min_backoff_duration][google.cloud.scheduler.v1beta1.RetryConfig.min_backoff_duration], then doubles // `max_doublings` times, then increases linearly, and finally // retries retries at intervals of // [max_backoff_duration][google.cloud.scheduler.v1beta1.RetryConfig.max_backoff_duration] up to // [retry_count][google.cloud.scheduler.v1beta1.RetryConfig.retry_count] times. // // For example, if [min_backoff_duration][google.cloud.scheduler.v1beta1.RetryConfig.min_backoff_duration] is // 10s, [max_backoff_duration][google.cloud.scheduler.v1beta1.RetryConfig.max_backoff_duration] is 300s, and // `max_doublings` is 3, then the a job will first be retried in 10s. The // retry interval will double three times, and then increase linearly by // 2^3 * 10s. Finally, the job will retry at intervals of // [max_backoff_duration][google.cloud.scheduler.v1beta1.RetryConfig.max_backoff_duration] until the job has // been attempted [retry_count][google.cloud.scheduler.v1beta1.RetryConfig.retry_count] times. Thus, the // requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, .... // // The default value of this field is 5. MaxDoublings int32 `protobuf:"varint,5,opt,name=max_doublings,json=maxDoublings,proto3" json:"max_doublings,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Settings that determine the retry behavior.
By default, if a job does not complete successfully (meaning that an acknowledgement is not received from the handler, then it will be retried with exponential backoff according to the settings in RetryConfig[google.cloud.scheduler.v1beta1.RetryConfig].
func (*RetryConfig) Descriptor ¶
func (*RetryConfig) Descriptor() ([]byte, []int)
func (*RetryConfig) GetMaxBackoffDuration ¶
func (m *RetryConfig) GetMaxBackoffDuration() *duration.Duration
func (*RetryConfig) GetMaxDoublings ¶
func (m *RetryConfig) GetMaxDoublings() int32
func (*RetryConfig) GetMaxRetryDuration ¶
func (m *RetryConfig) GetMaxRetryDuration() *duration.Duration
func (*RetryConfig) GetMinBackoffDuration ¶
func (m *RetryConfig) GetMinBackoffDuration() *duration.Duration
func (*RetryConfig) GetRetryCount ¶
func (m *RetryConfig) GetRetryCount() int32
func (*RetryConfig) ProtoMessage ¶
func (*RetryConfig) ProtoMessage()
func (*RetryConfig) Reset ¶
func (m *RetryConfig) Reset()
func (*RetryConfig) String ¶
func (m *RetryConfig) String() string
func (*RetryConfig) XXX_DiscardUnknown ¶
func (m *RetryConfig) XXX_DiscardUnknown()
func (*RetryConfig) XXX_Marshal ¶
func (m *RetryConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RetryConfig) XXX_Merge ¶
func (m *RetryConfig) XXX_Merge(src proto.Message)
func (*RetryConfig) XXX_Size ¶
func (m *RetryConfig) XXX_Size() int
func (*RetryConfig) XXX_Unmarshal ¶
func (m *RetryConfig) XXX_Unmarshal(b []byte) error
type RunJobRequest ¶
type RunJobRequest struct { // Required. The job name. For example: // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for forcing a job to run now using [RunJob][google.cloud.scheduler.v1beta1.CloudScheduler.RunJob].
func (*RunJobRequest) Descriptor ¶
func (*RunJobRequest) Descriptor() ([]byte, []int)
func (*RunJobRequest) GetName ¶
func (m *RunJobRequest) GetName() string
func (*RunJobRequest) ProtoMessage ¶
func (*RunJobRequest) ProtoMessage()
func (*RunJobRequest) Reset ¶
func (m *RunJobRequest) Reset()
func (*RunJobRequest) String ¶
func (m *RunJobRequest) String() string
func (*RunJobRequest) XXX_DiscardUnknown ¶
func (m *RunJobRequest) XXX_DiscardUnknown()
func (*RunJobRequest) XXX_Marshal ¶
func (m *RunJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RunJobRequest) XXX_Merge ¶
func (m *RunJobRequest) XXX_Merge(src proto.Message)
func (*RunJobRequest) XXX_Size ¶
func (m *RunJobRequest) XXX_Size() int
func (*RunJobRequest) XXX_Unmarshal ¶
func (m *RunJobRequest) XXX_Unmarshal(b []byte) error
type UnimplementedCloudSchedulerServer ¶
type UnimplementedCloudSchedulerServer struct { }
UnimplementedCloudSchedulerServer can be embedded to have forward compatible implementations.
func (*UnimplementedCloudSchedulerServer) CreateJob ¶
func (*UnimplementedCloudSchedulerServer) CreateJob(ctx context.Context, req *CreateJobRequest) (*Job, error)
func (*UnimplementedCloudSchedulerServer) DeleteJob ¶
func (*UnimplementedCloudSchedulerServer) DeleteJob(ctx context.Context, req *DeleteJobRequest) (*empty.Empty, error)
func (*UnimplementedCloudSchedulerServer) GetJob ¶
func (*UnimplementedCloudSchedulerServer) GetJob(ctx context.Context, req *GetJobRequest) (*Job, error)
func (*UnimplementedCloudSchedulerServer) ListJobs ¶
func (*UnimplementedCloudSchedulerServer) ListJobs(ctx context.Context, req *ListJobsRequest) (*ListJobsResponse, error)
func (*UnimplementedCloudSchedulerServer) PauseJob ¶
func (*UnimplementedCloudSchedulerServer) PauseJob(ctx context.Context, req *PauseJobRequest) (*Job, error)
func (*UnimplementedCloudSchedulerServer) ResumeJob ¶
func (*UnimplementedCloudSchedulerServer) ResumeJob(ctx context.Context, req *ResumeJobRequest) (*Job, error)
func (*UnimplementedCloudSchedulerServer) RunJob ¶
func (*UnimplementedCloudSchedulerServer) RunJob(ctx context.Context, req *RunJobRequest) (*Job, error)
func (*UnimplementedCloudSchedulerServer) UpdateJob ¶
func (*UnimplementedCloudSchedulerServer) UpdateJob(ctx context.Context, req *UpdateJobRequest) (*Job, error)
type UpdateJobRequest ¶
type UpdateJobRequest struct { // Required. The new job properties. [name][google.cloud.scheduler.v1beta1.Job.name] must be specified. // // Output only fields cannot be modified using UpdateJob. // Any value specified for an output only field will be ignored. Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` // A mask used to specify which fields of the job are being updated. UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message for [UpdateJob][google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob].
func (*UpdateJobRequest) Descriptor ¶
func (*UpdateJobRequest) Descriptor() ([]byte, []int)
func (*UpdateJobRequest) GetJob ¶
func (m *UpdateJobRequest) GetJob() *Job
func (*UpdateJobRequest) GetUpdateMask ¶
func (m *UpdateJobRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdateJobRequest) ProtoMessage ¶
func (*UpdateJobRequest) ProtoMessage()
func (*UpdateJobRequest) Reset ¶
func (m *UpdateJobRequest) Reset()
func (*UpdateJobRequest) String ¶
func (m *UpdateJobRequest) String() string
func (*UpdateJobRequest) XXX_DiscardUnknown ¶
func (m *UpdateJobRequest) XXX_DiscardUnknown()
func (*UpdateJobRequest) XXX_Marshal ¶
func (m *UpdateJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateJobRequest) XXX_Merge ¶
func (m *UpdateJobRequest) XXX_Merge(src proto.Message)
func (*UpdateJobRequest) XXX_Size ¶
func (m *UpdateJobRequest) XXX_Size() int
func (*UpdateJobRequest) XXX_Unmarshal ¶
func (m *UpdateJobRequest) XXX_Unmarshal(b []byte) error