Skip to content

Commit

Permalink
feat: Automated regeneration of CloudSupport client
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Apr 26, 2024
1 parent e6a95f9 commit 9ec75c6
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 6 deletions.
2 changes: 1 addition & 1 deletion clients/cloud_support/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_cloud_support, "~> 0.6"}]
[{:google_api_cloud_support, "~> 0.7"}]
end
```

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

@discovery_revision "20240403"
@discovery_revision "20240424"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ defmodule GoogleApi.CloudSupport.V2beta.Api.CaseClassifications do
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
* `:pageSize` (*type:* `integer()`) - The maximum number of classifications fetched with each request.
* `:pageToken` (*type:* `String.t`) - A token identifying the page of results to return. If unspecified, the first page is retrieved.
* `:"product.productLine"` (*type:* `String.t`) - The product line of the Product.
* `:query` (*type:* `String.t`) - An expression used to filter case classifications. If it's an empty string, then no filtering happens. Otherwise, case classifications will be returned that match the filter.
* `opts` (*type:* `keyword()`) - Call options
Expand Down Expand Up @@ -73,6 +74,7 @@ defmodule GoogleApi.CloudSupport.V2beta.Api.CaseClassifications do
:upload_protocol => :query,
:pageSize => :query,
:pageToken => :query,
:"product.productLine" => :query,
:query => :query
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ defmodule GoogleApi.CloudSupport.V2beta.Api.Cases do
* `:filter` (*type:* `String.t`) - An expression used to filter cases. If it's an empty string, then no filtering happens. Otherwise, the endpoint returns the cases that match the filter. Expressions use the following fields separated by `AND` and specified with `=`: - `state`: Can be `OPEN` or `CLOSED`. - `priority`: Can be `P0`, `P1`, `P2`, `P3`, or `P4`. You can specify multiple values for priority using the `OR` operator. For example, `priority=P1 OR priority=P2`. - `creator.email`: The email address of the case creator. EXAMPLES: - `state=CLOSED` - `state=OPEN AND creator.email="[email protected]"` - `state=OPEN AND (priority=P0 OR priority=P1)`
* `:pageSize` (*type:* `integer()`) - The maximum number of cases fetched with each request. Defaults to 10.
* `:pageToken` (*type:* `String.t`) - A token identifying the page of results to return. If unspecified, the first page is retrieved.
* `:productLine` (*type:* `String.t`) - The product line to request cases for. If unspecified, only Google Cloud cases will be returned.
* `opts` (*type:* `keyword()`) - Call options
## Returns
Expand Down Expand Up @@ -395,7 +396,8 @@ defmodule GoogleApi.CloudSupport.V2beta.Api.Cases do
:upload_protocol => :query,
:filter => :query,
:pageSize => :query,
:pageToken => :query
:pageToken => :query,
:productLine => :query
}

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

@discovery_revision "20240403"
@discovery_revision "20240424"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,20 @@ defmodule GoogleApi.CloudSupport.V2beta.Model.CaseClassification do
* `displayName` (*type:* `String.t`, *default:* `nil`) - A display name for the classification. The display name is not static and can change. To uniquely and consistently identify classifications, use the `CaseClassification.id` field.
* `id` (*type:* `String.t`, *default:* `nil`) - The unique ID for a classification. Must be specified for case creation. To retrieve valid classification IDs for case creation, use `caseClassifications.search`. Classification IDs returned by `caseClassifications.search` are guaranteed to be valid for at least 6 months. If a given classification is deactiveated, it will immediately stop being returned. After 6 months, `case.create` requests using the classification ID will fail.
* `product` (*type:* `GoogleApi.CloudSupport.V2beta.Model.Product.t`, *default:* `nil`) - The full product the classification corresponds to.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:displayName => String.t() | nil,
:id => String.t() | nil
:id => String.t() | nil,
:product => GoogleApi.CloudSupport.V2beta.Model.Product.t() | nil
}

field(:displayName)
field(:id)
field(:product, as: GoogleApi.CloudSupport.V2beta.Model.Product)
end

defimpl Poison.Decoder, for: GoogleApi.CloudSupport.V2beta.Model.CaseClassification do
Expand Down
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.CloudSupport.V2beta.Model.Product do
@moduledoc """
The product a case may be associated with.
## Attributes
* `productLine` (*type:* `String.t`, *default:* `nil`) - The product line of the Product.
"""

use GoogleApi.Gax.ModelBase

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

field(:productLine)
end

defimpl Poison.Decoder, for: GoogleApi.CloudSupport.V2beta.Model.Product do
def decode(value, options) do
GoogleApi.CloudSupport.V2beta.Model.Product.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.CloudSupport.V2beta.Model.Product do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
2 changes: 1 addition & 1 deletion clients/cloud_support/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.CloudSupport.Mixfile do
use Mix.Project

@version "0.6.1"
@version "0.7.0"

def project() do
[
Expand Down

0 comments on commit 9ec75c6

Please sign in to comment.