Skip to content

Commit

Permalink
feat: Automated regeneration of CloudChannel client
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Nov 5, 2024
1 parent 9bd4424 commit 9f3d6ec
Show file tree
Hide file tree
Showing 15 changed files with 86 additions and 12 deletions.
2 changes: 1 addition & 1 deletion clients/cloud_channel/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_channel, "~> 0.10"}]
[{:google_api_cloud_channel, "~> 0.11"}]
end
```

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

@discovery_revision "20241024"
@discovery_revision "20241102"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ defmodule GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1ChangeOfferRequest
* `billingAccount` (*type:* `String.t`, *default:* `nil`) - Optional. The billing account resource name that is used to pay for this entitlement when setting up billing on a trial subscription. This field is only relevant for multi-currency accounts. It should be left empty for single currency accounts.
* `offer` (*type:* `String.t`, *default:* `nil`) - Required. New Offer. Format: accounts/{account_id}/offers/{offer_id}.
* `parameters` (*type:* `list(GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Parameter.t)`, *default:* `nil`) - Optional. Parameters needed to purchase the Offer. To view the available Parameters refer to the Offer.parameter_definitions from the desired offer.
* `priceReferenceId` (*type:* `String.t`, *default:* `nil`) - Optional. Price reference ID for the offer. Optional field only for offers that require additional price information. Used to guarantee that the pricing is consistent between quoting the offer and placing the order. Yet to be implemented: this field is currently not evaluated in the API if populated in a request.
* `purchaseOrderId` (*type:* `String.t`, *default:* `nil`) - Optional. Purchase order id provided by the reseller.
* `requestId` (*type:* `String.t`, *default:* `nil`) - Optional. You can specify an optional unique request ID, and if you need to retry your request, the server will know to ignore the request if it's complete. For example, you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if it received the original operation with the same request ID. If it did, it will ignore the second request. The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) with the exception that zero UUID is not supported (`00000000-0000-0000-0000-000000000000`).
"""
Expand All @@ -35,6 +36,7 @@ defmodule GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1ChangeOfferRequest
:offer => String.t() | nil,
:parameters =>
list(GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Parameter.t()) | nil,
:priceReferenceId => String.t() | nil,
:purchaseOrderId => String.t() | nil,
:requestId => String.t() | nil
}
Expand All @@ -47,6 +49,7 @@ defmodule GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1ChangeOfferRequest
type: :list
)

field(:priceReferenceId)
field(:purchaseOrderId)
field(:requestId)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defmodule GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1CustomerEvent do
## Attributes
* `customer` (*type:* `String.t`, *default:* `nil`) - Resource name of the customer. Format: accounts/{account_id}/customers/{customer_id}
* `eventType` (*type:* `String.t`, *default:* `nil`) - Type of event which happened on the customer.
* `eventType` (*type:* `String.t`, *default:* `nil`) - Type of event which happened for the customer.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ defmodule GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Entitlement do
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. Resource name of an entitlement in the form: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}.
* `offer` (*type:* `String.t`, *default:* `nil`) - Required. The offer resource name for which the entitlement is to be created. Takes the form: accounts/{account_id}/offers/{offer_id}.
* `parameters` (*type:* `list(GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Parameter.t)`, *default:* `nil`) - Extended entitlement parameters. When creating an entitlement, valid parameter names and values are defined in the Offer.parameter_definitions. For Google Workspace, the following Parameters may be accepted as input: - max_units: The maximum assignable units for a flexible offer OR - num_units: The total commitment for commitment-based offers The response may additionally include the following output-only Parameters: - assigned_units: The number of licenses assigned to users. For Google Cloud billing subaccounts, the following Parameter may be accepted as input: - display_name: The display name of the billing subaccount.
* `priceReferenceId` (*type:* `String.t`, *default:* `nil`) - Optional. Price reference ID for the offer. Optional field only for offers that require additional price information. Used to guarantee that the pricing is consistent between quoting the offer and placing the order. Yet to be implemented: this field is currently not evaluated in the API if populated in a request.
* `provisionedService` (*type:* `GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1ProvisionedService.t`, *default:* `nil`) - Output only. Service provisioning details for the entitlement.
* `provisioningState` (*type:* `String.t`, *default:* `nil`) - Output only. Current provisioning state of the entitlement.
* `purchaseOrderId` (*type:* `String.t`, *default:* `nil`) - Optional. This purchase order (PO) information is for resellers to use for their company tracking usage. If a purchaseOrderId value is given, it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters. This is only supported for Google Workspace entitlements.
Expand All @@ -49,6 +50,7 @@ defmodule GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Entitlement do
:offer => String.t() | nil,
:parameters =>
list(GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Parameter.t()) | nil,
:priceReferenceId => String.t() | nil,
:provisionedService =>
GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1ProvisionedService.t() | nil,
:provisioningState => String.t() | nil,
Expand All @@ -75,6 +77,8 @@ defmodule GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Entitlement do
type: :list
)

field(:priceReferenceId)

field(:provisionedService,
as: GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1ProvisionedService
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defmodule GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1EntitlementEvent d
## Attributes
* `entitlement` (*type:* `String.t`, *default:* `nil`) - Resource name of an entitlement of the form: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
* `eventType` (*type:* `String.t`, *default:* `nil`) - Type of event which happened on the entitlement.
* `eventType` (*type:* `String.t`, *default:* `nil`) - Type of event which happened for the entitlement.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,18 @@ defmodule GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1PurchasableOffer d
## Attributes
* `offer` (*type:* `GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Offer.t`, *default:* `nil`) - Offer.
* `priceReferenceId` (*type:* `String.t`, *default:* `nil`) - Optional. Price reference ID for the offer. Optional field only for offers that require additional price information. Used to guarantee that the pricing is consistent between quoting the offer and placing the order.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:offer => GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Offer.t() | nil
:offer => GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Offer.t() | nil,
:priceReferenceId => String.t() | nil
}

field(:offer, as: GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Offer)
field(:priceReferenceId)
end

defimpl Poison.Decoder, for: GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1PurchasableOffer do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,18 @@ defmodule GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1TransferableOffer
## Attributes
* `offer` (*type:* `GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Offer.t`, *default:* `nil`) - Offer with parameter constraints updated to allow the Transfer.
* `priceReferenceId` (*type:* `String.t`, *default:* `nil`) - Optional. Price reference ID for the offer. Optional field only for offers that require additional price information. Used to guarantee that the pricing is consistent between quoting the offer and placing the order.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:offer => GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Offer.t() | nil
:offer => GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Offer.t() | nil,
:priceReferenceId => String.t() | nil
}

field(:offer, as: GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Offer)
field(:priceReferenceId)
end

defimpl Poison.Decoder, for: GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1TransferableOffer do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defmodule GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1alpha1ChannelPartn
## Attributes
* `channelPartner` (*type:* `String.t`, *default:* `nil`) - Resource name for the Channel Partner Link. Channel_partner uses the format: accounts/{account_id}/channelPartnerLinks/{channel_partner_id}
* `eventType` (*type:* `String.t`, *default:* `nil`) - Type of event performed on the Channel Partner.
* `eventType` (*type:* `String.t`, *default:* `nil`) - Type of event which happened for the channel partner.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defmodule GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1alpha1CustomerEven
## Attributes
* `customer` (*type:* `String.t`, *default:* `nil`) - Resource name of the customer. Format: accounts/{account_id}/customers/{customer_id}
* `eventType` (*type:* `String.t`, *default:* `nil`) - Type of event which happened on the customer.
* `eventType` (*type:* `String.t`, *default:* `nil`) - Type of event which happened for the customer.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defmodule GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1alpha1EntitlementE
## Attributes
* `entitlement` (*type:* `String.t`, *default:* `nil`) - Resource name of an entitlement of the form: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
* `eventType` (*type:* `String.t`, *default:* `nil`) - Type of event which happened on the entitlement.
* `eventType` (*type:* `String.t`, *default:* `nil`) - Type of event which happened for the entitlement.
"""

use GoogleApi.Gax.ModelBase
Expand Down
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.CloudChannel.V1.Model.GoogleCloudChannelV1alpha1OpportunityEvent do
@moduledoc """
Represents Pub/Sub message content describing opportunity updates.
## Attributes
* `eventType` (*type:* `String.t`, *default:* `nil`) - Type of event which happened for the opportunity.
* `opportunity` (*type:* `String.t`, *default:* `nil`) - Resource name of the opportunity. Format: opportunities/{opportunity}
"""

use GoogleApi.Gax.ModelBase

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

field(:eventType)
field(:opportunity)
end

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

defimpl Poison.Encoder,
for: GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1alpha1OpportunityEvent 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 @@ -24,6 +24,7 @@ defmodule GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1alpha1SubscriberEv
* `channelPartnerEvent` (*type:* `GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1alpha1ChannelPartnerEvent.t`, *default:* `nil`) - Channel Partner event sent as part of Pub/Sub event to partners.
* `customerEvent` (*type:* `GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1alpha1CustomerEvent.t`, *default:* `nil`) - Customer event sent as part of Pub/Sub event to partners.
* `entitlementEvent` (*type:* `GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1alpha1EntitlementEvent.t`, *default:* `nil`) - Entitlement event sent as part of Pub/Sub event to partners.
* `opportunityEvent` (*type:* `GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1alpha1OpportunityEvent.t`, *default:* `nil`) - Opportunity event sent as part of Pub/Sub event to partners/integrators.
"""

use GoogleApi.Gax.ModelBase
Expand All @@ -35,7 +36,9 @@ defmodule GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1alpha1SubscriberEv
:customerEvent =>
GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1alpha1CustomerEvent.t() | nil,
:entitlementEvent =>
GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1alpha1EntitlementEvent.t() | nil
GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1alpha1EntitlementEvent.t() | nil,
:opportunityEvent =>
GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1alpha1OpportunityEvent.t() | nil
}

field(:channelPartnerEvent,
Expand All @@ -49,6 +52,10 @@ defmodule GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1alpha1SubscriberEv
field(:entitlementEvent,
as: GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1alpha1EntitlementEvent
)

field(:opportunityEvent,
as: GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1alpha1OpportunityEvent
)
end

defimpl Poison.Decoder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

defmodule GoogleApi.CloudChannel.V1.Model.GoogleTypeDecimal do
@moduledoc """
A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's BigDecimal or Python's decimal.Decimal. [BigDecimal]: https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html [decimal.Decimal]: https://docs.python.org/3/library/decimal.html
A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's [BigDecimal](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html) or Python's [decimal.Decimal](https://docs.python.org/3/library/decimal.html).
## Attributes
Expand Down
2 changes: 1 addition & 1 deletion clients/cloud_channel/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.CloudChannel.Mixfile do
use Mix.Project

@version "0.10.0"
@version "0.11.0"

def project() do
[
Expand Down

0 comments on commit 9f3d6ec

Please sign in to comment.