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 AppHub client #12312

Merged
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 changes: 1 addition & 1 deletion clients/app_hub/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_app_hub, "~> 0.2"}]
[{:google_api_app_hub, "~> 0.3"}]
end
```

Expand Down
6 changes: 3 additions & 3 deletions clients/app_hub/lib/google_api/app_hub/v1/api/projects.ex
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ defmodule GoogleApi.AppHub.V1.Api.Projects do
## Parameters

* `connection` (*type:* `GoogleApi.AppHub.V1.Connection.t`) - Connection to server
* `name` (*type:* `String.t`) - Identifier. The resource name of an Application. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}"
* `name` (*type:* `String.t`) - Identifier. The resource name of an Application. Format: `"projects/{host-project-id}/locations/{location}/applications/{application-id}"`
* `optional_params` (*type:* `keyword()`) - Optional parameters
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
* `:access_token` (*type:* `String.t`) - OAuth access token.
Expand Down Expand Up @@ -1187,7 +1187,7 @@ defmodule GoogleApi.AppHub.V1.Api.Projects do
## Parameters

* `connection` (*type:* `GoogleApi.AppHub.V1.Connection.t`) - Connection to server
* `name` (*type:* `String.t`) - Identifier. The resource name of a Service. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}/services/{service-id}"
* `name` (*type:* `String.t`) - Identifier. The resource name of a Service. Format: `"projects/{host-project-id}/locations/{location}/applications/{application-id}/services/{service-id}"`
* `optional_params` (*type:* `keyword()`) - Optional parameters
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
* `:access_token` (*type:* `String.t`) - OAuth access token.
Expand Down Expand Up @@ -1559,7 +1559,7 @@ defmodule GoogleApi.AppHub.V1.Api.Projects do
## Parameters

* `connection` (*type:* `GoogleApi.AppHub.V1.Connection.t`) - Connection to server
* `name` (*type:* `String.t`) - Identifier. The resource name of the Workload. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"
* `name` (*type:* `String.t`) - Identifier. The resource name of the Workload. Format: `"projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"`
* `optional_params` (*type:* `keyword()`) - Optional parameters
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
* `:access_token` (*type:* `String.t`) - OAuth access token.
Expand Down
2 changes: 1 addition & 1 deletion clients/app_hub/lib/google_api/app_hub/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.AppHub.V1 do
API client metadata for GoogleApi.AppHub.V1.
"""

@discovery_revision "20240311"
@discovery_revision "20241008"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@

defmodule GoogleApi.AppHub.V1.Model.Application do
@moduledoc """
Application defines the governance boundary for App Hub Entities that perform a logical end-to-end business function. App Hub supports application level IAM permission to align with governance requirements.
Application defines the governance boundary for App Hub entities that perform a logical end-to-end business function. App Hub supports application level IAM permission to align with governance requirements.

## Attributes

* `attributes` (*type:* `GoogleApi.AppHub.V1.Model.Attributes.t`, *default:* `nil`) - Optional. Consumer provided attributes.
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Create time.
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. User-defined description of an Application. Can have a maximum length of 2048 characters.
* `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. User-defined name for the Application. Can have a maximum length of 63 characters.
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name of an Application. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}"
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name of an Application. Format: `"projects/{host-project-id}/locations/{location}/applications/{application-id}"`
* `scope` (*type:* `GoogleApi.AppHub.V1.Model.Scope.t`, *default:* `nil`) - Required. Immutable. Defines what data can be included into this Application. Limits which Services and Workloads can be registered.
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. Application state.
* `uid` (*type:* `String.t`, *default:* `nil`) - Output only. A universally unique identifier (in UUID4 format) for the `Application`.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# 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.AppHub.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

