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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of DataMigration client #10913

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,733 changes: 2,518 additions & 215 deletions clients/data_migration/lib/google_api/data_migration/v1/api/projects.ex

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.DataMigration.V1 do
API client metadata for GoogleApi.DataMigration.V1.
"""

@discovery_revision "20221108"
@discovery_revision "20240228"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ defmodule GoogleApi.DataMigration.V1.Model.AlloyDbSettings do

## Attributes

* `databaseVersion` (*type:* `String.t`, *default:* `nil`) - Optional. The database engine major version. This is an optional field. If a database version is not supplied at cluster creation time, then a default database version will be used.
* `encryptionConfig` (*type:* `GoogleApi.DataMigration.V1.Model.EncryptionConfig.t`, *default:* `nil`) - Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data.
* `initialUser` (*type:* `GoogleApi.DataMigration.V1.Model.UserPassword.t`, *default:* `nil`) - Required. Input only. Initial user to setup during cluster creation. Required.
* `labels` (*type:* `map()`, *default:* `nil`) - Labels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' pairs.
* `primaryInstanceSettings` (*type:* `GoogleApi.DataMigration.V1.Model.PrimaryInstanceSettings.t`, *default:* `nil`) -
Expand All @@ -30,13 +32,17 @@ defmodule GoogleApi.DataMigration.V1.Model.AlloyDbSettings do
use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:databaseVersion => String.t() | nil,
:encryptionConfig => GoogleApi.DataMigration.V1.Model.EncryptionConfig.t() | nil,
:initialUser => GoogleApi.DataMigration.V1.Model.UserPassword.t() | nil,
:labels => map() | nil,
:primaryInstanceSettings =>
GoogleApi.DataMigration.V1.Model.PrimaryInstanceSettings.t() | nil,
:vpcNetwork => String.t() | nil
}

field(:databaseVersion)
field(:encryptionConfig, as: GoogleApi.DataMigration.V1.Model.EncryptionConfig)
field(:initialUser, as: GoogleApi.DataMigration.V1.Model.UserPassword)
field(:labels, type: :map)
field(:primaryInstanceSettings, as: GoogleApi.DataMigration.V1.Model.PrimaryInstanceSettings)
Expand Down
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.DataMigration.V1.Model.ApplyConversionWorkspaceRequest do
@moduledoc """
Request message for 'ApplyConversionWorkspace' request.

## Attributes

* `autoCommit` (*type:* `boolean()`, *default:* `nil`) - Optional. Specifies whether the conversion workspace is to be committed automatically after the apply.
* `connectionProfile` (*type:* `String.t`, *default:* `nil`) - Optional. Fully qualified (Uri) name of the destination connection profile.
* `dryRun` (*type:* `boolean()`, *default:* `nil`) - Optional. Only validates the apply process, but doesn't change the destination database. Only works for PostgreSQL destination connection profile.
* `filter` (*type:* `String.t`, *default:* `nil`) - Filter which entities to apply. Leaving this field empty will apply all of the entities. Supports Google AIP 160 based filtering.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:autoCommit => boolean() | nil,
:connectionProfile => String.t() | nil,
:dryRun => boolean() | nil,
:filter => String.t() | nil
}

field(:autoCommit)
field(:connectionProfile)
field(:dryRun)
field(:filter)
end

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

defimpl Poison.Encoder, for: GoogleApi.DataMigration.V1.Model.ApplyConversionWorkspaceRequest do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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.DataMigration.V1.Model.ApplyHash do
@moduledoc """
Apply a hash function on the value.

## Attributes

* `uuidFromBytes` (*type:* `GoogleApi.DataMigration.V1.Model.Empty.t`, *default:* `nil`) - Optional. Generate UUID from the data's byte array
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:uuidFromBytes => GoogleApi.DataMigration.V1.Model.Empty.t() | nil
}

field(:uuidFromBytes, as: GoogleApi.DataMigration.V1.Model.Empty)
end

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

defimpl Poison.Encoder, for: GoogleApi.DataMigration.V1.Model.ApplyHash do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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.DataMigration.V1.Model.ApplyJobDetails do
@moduledoc """
Details regarding an Apply background job.

