diff --git a/clients/cloud_channel/README.md b/clients/cloud_channel/README.md index 8384d5f229..2fc5efe47b 100644 --- a/clients/cloud_channel/README.md +++ b/clients/cloud_channel/README.md @@ -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 ``` diff --git a/clients/cloud_channel/lib/google_api/cloud_channel/v1/metadata.ex b/clients/cloud_channel/lib/google_api/cloud_channel/v1/metadata.ex index 07539b3287..f64c9d6f07 100644 --- a/clients/cloud_channel/lib/google_api/cloud_channel/v1/metadata.ex +++ b/clients/cloud_channel/lib/google_api/cloud_channel/v1/metadata.ex @@ -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 diff --git a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_change_offer_request.ex b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_change_offer_request.ex index e49be48eb7..afef0cc529 100644 --- a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_change_offer_request.ex +++ b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_change_offer_request.ex @@ -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`). """ @@ -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 } @@ -47,6 +49,7 @@ defmodule GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1ChangeOfferRequest type: :list ) + field(:priceReferenceId) field(:purchaseOrderId) field(:requestId) end diff --git a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_customer_event.ex b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_customer_event.ex index bec4e3b412..296b279695 100644 --- a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_customer_event.ex +++ b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_customer_event.ex @@ -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 diff --git a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_entitlement.ex b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_entitlement.ex index 651b36db76..de6d5859f0 100644 --- a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_entitlement.ex +++ b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_entitlement.ex @@ -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. @@ -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, @@ -75,6 +77,8 @@ defmodule GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Entitlement do type: :list ) + field(:priceReferenceId) + field(:provisionedService, as: GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1ProvisionedService ) diff --git a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_entitlement_event.ex b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_entitlement_event.ex index c576c66626..db1f1bd06f 100644 --- a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_entitlement_event.ex +++ b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_entitlement_event.ex @@ -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 diff --git a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_purchasable_offer.ex b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_purchasable_offer.ex index 6fe0aa1a66..2990bfcfca 100644 --- a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_purchasable_offer.ex +++ b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_purchasable_offer.ex @@ -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 diff --git a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_transferable_offer.ex b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_transferable_offer.ex index 6e8834a88b..ecf4f995a3 100644 --- a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_transferable_offer.ex +++ b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1_transferable_offer.ex @@ -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 diff --git a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_channel_partner_event.ex b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_channel_partner_event.ex index 97048892c2..157d299ad1 100644 --- a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_channel_partner_event.ex +++ b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_channel_partner_event.ex @@ -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 diff --git a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_customer_event.ex b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_customer_event.ex index f8a4346f03..bde693b6ed 100644 --- a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_customer_event.ex +++ b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_customer_event.ex @@ -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 diff --git a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_entitlement_event.ex b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_entitlement_event.ex index e9e75f3968..5d3e8bd8f6 100644 --- a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_entitlement_event.ex +++ b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_entitlement_event.ex @@ -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 diff --git a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_opportunity_event.ex b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_opportunity_event.ex new file mode 100644 index 0000000000..2f69d3320a --- /dev/null +++ b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_opportunity_event.ex @@ -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 diff --git a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_subscriber_event.ex b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_subscriber_event.ex index 4be18430f7..15df723227 100644 --- a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_subscriber_event.ex +++ b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_subscriber_event.ex @@ -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 @@ -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, @@ -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, diff --git a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_type_decimal.ex b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_type_decimal.ex index 25d5e1dc17..b8a6c0abb8 100644 --- a/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_type_decimal.ex +++ b/clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_type_decimal.ex @@ -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 diff --git a/clients/cloud_channel/mix.exs b/clients/cloud_channel/mix.exs index a12205f807..6a41de0ab8 100644 --- a/clients/cloud_channel/mix.exs +++ b/clients/cloud_channel/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.CloudChannel.Mixfile do use Mix.Project - @version "0.10.0" + @version "0.11.0" def project() do [