Skip to content

Commit 38abb69

Browse files
feat: Automated regeneration of Connectors client (googleapis#12516)
Auto-created at 2024-11-13 13:11:26 +0000 using the toys pull request generator.
1 parent 6390129 commit 38abb69

File tree

9 files changed

+208
-4
lines changed

9 files changed

+208
-4
lines changed

clients/connectors/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_connectors, "~> 0.15"}]
14+
[{:google_api_connectors, "~> 0.16"}]
1515
end
1616
```
1717

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 "20241015"
23+
@discovery_revision "20241105"
2424

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

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ defmodule GoogleApi.Connectors.V1.Model.CustomConnector do
2323
2424
* `activeConnectorVersions` (*type:* `list(String.t)`, *default:* `nil`) - Output only. Active connector versions.
2525
* `allConnectorVersions` (*type:* `list(String.t)`, *default:* `nil`) - Output only. All connector versions.
26+
* `allMarketplaceVersions` (*type:* `list(String.t)`, *default:* `nil`) - Output only. All marketplace versions.
2627
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Created time.
2728
* `customConnectorType` (*type:* `String.t`, *default:* `nil`) - Required. Type of the custom connector.
2829
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description of the resource.
2930
* `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. Display name.
3031
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
3132
* `logo` (*type:* `String.t`, *default:* `nil`) - Optional. Logo of the resource.
3233
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Resource name of the CustomConnector. Format: projects/{project}/locations/{location}/customConnectors/{connector}
34+
* `publishedMarketplaceVersions` (*type:* `list(String.t)`, *default:* `nil`) - Output only. Published marketplace versions.
3335
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Updated time.
3436
"""
3537

@@ -38,25 +40,29 @@ defmodule GoogleApi.Connectors.V1.Model.CustomConnector do
3840
@type t :: %__MODULE__{
3941
:activeConnectorVersions => list(String.t()) | nil,
4042
:allConnectorVersions => list(String.t()) | nil,
43+
:allMarketplaceVersions => list(String.t()) | nil,
4144
:createTime => DateTime.t() | nil,
4245
:customConnectorType => String.t() | nil,
4346
:description => String.t() | nil,
4447
:displayName => String.t() | nil,
4548
:labels => map() | nil,
4649
:logo => String.t() | nil,
4750
:name => String.t() | nil,
51+
:publishedMarketplaceVersions => list(String.t()) | nil,
4852
:updateTime => DateTime.t() | nil
4953
}
5054

5155
field(:activeConnectorVersions, type: :list)
5256
field(:allConnectorVersions, type: :list)
57+
field(:allMarketplaceVersions, type: :list)
5358
field(:createTime, as: DateTime)
5459
field(:customConnectorType)
5560
field(:description)
5661
field(:displayName)
5762
field(:labels, type: :map)
5863
field(:logo)
5964
field(:name)
65+
field(:publishedMarketplaceVersions, type: :list)
6066
field(:updateTime, as: DateTime)
6167
end
6268

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ defmodule GoogleApi.Connectors.V1.Model.CustomConnectorVersion do
2828
* `enableBackendDestinationConfig` (*type:* `boolean()`, *default:* `nil`) - Optional. When enabled, the connector will be a facade/ proxy, and connects to the destination provided during connection creation.
2929
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
3030
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. Identifier. Resource name of the Version. Format: projects/{project}/locations/{location}/customConnectors/{custom_connector}/customConnectorVersions/{custom_connector_version}
31+
* `partnerMetadata` (*type:* `GoogleApi.Connectors.V1.Model.PartnerMetadata.t`, *default:* `nil`) - Optional. Partner metadata details. This should be populated only when publishing the custom connector to partner connector.
32+
* `publishStatus` (*type:* `GoogleApi.Connectors.V1.Model.PublishStatus.t`, *default:* `nil`) - Output only. Publish status of a custom connector.
3133
* `serviceAccount` (*type:* `String.t`, *default:* `nil`) - Optional. Service account used by runtime plane to access auth config secrets.
3234
* `specLocation` (*type:* `String.t`, *default:* `nil`) - Optional. Location of the custom connector spec. The location can be either a public url like `https://public-url.com/spec` Or a Google Cloud Storage location like `gs:///`
3335
* `specServerUrls` (*type:* `list(String.t)`, *default:* `nil`) - Output only. Server URLs parsed from the spec.
@@ -46,6 +48,8 @@ defmodule GoogleApi.Connectors.V1.Model.CustomConnectorVersion do
4648
:enableBackendDestinationConfig => boolean() | nil,
4749
:labels => map() | nil,
4850
:name => String.t() | nil,
51+
:partnerMetadata => GoogleApi.Connectors.V1.Model.PartnerMetadata.t() | nil,
52+
:publishStatus => GoogleApi.Connectors.V1.Model.PublishStatus.t() | nil,
4953
:serviceAccount => String.t() | nil,
5054
:specLocation => String.t() | nil,
5155
:specServerUrls => list(String.t()) | nil,
@@ -65,6 +69,8 @@ defmodule GoogleApi.Connectors.V1.Model.CustomConnectorVersion do
6569
field(:enableBackendDestinationConfig)
6670
field(:labels, type: :map)
6771
field(:name)
72+
field(:partnerMetadata, as: GoogleApi.Connectors.V1.Model.PartnerMetadata)
73+
field(:publishStatus, as: GoogleApi.Connectors.V1.Model.PublishStatus)
6874
field(:serviceAccount)
6975
field(:specLocation)
7076
field(:specServerUrls, type: :list)

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ defmodule GoogleApi.Connectors.V1.Model.EventingRuntimeData do
2525
* `eventsListenerPscSa` (*type:* `String.t`, *default:* `nil`) - Output only. Events listener PSC Service attachment. The value will be populated after provisioning the events listener with private connectivity enabled.
2626
* `status` (*type:* `GoogleApi.Connectors.V1.Model.EventingStatus.t`, *default:* `nil`) - Output only. Current status of eventing.
2727
* `webhookData` (*type:* `GoogleApi.Connectors.V1.Model.WebhookData.t`, *default:* `nil`) - Output only. Webhook data.
28+
* `webhookSubscriptions` (*type:* `GoogleApi.Connectors.V1.Model.WebhookSubscriptions.t`, *default:* `nil`) - Output only. Webhook subscriptions.
2829
"""
2930

