Skip to content

Commit 54c156f

Browse files
feat: Automated regeneration of Connectors client (googleapis#12902)
Auto-created at 2025-01-31 13:13:02 +0000 using the toys pull request generator.
1 parent e979380 commit 54c156f

File tree

4 files changed

+65
-1
lines changed

4 files changed

+65
-1
lines changed

clients/connectors/lib/google_api/connectors/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Connectors.V1 do
2020
API client metadata for GoogleApi.Connectors.V1.
2121
"""
2222

23-
@discovery_revision "20250101"
23+
@discovery_revision "20250128"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/connectors/lib/google_api/connectors/v1/model/event_subscription_destination.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defmodule GoogleApi.Connectors.V1.Model.EventSubscriptionDestination do
2222
## Attributes
2323
2424
* `endpoint` (*type:* `GoogleApi.Connectors.V1.Model.EndPoint.t`, *default:* `nil`) - OPTION 1: Hit an endpoint when we receive an event.
25+
* `pubsub` (*type:* `GoogleApi.Connectors.V1.Model.PubSub.t`, *default:* `nil`) - OPTION 3: Write the event to Pub/Sub topic.
2526
* `serviceAccount` (*type:* `String.t`, *default:* `nil`) - Service account needed for runtime plane to trigger IP workflow.
2627
* `type` (*type:* `String.t`, *default:* `nil`) - type of the destination
2728
"""
@@ -30,11 +31,13 @@ defmodule GoogleApi.Connectors.V1.Model.EventSubscriptionDestination do
3031

3132
@type t :: %__MODULE__{
3233
:endpoint => GoogleApi.Connectors.V1.Model.EndPoint.t() | nil,
34+
:pubsub => GoogleApi.Connectors.V1.Model.PubSub.t() | nil,
3335
:serviceAccount => String.t() | nil,
3436
:type => String.t() | nil
3537
}
3638

3739
field(:endpoint, as: GoogleApi.Connectors.V1.Model.EndPoint)
40+
field(:pubsub, as: GoogleApi.Connectors.V1.Model.PubSub)
3841
field(:serviceAccount)
3942
field(:type)
4043
end

clients/connectors/lib/google_api/connectors/v1/model/partner_metadata.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ defmodule GoogleApi.Connectors.V1.Model.PartnerMetadata do
2525
* `additionalComments` (*type:* `String.t`, *default:* `nil`) - Optional. Additional comments for the submission.
2626
* `confirmPartnerRequirements` (*type:* `boolean()`, *default:* `nil`) - Required. Confirmation that connector meets all applicable requirements mentioned in the Partner Connector Publishing requirements list and Partner onboardiong requirements list (https://cloud.google.com/marketplace/docs/partners/get-started#requirements).
2727
* `demoUri` (*type:* `String.t`, *default:* `nil`) - Required. Public URL for the demo video.
28+
* `hasDynamicSpecUri` (*type:* `boolean()`, *default:* `nil`) - Output only. Has dynamic open api spec uri.
2829
* `integrationTemplates` (*type:* `String.t`, *default:* `nil`) - Required. Integration example templates for the custom connector.
30+
* `localSpecPath` (*type:* `String.t`, *default:* `nil`) - Output only. Local spec path. Required if has_dynamic_spec_uri is true.
2931
* `marketplaceProduct` (*type:* `String.t`, *default:* `nil`) - Optional. Marketplace product name.
3032
* `marketplaceProductId` (*type:* `String.t`, *default:* `nil`) - Required. Marketplace product ID.
3133
* `marketplaceProductProjectId` (*type:* `String.t`, *default:* `nil`) - Optional. Marketplace product project ID.
@@ -45,7 +47,9 @@ defmodule GoogleApi.Connectors.V1.Model.PartnerMetadata do
4547
:additionalComments => String.t() | nil,
4648
:confirmPartnerRequirements => boolean() | nil,
4749
:demoUri => String.t() | nil,
50+
:hasDynamicSpecUri => boolean() | nil,
4851
:integrationTemplates => String.t() | nil,
52+
:localSpecPath => String.t() | nil,
4953
:marketplaceProduct => String.t() | nil,
5054
:marketplaceProductId => String.t() | nil,
5155
:marketplaceProductProjectId => String.t() | nil,
@@ -62,7 +66,9 @@ defmodule GoogleApi.Connectors.V1.Model.PartnerMetadata do
6266
field(:additionalComments)
6367
field(:confirmPartnerRequirements)
6468
field(:demoUri)
69+
field(:hasDynamicSpecUri)
6570
field(:integrationTemplates)
71+
field(:localSpecPath)
6672
field(:marketplaceProduct)
6773
field(:marketplaceProductId)
6874
field(:marketplaceProductProjectId)
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Connectors.V1.Model.PubSub do
19+
@moduledoc """
20+
Pub/Sub message includes details of the Destination Pub/Sub topic.
21+
22+
## Attributes
23+
24+
* `attributes` (*type:* `map()`, *default:* `nil`) - Optional. Pub/Sub message attributes to be added to the Pub/Sub message.
25+
* `configVariables` (*type:* `list(GoogleApi.Connectors.V1.Model.ConfigVariable.t)`, *default:* `nil`) - Optional. Configuration for configuring the trigger
26+
* `projectId` (*type:* `String.t`, *default:* `nil`) - Required. The project id which has the Pub/Sub topic.
27+
* `topicId` (*type:* `String.t`, *default:* `nil`) - Required. The topic id of the Pub/Sub topic.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:attributes => map() | nil,
34+
:configVariables => list(GoogleApi.Connectors.V1.Model.ConfigVariable.t()) | nil,
35+
:projectId => String.t() | nil,
36+
:topicId => String.t() | nil
37+
}
38+
39+
field(:attributes, type: :map)
40+
field(:configVariables, as: GoogleApi.Connectors.V1.Model.ConfigVariable, type: :list)
41+
field(:projectId)
42+
field(:topicId)
43+
end
44+
45+
defimpl Poison.Decoder, for: GoogleApi.Connectors.V1.Model.PubSub do
46+
def decode(value, options) do
47+
GoogleApi.Connectors.V1.Model.PubSub.decode(value, options)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder, for: GoogleApi.Connectors.V1.Model.PubSub do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end

0 commit comments

Comments
 (0)