* `ccfeRmsPath` (*type:* `String.t`, *default:* `nil`) - Spanner path of the CCFE RMS database. It is only applicable for CCFE tenants that use CCFE RMS for storing resource metadata.
* `expected` (*type:* `GoogleApi.AppHub.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.AppHub.V1.Model.ExtraParameter.t)`, *default:* `nil`) - Defines extra parameters required for specific asset types.
* `locationData` (*type:* `list(GoogleApi.AppHub.V1.Model.LocationData.t)`, *default:* `nil`) - Contains all kinds of physical location definitions for this asset.
* `parentAsset` (*type:* `list(GoogleApi.AppHub.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__{
:ccfeRmsPath => String.t() | nil,
:expected => GoogleApi.AppHub.V1.Model.IsolationExpectations.t() | nil,
:extraParameters => list(GoogleApi.AppHub.V1.Model.ExtraParameter.t()) | nil,
:locationData => list(GoogleApi.AppHub.V1.Model.LocationData.t()) | nil,
:parentAsset => list(GoogleApi.AppHub.V1.Model.CloudAsset.t()) | nil
}

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

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

defimpl Poison.Encoder, for: GoogleApi.AppHub.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.AppHub.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.AppHub.V1.Model.BlobstoreLocation do
def decode(value, options) do
GoogleApi.AppHub.V1.Model.BlobstoreLocation.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.AppHub.V1.Model.BlobstoreLocation do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
49 changes: 49 additions & 0 deletions clients/app_hub/lib/google_api/app_hub/v1/model/cloud_asset.ex
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.AppHub.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.AppHub.V1.Model.CloudAsset do
def decode(value, options) do
GoogleApi.AppHub.V1.Model.CloudAsset.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.AppHub.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.AppHub.V1.Model.CloudAssetComposition do
@moduledoc """


## Attributes

* `childAsset` (*type:* `list(GoogleApi.AppHub.V1.Model.CloudAsset.t)`, *default:* `nil`) -
"""

use GoogleApi.Gax.ModelBase

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

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

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

defimpl Poison.Encoder, for: GoogleApi.AppHub.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.AppHub.V1.Model.DirectLocationAssignment do
@moduledoc """


## Attributes

* `location` (*type:* `list(GoogleApi.AppHub.V1.Model.LocationAssignment.t)`, *default:* `nil`) -
"""

use GoogleApi.Gax.ModelBase

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

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

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

defimpl Poison.Encoder, for: GoogleApi.AppHub.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 @@ -17,11 +17,11 @@

defmodule GoogleApi.AppHub.V1.Model.DiscoveredService do
@moduledoc """
DiscoveredService is a network/api interface that exposes some functionality to clients for consumption over the network. A discovered service can be registered to a App Hub service.
DiscoveredService is a network or API interface that exposes some functionality to clients for consumption over the network. A discovered service can be registered to a App Hub service.

## Attributes

* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name of the discovered service. Format: "projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}""
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name of the discovered service. Format: `"projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}"`
* `serviceProperties` (*type:* `GoogleApi.AppHub.V1.Model.ServiceProperties.t`, *default:* `nil`) - Output only. Properties of an underlying compute resource that can comprise a Service. These are immutable.
* `serviceReference` (*type:* `GoogleApi.AppHub.V1.Model.ServiceReference.t`, *default:* `nil`) - Output only. Reference to an underlying networking resource that can comprise a Service. These are immutable.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule GoogleApi.AppHub.V1.Model.DiscoveredWorkload do

## Attributes

* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name of the discovered workload. Format: "projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}"
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name of the discovered workload. Format: `"projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}"`
* `workloadProperties` (*type:* `GoogleApi.AppHub.V1.Model.WorkloadProperties.t`, *default:* `nil`) - Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.
* `workloadReference` (*type:* `GoogleApi.AppHub.V1.Model.WorkloadReference.t`, *default:* `nil`) - Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.
"""
Expand Down
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.AppHub.V1.Model.ExtraParameter do
@moduledoc """
Defines parameters that should only be used for specific asset types.

## Attributes

* `regionalMigDistributionPolicy` (*type:* `GoogleApi.AppHub.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.AppHub.V1.Model.RegionalMigDistributionPolicy.t() | nil
}

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

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

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