google-cloud-storage_transfer-v1 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +167 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google-cloud-storage_transfer-v1.rb +21 -0
- data/lib/google/cloud/storage_transfer/v1.rb +38 -0
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service.rb +51 -0
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service/client.rb +964 -0
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service/credentials.rb +47 -0
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service/operations.rb +664 -0
- data/lib/google/cloud/storage_transfer/v1/version.rb +28 -0
- data/lib/google/storagetransfer/v1/transfer_pb.rb +70 -0
- data/lib/google/storagetransfer/v1/transfer_services_pb.rb +77 -0
- data/lib/google/storagetransfer/v1/transfer_types_pb.rb +193 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/code.rb +185 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- data/proto_docs/google/storagetransfer/v1/transfer.rb +167 -0
- data/proto_docs/google/storagetransfer/v1/transfer_types.rb +790 -0
- data/proto_docs/google/type/date.rb +53 -0
- data/proto_docs/google/type/timeofday.rb +45 -0
- metadata +222 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module StorageTransfer
|
23
|
+
module V1
|
24
|
+
VERSION = "0.1.0"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/storagetransfer/v1/transfer.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/longrunning/operations_pb'
|
10
|
+
require 'google/protobuf/duration_pb'
|
11
|
+
require 'google/protobuf/empty_pb'
|
12
|
+
require 'google/protobuf/field_mask_pb'
|
13
|
+
require 'google/storagetransfer/v1/transfer_types_pb'
|
14
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
|
+
add_file("google/storagetransfer/v1/transfer.proto", :syntax => :proto3) do
|
16
|
+
add_message "google.storagetransfer.v1.GetGoogleServiceAccountRequest" do
|
17
|
+
optional :project_id, :string, 1
|
18
|
+
end
|
19
|
+
add_message "google.storagetransfer.v1.CreateTransferJobRequest" do
|
20
|
+
optional :transfer_job, :message, 1, "google.storagetransfer.v1.TransferJob"
|
21
|
+
end
|
22
|
+
add_message "google.storagetransfer.v1.UpdateTransferJobRequest" do
|
23
|
+
optional :job_name, :string, 1
|
24
|
+
optional :project_id, :string, 2
|
25
|
+
optional :transfer_job, :message, 3, "google.storagetransfer.v1.TransferJob"
|
26
|
+
optional :update_transfer_job_field_mask, :message, 4, "google.protobuf.FieldMask"
|
27
|
+
end
|
28
|
+
add_message "google.storagetransfer.v1.GetTransferJobRequest" do
|
29
|
+
optional :job_name, :string, 1
|
30
|
+
optional :project_id, :string, 2
|
31
|
+
end
|
32
|
+
add_message "google.storagetransfer.v1.ListTransferJobsRequest" do
|
33
|
+
optional :filter, :string, 1
|
34
|
+
optional :page_size, :int32, 4
|
35
|
+
optional :page_token, :string, 5
|
36
|
+
end
|
37
|
+
add_message "google.storagetransfer.v1.ListTransferJobsResponse" do
|
38
|
+
repeated :transfer_jobs, :message, 1, "google.storagetransfer.v1.TransferJob"
|
39
|
+
optional :next_page_token, :string, 2
|
40
|
+
end
|
41
|
+
add_message "google.storagetransfer.v1.PauseTransferOperationRequest" do
|
42
|
+
optional :name, :string, 1
|
43
|
+
end
|
44
|
+
add_message "google.storagetransfer.v1.ResumeTransferOperationRequest" do
|
45
|
+
optional :name, :string, 1
|
46
|
+
end
|
47
|
+
add_message "google.storagetransfer.v1.RunTransferJobRequest" do
|
48
|
+
optional :job_name, :string, 1
|
49
|
+
optional :project_id, :string, 2
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
module Google
|
55
|
+
module Cloud
|
56
|
+
module StorageTransfer
|
57
|
+
module V1
|
58
|
+
GetGoogleServiceAccountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.GetGoogleServiceAccountRequest").msgclass
|
59
|
+
CreateTransferJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.CreateTransferJobRequest").msgclass
|
60
|
+
UpdateTransferJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.UpdateTransferJobRequest").msgclass
|
61
|
+
GetTransferJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.GetTransferJobRequest").msgclass
|
62
|
+
ListTransferJobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.ListTransferJobsRequest").msgclass
|
63
|
+
ListTransferJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.ListTransferJobsResponse").msgclass
|
64
|
+
PauseTransferOperationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.PauseTransferOperationRequest").msgclass
|
65
|
+
ResumeTransferOperationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.ResumeTransferOperationRequest").msgclass
|
66
|
+
RunTransferJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.RunTransferJobRequest").msgclass
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/storagetransfer/v1/transfer.proto for package 'Google.Cloud.StorageTransfer.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2021 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/storagetransfer/v1/transfer_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module StorageTransfer
|
25
|
+
module V1
|
26
|
+
module StorageTransferService
|
27
|
+
# Storage Transfer Service and its protos.
|
28
|
+
# Transfers data between between Google Cloud Storage buckets or from a data
|
29
|
+
# source external to Google to a Cloud Storage bucket.
|
30
|
+
class Service
|
31
|
+
|
32
|
+
include GRPC::GenericService
|
33
|
+
|
34
|
+
self.marshal_class_method = :encode
|
35
|
+
self.unmarshal_class_method = :decode
|
36
|
+
self.service_name = 'google.storagetransfer.v1.StorageTransferService'
|
37
|
+
|
38
|
+
# Returns the Google service account that is used by Storage Transfer
|
39
|
+
# Service to access buckets in the project where transfers
|
40
|
+
# run or in other projects. Each Google service account is associated
|
41
|
+
# with one Google Cloud Platform Console project. Users
|
42
|
+
# should add this service account to the Google Cloud Storage bucket
|
43
|
+
# ACLs to grant access to Storage Transfer Service. This service
|
44
|
+
# account is created and owned by Storage Transfer Service and can
|
45
|
+
# only be used by Storage Transfer Service.
|
46
|
+
rpc :GetGoogleServiceAccount, ::Google::Cloud::StorageTransfer::V1::GetGoogleServiceAccountRequest, ::Google::Cloud::StorageTransfer::V1::GoogleServiceAccount
|
47
|
+
# Creates a transfer job that runs periodically.
|
48
|
+
rpc :CreateTransferJob, ::Google::Cloud::StorageTransfer::V1::CreateTransferJobRequest, ::Google::Cloud::StorageTransfer::V1::TransferJob
|
49
|
+
# Updates a transfer job. Updating a job's transfer spec does not affect
|
50
|
+
# transfer operations that are running already.
|
51
|
+
#
|
52
|
+
# **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status]
|
53
|
+
# field can be modified using this RPC (for example, to set a job's status to
|
54
|
+
# [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED],
|
55
|
+
# [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], or
|
56
|
+
# [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED]).
|
57
|
+
rpc :UpdateTransferJob, ::Google::Cloud::StorageTransfer::V1::UpdateTransferJobRequest, ::Google::Cloud::StorageTransfer::V1::TransferJob
|
58
|
+
# Gets a transfer job.
|
59
|
+
rpc :GetTransferJob, ::Google::Cloud::StorageTransfer::V1::GetTransferJobRequest, ::Google::Cloud::StorageTransfer::V1::TransferJob
|
60
|
+
# Lists transfer jobs.
|
61
|
+
rpc :ListTransferJobs, ::Google::Cloud::StorageTransfer::V1::ListTransferJobsRequest, ::Google::Cloud::StorageTransfer::V1::ListTransferJobsResponse
|
62
|
+
# Pauses a transfer operation.
|
63
|
+
rpc :PauseTransferOperation, ::Google::Cloud::StorageTransfer::V1::PauseTransferOperationRequest, ::Google::Protobuf::Empty
|
64
|
+
# Resumes a transfer operation that is paused.
|
65
|
+
rpc :ResumeTransferOperation, ::Google::Cloud::StorageTransfer::V1::ResumeTransferOperationRequest, ::Google::Protobuf::Empty
|
66
|
+
# Attempts to start a new TransferOperation for the current TransferJob. A
|
67
|
+
# TransferJob has a maximum of one active TransferOperation. If this method
|
68
|
+
# is called while a TransferOperation is active, an error wil be returned.
|
69
|
+
rpc :RunTransferJob, ::Google::Cloud::StorageTransfer::V1::RunTransferJobRequest, ::Google::Longrunning::Operation
|
70
|
+
end
|
71
|
+
|
72
|
+
Stub = Service.rpc_stub_class
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,193 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/storagetransfer/v1/transfer_types.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
require 'google/protobuf/any_pb'
|
9
|
+
require 'google/protobuf/duration_pb'
|
10
|
+
require 'google/protobuf/timestamp_pb'
|
11
|
+
require 'google/rpc/code_pb'
|
12
|
+
require 'google/type/date_pb'
|
13
|
+
require 'google/type/timeofday_pb'
|
14
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
|
+
add_file("google/storagetransfer/v1/transfer_types.proto", :syntax => :proto3) do
|
16
|
+
add_message "google.storagetransfer.v1.GoogleServiceAccount" do
|
17
|
+
optional :account_email, :string, 1
|
18
|
+
optional :subject_id, :string, 2
|
19
|
+
end
|
20
|
+
add_message "google.storagetransfer.v1.AwsAccessKey" do
|
21
|
+
optional :access_key_id, :string, 1
|
22
|
+
optional :secret_access_key, :string, 2
|
23
|
+
end
|
24
|
+
add_message "google.storagetransfer.v1.AzureCredentials" do
|
25
|
+
optional :sas_token, :string, 2
|
26
|
+
end
|
27
|
+
add_message "google.storagetransfer.v1.ObjectConditions" do
|
28
|
+
optional :min_time_elapsed_since_last_modification, :message, 1, "google.protobuf.Duration"
|
29
|
+
optional :max_time_elapsed_since_last_modification, :message, 2, "google.protobuf.Duration"
|
30
|
+
repeated :include_prefixes, :string, 3
|
31
|
+
repeated :exclude_prefixes, :string, 4
|
32
|
+
optional :last_modified_since, :message, 5, "google.protobuf.Timestamp"
|
33
|
+
optional :last_modified_before, :message, 6, "google.protobuf.Timestamp"
|
34
|
+
end
|
35
|
+
add_message "google.storagetransfer.v1.GcsData" do
|
36
|
+
optional :bucket_name, :string, 1
|
37
|
+
optional :path, :string, 3
|
38
|
+
end
|
39
|
+
add_message "google.storagetransfer.v1.AwsS3Data" do
|
40
|
+
optional :bucket_name, :string, 1
|
41
|
+
optional :aws_access_key, :message, 2, "google.storagetransfer.v1.AwsAccessKey"
|
42
|
+
optional :path, :string, 3
|
43
|
+
optional :role_arn, :string, 4
|
44
|
+
end
|
45
|
+
add_message "google.storagetransfer.v1.AzureBlobStorageData" do
|
46
|
+
optional :storage_account, :string, 1
|
47
|
+
optional :azure_credentials, :message, 2, "google.storagetransfer.v1.AzureCredentials"
|
48
|
+
optional :container, :string, 4
|
49
|
+
optional :path, :string, 5
|
50
|
+
end
|
51
|
+
add_message "google.storagetransfer.v1.HttpData" do
|
52
|
+
optional :list_url, :string, 1
|
53
|
+
end
|
54
|
+
add_message "google.storagetransfer.v1.TransferOptions" do
|
55
|
+
optional :overwrite_objects_already_existing_in_sink, :bool, 1
|
56
|
+
optional :delete_objects_unique_in_sink, :bool, 2
|
57
|
+
optional :delete_objects_from_source_after_transfer, :bool, 3
|
58
|
+
end
|
59
|
+
add_message "google.storagetransfer.v1.TransferSpec" do
|
60
|
+
optional :object_conditions, :message, 5, "google.storagetransfer.v1.ObjectConditions"
|
61
|
+
optional :transfer_options, :message, 6, "google.storagetransfer.v1.TransferOptions"
|
62
|
+
oneof :data_sink do
|
63
|
+
optional :gcs_data_sink, :message, 4, "google.storagetransfer.v1.GcsData"
|
64
|
+
end
|
65
|
+
oneof :data_source do
|
66
|
+
optional :gcs_data_source, :message, 1, "google.storagetransfer.v1.GcsData"
|
67
|
+
optional :aws_s3_data_source, :message, 2, "google.storagetransfer.v1.AwsS3Data"
|
68
|
+
optional :http_data_source, :message, 3, "google.storagetransfer.v1.HttpData"
|
69
|
+
optional :azure_blob_storage_data_source, :message, 8, "google.storagetransfer.v1.AzureBlobStorageData"
|
70
|
+
end
|
71
|
+
end
|
72
|
+
add_message "google.storagetransfer.v1.Schedule" do
|
73
|
+
optional :schedule_start_date, :message, 1, "google.type.Date"
|
74
|
+
optional :schedule_end_date, :message, 2, "google.type.Date"
|
75
|
+
optional :start_time_of_day, :message, 3, "google.type.TimeOfDay"
|
76
|
+
optional :end_time_of_day, :message, 4, "google.type.TimeOfDay"
|
77
|
+
optional :repeat_interval, :message, 5, "google.protobuf.Duration"
|
78
|
+
end
|
79
|
+
add_message "google.storagetransfer.v1.TransferJob" do
|
80
|
+
optional :name, :string, 1
|
81
|
+
optional :description, :string, 2
|
82
|
+
optional :project_id, :string, 3
|
83
|
+
optional :transfer_spec, :message, 4, "google.storagetransfer.v1.TransferSpec"
|
84
|
+
optional :notification_config, :message, 11, "google.storagetransfer.v1.NotificationConfig"
|
85
|
+
optional :schedule, :message, 5, "google.storagetransfer.v1.Schedule"
|
86
|
+
optional :status, :enum, 6, "google.storagetransfer.v1.TransferJob.Status"
|
87
|
+
optional :creation_time, :message, 7, "google.protobuf.Timestamp"
|
88
|
+
optional :last_modification_time, :message, 8, "google.protobuf.Timestamp"
|
89
|
+
optional :deletion_time, :message, 9, "google.protobuf.Timestamp"
|
90
|
+
optional :latest_operation_name, :string, 12
|
91
|
+
end
|
92
|
+
add_enum "google.storagetransfer.v1.TransferJob.Status" do
|
93
|
+
value :STATUS_UNSPECIFIED, 0
|
94
|
+
value :ENABLED, 1
|
95
|
+
value :DISABLED, 2
|
96
|
+
value :DELETED, 3
|
97
|
+
end
|
98
|
+
add_message "google.storagetransfer.v1.ErrorLogEntry" do
|
99
|
+
optional :url, :string, 1
|
100
|
+
repeated :error_details, :string, 3
|
101
|
+
end
|
102
|
+
add_message "google.storagetransfer.v1.ErrorSummary" do
|
103
|
+
optional :error_code, :enum, 1, "google.rpc.Code"
|
104
|
+
optional :error_count, :int64, 2
|
105
|
+
repeated :error_log_entries, :message, 3, "google.storagetransfer.v1.ErrorLogEntry"
|
106
|
+
end
|
107
|
+
add_message "google.storagetransfer.v1.TransferCounters" do
|
108
|
+
optional :objects_found_from_source, :int64, 1
|
109
|
+
optional :bytes_found_from_source, :int64, 2
|
110
|
+
optional :objects_found_only_from_sink, :int64, 3
|
111
|
+
optional :bytes_found_only_from_sink, :int64, 4
|
112
|
+
optional :objects_from_source_skipped_by_sync, :int64, 5
|
113
|
+
optional :bytes_from_source_skipped_by_sync, :int64, 6
|
114
|
+
optional :objects_copied_to_sink, :int64, 7
|
115
|
+
optional :bytes_copied_to_sink, :int64, 8
|
116
|
+
optional :objects_deleted_from_source, :int64, 9
|
117
|
+
optional :bytes_deleted_from_source, :int64, 10
|
118
|
+
optional :objects_deleted_from_sink, :int64, 11
|
119
|
+
optional :bytes_deleted_from_sink, :int64, 12
|
120
|
+
optional :objects_from_source_failed, :int64, 13
|
121
|
+
optional :bytes_from_source_failed, :int64, 14
|
122
|
+
optional :objects_failed_to_delete_from_sink, :int64, 15
|
123
|
+
optional :bytes_failed_to_delete_from_sink, :int64, 16
|
124
|
+
end
|
125
|
+
add_message "google.storagetransfer.v1.NotificationConfig" do
|
126
|
+
optional :pubsub_topic, :string, 1
|
127
|
+
repeated :event_types, :enum, 2, "google.storagetransfer.v1.NotificationConfig.EventType"
|
128
|
+
optional :payload_format, :enum, 3, "google.storagetransfer.v1.NotificationConfig.PayloadFormat"
|
129
|
+
end
|
130
|
+
add_enum "google.storagetransfer.v1.NotificationConfig.EventType" do
|
131
|
+
value :EVENT_TYPE_UNSPECIFIED, 0
|
132
|
+
value :TRANSFER_OPERATION_SUCCESS, 1
|
133
|
+
value :TRANSFER_OPERATION_FAILED, 2
|
134
|
+
value :TRANSFER_OPERATION_ABORTED, 3
|
135
|
+
end
|
136
|
+
add_enum "google.storagetransfer.v1.NotificationConfig.PayloadFormat" do
|
137
|
+
value :PAYLOAD_FORMAT_UNSPECIFIED, 0
|
138
|
+
value :NONE, 1
|
139
|
+
value :JSON, 2
|
140
|
+
end
|
141
|
+
add_message "google.storagetransfer.v1.TransferOperation" do
|
142
|
+
optional :name, :string, 1
|
143
|
+
optional :project_id, :string, 2
|
144
|
+
optional :transfer_spec, :message, 3, "google.storagetransfer.v1.TransferSpec"
|
145
|
+
optional :notification_config, :message, 10, "google.storagetransfer.v1.NotificationConfig"
|
146
|
+
optional :start_time, :message, 4, "google.protobuf.Timestamp"
|
147
|
+
optional :end_time, :message, 5, "google.protobuf.Timestamp"
|
148
|
+
optional :status, :enum, 6, "google.storagetransfer.v1.TransferOperation.Status"
|
149
|
+
optional :counters, :message, 7, "google.storagetransfer.v1.TransferCounters"
|
150
|
+
repeated :error_breakdowns, :message, 8, "google.storagetransfer.v1.ErrorSummary"
|
151
|
+
optional :transfer_job_name, :string, 9
|
152
|
+
end
|
153
|
+
add_enum "google.storagetransfer.v1.TransferOperation.Status" do
|
154
|
+
value :STATUS_UNSPECIFIED, 0
|
155
|
+
value :IN_PROGRESS, 1
|
156
|
+
value :PAUSED, 2
|
157
|
+
value :SUCCESS, 3
|
158
|
+
value :FAILED, 4
|
159
|
+
value :ABORTED, 5
|
160
|
+
value :QUEUED, 6
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
module Google
|
166
|
+
module Cloud
|
167
|
+
module StorageTransfer
|
168
|
+
module V1
|
169
|
+
GoogleServiceAccount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.GoogleServiceAccount").msgclass
|
170
|
+
AwsAccessKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.AwsAccessKey").msgclass
|
171
|
+
AzureCredentials = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.AzureCredentials").msgclass
|
172
|
+
ObjectConditions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.ObjectConditions").msgclass
|
173
|
+
GcsData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.GcsData").msgclass
|
174
|
+
AwsS3Data = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.AwsS3Data").msgclass
|
175
|
+
AzureBlobStorageData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.AzureBlobStorageData").msgclass
|
176
|
+
HttpData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.HttpData").msgclass
|
177
|
+
TransferOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferOptions").msgclass
|
178
|
+
TransferSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferSpec").msgclass
|
179
|
+
Schedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.Schedule").msgclass
|
180
|
+
TransferJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferJob").msgclass
|
181
|
+
TransferJob::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferJob.Status").enummodule
|
182
|
+
ErrorLogEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.ErrorLogEntry").msgclass
|
183
|
+
ErrorSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.ErrorSummary").msgclass
|
184
|
+
TransferCounters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferCounters").msgclass
|
185
|
+
NotificationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.NotificationConfig").msgclass
|
186
|
+
NotificationConfig::EventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.NotificationConfig.EventType").enummodule
|
187
|
+
NotificationConfig::PayloadFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.NotificationConfig.PayloadFormat").enummodule
|
188
|
+
TransferOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferOperation").msgclass
|
189
|
+
TransferOperation::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferOperation.Status").enummodule
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Api
|
22
|
+
# An indicator of the behavior of a given field (for example, that a field
|
23
|
+
# is required in requests, or given as output but ignored as input).
|
24
|
+
# This **does not** change the behavior in protocol buffers itself; it only
|
25
|
+
# denotes the behavior and may affect how API tooling handles the field.
|
26
|
+
#
|
27
|
+
# Note: This enum **may** receive new values in the future.
|
28
|
+
module FieldBehavior
|
29
|
+
# Conventional default for enums. Do not use this.
|
30
|
+
FIELD_BEHAVIOR_UNSPECIFIED = 0
|
31
|
+
|
32
|
+
# Specifically denotes a field as optional.
|
33
|
+
# While all fields in protocol buffers are optional, this may be specified
|
34
|
+
# for emphasis if appropriate.
|
35
|
+
OPTIONAL = 1
|
36
|
+
|
37
|
+
# Denotes a field as required.
|
38
|
+
# This indicates that the field **must** be provided as part of the request,
|
39
|
+
# and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
|
40
|
+
REQUIRED = 2
|
41
|
+
|
42
|
+
# Denotes a field as output only.
|
43
|
+
# This indicates that the field is provided in responses, but including the
|
44
|
+
# field in a request does nothing (the server *must* ignore it and
|
45
|
+
# *must not* throw an error as a result of the field's presence).
|
46
|
+
OUTPUT_ONLY = 3
|
47
|
+
|
48
|
+
# Denotes a field as input only.
|
49
|
+
# This indicates that the field is provided in requests, and the
|
50
|
+
# corresponding field is not included in output.
|
51
|
+
INPUT_ONLY = 4
|
52
|
+
|
53
|
+
# Denotes a field as immutable.
|
54
|
+
# This indicates that the field may be set once in a request to create a
|
55
|
+
# resource, but may not be changed thereafter.
|
56
|
+
IMMUTABLE = 5
|
57
|
+
|
58
|
+
# Denotes that a (repeated) field is an unordered list.
|
59
|
+
# This indicates that the service may provide the elements of the list
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
|
+
# provided. Additionally, the list's order may or may not be stable.
|
62
|
+
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|