-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Automated regeneration of WorkloadManager client
- Loading branch information
1 parent
ec72cbe
commit 1ac8da7
Showing
21 changed files
with
786 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
clients/workload_manager/lib/google_api/workload_manager/v1/model/asset_location.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
46 changes: 46 additions & 0 deletions
46
clients/workload_manager/lib/google_api/workload_manager/v1/model/blobstore_location.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
49 changes: 49 additions & 0 deletions
49
clients/workload_manager/lib/google_api/workload_manager/v1/model/cloud_asset.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
46 changes: 46 additions & 0 deletions
46
clients/workload_manager/lib/google_api/workload_manager/v1/model/cloud_asset_composition.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
46 changes: 46 additions & 0 deletions
46
...s/workload_manager/lib/google_api/workload_manager/v1/model/direct_location_assignment.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
clients/workload_manager/lib/google_api/workload_manager/v1/model/external_data_sources.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
49 changes: 49 additions & 0 deletions
49
clients/workload_manager/lib/google_api/workload_manager/v1/model/extra_parameter.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.