3031
use GoogleApi.Gax.ModelBase
@@ -33,13 +34,15 @@ defmodule GoogleApi.Connectors.V1.Model.EventingRuntimeData do
3334
:eventsListenerEndpoint => String.t() | nil,
3435
:eventsListenerPscSa => String.t() | nil,
3536
:status => GoogleApi.Connectors.V1.Model.EventingStatus.t() | nil,
36-
:webhookData => GoogleApi.Connectors.V1.Model.WebhookData.t() | nil
37+
:webhookData => GoogleApi.Connectors.V1.Model.WebhookData.t() | nil,
38+
:webhookSubscriptions => GoogleApi.Connectors.V1.Model.WebhookSubscriptions.t() | nil
3739
}
3840

3941
field(:eventsListenerEndpoint)
4042
field(:eventsListenerPscSa)
4143
field(:status, as: GoogleApi.Connectors.V1.Model.EventingStatus)
4244
field(:webhookData, as: GoogleApi.Connectors.V1.Model.WebhookData)
45+
field(:webhookSubscriptions, as: GoogleApi.Connectors.V1.Model.WebhookSubscriptions)
4346
end
4447

4548
defimpl Poison.Decoder, for: GoogleApi.Connectors.V1.Model.EventingRuntimeData do
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
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.PartnerMetadata do
19+
@moduledoc """
20+
Partner metadata details. This will be populated when publishing the custom connector as a partner connector version. On publishing, parntner connector version will be created using the fields in PartnerMetadata.
21+
22+
## Attributes
23+
24+
* `acceptGcpTos` (*type:* `boolean()`, *default:* `nil`) - Required. Whether the user has accepted the Google Cloud Platform Terms of Service (https://cloud.google.com/terms/) and the Google Cloud Marketplace Terms of Service (https://cloud.google.com/terms/marketplace/launcher?hl=en).
25+
* `additionalComments` (*type:* `String.t`, *default:* `nil`) - Optional. Additional comments for the submission.
26+
* `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).
27+
* `demoUri` (*type:* `String.t`, *default:* `nil`) - Required. Public URL for the demo video.
28+
* `integrationTemplates` (*type:* `String.t`, *default:* `nil`) - Required. Integration example templates for the custom connector.
29+
* `marketplaceProduct` (*type:* `String.t`, *default:* `nil`) - Optional. Marketplace product name.
30+
* `marketplaceProductId` (*type:* `String.t`, *default:* `nil`) - Required. Marketplace product ID.
31+
* `marketplaceProductProjectId` (*type:* `String.t`, *default:* `nil`) - Optional. Marketplace product project ID.
32+
* `marketplaceProductUri` (*type:* `String.t`, *default:* `nil`) - Optional. Marketplace product URL.
33+
* `partner` (*type:* `String.t`, *default:* `nil`) - Required. Partner name.
34+
* `partnerConnectorDisplayName` (*type:* `String.t`, *default:* `nil`) - Required. Partner connector display name.
35+
* `publishRequestTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Publish request time.
36+
* `targetApplication` (*type:* `String.t`, *default:* `nil`) - Required. Target application for which partner connector is built.
37+
* `targetCustomerSegment` (*type:* `String.t`, *default:* `nil`) - Required. Target customer segment for the partner connector.
38+
* `useCases` (*type:* `String.t`, *default:* `nil`) - Required. Details about partner connector use cases.
39+
"""
40+
41+
use GoogleApi.Gax.ModelBase
42+
43+
@type t :: %__MODULE__{
44+
:acceptGcpTos => boolean() | nil,
45+
:additionalComments => String.t() | nil,
46+
:confirmPartnerRequirements => boolean() | nil,
47+
:demoUri => String.t() | nil,
48+
:integrationTemplates => String.t() | nil,
49+
:marketplaceProduct => String.t() | nil,
50+
:marketplaceProductId => String.t() | nil,
51+
:marketplaceProductProjectId => String.t() | nil,
52+
:marketplaceProductUri => String.t() | nil,
53+
:partner => String.t() | nil,
54+
:partnerConnectorDisplayName => String.t() | nil,
55+
:publishRequestTime => DateTime.t() | nil,
56+
:targetApplication => String.t() | nil,
57+
:targetCustomerSegment => String.t() | nil,
58+
:useCases => String.t() | nil
59+
}
60+
61+
field(:acceptGcpTos)
62+
field(:additionalComments)
63+
field(:confirmPartnerRequirements)
64+
field(:demoUri)
65+
field(:integrationTemplates)
66+
field(:marketplaceProduct)
67+
field(:marketplaceProductId)
68+
field(:marketplaceProductProjectId)
69+
field(:marketplaceProductUri)
70+
field(:partner)
71+
field(:partnerConnectorDisplayName)
72+
field(:publishRequestTime, as: DateTime)
73+
field(:targetApplication)
74+
field(:targetCustomerSegment)
75+
field(:useCases)
76+
end
77+
78+
defimpl Poison.Decoder, for: GoogleApi.Connectors.V1.Model.PartnerMetadata do
79+
def decode(value, options) do
80+
GoogleApi.Connectors.V1.Model.PartnerMetadata.decode(value, options)
81+
end
82+
end
83+
84+
defimpl Poison.Encoder, for: GoogleApi.Connectors.V1.Model.PartnerMetadata do
85+
def encode(value, options) do
86+
GoogleApi.Gax.ModelBase.encode(value, options)
87+
end
88+
end
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.PublishStatus do
19+
@moduledoc """
20+
Publish status of a custom connector.
21+
22+
## Attributes
23+
24+
* `publishState` (*type:* `String.t`, *default:* `nil`) - Output only. Publish state of the custom connector.
25+
* `publishTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Publish time.
26+
* `publishedAs` (*type:* `String.t`, *default:* `nil`) - Output only. Partner connector name. Will be set on the custom connector. Format: providers/partner/connectors//versions/
27+
* `publishedSource` (*type:* `String.t`, *default:* `nil`) - Output only. Custom connector name. Will be set on the partner connector. Format: providers/customconnectors/connectors//versions/
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:publishState => String.t() | nil,
34+
:publishTime => DateTime.t() | nil,
35+
:publishedAs => String.t() | nil,
36+
:publishedSource => String.t() | nil
37+
}
38+
39+
field(:publishState)
40+
field(:publishTime, as: DateTime)
41+
field(:publishedAs)
42+
field(:publishedSource)
43+
end
44+
45+
defimpl Poison.Decoder, for: GoogleApi.Connectors.V1.Model.PublishStatus do
46+
def decode(value, options) do
47+
GoogleApi.Connectors.V1.Model.PublishStatus.decode(value, options)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder, for: GoogleApi.Connectors.V1.Model.PublishStatus do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.WebhookSubscriptions do
19+
@moduledoc """
20+
WebhookSubscriptions has details of webhook subscriptions.
21+
22+
## Attributes
23+
24+
* `webhookData` (*type:* `list(GoogleApi.Connectors.V1.Model.WebhookData.t)`, *default:* `nil`) - Output only. Webhook data.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:webhookData => list(GoogleApi.Connectors.V1.Model.WebhookData.t()) | nil
31+
}
32+
33+
field(:webhookData, as: GoogleApi.Connectors.V1.Model.WebhookData, type: :list)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Connectors.V1.Model.WebhookSubscriptions do
37+
def decode(value, options) do
38+
GoogleApi.Connectors.V1.Model.WebhookSubscriptions.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Connectors.V1.Model.WebhookSubscriptions do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

clients/connectors/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.Connectors.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.15.0"
21+
@version "0.16.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)