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 Composer client #10776

Closed
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
1,560 changes: 1,547 additions & 13 deletions clients/composer/lib/google_api/composer/v1/api/projects.ex

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion clients/composer/lib/google_api/composer/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Composer.V1 do
API client metadata for GoogleApi.Composer.V1.
"""

@discovery_revision "20221114"
@discovery_revision "20240227"

def discovery_revision(), do: @discovery_revision
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.Composer.V1.Model.AirflowMetadataRetentionPolicyConfig do
@moduledoc """
The policy for airflow metadata database retention.

## Attributes

* `retentionDays` (*type:* `integer()`, *default:* `nil`) - Optional. How many days data should be retained for.
* `retentionMode` (*type:* `String.t`, *default:* `nil`) - Optional. Retention can be either enabled or disabled.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:retentionDays => integer() | nil,
:retentionMode => String.t() | nil
}

field(:retentionDays)
field(:retentionMode)
end

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

defimpl Poison.Encoder, for: GoogleApi.Composer.V1.Model.AirflowMetadataRetentionPolicyConfig 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.Composer.V1.Model.CloudDataLineageIntegration do
@moduledoc """
Configuration for Cloud Data Lineage integration.

## Attributes

* `enabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether or not Cloud Data Lineage integration is enabled.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:enabled => boolean() | nil
}

field(:enabled)
end

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

defimpl Poison.Encoder, for: GoogleApi.Composer.V1.Model.CloudDataLineageIntegration 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,52 @@
# 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.Composer.V1.Model.ComposerWorkload do
@moduledoc """
Information about a single workload.

## Attributes

* `name` (*type:* `String.t`, *default:* `nil`) - Name of a workload.
* `status` (*type:* `GoogleApi.Composer.V1.Model.ComposerWorkloadStatus.t`, *default:* `nil`) - Output only. Status of a workload.
* `type` (*type:* `String.t`, *default:* `nil`) - Type of a workload.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:name => String.t() | nil,
:status => GoogleApi.Composer.V1.Model.ComposerWorkloadStatus.t() | nil,
:type => String.t() | nil
}

field(:name)
field(:status, as: GoogleApi.Composer.V1.Model.ComposerWorkloadStatus)
field(:type)
end

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

defimpl Poison.Encoder, for: GoogleApi.Composer.V1.Model.ComposerWorkload 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,52 @@
# 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.Composer.V1.Model.ComposerWorkloadStatus do
@moduledoc """
Workload status.

## Attributes

* `detailedStatusMessage` (*type:* `String.t`, *default:* `nil`) - Output only. Detailed message of the status.
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. Workload state.
* `statusMessage` (*type:* `String.t`, *default:* `nil`) - Output only. Text to provide more descriptive status.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:detailedStatusMessage => String.t() | nil,
:state => String.t() | nil,
:statusMessage => String.t() | nil
}

field(:detailedStatusMessage)
field(:state)
field(:statusMessage)
end

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

defimpl Poison.Encoder, for: GoogleApi.Composer.V1.Model.ComposerWorkloadStatus 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,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.Composer.V1.Model.DagProcessorResource do
@moduledoc """
Configuration for resources used by Airflow DAG processors.

## Attributes

* `count` (*type:* `integer()`, *default:* `nil`) - Optional. The number of DAG processors. If not provided or set to 0, a single DAG processor instance will be created.
* `cpu` (*type:* `number()`, *default:* `nil`) - Optional. CPU request and limit for a single Airflow DAG processor replica.
* `memoryGb` (*type:* `number()`, *default:* `nil`) - Optional. Memory (GB) request and limit for a single Airflow DAG processor replica.
* `storageGb` (*type:* `number()`, *default:* `nil`) - Optional. Storage (GB) request and limit for a single Airflow DAG processor replica.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:count => integer() | nil,
:cpu => number() | nil,
:memoryGb => number() | nil,
:storageGb => number() | nil
}

field(:count)
field(:cpu)
field(:memoryGb)
field(:storageGb)
end

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

defimpl Poison.Encoder, for: GoogleApi.Composer.V1.Model.DagProcessorResource 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,54 @@
# 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.Composer.V1.Model.DataRetentionConfig do
@moduledoc """
The configuration setting for Airflow database data retention mechanism.

## Attributes

* `airflowMetadataRetentionConfig` (*type:* `GoogleApi.Composer.V1.Model.AirflowMetadataRetentionPolicyConfig.t`, *default:* `nil`) - Optional. The retention policy for airflow metadata database. Details: go/composer-database-retention-2
* `taskLogsRetentionConfig` (*type:* `GoogleApi.Composer.V1.Model.TaskLogsRetentionConfig.t`, *default:* `nil`) - Optional. The configuration settings for task logs retention
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:airflowMetadataRetentionConfig =>
GoogleApi.Composer.V1.Model.AirflowMetadataRetentionPolicyConfig.t() | nil,
:taskLogsRetentionConfig =>
GoogleApi.Composer.V1.Model.TaskLogsRetentionConfig.t() | nil
}

field(:airflowMetadataRetentionConfig,
as: GoogleApi.Composer.V1.Model.AirflowMetadataRetentionPolicyConfig
)

field(:taskLogsRetentionConfig, as: GoogleApi.Composer.V1.Model.TaskLogsRetentionConfig)
end

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

defimpl Poison.Encoder, for: GoogleApi.Composer.V1.Model.DataRetentionConfig 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 @@ -22,15 +22,18 @@ defmodule GoogleApi.Composer.V1.Model.DatabaseConfig do
## Attributes

* `machineType` (*type:* `String.t`, *default:* `nil`) - Optional. Cloud SQL machine type used by Airflow database. It has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8 or db-n1-standard-16. If not specified, db-n1-standard-2 will be used. Supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.
* `zone` (*type:* `String.t`, *default:* `nil`) - Optional. The Compute Engine zone where the Airflow database is created. If zone is provided, it must be in the region selected for the environment. If zone is not provided, a zone is automatically selected. The zone can only be set during environment creation. Supported for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.*.
"""

use GoogleApi.Gax.ModelBase

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

field(:machineType)
field(:zone)
end

defimpl Poison.Decoder, for: GoogleApi.Composer.V1.Model.DatabaseConfig do
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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.Composer.V1.Model.DatabaseFailoverRequest do
@moduledoc """
Request to trigger database failover (only for highly resilient environments).

## Attributes

"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{}
end

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

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