Skip to content

Commit

Permalink
feat: Automated regeneration of StorageTransfer client (#11079)
Browse files Browse the repository at this point in the history
Auto-created at 2024-03-14 13:06:11 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Mar 14, 2024
1 parent 1d4a402 commit b112760
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.StorageTransfer.V1 do
API client metadata for GoogleApi.StorageTransfer.V1.
"""

@discovery_revision "20240302"
@discovery_revision "20240311"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.StorageTransfer.V1.Model.ReplicationSpec do
@moduledoc """
Specifies the configuration for running a replication job.
## Attributes
* `gcsDataSink` (*type:* `GoogleApi.StorageTransfer.V1.Model.GcsData.t`, *default:* `nil`) - Specifies cloud Storage data sink.
* `gcsDataSource` (*type:* `GoogleApi.StorageTransfer.V1.Model.GcsData.t`, *default:* `nil`) - Specifies cloud Storage data source.
* `objectConditions` (*type:* `GoogleApi.StorageTransfer.V1.Model.ObjectConditions.t`, *default:* `nil`) - Specifies the object conditions to only include objects that satisfy these conditions in the set of data source objects. Object conditions based on objects' "last modification time" do not exclude objects in a data sink.
* `transferOptions` (*type:* `GoogleApi.StorageTransfer.V1.Model.TransferOptions.t`, *default:* `nil`) - Specifies the actions to be performed on the object during replication. Delete options are not supported for replication and when specified, the request fails with an INVALID_ARGUMENT error.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:gcsDataSink => GoogleApi.StorageTransfer.V1.Model.GcsData.t() | nil,
:gcsDataSource => GoogleApi.StorageTransfer.V1.Model.GcsData.t() | nil,
:objectConditions => GoogleApi.StorageTransfer.V1.Model.ObjectConditions.t() | nil,
:transferOptions => GoogleApi.StorageTransfer.V1.Model.TransferOptions.t() | nil
}

field(:gcsDataSink, as: GoogleApi.StorageTransfer.V1.Model.GcsData)
field(:gcsDataSource, as: GoogleApi.StorageTransfer.V1.Model.GcsData)
field(:objectConditions, as: GoogleApi.StorageTransfer.V1.Model.ObjectConditions)
field(:transferOptions, as: GoogleApi.StorageTransfer.V1.Model.TransferOptions)
end

defimpl Poison.Decoder, for: GoogleApi.StorageTransfer.V1.Model.ReplicationSpec do
def decode(value, options) do
GoogleApi.StorageTransfer.V1.Model.ReplicationSpec.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.StorageTransfer.V1.Model.ReplicationSpec do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ defmodule GoogleApi.StorageTransfer.V1.Model.TransferJob do
* `name` (*type:* `String.t`, *default:* `nil`) - A unique name (within the transfer project) assigned when the job is created. If this field is empty in a CreateTransferJobRequest, Storage Transfer Service assigns a unique name. Otherwise, the specified name is used as the unique name for this job. If the specified name is in use by a job, the creation request fails with an ALREADY_EXISTS error. This name must start with `"transferJobs/"` prefix and end with a letter or a number, and should be no more than 128 characters. For transfers involving PosixFilesystem, this name must start with `transferJobs/OPI` specifically. For all other transfer types, this name must not start with `transferJobs/OPI`. Non-PosixFilesystem example: `"transferJobs/^(?!OPI)[A-Za-z0-9-._~]*[A-Za-z0-9]$"` PosixFilesystem example: `"transferJobs/OPI^[A-Za-z0-9-._~]*[A-Za-z0-9]$"` Applications must not rely on the enforcement of naming requirements involving OPI. Invalid job names fail with an INVALID_ARGUMENT error.
* `notificationConfig` (*type:* `GoogleApi.StorageTransfer.V1.Model.NotificationConfig.t`, *default:* `nil`) - Notification configuration. This is not supported for transfers involving PosixFilesystem.
* `projectId` (*type:* `String.t`, *default:* `nil`) - The ID of the Google Cloud project that owns the job.
* `replicationSpec` (*type:* `GoogleApi.StorageTransfer.V1.Model.ReplicationSpec.t`, *default:* `nil`) - Replication specification.
* `schedule` (*type:* `GoogleApi.StorageTransfer.V1.Model.Schedule.t`, *default:* `nil`) - Specifies schedule for the transfer job. This is an optional field. When the field is not set, the job never executes a transfer, unless you invoke RunTransferJob or update the job to have a non-empty schedule.
* `status` (*type:* `String.t`, *default:* `nil`) - Status of the job. This value MUST be specified for `CreateTransferJobRequests`. **Note:** The effect of the new job status takes place during a subsequent job run. For example, if you change the job status from ENABLED to DISABLED, and an operation spawned by the transfer is running, the status change would not affect the current operation.
* `transferSpec` (*type:* `GoogleApi.StorageTransfer.V1.Model.TransferSpec.t`, *default:* `nil`) - Transfer specification.
Expand All @@ -49,6 +50,7 @@ defmodule GoogleApi.StorageTransfer.V1.Model.TransferJob do
:name => String.t() | nil,
:notificationConfig => GoogleApi.StorageTransfer.V1.Model.NotificationConfig.t() | nil,
:projectId => String.t() | nil,
:replicationSpec => GoogleApi.StorageTransfer.V1.Model.ReplicationSpec.t() | nil,
:schedule => GoogleApi.StorageTransfer.V1.Model.Schedule.t() | nil,
:status => String.t() | nil,
:transferSpec => GoogleApi.StorageTransfer.V1.Model.TransferSpec.t() | nil
Expand All @@ -64,6 +66,7 @@ defmodule GoogleApi.StorageTransfer.V1.Model.TransferJob do
field(:name)
field(:notificationConfig, as: GoogleApi.StorageTransfer.V1.Model.NotificationConfig)
field(:projectId)
field(:replicationSpec, as: GoogleApi.StorageTransfer.V1.Model.ReplicationSpec)
field(:schedule, as: GoogleApi.StorageTransfer.V1.Model.Schedule)
field(:status)
field(:transferSpec, as: GoogleApi.StorageTransfer.V1.Model.TransferSpec)
Expand Down

0 comments on commit b112760

Please sign in to comment.