## Attributes

* `connectionProfile` (*type:* `String.t`, *default:* `nil`) - Output only. The connection profile which was used for the apply job.
* `filter` (*type:* `String.t`, *default:* `nil`) - Output only. AIP-160 based filter used to specify the entities to apply
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:connectionProfile => String.t() | nil,
:filter => String.t() | nil
}

field(:connectionProfile)
field(:filter)
end

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

defimpl Poison.Encoder, for: GoogleApi.DataMigration.V1.Model.ApplyJobDetails do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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.DataMigration.V1.Model.AssignSpecificValue do
@moduledoc """
Set to a specific value (value is converted to fit the target data type)

## Attributes

* `value` (*type:* `String.t`, *default:* `nil`) - Required. Specific value to be assigned
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:value => String.t() | nil
}

field(:value)
end

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

defimpl Poison.Encoder, for: GoogleApi.DataMigration.V1.Model.AssignSpecificValue do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# 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.DataMigration.V1.Model.BackgroundJobLogEntry do
@moduledoc """
Execution log of a background job.

## Attributes

* `applyJobDetails` (*type:* `GoogleApi.DataMigration.V1.Model.ApplyJobDetails.t`, *default:* `nil`) - Output only. Apply job details.
* `completionComment` (*type:* `String.t`, *default:* `nil`) - Output only. Job completion comment, such as how many entities were seeded, how many warnings were found during conversion, and similar information.
* `completionState` (*type:* `String.t`, *default:* `nil`) - Output only. Job completion state, i.e. the final state after the job completed.
* `convertJobDetails` (*type:* `GoogleApi.DataMigration.V1.Model.ConvertJobDetails.t`, *default:* `nil`) - Output only. Convert job details.
* `finishTime` (*type:* `DateTime.t`, *default:* `nil`) - The timestamp when the background job was finished.
* `id` (*type:* `String.t`, *default:* `nil`) - The background job log entry ID.
* `importRulesJobDetails` (*type:* `GoogleApi.DataMigration.V1.Model.ImportRulesJobDetails.t`, *default:* `nil`) - Output only. Import rules job details.
* `jobType` (*type:* `String.t`, *default:* `nil`) - The type of job that was executed.
* `requestAutocommit` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether the client requested the conversion workspace to be committed after a successful completion of the job.
* `seedJobDetails` (*type:* `GoogleApi.DataMigration.V1.Model.SeedJobDetails.t`, *default:* `nil`) - Output only. Seed job details.
* `startTime` (*type:* `DateTime.t`, *default:* `nil`) - The timestamp when the background job was started.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:applyJobDetails => GoogleApi.DataMigration.V1.Model.ApplyJobDetails.t() | nil,
:completionComment => String.t() | nil,
:completionState => String.t() | nil,
:convertJobDetails => GoogleApi.DataMigration.V1.Model.ConvertJobDetails.t() | nil,
:finishTime => DateTime.t() | nil,
:id => String.t() | nil,
:importRulesJobDetails =>
GoogleApi.DataMigration.V1.Model.ImportRulesJobDetails.t() | nil,
:jobType => String.t() | nil,
:requestAutocommit => boolean() | nil,
:seedJobDetails => GoogleApi.DataMigration.V1.Model.SeedJobDetails.t() | nil,
:startTime => DateTime.t() | nil
}

field(:applyJobDetails, as: GoogleApi.DataMigration.V1.Model.ApplyJobDetails)
field(:completionComment)
field(:completionState)
field(:convertJobDetails, as: GoogleApi.DataMigration.V1.Model.ConvertJobDetails)
field(:finishTime, as: DateTime)
field(:id)
field(:importRulesJobDetails, as: GoogleApi.DataMigration.V1.Model.ImportRulesJobDetails)
field(:jobType)
field(:requestAutocommit)
field(:seedJobDetails, as: GoogleApi.DataMigration.V1.Model.SeedJobDetails)
field(:startTime, as: DateTime)
end

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

defimpl Poison.Encoder, for: GoogleApi.DataMigration.V1.Model.BackgroundJobLogEntry do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Loading
Loading