google-api-client 0.13.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
- data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
- data/generated/google/apis/admin_directory_v1/service.rb +4 -1
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
- data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
- data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +747 -747
- data/generated/google/apis/appengine_v1/representations.rb +158 -158
- data/generated/google/apis/appengine_v1/service.rb +214 -214
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +6 -0
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +517 -515
- data/generated/google/apis/classroom_v1/representations.rb +147 -147
- data/generated/google/apis/classroom_v1/service.rb +1144 -1143
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
- data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
- data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
- data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
- data/generated/google/apis/cloudkms_v1/service.rb +276 -276
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +82 -6
- data/generated/google/apis/compute_beta/representations.rb +4 -0
- data/generated/google/apis/compute_beta/service.rb +1177 -834
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +371 -1
- data/generated/google/apis/compute_v1/representations.rb +139 -0
- data/generated/google/apis/compute_v1/service.rb +257 -9
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1122 -826
- data/generated/google/apis/container_v1/representations.rb +279 -135
- data/generated/google/apis/container_v1/service.rb +440 -98
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
- data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
- data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +450 -431
- data/generated/google/apis/dataproc_v1/representations.rb +92 -92
- data/generated/google/apis/dataproc_v1/service.rb +200 -200
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +397 -397
- data/generated/google/apis/datastore_v1/representations.rb +100 -100
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
- data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
- data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
- data/generated/google/apis/firebaserules_v1/service.rb +151 -151
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +9 -9
- data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
- data/generated/google/apis/genomics_v1/representations.rb +306 -306
- data/generated/google/apis/genomics_v1/service.rb +1172 -1172
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +243 -243
- data/generated/google/apis/iam_v1/representations.rb +79 -79
- data/generated/google/apis/iam_v1/service.rb +137 -137
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +451 -451
- data/generated/google/apis/language_v1/representations.rb +103 -103
- data/generated/google/apis/language_v1/service.rb +49 -49
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +459 -459
- data/generated/google/apis/language_v1beta1/representations.rb +110 -110
- data/generated/google/apis/language_v1beta1/service.rb +43 -43
- data/generated/google/apis/logging_v2.rb +8 -8
- data/generated/google/apis/logging_v2/classes.rb +915 -915
- data/generated/google/apis/logging_v2/representations.rb +142 -142
- data/generated/google/apis/logging_v2/service.rb +415 -415
- data/generated/google/apis/logging_v2beta1.rb +8 -8
- data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
- data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
- data/generated/google/apis/logging_v2beta1/service.rb +221 -221
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
- data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
- data/generated/google/apis/manufacturers_v1/service.rb +101 -4
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +709 -673
- data/generated/google/apis/ml_v1/representations.rb +154 -151
- data/generated/google/apis/ml_v1/service.rb +341 -354
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +869 -869
- data/generated/google/apis/monitoring_v3/representations.rb +171 -171
- data/generated/google/apis/monitoring_v3/service.rb +340 -340
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1569 -1569
- data/generated/google/apis/partners_v2/representations.rb +256 -256
- data/generated/google/apis/partners_v2/service.rb +530 -530
- data/generated/google/apis/people_v1.rb +7 -7
- data/generated/google/apis/people_v1/classes.rb +1287 -946
- data/generated/google/apis/people_v1/representations.rb +355 -203
- data/generated/google/apis/people_v1/service.rb +409 -32
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +286 -287
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +178 -178
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
- data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/script_v1.rb +4 -4
- data/generated/google/apis/script_v1/classes.rb +172 -172
- data/generated/google/apis/script_v1/representations.rb +41 -41
- data/generated/google/apis/script_v1/service.rb +6 -6
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
- data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
- data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
- data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
- data/generated/google/apis/servicemanagement_v1.rb +6 -6
- data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
- data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
- data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
- data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
- data/generated/google/apis/serviceuser_v1/service.rb +59 -59
- data/generated/google/apis/sheets_v4.rb +5 -5
- data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
- data/generated/google/apis/sheets_v4/representations.rb +957 -940
- data/generated/google/apis/sheets_v4/service.rb +175 -175
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2932 -2905
- data/generated/google/apis/slides_v1/representations.rb +709 -694
- data/generated/google/apis/slides_v1/service.rb +50 -50
- data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
- data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
- data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
- data/generated/google/apis/spanner_v1.rb +7 -1
- data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
- data/generated/google/apis/spanner_v1/representations.rb +342 -323
- data/generated/google/apis/spanner_v1/service.rb +502 -492
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
- data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
- data/generated/google/apis/speech_v1beta1/service.rb +91 -91
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
- data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
- data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
- data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
- data/generated/google/apis/translate_v2/classes.rb +107 -107
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +81 -81
- data/generated/google/apis/vision_v1.rb +4 -1
- data/generated/google/apis/vision_v1/classes.rb +527 -527
- data/generated/google/apis/vision_v1/representations.rb +115 -115
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
- data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
- data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/analytics.rb +2 -2
- metadata +2 -2
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/storage/docs/json_api/
|
26
26
|
module StorageV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170607'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/storage/transfer
|
27
27
|
module StoragetransferV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20170707'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -22,231 +22,95 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module StoragetransferV1
|
24
24
|
|
25
|
-
#
|
26
|
-
class
|
27
|
-
include Google::Apis::Core::Hashable
|
28
|
-
|
29
|
-
# This resource represents the configuration of a transfer job that runs
|
30
|
-
# periodically.
|
31
|
-
# Corresponds to the JSON property `transferJob`
|
32
|
-
# @return [Google::Apis::StoragetransferV1::TransferJob]
|
33
|
-
attr_accessor :transfer_job
|
34
|
-
|
35
|
-
# The ID of the Google Cloud Platform Console project that owns the job.
|
36
|
-
# Required.
|
37
|
-
# Corresponds to the JSON property `projectId`
|
38
|
-
# @return [String]
|
39
|
-
attr_accessor :project_id
|
40
|
-
|
41
|
-
# The field mask of the fields in `transferJob` that are to be updated in
|
42
|
-
# this request. Fields in `transferJob` that can be updated are:
|
43
|
-
# `description`, `transferSpec`, and `status`. To update the `transferSpec`
|
44
|
-
# of the job, a complete transfer specification has to be provided. An
|
45
|
-
# incomplete specification which misses any required fields will be rejected
|
46
|
-
# with the error `INVALID_ARGUMENT`.
|
47
|
-
# Corresponds to the JSON property `updateTransferJobFieldMask`
|
48
|
-
# @return [String]
|
49
|
-
attr_accessor :update_transfer_job_field_mask
|
50
|
-
|
51
|
-
def initialize(**args)
|
52
|
-
update!(**args)
|
53
|
-
end
|
54
|
-
|
55
|
-
# Update properties of this object
|
56
|
-
def update!(**args)
|
57
|
-
@transfer_job = args[:transfer_job] if args.key?(:transfer_job)
|
58
|
-
@project_id = args[:project_id] if args.key?(:project_id)
|
59
|
-
@update_transfer_job_field_mask = args[:update_transfer_job_field_mask] if args.key?(:update_transfer_job_field_mask)
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
# Conditions that determine which objects will be transferred.
|
64
|
-
class ObjectConditions
|
25
|
+
# A collection of counters that report the progress of a transfer operation.
|
26
|
+
class TransferCounters
|
65
27
|
include Google::Apis::Core::Hashable
|
66
28
|
|
67
|
-
#
|
68
|
-
#
|
69
|
-
#
|
70
|
-
|
71
|
-
# `NOW` - `maxTimeElapsedSinceLastModification` and less than
|
72
|
-
# `NOW` - `minTimeElapsedSinceLastModification`, or not have a
|
73
|
-
# `lastModificationTime`.
|
74
|
-
# Corresponds to the JSON property `minTimeElapsedSinceLastModification`
|
75
|
-
# @return [String]
|
76
|
-
attr_accessor :min_time_elapsed_since_last_modification
|
77
|
-
|
78
|
-
# `excludePrefixes` must follow the requirements described for
|
79
|
-
# `includePrefixes`.
|
80
|
-
# The max size of `excludePrefixes` is 1000.
|
81
|
-
# Corresponds to the JSON property `excludePrefixes`
|
82
|
-
# @return [Array<String>]
|
83
|
-
attr_accessor :exclude_prefixes
|
84
|
-
|
85
|
-
# `maxTimeElapsedSinceLastModification` is the complement to
|
86
|
-
# `minTimeElapsedSinceLastModification`.
|
87
|
-
# Corresponds to the JSON property `maxTimeElapsedSinceLastModification`
|
88
|
-
# @return [String]
|
89
|
-
attr_accessor :max_time_elapsed_since_last_modification
|
90
|
-
|
91
|
-
# If `includePrefixes` is specified, objects that satisfy the object
|
92
|
-
# conditions must have names that start with one of the `includePrefixes`
|
93
|
-
# and that do not start with any of the `excludePrefixes`. If `includePrefixes`
|
94
|
-
# is not specified, all objects except those that have names starting with
|
95
|
-
# one of the `excludePrefixes` must satisfy the object conditions.
|
96
|
-
# Requirements:
|
97
|
-
# * Each include-prefix and exclude-prefix can contain any sequence of
|
98
|
-
# Unicode characters, of max length 1024 bytes when UTF8-encoded, and
|
99
|
-
# must not contain Carriage Return or Line Feed characters. Wildcard
|
100
|
-
# matching and regular expression matching are not supported.
|
101
|
-
# * Each include-prefix and exclude-prefix must omit the leading slash.
|
102
|
-
# For example, to include the `requests.gz` object in a transfer from
|
103
|
-
# `s3://my-aws-bucket/logs/y=2015/requests.gz`, specify the include
|
104
|
-
# prefix as `logs/y=2015/requests.gz`.
|
105
|
-
# * None of the include-prefix or the exclude-prefix values can be empty,
|
106
|
-
# if specified.
|
107
|
-
# * Each include-prefix must include a distinct portion of the object
|
108
|
-
# namespace, i.e., no include-prefix may be a prefix of another
|
109
|
-
# include-prefix.
|
110
|
-
# * Each exclude-prefix must exclude a distinct portion of the object
|
111
|
-
# namespace, i.e., no exclude-prefix may be a prefix of another
|
112
|
-
# exclude-prefix.
|
113
|
-
# * If `includePrefixes` is specified, then each exclude-prefix must start
|
114
|
-
# with the value of a path explicitly included by `includePrefixes`.
|
115
|
-
# The max size of `includePrefixes` is 1000.
|
116
|
-
# Corresponds to the JSON property `includePrefixes`
|
117
|
-
# @return [Array<String>]
|
118
|
-
attr_accessor :include_prefixes
|
29
|
+
# Bytes that are deleted from the data source.
|
30
|
+
# Corresponds to the JSON property `bytesDeletedFromSource`
|
31
|
+
# @return [Fixnum]
|
32
|
+
attr_accessor :bytes_deleted_from_source
|
119
33
|
|
120
|
-
|
121
|
-
|
122
|
-
|
34
|
+
# Objects found in the data source that are scheduled to be transferred,
|
35
|
+
# which will be copied, excluded based on conditions, or skipped due to
|
36
|
+
# failures.
|
37
|
+
# Corresponds to the JSON property `objectsFoundFromSource`
|
38
|
+
# @return [Fixnum]
|
39
|
+
attr_accessor :objects_found_from_source
|
123
40
|
|
124
|
-
#
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
@max_time_elapsed_since_last_modification = args[:max_time_elapsed_since_last_modification] if args.key?(:max_time_elapsed_since_last_modification)
|
129
|
-
@include_prefixes = args[:include_prefixes] if args.key?(:include_prefixes)
|
130
|
-
end
|
131
|
-
end
|
41
|
+
# Objects that failed to be deleted from the data sink.
|
42
|
+
# Corresponds to the JSON property `objectsFailedToDeleteFromSink`
|
43
|
+
# @return [Fixnum]
|
44
|
+
attr_accessor :objects_failed_to_delete_from_sink
|
132
45
|
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
46
|
+
# Objects that are deleted from the data sink.
|
47
|
+
# Corresponds to the JSON property `objectsDeletedFromSink`
|
48
|
+
# @return [Fixnum]
|
49
|
+
attr_accessor :objects_deleted_from_sink
|
137
50
|
|
138
|
-
#
|
139
|
-
#
|
140
|
-
#
|
141
|
-
|
142
|
-
# @return [Boolean]
|
143
|
-
attr_accessor :done
|
144
|
-
alias_method :done?, :done
|
51
|
+
# Objects found only in the data sink that are scheduled to be deleted.
|
52
|
+
# Corresponds to the JSON property `objectsFoundOnlyFromSink`
|
53
|
+
# @return [Fixnum]
|
54
|
+
attr_accessor :objects_found_only_from_sink
|
145
55
|
|
146
|
-
#
|
147
|
-
#
|
148
|
-
#
|
149
|
-
#
|
150
|
-
|
151
|
-
# is the original method name. For example, if the original method name
|
152
|
-
# is `TakeSnapshot()`, the inferred response type is
|
153
|
-
# `TakeSnapshotResponse`.
|
154
|
-
# Corresponds to the JSON property `response`
|
155
|
-
# @return [Hash<String,Object>]
|
156
|
-
attr_accessor :response
|
56
|
+
# Bytes in the data source that are not transferred because they already
|
57
|
+
# exist in the data sink.
|
58
|
+
# Corresponds to the JSON property `bytesFromSourceSkippedBySync`
|
59
|
+
# @return [Fixnum]
|
60
|
+
attr_accessor :bytes_from_source_skipped_by_sync
|
157
61
|
|
158
|
-
#
|
159
|
-
#
|
160
|
-
#
|
161
|
-
|
162
|
-
# @return [String]
|
163
|
-
attr_accessor :name
|
62
|
+
# Bytes that are deleted from the data sink.
|
63
|
+
# Corresponds to the JSON property `bytesDeletedFromSink`
|
64
|
+
# @return [Fixnum]
|
65
|
+
attr_accessor :bytes_deleted_from_sink
|
164
66
|
|
165
|
-
#
|
166
|
-
#
|
167
|
-
# [
|
168
|
-
|
169
|
-
# - Flexible enough to meet unexpected needs
|
170
|
-
# # Overview
|
171
|
-
# The `Status` message contains three pieces of data: error code, error message,
|
172
|
-
# and error details. The error code should be an enum value of
|
173
|
-
# google.rpc.Code, but it may accept additional error codes if needed. The
|
174
|
-
# error message should be a developer-facing English message that helps
|
175
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
176
|
-
# error message is needed, put the localized message in the error details or
|
177
|
-
# localize it in the client. The optional error details may contain arbitrary
|
178
|
-
# information about the error. There is a predefined set of error detail types
|
179
|
-
# in the package `google.rpc` that can be used for common error conditions.
|
180
|
-
# # Language mapping
|
181
|
-
# The `Status` message is the logical representation of the error model, but it
|
182
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
183
|
-
# exposed in different client libraries and different wire protocols, it can be
|
184
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
185
|
-
# in Java, but more likely mapped to some error codes in C.
|
186
|
-
# # Other uses
|
187
|
-
# The error model and the `Status` message can be used in a variety of
|
188
|
-
# environments, either with or without APIs, to provide a
|
189
|
-
# consistent developer experience across different environments.
|
190
|
-
# Example uses of this error model include:
|
191
|
-
# - Partial errors. If a service needs to return partial errors to the client,
|
192
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
193
|
-
# errors.
|
194
|
-
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
195
|
-
# have a `Status` message for error reporting.
|
196
|
-
# - Batch operations. If a client uses batch request and batch response, the
|
197
|
-
# `Status` message should be used directly inside batch response, one for
|
198
|
-
# each error sub-response.
|
199
|
-
# - Asynchronous operations. If an API call embeds asynchronous operation
|
200
|
-
# results in its response, the status of those operations should be
|
201
|
-
# represented directly using the `Status` message.
|
202
|
-
# - Logging. If some API errors are stored in logs, the message `Status` could
|
203
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
204
|
-
# Corresponds to the JSON property `error`
|
205
|
-
# @return [Google::Apis::StoragetransferV1::Status]
|
206
|
-
attr_accessor :error
|
67
|
+
# Bytes that failed to be deleted from the data sink.
|
68
|
+
# Corresponds to the JSON property `bytesFailedToDeleteFromSink`
|
69
|
+
# @return [Fixnum]
|
70
|
+
attr_accessor :bytes_failed_to_delete_from_sink
|
207
71
|
|
208
|
-
#
|
209
|
-
# Corresponds to the JSON property `
|
210
|
-
# @return [
|
211
|
-
attr_accessor :
|
72
|
+
# Bytes in the data source that failed during the transfer.
|
73
|
+
# Corresponds to the JSON property `bytesFromSourceFailed`
|
74
|
+
# @return [Fixnum]
|
75
|
+
attr_accessor :bytes_from_source_failed
|
212
76
|
|
213
|
-
|
214
|
-
|
215
|
-
|
77
|
+
# Objects in the data source that failed during the transfer.
|
78
|
+
# Corresponds to the JSON property `objectsFromSourceFailed`
|
79
|
+
# @return [Fixnum]
|
80
|
+
attr_accessor :objects_from_source_failed
|
216
81
|
|
217
|
-
#
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
@name = args[:name] if args.key?(:name)
|
222
|
-
@error = args[:error] if args.key?(:error)
|
223
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
224
|
-
end
|
225
|
-
end
|
82
|
+
# Objects that are copied to the data sink.
|
83
|
+
# Corresponds to the JSON property `objectsCopiedToSink`
|
84
|
+
# @return [Fixnum]
|
85
|
+
attr_accessor :objects_copied_to_sink
|
226
86
|
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
87
|
+
# Bytes found only in the data sink that are scheduled to be deleted.
|
88
|
+
# Corresponds to the JSON property `bytesFoundOnlyFromSink`
|
89
|
+
# @return [Fixnum]
|
90
|
+
attr_accessor :bytes_found_only_from_sink
|
231
91
|
|
232
|
-
#
|
233
|
-
# Corresponds to the JSON property `
|
234
|
-
# @return [
|
235
|
-
attr_accessor :
|
236
|
-
alias_method :delete_objects_unique_in_sink?, :delete_objects_unique_in_sink
|
92
|
+
# Objects that are deleted from the data source.
|
93
|
+
# Corresponds to the JSON property `objectsDeletedFromSource`
|
94
|
+
# @return [Fixnum]
|
95
|
+
attr_accessor :objects_deleted_from_source
|
237
96
|
|
238
|
-
#
|
239
|
-
# Corresponds to the JSON property `
|
240
|
-
# @return [
|
241
|
-
attr_accessor :
|
242
|
-
alias_method :overwrite_objects_already_existing_in_sink?, :overwrite_objects_already_existing_in_sink
|
97
|
+
# Bytes that are copied to the data sink.
|
98
|
+
# Corresponds to the JSON property `bytesCopiedToSink`
|
99
|
+
# @return [Fixnum]
|
100
|
+
attr_accessor :bytes_copied_to_sink
|
243
101
|
|
244
|
-
#
|
245
|
-
#
|
246
|
-
#
|
247
|
-
#
|
248
|
-
|
249
|
-
|
102
|
+
# Bytes found in the data source that are scheduled to be transferred,
|
103
|
+
# which will be copied, excluded based on conditions, or skipped due to
|
104
|
+
# failures.
|
105
|
+
# Corresponds to the JSON property `bytesFoundFromSource`
|
106
|
+
# @return [Fixnum]
|
107
|
+
attr_accessor :bytes_found_from_source
|
108
|
+
|
109
|
+
# Objects in the data source that are not transferred because they already
|
110
|
+
# exist in the data sink.
|
111
|
+
# Corresponds to the JSON property `objectsFromSourceSkippedBySync`
|
112
|
+
# @return [Fixnum]
|
113
|
+
attr_accessor :objects_from_source_skipped_by_sync
|
250
114
|
|
251
115
|
def initialize(**args)
|
252
116
|
update!(**args)
|
@@ -254,81 +118,45 @@ module Google
|
|
254
118
|
|
255
119
|
# Update properties of this object
|
256
120
|
def update!(**args)
|
257
|
-
@
|
258
|
-
@
|
259
|
-
@
|
121
|
+
@bytes_deleted_from_source = args[:bytes_deleted_from_source] if args.key?(:bytes_deleted_from_source)
|
122
|
+
@objects_found_from_source = args[:objects_found_from_source] if args.key?(:objects_found_from_source)
|
123
|
+
@objects_failed_to_delete_from_sink = args[:objects_failed_to_delete_from_sink] if args.key?(:objects_failed_to_delete_from_sink)
|
124
|
+
@objects_deleted_from_sink = args[:objects_deleted_from_sink] if args.key?(:objects_deleted_from_sink)
|
125
|
+
@objects_found_only_from_sink = args[:objects_found_only_from_sink] if args.key?(:objects_found_only_from_sink)
|
126
|
+
@bytes_from_source_skipped_by_sync = args[:bytes_from_source_skipped_by_sync] if args.key?(:bytes_from_source_skipped_by_sync)
|
127
|
+
@bytes_deleted_from_sink = args[:bytes_deleted_from_sink] if args.key?(:bytes_deleted_from_sink)
|
128
|
+
@bytes_failed_to_delete_from_sink = args[:bytes_failed_to_delete_from_sink] if args.key?(:bytes_failed_to_delete_from_sink)
|
129
|
+
@bytes_from_source_failed = args[:bytes_from_source_failed] if args.key?(:bytes_from_source_failed)
|
130
|
+
@objects_from_source_failed = args[:objects_from_source_failed] if args.key?(:objects_from_source_failed)
|
131
|
+
@objects_copied_to_sink = args[:objects_copied_to_sink] if args.key?(:objects_copied_to_sink)
|
132
|
+
@bytes_found_only_from_sink = args[:bytes_found_only_from_sink] if args.key?(:bytes_found_only_from_sink)
|
133
|
+
@objects_deleted_from_source = args[:objects_deleted_from_source] if args.key?(:objects_deleted_from_source)
|
134
|
+
@bytes_copied_to_sink = args[:bytes_copied_to_sink] if args.key?(:bytes_copied_to_sink)
|
135
|
+
@bytes_found_from_source = args[:bytes_found_from_source] if args.key?(:bytes_found_from_source)
|
136
|
+
@objects_from_source_skipped_by_sync = args[:objects_from_source_skipped_by_sync] if args.key?(:objects_from_source_skipped_by_sync)
|
260
137
|
end
|
261
138
|
end
|
262
139
|
|
263
|
-
#
|
264
|
-
|
140
|
+
# A summary of errors by error code, plus a count and sample error log
|
141
|
+
# entries.
|
142
|
+
class ErrorSummary
|
265
143
|
include Google::Apis::Core::Hashable
|
266
144
|
|
267
|
-
#
|
268
|
-
#
|
269
|
-
#
|
270
|
-
|
271
|
-
# @return [Google::Apis::StoragetransferV1::GcsData]
|
272
|
-
attr_accessor :gcs_data_source
|
273
|
-
|
274
|
-
# TransferOptions uses three boolean parameters to define the actions
|
275
|
-
# to be performed on objects in a transfer.
|
276
|
-
# Corresponds to the JSON property `transferOptions`
|
277
|
-
# @return [Google::Apis::StoragetransferV1::TransferOptions]
|
278
|
-
attr_accessor :transfer_options
|
279
|
-
|
280
|
-
# An AwsS3Data can be a data source, but not a data sink.
|
281
|
-
# In an AwsS3Data, an object's name is the S3 object's key name.
|
282
|
-
# Corresponds to the JSON property `awsS3DataSource`
|
283
|
-
# @return [Google::Apis::StoragetransferV1::AwsS3Data]
|
284
|
-
attr_accessor :aws_s3_data_source
|
285
|
-
|
286
|
-
# An HttpData specifies a list of objects on the web to be transferred over
|
287
|
-
# HTTP. The information of the objects to be transferred is contained in a
|
288
|
-
# file referenced by a URL. The first line in the file must be
|
289
|
-
# "TsvHttpData-1.0", which specifies the format of the file. Subsequent lines
|
290
|
-
# specify the information of the list of objects, one object per list entry.
|
291
|
-
# Each entry has the following tab-delimited fields:
|
292
|
-
# * HTTP URL - The location of the object.
|
293
|
-
# * Length - The size of the object in bytes.
|
294
|
-
# * MD5 - The base64-encoded MD5 hash of the object.
|
295
|
-
# For an example of a valid TSV file, see
|
296
|
-
# [Transferring data from URLs](https://cloud.google.com/storage/transfer/#urls)
|
297
|
-
# When transferring data based on a URL list, keep the following in mind:
|
298
|
-
# * When an object located at `http(s)://hostname:port/<URL-path>` is
|
299
|
-
# transferred
|
300
|
-
# to a data sink, the name of the object at the data sink is
|
301
|
-
# `<hostname>/<URL-path>`.
|
302
|
-
# * If the specified size of an object does not match the actual size of the
|
303
|
-
# object fetched, the object will not be transferred.
|
304
|
-
# * If the specified MD5 does not match the MD5 computed from the transferred
|
305
|
-
# bytes, the object transfer will fail. For more information, see
|
306
|
-
# [Generating MD5 hashes](https://cloud.google.com/storage/transfer/#md5)
|
307
|
-
# * Ensure that each URL you specify is publicly accessible. For
|
308
|
-
# example, in Google Cloud Storage you can
|
309
|
-
# [share an object publicly]
|
310
|
-
# (https://cloud.google.com/storage/docs/cloud-console#_sharingdata) and get
|
311
|
-
# a link to it.
|
312
|
-
# * Storage Transfer Service obeys `robots.txt` rules and requires the source
|
313
|
-
# HTTP server to support `Range` requests and to return a `Content-Length`
|
314
|
-
# header in each response.
|
315
|
-
# * [ObjectConditions](#ObjectConditions) have no effect when filtering objects
|
316
|
-
# to transfer.
|
317
|
-
# Corresponds to the JSON property `httpDataSource`
|
318
|
-
# @return [Google::Apis::StoragetransferV1::HttpData]
|
319
|
-
attr_accessor :http_data_source
|
145
|
+
# Required.
|
146
|
+
# Corresponds to the JSON property `errorCode`
|
147
|
+
# @return [String]
|
148
|
+
attr_accessor :error_code
|
320
149
|
|
321
|
-
#
|
322
|
-
#
|
323
|
-
#
|
324
|
-
|
150
|
+
# Count of this type of error.
|
151
|
+
# Required.
|
152
|
+
# Corresponds to the JSON property `errorCount`
|
153
|
+
# @return [Fixnum]
|
154
|
+
attr_accessor :error_count
|
325
155
|
|
326
|
-
#
|
327
|
-
#
|
328
|
-
#
|
329
|
-
|
330
|
-
# @return [Google::Apis::StoragetransferV1::GcsData]
|
331
|
-
attr_accessor :gcs_data_sink
|
156
|
+
# Error samples.
|
157
|
+
# Corresponds to the JSON property `errorLogEntries`
|
158
|
+
# @return [Array<Google::Apis::StoragetransferV1::ErrorLogEntry>]
|
159
|
+
attr_accessor :error_log_entries
|
332
160
|
|
333
161
|
def initialize(**args)
|
334
162
|
update!(**args)
|
@@ -336,87 +164,77 @@ module Google
|
|
336
164
|
|
337
165
|
# Update properties of this object
|
338
166
|
def update!(**args)
|
339
|
-
@
|
340
|
-
@
|
341
|
-
@
|
342
|
-
@http_data_source = args[:http_data_source] if args.key?(:http_data_source)
|
343
|
-
@object_conditions = args[:object_conditions] if args.key?(:object_conditions)
|
344
|
-
@gcs_data_sink = args[:gcs_data_sink] if args.key?(:gcs_data_sink)
|
167
|
+
@error_code = args[:error_code] if args.key?(:error_code)
|
168
|
+
@error_count = args[:error_count] if args.key?(:error_count)
|
169
|
+
@error_log_entries = args[:error_log_entries] if args.key?(:error_log_entries)
|
345
170
|
end
|
346
171
|
end
|
347
172
|
|
348
|
-
#
|
349
|
-
|
173
|
+
# An HttpData specifies a list of objects on the web to be transferred over
|
174
|
+
# HTTP. The information of the objects to be transferred is contained in a
|
175
|
+
# file referenced by a URL. The first line in the file must be
|
176
|
+
# "TsvHttpData-1.0", which specifies the format of the file. Subsequent lines
|
177
|
+
# specify the information of the list of objects, one object per list entry.
|
178
|
+
# Each entry has the following tab-delimited fields:
|
179
|
+
# * HTTP URL - The location of the object.
|
180
|
+
# * Length - The size of the object in bytes.
|
181
|
+
# * MD5 - The base64-encoded MD5 hash of the object.
|
182
|
+
# For an example of a valid TSV file, see
|
183
|
+
# [Transferring data from URLs](https://cloud.google.com/storage/transfer/#urls)
|
184
|
+
# When transferring data based on a URL list, keep the following in mind:
|
185
|
+
# * When an object located at `http(s)://hostname:port/<URL-path>` is
|
186
|
+
# transferred
|
187
|
+
# to a data sink, the name of the object at the data sink is
|
188
|
+
# `<hostname>/<URL-path>`.
|
189
|
+
# * If the specified size of an object does not match the actual size of the
|
190
|
+
# object fetched, the object will not be transferred.
|
191
|
+
# * If the specified MD5 does not match the MD5 computed from the transferred
|
192
|
+
# bytes, the object transfer will fail. For more information, see
|
193
|
+
# [Generating MD5 hashes](https://cloud.google.com/storage/transfer/#md5)
|
194
|
+
# * Ensure that each URL you specify is publicly accessible. For
|
195
|
+
# example, in Google Cloud Storage you can
|
196
|
+
# [share an object publicly]
|
197
|
+
# (https://cloud.google.com/storage/docs/cloud-console#_sharingdata) and get
|
198
|
+
# a link to it.
|
199
|
+
# * Storage Transfer Service obeys `robots.txt` rules and requires the source
|
200
|
+
# HTTP server to support `Range` requests and to return a `Content-Length`
|
201
|
+
# header in each response.
|
202
|
+
# * [ObjectConditions](#ObjectConditions) have no effect when filtering objects
|
203
|
+
# to transfer.
|
204
|
+
class HttpData
|
350
205
|
include Google::Apis::Core::Hashable
|
351
206
|
|
207
|
+
# The URL that points to the file that stores the object list entries.
|
208
|
+
# This file must allow public access. Currently, only URLs with HTTP and
|
209
|
+
# HTTPS schemes are supported.
|
210
|
+
# Required.
|
211
|
+
# Corresponds to the JSON property `listUrl`
|
212
|
+
# @return [String]
|
213
|
+
attr_accessor :list_url
|
214
|
+
|
352
215
|
def initialize(**args)
|
353
216
|
update!(**args)
|
354
217
|
end
|
355
218
|
|
356
219
|
# Update properties of this object
|
357
220
|
def update!(**args)
|
221
|
+
@list_url = args[:list_url] if args.key?(:list_url)
|
358
222
|
end
|
359
223
|
end
|
360
224
|
|
361
|
-
#
|
362
|
-
#
|
363
|
-
#
|
364
|
-
|
365
|
-
# - Flexible enough to meet unexpected needs
|
366
|
-
# # Overview
|
367
|
-
# The `Status` message contains three pieces of data: error code, error message,
|
368
|
-
# and error details. The error code should be an enum value of
|
369
|
-
# google.rpc.Code, but it may accept additional error codes if needed. The
|
370
|
-
# error message should be a developer-facing English message that helps
|
371
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
372
|
-
# error message is needed, put the localized message in the error details or
|
373
|
-
# localize it in the client. The optional error details may contain arbitrary
|
374
|
-
# information about the error. There is a predefined set of error detail types
|
375
|
-
# in the package `google.rpc` that can be used for common error conditions.
|
376
|
-
# # Language mapping
|
377
|
-
# The `Status` message is the logical representation of the error model, but it
|
378
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
379
|
-
# exposed in different client libraries and different wire protocols, it can be
|
380
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
381
|
-
# in Java, but more likely mapped to some error codes in C.
|
382
|
-
# # Other uses
|
383
|
-
# The error model and the `Status` message can be used in a variety of
|
384
|
-
# environments, either with or without APIs, to provide a
|
385
|
-
# consistent developer experience across different environments.
|
386
|
-
# Example uses of this error model include:
|
387
|
-
# - Partial errors. If a service needs to return partial errors to the client,
|
388
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
389
|
-
# errors.
|
390
|
-
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
391
|
-
# have a `Status` message for error reporting.
|
392
|
-
# - Batch operations. If a client uses batch request and batch response, the
|
393
|
-
# `Status` message should be used directly inside batch response, one for
|
394
|
-
# each error sub-response.
|
395
|
-
# - Asynchronous operations. If an API call embeds asynchronous operation
|
396
|
-
# results in its response, the status of those operations should be
|
397
|
-
# represented directly using the `Status` message.
|
398
|
-
# - Logging. If some API errors are stored in logs, the message `Status` could
|
399
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
400
|
-
class Status
|
225
|
+
# In a GcsData, an object's name is the Google Cloud Storage object's name and
|
226
|
+
# its `lastModificationTime` refers to the object's updated time, which changes
|
227
|
+
# when the content or the metadata of the object is updated.
|
228
|
+
class GcsData
|
401
229
|
include Google::Apis::Core::Hashable
|
402
230
|
|
403
|
-
#
|
404
|
-
#
|
405
|
-
#
|
406
|
-
#
|
231
|
+
# Google Cloud Storage bucket name (see
|
232
|
+
# [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#
|
233
|
+
# requirements)).
|
234
|
+
# Required.
|
235
|
+
# Corresponds to the JSON property `bucketName`
|
407
236
|
# @return [String]
|
408
|
-
attr_accessor :
|
409
|
-
|
410
|
-
# A list of messages that carry the error details. There will be a
|
411
|
-
# common set of message types for APIs to use.
|
412
|
-
# Corresponds to the JSON property `details`
|
413
|
-
# @return [Array<Hash<String,Object>>]
|
414
|
-
attr_accessor :details
|
415
|
-
|
416
|
-
# The status code, which should be an enum value of google.rpc.Code.
|
417
|
-
# Corresponds to the JSON property `code`
|
418
|
-
# @return [Fixnum]
|
419
|
-
attr_accessor :code
|
237
|
+
attr_accessor :bucket_name
|
420
238
|
|
421
239
|
def initialize(**args)
|
422
240
|
update!(**args)
|
@@ -424,25 +242,23 @@ module Google
|
|
424
242
|
|
425
243
|
# Update properties of this object
|
426
244
|
def update!(**args)
|
427
|
-
@
|
428
|
-
@details = args[:details] if args.key?(:details)
|
429
|
-
@code = args[:code] if args.key?(:code)
|
245
|
+
@bucket_name = args[:bucket_name] if args.key?(:bucket_name)
|
430
246
|
end
|
431
247
|
end
|
432
248
|
|
433
|
-
#
|
434
|
-
class
|
249
|
+
# Response from ListTransferJobs.
|
250
|
+
class ListTransferJobsResponse
|
435
251
|
include Google::Apis::Core::Hashable
|
436
252
|
|
437
|
-
# The
|
253
|
+
# The list next page token.
|
438
254
|
# Corresponds to the JSON property `nextPageToken`
|
439
255
|
# @return [String]
|
440
256
|
attr_accessor :next_page_token
|
441
257
|
|
442
|
-
# A list of
|
443
|
-
# Corresponds to the JSON property `
|
444
|
-
# @return [Array<Google::Apis::StoragetransferV1::
|
445
|
-
attr_accessor :
|
258
|
+
# A list of transfer jobs.
|
259
|
+
# Corresponds to the JSON property `transferJobs`
|
260
|
+
# @return [Array<Google::Apis::StoragetransferV1::TransferJob>]
|
261
|
+
attr_accessor :transfer_jobs
|
446
262
|
|
447
263
|
def initialize(**args)
|
448
264
|
update!(**args)
|
@@ -451,18 +267,35 @@ module Google
|
|
451
267
|
# Update properties of this object
|
452
268
|
def update!(**args)
|
453
269
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
454
|
-
@
|
270
|
+
@transfer_jobs = args[:transfer_jobs] if args.key?(:transfer_jobs)
|
455
271
|
end
|
456
272
|
end
|
457
273
|
|
458
|
-
#
|
459
|
-
class
|
274
|
+
# Request passed to UpdateTransferJob.
|
275
|
+
class UpdateTransferJobRequest
|
460
276
|
include Google::Apis::Core::Hashable
|
461
277
|
|
278
|
+
# The ID of the Google Cloud Platform Console project that owns the job.
|
462
279
|
# Required.
|
463
|
-
# Corresponds to the JSON property `
|
280
|
+
# Corresponds to the JSON property `projectId`
|
281
|
+
# @return [String]
|
282
|
+
attr_accessor :project_id
|
283
|
+
|
284
|
+
# The field mask of the fields in `transferJob` that are to be updated in
|
285
|
+
# this request. Fields in `transferJob` that can be updated are:
|
286
|
+
# `description`, `transferSpec`, and `status`. To update the `transferSpec`
|
287
|
+
# of the job, a complete transfer specification has to be provided. An
|
288
|
+
# incomplete specification which misses any required fields will be rejected
|
289
|
+
# with the error `INVALID_ARGUMENT`.
|
290
|
+
# Corresponds to the JSON property `updateTransferJobFieldMask`
|
464
291
|
# @return [String]
|
465
|
-
attr_accessor :
|
292
|
+
attr_accessor :update_transfer_job_field_mask
|
293
|
+
|
294
|
+
# This resource represents the configuration of a transfer job that runs
|
295
|
+
# periodically.
|
296
|
+
# Corresponds to the JSON property `transferJob`
|
297
|
+
# @return [Google::Apis::StoragetransferV1::TransferJob]
|
298
|
+
attr_accessor :transfer_job
|
466
299
|
|
467
300
|
def initialize(**args)
|
468
301
|
update!(**args)
|
@@ -470,37 +303,68 @@ module Google
|
|
470
303
|
|
471
304
|
# Update properties of this object
|
472
305
|
def update!(**args)
|
473
|
-
@
|
306
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
307
|
+
@update_transfer_job_field_mask = args[:update_transfer_job_field_mask] if args.key?(:update_transfer_job_field_mask)
|
308
|
+
@transfer_job = args[:transfer_job] if args.key?(:transfer_job)
|
474
309
|
end
|
475
310
|
end
|
476
311
|
|
477
|
-
#
|
478
|
-
|
479
|
-
# types are google.type.Date and `google.protobuf.Timestamp`.
|
480
|
-
class TimeOfDay
|
312
|
+
# Conditions that determine which objects will be transferred.
|
313
|
+
class ObjectConditions
|
481
314
|
include Google::Apis::Core::Hashable
|
482
315
|
|
483
|
-
#
|
484
|
-
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
|
316
|
+
# `excludePrefixes` must follow the requirements described for
|
317
|
+
# `includePrefixes`.
|
318
|
+
# The max size of `excludePrefixes` is 1000.
|
319
|
+
# Corresponds to the JSON property `excludePrefixes`
|
320
|
+
# @return [Array<String>]
|
321
|
+
attr_accessor :exclude_prefixes
|
488
322
|
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
|
323
|
+
# If unspecified, `minTimeElapsedSinceLastModification` takes a zero value
|
324
|
+
# and `maxTimeElapsedSinceLastModification` takes the maximum possible
|
325
|
+
# value of Duration. Objects that satisfy the object conditions
|
326
|
+
# must either have a `lastModificationTime` greater or equal to
|
327
|
+
# `NOW` - `maxTimeElapsedSinceLastModification` and less than
|
328
|
+
# `NOW` - `minTimeElapsedSinceLastModification`, or not have a
|
329
|
+
# `lastModificationTime`.
|
330
|
+
# Corresponds to the JSON property `minTimeElapsedSinceLastModification`
|
331
|
+
# @return [String]
|
332
|
+
attr_accessor :min_time_elapsed_since_last_modification
|
493
333
|
|
494
|
-
#
|
495
|
-
#
|
496
|
-
# Corresponds to the JSON property `
|
497
|
-
# @return [
|
498
|
-
attr_accessor :
|
334
|
+
# `maxTimeElapsedSinceLastModification` is the complement to
|
335
|
+
# `minTimeElapsedSinceLastModification`.
|
336
|
+
# Corresponds to the JSON property `maxTimeElapsedSinceLastModification`
|
337
|
+
# @return [String]
|
338
|
+
attr_accessor :max_time_elapsed_since_last_modification
|
499
339
|
|
500
|
-
#
|
501
|
-
#
|
502
|
-
#
|
503
|
-
|
340
|
+
# If `includePrefixes` is specified, objects that satisfy the object
|
341
|
+
# conditions must have names that start with one of the `includePrefixes`
|
342
|
+
# and that do not start with any of the `excludePrefixes`. If `includePrefixes`
|
343
|
+
# is not specified, all objects except those that have names starting with
|
344
|
+
# one of the `excludePrefixes` must satisfy the object conditions.
|
345
|
+
# Requirements:
|
346
|
+
# * Each include-prefix and exclude-prefix can contain any sequence of
|
347
|
+
# Unicode characters, of max length 1024 bytes when UTF8-encoded, and
|
348
|
+
# must not contain Carriage Return or Line Feed characters. Wildcard
|
349
|
+
# matching and regular expression matching are not supported.
|
350
|
+
# * Each include-prefix and exclude-prefix must omit the leading slash.
|
351
|
+
# For example, to include the `requests.gz` object in a transfer from
|
352
|
+
# `s3://my-aws-bucket/logs/y=2015/requests.gz`, specify the include
|
353
|
+
# prefix as `logs/y=2015/requests.gz`.
|
354
|
+
# * None of the include-prefix or the exclude-prefix values can be empty,
|
355
|
+
# if specified.
|
356
|
+
# * Each include-prefix must include a distinct portion of the object
|
357
|
+
# namespace, i.e., no include-prefix may be a prefix of another
|
358
|
+
# include-prefix.
|
359
|
+
# * Each exclude-prefix must exclude a distinct portion of the object
|
360
|
+
# namespace, i.e., no exclude-prefix may be a prefix of another
|
361
|
+
# exclude-prefix.
|
362
|
+
# * If `includePrefixes` is specified, then each exclude-prefix must start
|
363
|
+
# with the value of a path explicitly included by `includePrefixes`.
|
364
|
+
# The max size of `includePrefixes` is 1000.
|
365
|
+
# Corresponds to the JSON property `includePrefixes`
|
366
|
+
# @return [Array<String>]
|
367
|
+
attr_accessor :include_prefixes
|
504
368
|
|
505
369
|
def initialize(**args)
|
506
370
|
update!(**args)
|
@@ -508,28 +372,92 @@ module Google
|
|
508
372
|
|
509
373
|
# Update properties of this object
|
510
374
|
def update!(**args)
|
511
|
-
@
|
512
|
-
@
|
513
|
-
@
|
514
|
-
@
|
375
|
+
@exclude_prefixes = args[:exclude_prefixes] if args.key?(:exclude_prefixes)
|
376
|
+
@min_time_elapsed_since_last_modification = args[:min_time_elapsed_since_last_modification] if args.key?(:min_time_elapsed_since_last_modification)
|
377
|
+
@max_time_elapsed_since_last_modification = args[:max_time_elapsed_since_last_modification] if args.key?(:max_time_elapsed_since_last_modification)
|
378
|
+
@include_prefixes = args[:include_prefixes] if args.key?(:include_prefixes)
|
515
379
|
end
|
516
380
|
end
|
517
381
|
|
518
|
-
#
|
519
|
-
|
382
|
+
# This resource represents a long-running operation that is the result of a
|
383
|
+
# network API call.
|
384
|
+
class Operation
|
520
385
|
include Google::Apis::Core::Hashable
|
521
386
|
|
522
|
-
#
|
523
|
-
#
|
524
|
-
#
|
525
|
-
# Corresponds to the JSON property `
|
387
|
+
# If the value is `false`, it means the operation is still in progress.
|
388
|
+
# If true, the operation is completed, and either `error` or `response` is
|
389
|
+
# available.
|
390
|
+
# Corresponds to the JSON property `done`
|
391
|
+
# @return [Boolean]
|
392
|
+
attr_accessor :done
|
393
|
+
alias_method :done?, :done
|
394
|
+
|
395
|
+
# The normal response of the operation in case of success. If the original
|
396
|
+
# method returns no data on success, such as `Delete`, the response is
|
397
|
+
# `google.protobuf.Empty`. If the original method is standard
|
398
|
+
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
399
|
+
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
400
|
+
# is the original method name. For example, if the original method name
|
401
|
+
# is `TakeSnapshot()`, the inferred response type is
|
402
|
+
# `TakeSnapshotResponse`.
|
403
|
+
# Corresponds to the JSON property `response`
|
404
|
+
# @return [Hash<String,Object>]
|
405
|
+
attr_accessor :response
|
406
|
+
|
407
|
+
# The server-assigned name, which is only unique within the same service that
|
408
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
409
|
+
# have the format of `transferOperations/some/unique/name`.
|
410
|
+
# Corresponds to the JSON property `name`
|
526
411
|
# @return [String]
|
527
|
-
attr_accessor :
|
412
|
+
attr_accessor :name
|
528
413
|
|
529
|
-
#
|
530
|
-
#
|
531
|
-
#
|
532
|
-
|
414
|
+
# The `Status` type defines a logical error model that is suitable for different
|
415
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
416
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
417
|
+
# - Simple to use and understand for most users
|
418
|
+
# - Flexible enough to meet unexpected needs
|
419
|
+
# # Overview
|
420
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
421
|
+
# and error details. The error code should be an enum value of
|
422
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
423
|
+
# error message should be a developer-facing English message that helps
|
424
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
425
|
+
# error message is needed, put the localized message in the error details or
|
426
|
+
# localize it in the client. The optional error details may contain arbitrary
|
427
|
+
# information about the error. There is a predefined set of error detail types
|
428
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
429
|
+
# # Language mapping
|
430
|
+
# The `Status` message is the logical representation of the error model, but it
|
431
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
432
|
+
# exposed in different client libraries and different wire protocols, it can be
|
433
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
434
|
+
# in Java, but more likely mapped to some error codes in C.
|
435
|
+
# # Other uses
|
436
|
+
# The error model and the `Status` message can be used in a variety of
|
437
|
+
# environments, either with or without APIs, to provide a
|
438
|
+
# consistent developer experience across different environments.
|
439
|
+
# Example uses of this error model include:
|
440
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
441
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
442
|
+
# errors.
|
443
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
444
|
+
# have a `Status` message for error reporting.
|
445
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
446
|
+
# `Status` message should be used directly inside batch response, one for
|
447
|
+
# each error sub-response.
|
448
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
449
|
+
# results in its response, the status of those operations should be
|
450
|
+
# represented directly using the `Status` message.
|
451
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
452
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
453
|
+
# Corresponds to the JSON property `error`
|
454
|
+
# @return [Google::Apis::StoragetransferV1::Status]
|
455
|
+
attr_accessor :error
|
456
|
+
|
457
|
+
# Represents the transfer operation object.
|
458
|
+
# Corresponds to the JSON property `metadata`
|
459
|
+
# @return [Hash<String,Object>]
|
460
|
+
attr_accessor :metadata
|
533
461
|
|
534
462
|
def initialize(**args)
|
535
463
|
update!(**args)
|
@@ -537,70 +465,40 @@ module Google
|
|
537
465
|
|
538
466
|
# Update properties of this object
|
539
467
|
def update!(**args)
|
540
|
-
@
|
541
|
-
@
|
468
|
+
@done = args[:done] if args.key?(:done)
|
469
|
+
@response = args[:response] if args.key?(:response)
|
470
|
+
@name = args[:name] if args.key?(:name)
|
471
|
+
@error = args[:error] if args.key?(:error)
|
472
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
542
473
|
end
|
543
474
|
end
|
544
475
|
|
545
|
-
#
|
546
|
-
#
|
547
|
-
class
|
476
|
+
# TransferOptions uses three boolean parameters to define the actions
|
477
|
+
# to be performed on objects in a transfer.
|
478
|
+
class TransferOptions
|
548
479
|
include Google::Apis::Core::Hashable
|
549
480
|
|
550
|
-
#
|
551
|
-
#
|
552
|
-
#
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
# @return [Google::Apis::StoragetransferV1::TransferSpec]
|
558
|
-
attr_accessor :transfer_spec
|
559
|
-
|
560
|
-
# Status of the job. This value MUST be specified for
|
561
|
-
# `CreateTransferJobRequests`.
|
562
|
-
# NOTE: The effect of the new job status takes place during a subsequent job
|
563
|
-
# run. For example, if you change the job status from `ENABLED` to
|
564
|
-
# `DISABLED`, and an operation spawned by the transfer is running, the status
|
565
|
-
# change would not affect the current operation.
|
566
|
-
# Corresponds to the JSON property `status`
|
567
|
-
# @return [String]
|
568
|
-
attr_accessor :status
|
569
|
-
|
570
|
-
# Transfers can be scheduled to recur or to run just once.
|
571
|
-
# Corresponds to the JSON property `schedule`
|
572
|
-
# @return [Google::Apis::StoragetransferV1::Schedule]
|
573
|
-
attr_accessor :schedule
|
574
|
-
|
575
|
-
# A globally unique name assigned by Storage Transfer Service when the
|
576
|
-
# job is created. This field should be left empty in requests to create a new
|
577
|
-
# transfer job; otherwise, the requests result in an `INVALID_ARGUMENT`
|
578
|
-
# error.
|
579
|
-
# Corresponds to the JSON property `name`
|
580
|
-
# @return [String]
|
581
|
-
attr_accessor :name
|
582
|
-
|
583
|
-
# This field cannot be changed by user requests.
|
584
|
-
# Corresponds to the JSON property `deletionTime`
|
585
|
-
# @return [String]
|
586
|
-
attr_accessor :deletion_time
|
587
|
-
|
588
|
-
# This field cannot be changed by user requests.
|
589
|
-
# Corresponds to the JSON property `lastModificationTime`
|
590
|
-
# @return [String]
|
591
|
-
attr_accessor :last_modification_time
|
592
|
-
|
593
|
-
# The ID of the Google Cloud Platform Console project that owns the job.
|
594
|
-
# Required.
|
595
|
-
# Corresponds to the JSON property `projectId`
|
596
|
-
# @return [String]
|
597
|
-
attr_accessor :project_id
|
481
|
+
# Whether objects that exist only in the sink should be deleted. Note that
|
482
|
+
# this option and `deleteObjectsFromSourceAfterTransfer` are mutually
|
483
|
+
# exclusive.
|
484
|
+
# Corresponds to the JSON property `deleteObjectsUniqueInSink`
|
485
|
+
# @return [Boolean]
|
486
|
+
attr_accessor :delete_objects_unique_in_sink
|
487
|
+
alias_method :delete_objects_unique_in_sink?, :delete_objects_unique_in_sink
|
598
488
|
|
599
|
-
#
|
600
|
-
#
|
601
|
-
#
|
602
|
-
|
603
|
-
|
489
|
+
# Whether overwriting objects that already exist in the sink is allowed.
|
490
|
+
# Corresponds to the JSON property `overwriteObjectsAlreadyExistingInSink`
|
491
|
+
# @return [Boolean]
|
492
|
+
attr_accessor :overwrite_objects_already_existing_in_sink
|
493
|
+
alias_method :overwrite_objects_already_existing_in_sink?, :overwrite_objects_already_existing_in_sink
|
494
|
+
|
495
|
+
# Whether objects should be deleted from the source after they are
|
496
|
+
# transferred to the sink. Note that this option and
|
497
|
+
# `deleteObjectsUniqueInSink` are mutually exclusive.
|
498
|
+
# Corresponds to the JSON property `deleteObjectsFromSourceAfterTransfer`
|
499
|
+
# @return [Boolean]
|
500
|
+
attr_accessor :delete_objects_from_source_after_transfer
|
501
|
+
alias_method :delete_objects_from_source_after_transfer?, :delete_objects_from_source_after_transfer
|
604
502
|
|
605
503
|
def initialize(**args)
|
606
504
|
update!(**args)
|
@@ -608,50 +506,81 @@ module Google
|
|
608
506
|
|
609
507
|
# Update properties of this object
|
610
508
|
def update!(**args)
|
611
|
-
@
|
612
|
-
@
|
613
|
-
@
|
614
|
-
@schedule = args[:schedule] if args.key?(:schedule)
|
615
|
-
@name = args[:name] if args.key?(:name)
|
616
|
-
@deletion_time = args[:deletion_time] if args.key?(:deletion_time)
|
617
|
-
@last_modification_time = args[:last_modification_time] if args.key?(:last_modification_time)
|
618
|
-
@project_id = args[:project_id] if args.key?(:project_id)
|
619
|
-
@description = args[:description] if args.key?(:description)
|
509
|
+
@delete_objects_unique_in_sink = args[:delete_objects_unique_in_sink] if args.key?(:delete_objects_unique_in_sink)
|
510
|
+
@overwrite_objects_already_existing_in_sink = args[:overwrite_objects_already_existing_in_sink] if args.key?(:overwrite_objects_already_existing_in_sink)
|
511
|
+
@delete_objects_from_source_after_transfer = args[:delete_objects_from_source_after_transfer] if args.key?(:delete_objects_from_source_after_transfer)
|
620
512
|
end
|
621
513
|
end
|
622
514
|
|
623
|
-
#
|
624
|
-
class
|
515
|
+
# Configuration for running a transfer.
|
516
|
+
class TransferSpec
|
625
517
|
include Google::Apis::Core::Hashable
|
626
518
|
|
627
|
-
#
|
628
|
-
#
|
629
|
-
#
|
630
|
-
#
|
631
|
-
|
632
|
-
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
|
633
|
-
# and `google.protobuf.Timestamp`.
|
634
|
-
# Corresponds to the JSON property `scheduleEndDate`
|
635
|
-
# @return [Google::Apis::StoragetransferV1::Date]
|
636
|
-
attr_accessor :schedule_end_date
|
519
|
+
# TransferOptions uses three boolean parameters to define the actions
|
520
|
+
# to be performed on objects in a transfer.
|
521
|
+
# Corresponds to the JSON property `transferOptions`
|
522
|
+
# @return [Google::Apis::StoragetransferV1::TransferOptions]
|
523
|
+
attr_accessor :transfer_options
|
637
524
|
|
638
|
-
#
|
639
|
-
#
|
640
|
-
#
|
641
|
-
#
|
642
|
-
|
643
|
-
attr_accessor :start_time_of_day
|
525
|
+
# An AwsS3Data can be a data source, but not a data sink.
|
526
|
+
# In an AwsS3Data, an object's name is the S3 object's key name.
|
527
|
+
# Corresponds to the JSON property `awsS3DataSource`
|
528
|
+
# @return [Google::Apis::StoragetransferV1::AwsS3Data]
|
529
|
+
attr_accessor :aws_s3_data_source
|
644
530
|
|
645
|
-
#
|
646
|
-
#
|
647
|
-
#
|
648
|
-
#
|
649
|
-
#
|
650
|
-
#
|
651
|
-
#
|
652
|
-
#
|
653
|
-
#
|
654
|
-
|
531
|
+
# An HttpData specifies a list of objects on the web to be transferred over
|
532
|
+
# HTTP. The information of the objects to be transferred is contained in a
|
533
|
+
# file referenced by a URL. The first line in the file must be
|
534
|
+
# "TsvHttpData-1.0", which specifies the format of the file. Subsequent lines
|
535
|
+
# specify the information of the list of objects, one object per list entry.
|
536
|
+
# Each entry has the following tab-delimited fields:
|
537
|
+
# * HTTP URL - The location of the object.
|
538
|
+
# * Length - The size of the object in bytes.
|
539
|
+
# * MD5 - The base64-encoded MD5 hash of the object.
|
540
|
+
# For an example of a valid TSV file, see
|
541
|
+
# [Transferring data from URLs](https://cloud.google.com/storage/transfer/#urls)
|
542
|
+
# When transferring data based on a URL list, keep the following in mind:
|
543
|
+
# * When an object located at `http(s)://hostname:port/<URL-path>` is
|
544
|
+
# transferred
|
545
|
+
# to a data sink, the name of the object at the data sink is
|
546
|
+
# `<hostname>/<URL-path>`.
|
547
|
+
# * If the specified size of an object does not match the actual size of the
|
548
|
+
# object fetched, the object will not be transferred.
|
549
|
+
# * If the specified MD5 does not match the MD5 computed from the transferred
|
550
|
+
# bytes, the object transfer will fail. For more information, see
|
551
|
+
# [Generating MD5 hashes](https://cloud.google.com/storage/transfer/#md5)
|
552
|
+
# * Ensure that each URL you specify is publicly accessible. For
|
553
|
+
# example, in Google Cloud Storage you can
|
554
|
+
# [share an object publicly]
|
555
|
+
# (https://cloud.google.com/storage/docs/cloud-console#_sharingdata) and get
|
556
|
+
# a link to it.
|
557
|
+
# * Storage Transfer Service obeys `robots.txt` rules and requires the source
|
558
|
+
# HTTP server to support `Range` requests and to return a `Content-Length`
|
559
|
+
# header in each response.
|
560
|
+
# * [ObjectConditions](#ObjectConditions) have no effect when filtering objects
|
561
|
+
# to transfer.
|
562
|
+
# Corresponds to the JSON property `httpDataSource`
|
563
|
+
# @return [Google::Apis::StoragetransferV1::HttpData]
|
564
|
+
attr_accessor :http_data_source
|
565
|
+
|
566
|
+
# Conditions that determine which objects will be transferred.
|
567
|
+
# Corresponds to the JSON property `objectConditions`
|
568
|
+
# @return [Google::Apis::StoragetransferV1::ObjectConditions]
|
569
|
+
attr_accessor :object_conditions
|
570
|
+
|
571
|
+
# In a GcsData, an object's name is the Google Cloud Storage object's name and
|
572
|
+
# its `lastModificationTime` refers to the object's updated time, which changes
|
573
|
+
# when the content or the metadata of the object is updated.
|
574
|
+
# Corresponds to the JSON property `gcsDataSink`
|
575
|
+
# @return [Google::Apis::StoragetransferV1::GcsData]
|
576
|
+
attr_accessor :gcs_data_sink
|
577
|
+
|
578
|
+
# In a GcsData, an object's name is the Google Cloud Storage object's name and
|
579
|
+
# its `lastModificationTime` refers to the object's updated time, which changes
|
580
|
+
# when the content or the metadata of the object is updated.
|
581
|
+
# Corresponds to the JSON property `gcsDataSource`
|
582
|
+
# @return [Google::Apis::StoragetransferV1::GcsData]
|
583
|
+
attr_accessor :gcs_data_source
|
655
584
|
|
656
585
|
def initialize(**args)
|
657
586
|
update!(**args)
|
@@ -659,100 +588,87 @@ module Google
|
|
659
588
|
|
660
589
|
# Update properties of this object
|
661
590
|
def update!(**args)
|
662
|
-
@
|
663
|
-
@
|
664
|
-
@
|
591
|
+
@transfer_options = args[:transfer_options] if args.key?(:transfer_options)
|
592
|
+
@aws_s3_data_source = args[:aws_s3_data_source] if args.key?(:aws_s3_data_source)
|
593
|
+
@http_data_source = args[:http_data_source] if args.key?(:http_data_source)
|
594
|
+
@object_conditions = args[:object_conditions] if args.key?(:object_conditions)
|
595
|
+
@gcs_data_sink = args[:gcs_data_sink] if args.key?(:gcs_data_sink)
|
596
|
+
@gcs_data_source = args[:gcs_data_source] if args.key?(:gcs_data_source)
|
665
597
|
end
|
666
598
|
end
|
667
599
|
|
668
|
-
#
|
669
|
-
|
670
|
-
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
|
671
|
-
# represent a year and month where the day is not significant, e.g. credit card
|
672
|
-
# expiration date. The year may be 0 to represent a month and day independent
|
673
|
-
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
|
674
|
-
# and `google.protobuf.Timestamp`.
|
675
|
-
class Date
|
600
|
+
# Request passed to ResumeTransferOperation.
|
601
|
+
class ResumeTransferOperationRequest
|
676
602
|
include Google::Apis::Core::Hashable
|
677
603
|
|
678
|
-
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
679
|
-
# a year.
|
680
|
-
# Corresponds to the JSON property `year`
|
681
|
-
# @return [Fixnum]
|
682
|
-
attr_accessor :year
|
683
|
-
|
684
|
-
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
685
|
-
# if specifying a year/month where the day is not significant.
|
686
|
-
# Corresponds to the JSON property `day`
|
687
|
-
# @return [Fixnum]
|
688
|
-
attr_accessor :day
|
689
|
-
|
690
|
-
# Month of year. Must be from 1 to 12.
|
691
|
-
# Corresponds to the JSON property `month`
|
692
|
-
# @return [Fixnum]
|
693
|
-
attr_accessor :month
|
694
|
-
|
695
604
|
def initialize(**args)
|
696
605
|
update!(**args)
|
697
606
|
end
|
698
607
|
|
699
608
|
# Update properties of this object
|
700
609
|
def update!(**args)
|
701
|
-
@year = args[:year] if args.key?(:year)
|
702
|
-
@day = args[:day] if args.key?(:day)
|
703
|
-
@month = args[:month] if args.key?(:month)
|
704
610
|
end
|
705
611
|
end
|
706
612
|
|
707
|
-
#
|
708
|
-
|
613
|
+
# The `Status` type defines a logical error model that is suitable for different
|
614
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
615
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
616
|
+
# - Simple to use and understand for most users
|
617
|
+
# - Flexible enough to meet unexpected needs
|
618
|
+
# # Overview
|
619
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
620
|
+
# and error details. The error code should be an enum value of
|
621
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
622
|
+
# error message should be a developer-facing English message that helps
|
623
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
624
|
+
# error message is needed, put the localized message in the error details or
|
625
|
+
# localize it in the client. The optional error details may contain arbitrary
|
626
|
+
# information about the error. There is a predefined set of error detail types
|
627
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
628
|
+
# # Language mapping
|
629
|
+
# The `Status` message is the logical representation of the error model, but it
|
630
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
631
|
+
# exposed in different client libraries and different wire protocols, it can be
|
632
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
633
|
+
# in Java, but more likely mapped to some error codes in C.
|
634
|
+
# # Other uses
|
635
|
+
# The error model and the `Status` message can be used in a variety of
|
636
|
+
# environments, either with or without APIs, to provide a
|
637
|
+
# consistent developer experience across different environments.
|
638
|
+
# Example uses of this error model include:
|
639
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
640
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
641
|
+
# errors.
|
642
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
643
|
+
# have a `Status` message for error reporting.
|
644
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
645
|
+
# `Status` message should be used directly inside batch response, one for
|
646
|
+
# each error sub-response.
|
647
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
648
|
+
# results in its response, the status of those operations should be
|
649
|
+
# represented directly using the `Status` message.
|
650
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
651
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
652
|
+
class Status
|
709
653
|
include Google::Apis::Core::Hashable
|
710
654
|
|
711
|
-
#
|
712
|
-
#
|
713
|
-
#
|
714
|
-
|
715
|
-
|
716
|
-
# The name of the transfer job that triggers this transfer operation.
|
717
|
-
# Corresponds to the JSON property `transferJobName`
|
718
|
-
# @return [String]
|
719
|
-
attr_accessor :transfer_job_name
|
720
|
-
|
721
|
-
# Configuration for running a transfer.
|
722
|
-
# Corresponds to the JSON property `transferSpec`
|
723
|
-
# @return [Google::Apis::StoragetransferV1::TransferSpec]
|
724
|
-
attr_accessor :transfer_spec
|
725
|
-
|
726
|
-
# A collection of counters that report the progress of a transfer operation.
|
727
|
-
# Corresponds to the JSON property `counters`
|
728
|
-
# @return [Google::Apis::StoragetransferV1::TransferCounters]
|
729
|
-
attr_accessor :counters
|
730
|
-
|
731
|
-
# Status of the transfer operation.
|
732
|
-
# Corresponds to the JSON property `status`
|
733
|
-
# @return [String]
|
734
|
-
attr_accessor :status
|
735
|
-
|
736
|
-
# Summarizes errors encountered with sample error log entries.
|
737
|
-
# Corresponds to the JSON property `errorBreakdowns`
|
738
|
-
# @return [Array<Google::Apis::StoragetransferV1::ErrorSummary>]
|
739
|
-
attr_accessor :error_breakdowns
|
740
|
-
|
741
|
-
# A globally unique ID assigned by the system.
|
742
|
-
# Corresponds to the JSON property `name`
|
743
|
-
# @return [String]
|
744
|
-
attr_accessor :name
|
655
|
+
# A list of messages that carry the error details. There is a common set of
|
656
|
+
# message types for APIs to use.
|
657
|
+
# Corresponds to the JSON property `details`
|
658
|
+
# @return [Array<Hash<String,Object>>]
|
659
|
+
attr_accessor :details
|
745
660
|
|
746
|
-
# The
|
747
|
-
#
|
748
|
-
#
|
749
|
-
|
750
|
-
attr_accessor :project_id
|
661
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
662
|
+
# Corresponds to the JSON property `code`
|
663
|
+
# @return [Fixnum]
|
664
|
+
attr_accessor :code
|
751
665
|
|
752
|
-
#
|
753
|
-
#
|
666
|
+
# A developer-facing error message, which should be in English. Any
|
667
|
+
# user-facing error message should be localized and sent in the
|
668
|
+
# google.rpc.Status.details field, or localized by the client.
|
669
|
+
# Corresponds to the JSON property `message`
|
754
670
|
# @return [String]
|
755
|
-
attr_accessor :
|
671
|
+
attr_accessor :message
|
756
672
|
|
757
673
|
def initialize(**args)
|
758
674
|
update!(**args)
|
@@ -760,37 +676,25 @@ module Google
|
|
760
676
|
|
761
677
|
# Update properties of this object
|
762
678
|
def update!(**args)
|
763
|
-
@
|
764
|
-
@
|
765
|
-
@
|
766
|
-
@counters = args[:counters] if args.key?(:counters)
|
767
|
-
@status = args[:status] if args.key?(:status)
|
768
|
-
@error_breakdowns = args[:error_breakdowns] if args.key?(:error_breakdowns)
|
769
|
-
@name = args[:name] if args.key?(:name)
|
770
|
-
@project_id = args[:project_id] if args.key?(:project_id)
|
771
|
-
@end_time = args[:end_time] if args.key?(:end_time)
|
679
|
+
@details = args[:details] if args.key?(:details)
|
680
|
+
@code = args[:code] if args.key?(:code)
|
681
|
+
@message = args[:message] if args.key?(:message)
|
772
682
|
end
|
773
683
|
end
|
774
684
|
|
775
|
-
#
|
776
|
-
|
777
|
-
class AwsS3Data
|
685
|
+
# The response message for Operations.ListOperations.
|
686
|
+
class ListOperationsResponse
|
778
687
|
include Google::Apis::Core::Hashable
|
779
688
|
|
780
|
-
#
|
781
|
-
#
|
782
|
-
# security-credentials.html)).
|
783
|
-
# Corresponds to the JSON property `awsAccessKey`
|
784
|
-
# @return [Google::Apis::StoragetransferV1::AwsAccessKey]
|
785
|
-
attr_accessor :aws_access_key
|
786
|
-
|
787
|
-
# S3 Bucket name (see
|
788
|
-
# [Creating a bucket](http://docs.aws.amazon.com/AmazonS3/latest/dev/create-
|
789
|
-
# bucket-get-location-example.html)).
|
790
|
-
# Required.
|
791
|
-
# Corresponds to the JSON property `bucketName`
|
689
|
+
# The standard List next-page token.
|
690
|
+
# Corresponds to the JSON property `nextPageToken`
|
792
691
|
# @return [String]
|
793
|
-
attr_accessor :
|
692
|
+
attr_accessor :next_page_token
|
693
|
+
|
694
|
+
# A list of operations that matches the specified filter in the request.
|
695
|
+
# Corresponds to the JSON property `operations`
|
696
|
+
# @return [Array<Google::Apis::StoragetransferV1::Operation>]
|
697
|
+
attr_accessor :operations
|
794
698
|
|
795
699
|
def initialize(**args)
|
796
700
|
update!(**args)
|
@@ -798,28 +702,19 @@ module Google
|
|
798
702
|
|
799
703
|
# Update properties of this object
|
800
704
|
def update!(**args)
|
801
|
-
@
|
802
|
-
@
|
705
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
706
|
+
@operations = args[:operations] if args.key?(:operations)
|
803
707
|
end
|
804
708
|
end
|
805
709
|
|
806
|
-
#
|
807
|
-
|
808
|
-
# security-credentials.html)).
|
809
|
-
class AwsAccessKey
|
710
|
+
# Google service account
|
711
|
+
class GoogleServiceAccount
|
810
712
|
include Google::Apis::Core::Hashable
|
811
713
|
|
812
|
-
# AWS secret access key. This field is not returned in RPC responses.
|
813
|
-
# Required.
|
814
|
-
# Corresponds to the JSON property `secretAccessKey`
|
815
|
-
# @return [String]
|
816
|
-
attr_accessor :secret_access_key
|
817
|
-
|
818
|
-
# AWS access key ID.
|
819
714
|
# Required.
|
820
|
-
# Corresponds to the JSON property `
|
715
|
+
# Corresponds to the JSON property `accountEmail`
|
821
716
|
# @return [String]
|
822
|
-
attr_accessor :
|
717
|
+
attr_accessor :account_email
|
823
718
|
|
824
719
|
def initialize(**args)
|
825
720
|
update!(**args)
|
@@ -827,132 +722,227 @@ module Google
|
|
827
722
|
|
828
723
|
# Update properties of this object
|
829
724
|
def update!(**args)
|
830
|
-
@
|
831
|
-
@access_key_id = args[:access_key_id] if args.key?(:access_key_id)
|
725
|
+
@account_email = args[:account_email] if args.key?(:account_email)
|
832
726
|
end
|
833
727
|
end
|
834
728
|
|
835
|
-
#
|
836
|
-
#
|
837
|
-
#
|
838
|
-
|
839
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
840
|
-
# `
|
841
|
-
# The JSON representation for `Empty` is empty JSON object ````.
|
842
|
-
class Empty
|
729
|
+
# Represents a time of day. The date and time zone are either not significant
|
730
|
+
# or are specified elsewhere. An API may choose to allow leap seconds. Related
|
731
|
+
# types are google.type.Date and `google.protobuf.Timestamp`.
|
732
|
+
class TimeOfDay
|
843
733
|
include Google::Apis::Core::Hashable
|
844
734
|
|
735
|
+
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
|
736
|
+
# to allow the value "24:00:00" for scenarios like business closing time.
|
737
|
+
# Corresponds to the JSON property `hours`
|
738
|
+
# @return [Fixnum]
|
739
|
+
attr_accessor :hours
|
740
|
+
|
741
|
+
# Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
|
742
|
+
# Corresponds to the JSON property `nanos`
|
743
|
+
# @return [Fixnum]
|
744
|
+
attr_accessor :nanos
|
745
|
+
|
746
|
+
# Seconds of minutes of the time. Must normally be from 0 to 59. An API may
|
747
|
+
# allow the value 60 if it allows leap-seconds.
|
748
|
+
# Corresponds to the JSON property `seconds`
|
749
|
+
# @return [Fixnum]
|
750
|
+
attr_accessor :seconds
|
751
|
+
|
752
|
+
# Minutes of hour of day. Must be from 0 to 59.
|
753
|
+
# Corresponds to the JSON property `minutes`
|
754
|
+
# @return [Fixnum]
|
755
|
+
attr_accessor :minutes
|
756
|
+
|
845
757
|
def initialize(**args)
|
846
758
|
update!(**args)
|
847
759
|
end
|
848
760
|
|
849
761
|
# Update properties of this object
|
850
762
|
def update!(**args)
|
763
|
+
@hours = args[:hours] if args.key?(:hours)
|
764
|
+
@nanos = args[:nanos] if args.key?(:nanos)
|
765
|
+
@seconds = args[:seconds] if args.key?(:seconds)
|
766
|
+
@minutes = args[:minutes] if args.key?(:minutes)
|
851
767
|
end
|
852
768
|
end
|
853
769
|
|
854
|
-
#
|
855
|
-
class
|
770
|
+
# An entry describing an error that has occurred.
|
771
|
+
class ErrorLogEntry
|
856
772
|
include Google::Apis::Core::Hashable
|
857
773
|
|
774
|
+
# A list of messages that carry the error details.
|
775
|
+
# Corresponds to the JSON property `errorDetails`
|
776
|
+
# @return [Array<String>]
|
777
|
+
attr_accessor :error_details
|
778
|
+
|
779
|
+
# A URL that refers to the target (a data source, a data sink,
|
780
|
+
# or an object) with which the error is associated.
|
781
|
+
# Required.
|
782
|
+
# Corresponds to the JSON property `url`
|
783
|
+
# @return [String]
|
784
|
+
attr_accessor :url
|
785
|
+
|
858
786
|
def initialize(**args)
|
859
787
|
update!(**args)
|
860
788
|
end
|
861
789
|
|
862
790
|
# Update properties of this object
|
863
791
|
def update!(**args)
|
792
|
+
@error_details = args[:error_details] if args.key?(:error_details)
|
793
|
+
@url = args[:url] if args.key?(:url)
|
864
794
|
end
|
865
795
|
end
|
866
796
|
|
867
|
-
#
|
868
|
-
|
797
|
+
# This resource represents the configuration of a transfer job that runs
|
798
|
+
# periodically.
|
799
|
+
class TransferJob
|
869
800
|
include Google::Apis::Core::Hashable
|
870
801
|
|
871
|
-
#
|
872
|
-
#
|
873
|
-
#
|
874
|
-
|
802
|
+
# A description provided by the user for the job. Its max length is 1024
|
803
|
+
# bytes when Unicode-encoded.
|
804
|
+
# Corresponds to the JSON property `description`
|
805
|
+
# @return [String]
|
806
|
+
attr_accessor :description
|
875
807
|
|
876
|
-
#
|
877
|
-
# Corresponds to the JSON property `
|
878
|
-
# @return [
|
879
|
-
attr_accessor :
|
808
|
+
# This field cannot be changed by user requests.
|
809
|
+
# Corresponds to the JSON property `creationTime`
|
810
|
+
# @return [String]
|
811
|
+
attr_accessor :creation_time
|
880
812
|
|
881
|
-
#
|
882
|
-
# Corresponds to the JSON property `
|
883
|
-
# @return [
|
884
|
-
attr_accessor :
|
813
|
+
# Configuration for running a transfer.
|
814
|
+
# Corresponds to the JSON property `transferSpec`
|
815
|
+
# @return [Google::Apis::StoragetransferV1::TransferSpec]
|
816
|
+
attr_accessor :transfer_spec
|
885
817
|
|
886
|
-
#
|
887
|
-
#
|
888
|
-
#
|
889
|
-
|
818
|
+
# Status of the job. This value MUST be specified for
|
819
|
+
# `CreateTransferJobRequests`.
|
820
|
+
# NOTE: The effect of the new job status takes place during a subsequent job
|
821
|
+
# run. For example, if you change the job status from `ENABLED` to
|
822
|
+
# `DISABLED`, and an operation spawned by the transfer is running, the status
|
823
|
+
# change would not affect the current operation.
|
824
|
+
# Corresponds to the JSON property `status`
|
825
|
+
# @return [String]
|
826
|
+
attr_accessor :status
|
890
827
|
|
891
|
-
#
|
892
|
-
# Corresponds to the JSON property `
|
893
|
-
# @return [
|
894
|
-
attr_accessor :
|
828
|
+
# Transfers can be scheduled to recur or to run just once.
|
829
|
+
# Corresponds to the JSON property `schedule`
|
830
|
+
# @return [Google::Apis::StoragetransferV1::Schedule]
|
831
|
+
attr_accessor :schedule
|
895
832
|
|
896
|
-
#
|
897
|
-
# Corresponds to the JSON property `
|
898
|
-
# @return [
|
899
|
-
attr_accessor :
|
833
|
+
# This field cannot be changed by user requests.
|
834
|
+
# Corresponds to the JSON property `deletionTime`
|
835
|
+
# @return [String]
|
836
|
+
attr_accessor :deletion_time
|
900
837
|
|
901
|
-
#
|
902
|
-
#
|
903
|
-
#
|
904
|
-
|
838
|
+
# A globally unique name assigned by Storage Transfer Service when the
|
839
|
+
# job is created. This field should be left empty in requests to create a new
|
840
|
+
# transfer job; otherwise, the requests result in an `INVALID_ARGUMENT`
|
841
|
+
# error.
|
842
|
+
# Corresponds to the JSON property `name`
|
843
|
+
# @return [String]
|
844
|
+
attr_accessor :name
|
905
845
|
|
906
|
-
#
|
907
|
-
#
|
908
|
-
#
|
909
|
-
|
846
|
+
# The ID of the Google Cloud Platform Console project that owns the job.
|
847
|
+
# Required.
|
848
|
+
# Corresponds to the JSON property `projectId`
|
849
|
+
# @return [String]
|
850
|
+
attr_accessor :project_id
|
910
851
|
|
911
|
-
#
|
912
|
-
#
|
913
|
-
#
|
914
|
-
|
915
|
-
# @return [Fixnum]
|
916
|
-
attr_accessor :bytes_found_from_source
|
852
|
+
# This field cannot be changed by user requests.
|
853
|
+
# Corresponds to the JSON property `lastModificationTime`
|
854
|
+
# @return [String]
|
855
|
+
attr_accessor :last_modification_time
|
917
856
|
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
# @return [Fixnum]
|
922
|
-
attr_accessor :objects_from_source_skipped_by_sync
|
857
|
+
def initialize(**args)
|
858
|
+
update!(**args)
|
859
|
+
end
|
923
860
|
|
924
|
-
#
|
925
|
-
|
926
|
-
|
927
|
-
|
861
|
+
# Update properties of this object
|
862
|
+
def update!(**args)
|
863
|
+
@description = args[:description] if args.key?(:description)
|
864
|
+
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
865
|
+
@transfer_spec = args[:transfer_spec] if args.key?(:transfer_spec)
|
866
|
+
@status = args[:status] if args.key?(:status)
|
867
|
+
@schedule = args[:schedule] if args.key?(:schedule)
|
868
|
+
@deletion_time = args[:deletion_time] if args.key?(:deletion_time)
|
869
|
+
@name = args[:name] if args.key?(:name)
|
870
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
871
|
+
@last_modification_time = args[:last_modification_time] if args.key?(:last_modification_time)
|
872
|
+
end
|
873
|
+
end
|
874
|
+
|
875
|
+
# Transfers can be scheduled to recur or to run just once.
|
876
|
+
class Schedule
|
877
|
+
include Google::Apis::Core::Hashable
|
878
|
+
|
879
|
+
# Represents a whole calendar date, e.g. date of birth. The time of day and
|
880
|
+
# time zone are either specified elsewhere or are not significant. The date
|
881
|
+
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
|
882
|
+
# represent a year and month where the day is not significant, e.g. credit card
|
883
|
+
# expiration date. The year may be 0 to represent a month and day independent
|
884
|
+
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
|
885
|
+
# and `google.protobuf.Timestamp`.
|
886
|
+
# Corresponds to the JSON property `scheduleEndDate`
|
887
|
+
# @return [Google::Apis::StoragetransferV1::Date]
|
888
|
+
attr_accessor :schedule_end_date
|
889
|
+
|
890
|
+
# Represents a time of day. The date and time zone are either not significant
|
891
|
+
# or are specified elsewhere. An API may choose to allow leap seconds. Related
|
892
|
+
# types are google.type.Date and `google.protobuf.Timestamp`.
|
893
|
+
# Corresponds to the JSON property `startTimeOfDay`
|
894
|
+
# @return [Google::Apis::StoragetransferV1::TimeOfDay]
|
895
|
+
attr_accessor :start_time_of_day
|
896
|
+
|
897
|
+
# Represents a whole calendar date, e.g. date of birth. The time of day and
|
898
|
+
# time zone are either specified elsewhere or are not significant. The date
|
899
|
+
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
|
900
|
+
# represent a year and month where the day is not significant, e.g. credit card
|
901
|
+
# expiration date. The year may be 0 to represent a month and day independent
|
902
|
+
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
|
903
|
+
# and `google.protobuf.Timestamp`.
|
904
|
+
# Corresponds to the JSON property `scheduleStartDate`
|
905
|
+
# @return [Google::Apis::StoragetransferV1::Date]
|
906
|
+
attr_accessor :schedule_start_date
|
928
907
|
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
# Corresponds to the JSON property `objectsFoundFromSource`
|
933
|
-
# @return [Fixnum]
|
934
|
-
attr_accessor :objects_found_from_source
|
908
|
+
def initialize(**args)
|
909
|
+
update!(**args)
|
910
|
+
end
|
935
911
|
|
936
|
-
#
|
937
|
-
|
938
|
-
|
939
|
-
|
912
|
+
# Update properties of this object
|
913
|
+
def update!(**args)
|
914
|
+
@schedule_end_date = args[:schedule_end_date] if args.key?(:schedule_end_date)
|
915
|
+
@start_time_of_day = args[:start_time_of_day] if args.key?(:start_time_of_day)
|
916
|
+
@schedule_start_date = args[:schedule_start_date] if args.key?(:schedule_start_date)
|
917
|
+
end
|
918
|
+
end
|
940
919
|
|
941
|
-
|
942
|
-
|
920
|
+
# Represents a whole calendar date, e.g. date of birth. The time of day and
|
921
|
+
# time zone are either specified elsewhere or are not significant. The date
|
922
|
+
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
|
923
|
+
# represent a year and month where the day is not significant, e.g. credit card
|
924
|
+
# expiration date. The year may be 0 to represent a month and day independent
|
925
|
+
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
|
926
|
+
# and `google.protobuf.Timestamp`.
|
927
|
+
class Date
|
928
|
+
include Google::Apis::Core::Hashable
|
929
|
+
|
930
|
+
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
931
|
+
# if specifying a year/month where the day is not significant.
|
932
|
+
# Corresponds to the JSON property `day`
|
943
933
|
# @return [Fixnum]
|
944
|
-
attr_accessor :
|
934
|
+
attr_accessor :day
|
945
935
|
|
946
|
-
#
|
947
|
-
#
|
936
|
+
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
937
|
+
# a year.
|
938
|
+
# Corresponds to the JSON property `year`
|
948
939
|
# @return [Fixnum]
|
949
|
-
attr_accessor :
|
940
|
+
attr_accessor :year
|
950
941
|
|
951
|
-
#
|
952
|
-
#
|
953
|
-
# Corresponds to the JSON property `bytesFromSourceSkippedBySync`
|
942
|
+
# Month of year. Must be from 1 to 12.
|
943
|
+
# Corresponds to the JSON property `month`
|
954
944
|
# @return [Fixnum]
|
955
|
-
attr_accessor :
|
945
|
+
attr_accessor :month
|
956
946
|
|
957
947
|
def initialize(**args)
|
958
948
|
update!(**args)
|
@@ -960,45 +950,61 @@ module Google
|
|
960
950
|
|
961
951
|
# Update properties of this object
|
962
952
|
def update!(**args)
|
963
|
-
@
|
964
|
-
@
|
965
|
-
@
|
966
|
-
@objects_copied_to_sink = args[:objects_copied_to_sink] if args.key?(:objects_copied_to_sink)
|
967
|
-
@objects_from_source_failed = args[:objects_from_source_failed] if args.key?(:objects_from_source_failed)
|
968
|
-
@bytes_found_only_from_sink = args[:bytes_found_only_from_sink] if args.key?(:bytes_found_only_from_sink)
|
969
|
-
@objects_deleted_from_source = args[:objects_deleted_from_source] if args.key?(:objects_deleted_from_source)
|
970
|
-
@bytes_copied_to_sink = args[:bytes_copied_to_sink] if args.key?(:bytes_copied_to_sink)
|
971
|
-
@bytes_found_from_source = args[:bytes_found_from_source] if args.key?(:bytes_found_from_source)
|
972
|
-
@objects_from_source_skipped_by_sync = args[:objects_from_source_skipped_by_sync] if args.key?(:objects_from_source_skipped_by_sync)
|
973
|
-
@bytes_deleted_from_source = args[:bytes_deleted_from_source] if args.key?(:bytes_deleted_from_source)
|
974
|
-
@objects_found_from_source = args[:objects_found_from_source] if args.key?(:objects_found_from_source)
|
975
|
-
@objects_failed_to_delete_from_sink = args[:objects_failed_to_delete_from_sink] if args.key?(:objects_failed_to_delete_from_sink)
|
976
|
-
@objects_found_only_from_sink = args[:objects_found_only_from_sink] if args.key?(:objects_found_only_from_sink)
|
977
|
-
@objects_deleted_from_sink = args[:objects_deleted_from_sink] if args.key?(:objects_deleted_from_sink)
|
978
|
-
@bytes_from_source_skipped_by_sync = args[:bytes_from_source_skipped_by_sync] if args.key?(:bytes_from_source_skipped_by_sync)
|
953
|
+
@day = args[:day] if args.key?(:day)
|
954
|
+
@year = args[:year] if args.key?(:year)
|
955
|
+
@month = args[:month] if args.key?(:month)
|
979
956
|
end
|
980
957
|
end
|
981
958
|
|
982
|
-
# A
|
983
|
-
|
984
|
-
class ErrorSummary
|
959
|
+
# A description of the execution of a transfer.
|
960
|
+
class TransferOperation
|
985
961
|
include Google::Apis::Core::Hashable
|
986
962
|
|
987
|
-
#
|
988
|
-
# Corresponds to the JSON property `
|
963
|
+
# End time of this transfer execution.
|
964
|
+
# Corresponds to the JSON property `endTime`
|
989
965
|
# @return [String]
|
990
|
-
attr_accessor :
|
966
|
+
attr_accessor :end_time
|
991
967
|
|
992
|
-
#
|
993
|
-
#
|
994
|
-
#
|
995
|
-
|
996
|
-
attr_accessor :error_count
|
968
|
+
# Start time of this transfer execution.
|
969
|
+
# Corresponds to the JSON property `startTime`
|
970
|
+
# @return [String]
|
971
|
+
attr_accessor :start_time
|
997
972
|
|
998
|
-
#
|
999
|
-
# Corresponds to the JSON property `
|
1000
|
-
# @return [
|
1001
|
-
attr_accessor :
|
973
|
+
# The name of the transfer job that triggers this transfer operation.
|
974
|
+
# Corresponds to the JSON property `transferJobName`
|
975
|
+
# @return [String]
|
976
|
+
attr_accessor :transfer_job_name
|
977
|
+
|
978
|
+
# Configuration for running a transfer.
|
979
|
+
# Corresponds to the JSON property `transferSpec`
|
980
|
+
# @return [Google::Apis::StoragetransferV1::TransferSpec]
|
981
|
+
attr_accessor :transfer_spec
|
982
|
+
|
983
|
+
# A collection of counters that report the progress of a transfer operation.
|
984
|
+
# Corresponds to the JSON property `counters`
|
985
|
+
# @return [Google::Apis::StoragetransferV1::TransferCounters]
|
986
|
+
attr_accessor :counters
|
987
|
+
|
988
|
+
# Status of the transfer operation.
|
989
|
+
# Corresponds to the JSON property `status`
|
990
|
+
# @return [String]
|
991
|
+
attr_accessor :status
|
992
|
+
|
993
|
+
# Summarizes errors encountered with sample error log entries.
|
994
|
+
# Corresponds to the JSON property `errorBreakdowns`
|
995
|
+
# @return [Array<Google::Apis::StoragetransferV1::ErrorSummary>]
|
996
|
+
attr_accessor :error_breakdowns
|
997
|
+
|
998
|
+
# A globally unique ID assigned by the system.
|
999
|
+
# Corresponds to the JSON property `name`
|
1000
|
+
# @return [String]
|
1001
|
+
attr_accessor :name
|
1002
|
+
|
1003
|
+
# The ID of the Google Cloud Platform Console project that owns the operation.
|
1004
|
+
# Required.
|
1005
|
+
# Corresponds to the JSON property `projectId`
|
1006
|
+
# @return [String]
|
1007
|
+
attr_accessor :project_id
|
1002
1008
|
|
1003
1009
|
def initialize(**args)
|
1004
1010
|
update!(**args)
|
@@ -1006,53 +1012,37 @@ module Google
|
|
1006
1012
|
|
1007
1013
|
# Update properties of this object
|
1008
1014
|
def update!(**args)
|
1009
|
-
@
|
1010
|
-
@
|
1011
|
-
@
|
1015
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
1016
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
1017
|
+
@transfer_job_name = args[:transfer_job_name] if args.key?(:transfer_job_name)
|
1018
|
+
@transfer_spec = args[:transfer_spec] if args.key?(:transfer_spec)
|
1019
|
+
@counters = args[:counters] if args.key?(:counters)
|
1020
|
+
@status = args[:status] if args.key?(:status)
|
1021
|
+
@error_breakdowns = args[:error_breakdowns] if args.key?(:error_breakdowns)
|
1022
|
+
@name = args[:name] if args.key?(:name)
|
1023
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
1012
1024
|
end
|
1013
1025
|
end
|
1014
1026
|
|
1015
|
-
# An
|
1016
|
-
#
|
1017
|
-
|
1018
|
-
# "TsvHttpData-1.0", which specifies the format of the file. Subsequent lines
|
1019
|
-
# specify the information of the list of objects, one object per list entry.
|
1020
|
-
# Each entry has the following tab-delimited fields:
|
1021
|
-
# * HTTP URL - The location of the object.
|
1022
|
-
# * Length - The size of the object in bytes.
|
1023
|
-
# * MD5 - The base64-encoded MD5 hash of the object.
|
1024
|
-
# For an example of a valid TSV file, see
|
1025
|
-
# [Transferring data from URLs](https://cloud.google.com/storage/transfer/#urls)
|
1026
|
-
# When transferring data based on a URL list, keep the following in mind:
|
1027
|
-
# * When an object located at `http(s)://hostname:port/<URL-path>` is
|
1028
|
-
# transferred
|
1029
|
-
# to a data sink, the name of the object at the data sink is
|
1030
|
-
# `<hostname>/<URL-path>`.
|
1031
|
-
# * If the specified size of an object does not match the actual size of the
|
1032
|
-
# object fetched, the object will not be transferred.
|
1033
|
-
# * If the specified MD5 does not match the MD5 computed from the transferred
|
1034
|
-
# bytes, the object transfer will fail. For more information, see
|
1035
|
-
# [Generating MD5 hashes](https://cloud.google.com/storage/transfer/#md5)
|
1036
|
-
# * Ensure that each URL you specify is publicly accessible. For
|
1037
|
-
# example, in Google Cloud Storage you can
|
1038
|
-
# [share an object publicly]
|
1039
|
-
# (https://cloud.google.com/storage/docs/cloud-console#_sharingdata) and get
|
1040
|
-
# a link to it.
|
1041
|
-
# * Storage Transfer Service obeys `robots.txt` rules and requires the source
|
1042
|
-
# HTTP server to support `Range` requests and to return a `Content-Length`
|
1043
|
-
# header in each response.
|
1044
|
-
# * [ObjectConditions](#ObjectConditions) have no effect when filtering objects
|
1045
|
-
# to transfer.
|
1046
|
-
class HttpData
|
1027
|
+
# An AwsS3Data can be a data source, but not a data sink.
|
1028
|
+
# In an AwsS3Data, an object's name is the S3 object's key name.
|
1029
|
+
class AwsS3Data
|
1047
1030
|
include Google::Apis::Core::Hashable
|
1048
1031
|
|
1049
|
-
#
|
1050
|
-
#
|
1051
|
-
#
|
1032
|
+
# AWS access key (see
|
1033
|
+
# [AWS Security Credentials](http://docs.aws.amazon.com/general/latest/gr/aws-
|
1034
|
+
# security-credentials.html)).
|
1035
|
+
# Corresponds to the JSON property `awsAccessKey`
|
1036
|
+
# @return [Google::Apis::StoragetransferV1::AwsAccessKey]
|
1037
|
+
attr_accessor :aws_access_key
|
1038
|
+
|
1039
|
+
# S3 Bucket name (see
|
1040
|
+
# [Creating a bucket](http://docs.aws.amazon.com/AmazonS3/latest/dev/create-
|
1041
|
+
# bucket-get-location-example.html)).
|
1052
1042
|
# Required.
|
1053
|
-
# Corresponds to the JSON property `
|
1043
|
+
# Corresponds to the JSON property `bucketName`
|
1054
1044
|
# @return [String]
|
1055
|
-
attr_accessor :
|
1045
|
+
attr_accessor :bucket_name
|
1056
1046
|
|
1057
1047
|
def initialize(**args)
|
1058
1048
|
update!(**args)
|
@@ -1060,47 +1050,62 @@ module Google
|
|
1060
1050
|
|
1061
1051
|
# Update properties of this object
|
1062
1052
|
def update!(**args)
|
1063
|
-
@
|
1053
|
+
@aws_access_key = args[:aws_access_key] if args.key?(:aws_access_key)
|
1054
|
+
@bucket_name = args[:bucket_name] if args.key?(:bucket_name)
|
1064
1055
|
end
|
1065
1056
|
end
|
1066
1057
|
|
1067
|
-
#
|
1068
|
-
#
|
1069
|
-
#
|
1070
|
-
|
1058
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
1059
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
1060
|
+
# or the response type of an API method. For instance:
|
1061
|
+
# service Foo `
|
1062
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
1063
|
+
# `
|
1064
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
1065
|
+
class Empty
|
1071
1066
|
include Google::Apis::Core::Hashable
|
1072
1067
|
|
1073
|
-
# Google Cloud Storage bucket name (see
|
1074
|
-
# [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#
|
1075
|
-
# requirements)).
|
1076
|
-
# Required.
|
1077
|
-
# Corresponds to the JSON property `bucketName`
|
1078
|
-
# @return [String]
|
1079
|
-
attr_accessor :bucket_name
|
1080
|
-
|
1081
1068
|
def initialize(**args)
|
1082
1069
|
update!(**args)
|
1083
1070
|
end
|
1084
1071
|
|
1085
1072
|
# Update properties of this object
|
1086
1073
|
def update!(**args)
|
1087
|
-
@bucket_name = args[:bucket_name] if args.key?(:bucket_name)
|
1088
1074
|
end
|
1089
1075
|
end
|
1090
1076
|
|
1091
|
-
#
|
1092
|
-
|
1077
|
+
# AWS access key (see
|
1078
|
+
# [AWS Security Credentials](http://docs.aws.amazon.com/general/latest/gr/aws-
|
1079
|
+
# security-credentials.html)).
|
1080
|
+
class AwsAccessKey
|
1093
1081
|
include Google::Apis::Core::Hashable
|
1094
1082
|
|
1095
|
-
#
|
1096
|
-
#
|
1083
|
+
# AWS secret access key. This field is not returned in RPC responses.
|
1084
|
+
# Required.
|
1085
|
+
# Corresponds to the JSON property `secretAccessKey`
|
1097
1086
|
# @return [String]
|
1098
|
-
attr_accessor :
|
1087
|
+
attr_accessor :secret_access_key
|
1099
1088
|
|
1100
|
-
#
|
1101
|
-
#
|
1102
|
-
#
|
1103
|
-
|
1089
|
+
# AWS access key ID.
|
1090
|
+
# Required.
|
1091
|
+
# Corresponds to the JSON property `accessKeyId`
|
1092
|
+
# @return [String]
|
1093
|
+
attr_accessor :access_key_id
|
1094
|
+
|
1095
|
+
def initialize(**args)
|
1096
|
+
update!(**args)
|
1097
|
+
end
|
1098
|
+
|
1099
|
+
# Update properties of this object
|
1100
|
+
def update!(**args)
|
1101
|
+
@secret_access_key = args[:secret_access_key] if args.key?(:secret_access_key)
|
1102
|
+
@access_key_id = args[:access_key_id] if args.key?(:access_key_id)
|
1103
|
+
end
|
1104
|
+
end
|
1105
|
+
|
1106
|
+
# Request passed to PauseTransferOperation.
|
1107
|
+
class PauseTransferOperationRequest
|
1108
|
+
include Google::Apis::Core::Hashable
|
1104
1109
|
|
1105
1110
|
def initialize(**args)
|
1106
1111
|
update!(**args)
|
@@ -1108,8 +1113,6 @@ module Google
|
|
1108
1113
|
|
1109
1114
|
# Update properties of this object
|
1110
1115
|
def update!(**args)
|
1111
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1112
|
-
@transfer_jobs = args[:transfer_jobs] if args.key?(:transfer_jobs)
|
1113
1116
|
end
|
1114
1117
|
end
|
1115
1118
|
end
|