Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of storagetransfer v1 client #1496

Merged
merged 1 commit into from
Nov 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145006,6 +145006,8 @@
"/storagetransfer:v1/PauseTransferOperationRequest": pause_transfer_operation_request
"/storagetransfer:v1/ResumeTransferOperationRequest": resume_transfer_operation_request
"/storagetransfer:v1/Schedule": schedule
"/storagetransfer:v1/Schedule/endTimeOfDay": end_time_of_day
"/storagetransfer:v1/Schedule/repeatInterval": repeat_interval
"/storagetransfer:v1/Schedule/scheduleEndDate": schedule_end_date
"/storagetransfer:v1/Schedule/scheduleStartDate": schedule_start_date
"/storagetransfer:v1/Schedule/startTimeOfDay": start_time_of_day
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/storagetransfer_v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module Apis
# @see https://cloud.google.com/storage-transfer/docs
module StoragetransferV1
VERSION = 'V1'
REVISION = '20201027'
REVISION = '20201105'

# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
Expand Down
47 changes: 31 additions & 16 deletions generated/google/apis/storagetransfer_v1/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -326,14 +326,14 @@ def update!(**args)
# If the specified size of an object does not match the actual size of the
# object fetched, the object will not be transferred. * If the specified MD5
# does not match the MD5 computed from the transferred bytes, the object
# transfer will fail. For more information, see [Generating MD5 hashes](https://
# cloud.google.com/storage-transfer/docs/create-url-list#md5) * Ensure that each
# URL you specify is publicly accessible. For example, in Cloud Storage you can [
# share an object publicly] (https://cloud.google.com/storage/docs/cloud-console#
# _sharingdata) and get a link to it. * Storage Transfer Service obeys `robots.
# txt` rules and requires the source HTTP server to support `Range` requests and
# to return a `Content-Length` header in each response. * ObjectConditions have
# no effect when filtering objects to transfer.
# transfer will fail. For more information, see [Generating MD5 hashes] (https://
# cloud.google.com/storage-transfer/docs/create-url-list#md5-checksum) * Ensure
# that each URL you specify is publicly accessible. For example, in Cloud
# Storage you can [share an object publicly] (https://cloud.google.com/storage/
# docs/cloud-console#_sharingdata) and get a link to it. * Storage Transfer
# Service obeys `robots.txt` rules and requires the source HTTP server to
# support `Range` requests and to return a `Content-Length` header in each
# response. * ObjectConditions have no effect when filtering objects to transfer.
class HttpData
include Google::Apis::Core::Hashable

Expand Down Expand Up @@ -623,6 +623,19 @@ def update!(**args)
class Schedule
include Google::Apis::Core::Hashable

# Represents a time of day. The date and time zone are either not significant or
# are specified elsewhere. An API may choose to allow leap seconds. Related
# types are google.type.Date and `google.protobuf.Timestamp`.
# Corresponds to the JSON property `endTimeOfDay`
# @return [Google::Apis::StoragetransferV1::TimeOfDay]
attr_accessor :end_time_of_day

# Interval between the start of each scheduled TransferOperation. If unspecified,
# the default value is 24 hours. This value may not be less than 1 hour.
# Corresponds to the JSON property `repeatInterval`
# @return [String]
attr_accessor :repeat_interval

# Represents a whole or partial calendar date, such as a birthday. The time of
# day and time zone are either specified elsewhere or are insignificant. The
# date is relative to the Gregorian Calendar. This can represent one of the
Expand Down Expand Up @@ -660,6 +673,8 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@end_time_of_day = args[:end_time_of_day] if args.key?(:end_time_of_day)
@repeat_interval = args[:repeat_interval] if args.key?(:repeat_interval)
@schedule_end_date = args[:schedule_end_date] if args.key?(:schedule_end_date)
@schedule_start_date = args[:schedule_start_date] if args.key?(:schedule_start_date)
@start_time_of_day = args[:start_time_of_day] if args.key?(:start_time_of_day)
Expand Down Expand Up @@ -1137,14 +1152,14 @@ class TransferSpec
# If the specified size of an object does not match the actual size of the
# object fetched, the object will not be transferred. * If the specified MD5
# does not match the MD5 computed from the transferred bytes, the object
# transfer will fail. For more information, see [Generating MD5 hashes](https://
# cloud.google.com/storage-transfer/docs/create-url-list#md5) * Ensure that each
# URL you specify is publicly accessible. For example, in Cloud Storage you can [
# share an object publicly] (https://cloud.google.com/storage/docs/cloud-console#
# _sharingdata) and get a link to it. * Storage Transfer Service obeys `robots.
# txt` rules and requires the source HTTP server to support `Range` requests and
# to return a `Content-Length` header in each response. * ObjectConditions have
# no effect when filtering objects to transfer.
# transfer will fail. For more information, see [Generating MD5 hashes] (https://
# cloud.google.com/storage-transfer/docs/create-url-list#md5-checksum) * Ensure
# that each URL you specify is publicly accessible. For example, in Cloud
# Storage you can [share an object publicly] (https://cloud.google.com/storage/
# docs/cloud-console#_sharingdata) and get a link to it. * Storage Transfer
# Service obeys `robots.txt` rules and requires the source HTTP server to
# support `Range` requests and to return a `Content-Length` header in each
# response. * ObjectConditions have no effect when filtering objects to transfer.
# Corresponds to the JSON property `httpDataSource`
# @return [Google::Apis::StoragetransferV1::HttpData]
attr_accessor :http_data_source
Expand Down
3 changes: 3 additions & 0 deletions generated/google/apis/storagetransfer_v1/representations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@ class Representation < Google::Apis::Core::JsonRepresentation
class Schedule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time_of_day, as: 'endTimeOfDay', class: Google::Apis::StoragetransferV1::TimeOfDay, decorator: Google::Apis::StoragetransferV1::TimeOfDay::Representation

property :repeat_interval, as: 'repeatInterval'
property :schedule_end_date, as: 'scheduleEndDate', class: Google::Apis::StoragetransferV1::Date, decorator: Google::Apis::StoragetransferV1::Date::Representation

property :schedule_start_date, as: 'scheduleStartDate', class: Google::Apis::StoragetransferV1::Date, decorator: Google::Apis::StoragetransferV1::Date::Representation
Expand Down
6 changes: 3 additions & 3 deletions generated/google/apis/storagetransfer_v1/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ def list_transfer_jobs(filter, page_size: nil, page_token: nil, fields: nil, quo
end

# Updates a transfer job. Updating a job's transfer spec does not affect
# transfer operations that are running already. Updating a job's schedule is not
# allowed. **Note:** The job's status field can be modified using this RPC (for
# example, to set a job's status to DELETED, DISABLED, or ENABLED).
# transfer operations that are running already. **Note:** The job's status field
# can be modified using this RPC (for example, to set a job's status to DELETED,
# DISABLED, or ENABLED).
# @param [String] job_name
# Required. The name of job to update.
# @param [Google::Apis::StoragetransferV1::UpdateTransferJobRequest] update_transfer_job_request_object
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/storagetransfer_v1/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
"sha": "af15d561f1922e936be21bb35cbccac8415f2e2e"
"sha": "bfdbb25208c9c8330c7c0c94ec4dec4e2a868931"
}
}
]
Expand Down