Skip to content

Commit

Permalink
feat: Automated regeneration of WorkloadManager client
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed May 11, 2024
1 parent ec72cbe commit 1ac8da7
Show file tree
Hide file tree
Showing 21 changed files with 786 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clients/workload_manager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_workload_manager, "~> 0.4"}]
[{:google_api_workload_manager, "~> 0.5"}]
end
```

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

@discovery_revision "20240322"
@discovery_revision "20240501"

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.WorkloadManager.V1.Model.AssetLocation do
@moduledoc """
Provides the mapping of a cloud asset to a direct physical location or to a proxy that defines the location on its behalf.
## Attributes
* `expected` (*type:* `GoogleApi.WorkloadManager.V1.Model.IsolationExpectations.t`, *default:* `nil`) - Defines the customer expectation around ZI/ZS for this asset and ZI/ZS state of the region at the time of asset creation.
* `extraParameters` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.ExtraParameter.t)`, *default:* `nil`) - Defines extra parameters required for specific asset types.
* `locationData` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.LocationData.t)`, *default:* `nil`) - Contains all kinds of physical location definitions for this asset.
* `parentAsset` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.CloudAsset.t)`, *default:* `nil`) - Defines parents assets if any in order to allow later generation of child_asset_location data via child assets.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:expected => GoogleApi.WorkloadManager.V1.Model.IsolationExpectations.t() | nil,
:extraParameters => list(GoogleApi.WorkloadManager.V1.Model.ExtraParameter.t()) | nil,
:locationData => list(GoogleApi.WorkloadManager.V1.Model.LocationData.t()) | nil,
:parentAsset => list(GoogleApi.WorkloadManager.V1.Model.CloudAsset.t()) | nil
}

field(:expected, as: GoogleApi.WorkloadManager.V1.Model.IsolationExpectations)
field(:extraParameters, as: GoogleApi.WorkloadManager.V1.Model.ExtraParameter, type: :list)
field(:locationData, as: GoogleApi.WorkloadManager.V1.Model.LocationData, type: :list)
field(:parentAsset, as: GoogleApi.WorkloadManager.V1.Model.CloudAsset, type: :list)
end

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

defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.AssetLocation 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.WorkloadManager.V1.Model.BlobstoreLocation do
@moduledoc """
Policy ID that identified data placement in Blobstore as per go/blobstore-user-guide#data-metadata-placement-and-failure-domains
## Attributes
* `policyId` (*type:* `list(String.t)`, *default:* `nil`) -
"""

use GoogleApi.Gax.ModelBase

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

field(:policyId, type: :list)
end

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

defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.BlobstoreLocation 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.WorkloadManager.V1.Model.CloudAsset do
@moduledoc """
## Attributes
* `assetName` (*type:* `String.t`, *default:* `nil`) -
* `assetType` (*type:* `String.t`, *default:* `nil`) -
"""

use GoogleApi.Gax.ModelBase

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

field(:assetName)
field(:assetType)
end

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

defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.CloudAsset 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.WorkloadManager.V1.Model.CloudAssetComposition do
@moduledoc """
## Attributes
* `childAsset` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.CloudAsset.t)`, *default:* `nil`) -
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:childAsset => list(GoogleApi.WorkloadManager.V1.Model.CloudAsset.t()) | nil
}

field(:childAsset, as: GoogleApi.WorkloadManager.V1.Model.CloudAsset, type: :list)
end

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

defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.CloudAssetComposition 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.WorkloadManager.V1.Model.DirectLocationAssignment do
@moduledoc """
## Attributes
* `location` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.LocationAssignment.t)`, *default:* `nil`) -
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:location => list(GoogleApi.WorkloadManager.V1.Model.LocationAssignment.t()) | nil
}

field(:location, as: GoogleApi.WorkloadManager.V1.Model.LocationAssignment, type: :list)
end

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

defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.DirectLocationAssignment 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 @@ -23,6 +23,7 @@ defmodule GoogleApi.WorkloadManager.V1.Model.Execution do
* `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. [Output only] End time stamp
* `evaluationId` (*type:* `String.t`, *default:* `nil`) - Output only. [Output only] Evaluation ID
* `externalDataSources` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.ExternalDataSources.t)`, *default:* `nil`) - Optional. External data sources
* `inventoryTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. [Output only] Inventory time stamp
* `labels` (*type:* `map()`, *default:* `nil`) - Labels as key value pairs
* `name` (*type:* `String.t`, *default:* `nil`) - The name of execution resource. The format is projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}
Expand All @@ -36,6 +37,8 @@ defmodule GoogleApi.WorkloadManager.V1.Model.Execution do
@type t :: %__MODULE__{
:endTime => DateTime.t() | nil,
:evaluationId => String.t() | nil,
:externalDataSources =>
list(GoogleApi.WorkloadManager.V1.Model.ExternalDataSources.t()) | nil,
:inventoryTime => DateTime.t() | nil,
:labels => map() | nil,
:name => String.t() | nil,
Expand All @@ -46,6 +49,12 @@ defmodule GoogleApi.WorkloadManager.V1.Model.Execution do

field(:endTime, as: DateTime)
field(:evaluationId)

field(:externalDataSources,
as: GoogleApi.WorkloadManager.V1.Model.ExternalDataSources,
type: :list
)

field(:inventoryTime, as: DateTime)
field(:labels, type: :map)
field(:name)
Expand Down
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.WorkloadManager.V1.Model.ExternalDataSources do
@moduledoc """
Message for external data sources
## Attributes
* `name` (*type:* `String.t`, *default:* `nil`) - Required. Name of external data source. The name will be used inside the rego/sql to refer the external data
* `type` (*type:* `String.t`, *default:* `nil`) - Required. Type of external data source
* `uri` (*type:* `String.t`, *default:* `nil`) - Required. URI of external data source. example of bq table {project_ID}.{dataset_ID}.{table_ID}
"""

use GoogleApi.Gax.ModelBase

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

field(:name)
field(:type)
field(:uri)
end

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

defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.ExternalDataSources 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.WorkloadManager.V1.Model.ExtraParameter do
@moduledoc """
Defines parameters that should only be used for specific asset types.
## Attributes
* `regionalMigDistributionPolicy` (*type:* `GoogleApi.WorkloadManager.V1.Model.RegionalMigDistributionPolicy.t`, *default:* `nil`) - Details about zones used by regional compute.googleapis.com/InstanceGroupManager to create instances.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:regionalMigDistributionPolicy =>
GoogleApi.WorkloadManager.V1.Model.RegionalMigDistributionPolicy.t() | nil
}

field(:regionalMigDistributionPolicy,
as: GoogleApi.WorkloadManager.V1.Model.RegionalMigDistributionPolicy
)
end

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

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

0 comments on commit 1ac8da7

Please sign in to comment.