Skip to content

Commit e9787ff

Browse files
feat: Automated regeneration of Connectors client (googleapis#13122)
Auto-created at 2025-03-09 13:09:38 +0000 using the toys pull request generator.
1 parent 280315a commit e9787ff

File tree

4 files changed

+138
-80
lines changed

4 files changed

+138
-80
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 "20250218"
23+
@discovery_revision "20250304"
2424

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

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

Lines changed: 87 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -21,114 +21,123 @@ defmodule GoogleApi.Connectors.V1.Model.Connection do
2121
2222
## Attributes
2323
24-
* `asyncOperationsEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Async operations enabled for the connection. If Async Operations is enabled, Connection allows the customers to initiate async long running operations using the actions API.
25-
* `authConfig` (*type:* `GoogleApi.Connectors.V1.Model.AuthConfig.t`, *default:* `nil`) - Optional. Configuration for establishing the connection's authentication with an external system.
26-
* `authOverrideEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Auth override enabled for the connection. If Auth Override is enabled, Connection allows the backend service auth to be overridden in the entities/actions API.
27-
* `billingConfig` (*type:* `GoogleApi.Connectors.V1.Model.BillingConfig.t`, *default:* `nil`) - Output only. Billing config for the connection.
28-
* `configVariables` (*type:* `list(GoogleApi.Connectors.V1.Model.ConfigVariable.t)`, *default:* `nil`) - Optional. Configuration for configuring the connection with an external system.
29-
* `connectionRevision` (*type:* `String.t`, *default:* `nil`) - Output only. Connection revision. This field is only updated when the connection is created or updated by User.
30-
* `connectorVersion` (*type:* `String.t`, *default:* `nil`) - Required. Connector version on which the connection is created. The format is: projects/*/locations/*/providers/*/connectors/*/versions/* Only global location is supported for ConnectorVersion resource.
31-
* `connectorVersionInfraConfig` (*type:* `GoogleApi.Connectors.V1.Model.ConnectorVersionInfraConfig.t`, *default:* `nil`) - Output only. Infra configs supported by Connector Version.
32-
* `connectorVersionLaunchStage` (*type:* `String.t`, *default:* `nil`) - Output only. Flag to mark the version indicating the launch stage.
24+
* `serviceAccount` (*type:* `String.t`, *default:* `nil`) - Optional. Service account needed for runtime plane to access Google Cloud resources.
3325
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Created time.
26+
* `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
27+
* `nodeConfig` (*type:* `GoogleApi.Connectors.V1.Model.NodeConfig.t`, *default:* `nil`) - Optional. Node configuration for the connection.
28+
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection}
29+
* `connectorVersion` (*type:* `String.t`, *default:* `nil`) - Required. Connector version on which the connection is created. The format is: projects/*/locations/*/providers/*/connectors/*/versions/* Only global location is supported for ConnectorVersion resource.
30+
* `subscriptionType` (*type:* `String.t`, *default:* `nil`) - Output only. This subscription type enum states the subscription type of the project.
31+
* `tlsServiceDirectory` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the Service Directory service with TLS.
3432
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description of the resource.
35-
* `destinationConfigs` (*type:* `list(GoogleApi.Connectors.V1.Model.DestinationConfig.t)`, *default:* `nil`) - Optional. Configuration of the Connector's destination. Only accepted for Connectors that accepts user defined destination(s).
36-
* `envoyImageLocation` (*type:* `String.t`, *default:* `nil`) - Output only. GCR location where the envoy image is stored. formatted like: gcr.io/{bucketName}/{imageName}
33+
* `authConfig` (*type:* `GoogleApi.Connectors.V1.Model.AuthConfig.t`, *default:* `nil`) - Optional. Configuration for establishing the connection's authentication with an external system.
34+
* `isTrustedTester` (*type:* `boolean()`, *default:* `nil`) - Output only. Is trusted tester program enabled for the project.
35+
* `logConfig` (*type:* `GoogleApi.Connectors.V1.Model.ConnectorsLogConfig.t`, *default:* `nil`) - Optional. Log configuration for the connection.
36+
* `connectorVersionLaunchStage` (*type:* `String.t`, *default:* `nil`) - Output only. Flag to mark the version indicating the launch stage.
37+
* `configVariables` (*type:* `list(GoogleApi.Connectors.V1.Model.ConfigVariable.t)`, *default:* `nil`) - Optional. Configuration for configuring the connection with an external system.
38+
* `lockConfig` (*type:* `GoogleApi.Connectors.V1.Model.LockConfig.t`, *default:* `nil`) - Optional. Configuration that indicates whether or not the Connection can be edited.
39+
* `billingConfig` (*type:* `GoogleApi.Connectors.V1.Model.BillingConfig.t`, *default:* `nil`) - Output only. Billing config for the connection.
40+
* `suspended` (*type:* `boolean()`, *default:* `nil`) - Optional. Suspended indicates if a user has suspended a connection or not.
41+
* `sslConfig` (*type:* `GoogleApi.Connectors.V1.Model.SslConfig.t`, *default:* `nil`) - Optional. Ssl config of a connection
42+
* `asyncOperationsEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Async operations enabled for the connection. If Async Operations is enabled, Connection allows the customers to initiate async long running operations using the actions API.
43+
* `imageLocation` (*type:* `String.t`, *default:* `nil`) - Output only. GCR location where the runtime image is stored. formatted like: gcr.io/{bucketName}/{imageName}
3744
* `eventingConfig` (*type:* `GoogleApi.Connectors.V1.Model.EventingConfig.t`, *default:* `nil`) - Optional. Eventing config of a connection
45+
* `destinationConfigs` (*type:* `list(GoogleApi.Connectors.V1.Model.DestinationConfig.t)`, *default:* `nil`) - Optional. Configuration of the Connector's destination. Only accepted for Connectors that accepts user defined destination(s).
3846
* `eventingEnablementType` (*type:* `String.t`, *default:* `nil`) - Optional. Eventing enablement type. Will be nil if eventing is not enabled.
39-
* `eventingRuntimeData` (*type:* `GoogleApi.Connectors.V1.Model.EventingRuntimeData.t`, *default:* `nil`) - Output only. Eventing Runtime Data.
4047
* `host` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the Hostname of the Service Directory service with TLS.
41-
* `imageLocation` (*type:* `String.t`, *default:* `nil`) - Output only. GCR location where the runtime image is stored. formatted like: gcr.io/{bucketName}/{imageName}
42-
* `isTrustedTester` (*type:* `boolean()`, *default:* `nil`) - Output only. Is trusted tester program enabled for the project.
43-
* `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
44-
* `lockConfig` (*type:* `GoogleApi.Connectors.V1.Model.LockConfig.t`, *default:* `nil`) - Optional. Configuration that indicates whether or not the Connection can be edited.
45-
* `logConfig` (*type:* `GoogleApi.Connectors.V1.Model.ConnectorsLogConfig.t`, *default:* `nil`) - Optional. Log configuration for the connection.
46-
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection}
47-
* `nodeConfig` (*type:* `GoogleApi.Connectors.V1.Model.NodeConfig.t`, *default:* `nil`) - Optional. Node configuration for the connection.
48-
* `serviceAccount` (*type:* `String.t`, *default:* `nil`) - Optional. Service account needed for runtime plane to access Google Cloud resources.
48+
* `authOverrideEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Auth override enabled for the connection. If Auth Override is enabled, Connection allows the backend service auth to be overridden in the entities/actions API.
49+
* `connectionRevision` (*type:* `String.t`, *default:* `nil`) - Output only. Connection revision. This field is only updated when the connection is created or updated by User.
50+
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Updated time.
51+
* `trafficShapingConfigs` (*type:* `list(GoogleApi.Connectors.V1.Model.TrafficShapingConfig.t)`, *default:* `nil`) - Optional. Traffic shaping configuration for the connection.
4952
* `serviceDirectory` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the Service Directory service name. Used for Private Harpoon to resolve the ILB address. e.g. "projects/cloud-connectors-e2e-testing/locations/us-central1/namespaces/istio-system/services/istio-ingressgateway-connectors"
50-
* `sslConfig` (*type:* `GoogleApi.Connectors.V1.Model.SslConfig.t`, *default:* `nil`) - Optional. Ssl config of a connection
5153
* `status` (*type:* `GoogleApi.Connectors.V1.Model.ConnectionStatus.t`, *default:* `nil`) - Output only. Current status of the connection.
52-
* `subscriptionType` (*type:* `String.t`, *default:* `nil`) - Output only. This subscription type enum states the subscription type of the project.
53-
* `suspended` (*type:* `boolean()`, *default:* `nil`) - Optional. Suspended indicates if a user has suspended a connection or not.
54-
* `tlsServiceDirectory` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the Service Directory service with TLS.
55-
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Updated time.
54+
* `envoyImageLocation` (*type:* `String.t`, *default:* `nil`) - Output only. GCR location where the envoy image is stored. formatted like: gcr.io/{bucketName}/{imageName}
55+
* `connectorVersionInfraConfig` (*type:* `GoogleApi.Connectors.V1.Model.ConnectorVersionInfraConfig.t`, *default:* `nil`) - Output only. Infra configs supported by Connector Version.
56+
* `eventingRuntimeData` (*type:* `GoogleApi.Connectors.V1.Model.EventingRuntimeData.t`, *default:* `nil`) - Output only. Eventing Runtime Data.
5657
"""
5758

5859
use GoogleApi.Gax.ModelBase
5960

6061
@type t :: %__MODULE__{
61-
:asyncOperationsEnabled => boolean() | nil,
62-
:authConfig => GoogleApi.Connectors.V1.Model.AuthConfig.t() | nil,
63-
:authOverrideEnabled => boolean() | nil,
64-
:billingConfig => GoogleApi.Connectors.V1.Model.BillingConfig.t() | nil,
65-
:configVariables => list(GoogleApi.Connectors.V1.Model.ConfigVariable.t()) | nil,
66-
:connectionRevision => String.t() | nil,
67-
:connectorVersion => String.t() | nil,
68-
:connectorVersionInfraConfig =>
69-
GoogleApi.Connectors.V1.Model.ConnectorVersionInfraConfig.t() | nil,
70-
:connectorVersionLaunchStage => String.t() | nil,
62+
:serviceAccount => String.t() | nil,
7163
:createTime => DateTime.t() | nil,
64+
:labels => map() | nil,
65+
:nodeConfig => GoogleApi.Connectors.V1.Model.NodeConfig.t() | nil,
66+
:name => String.t() | nil,
67+
:connectorVersion => String.t() | nil,
68+
:subscriptionType => String.t() | nil,
69+
:tlsServiceDirectory => String.t() | nil,
7270
:description => String.t() | nil,
73-
:destinationConfigs => list(GoogleApi.Connectors.V1.Model.DestinationConfig.t()) | nil,
74-
:envoyImageLocation => String.t() | nil,
71+
:authConfig => GoogleApi.Connectors.V1.Model.AuthConfig.t() | nil,
72+
:isTrustedTester => boolean() | nil,
73+
:logConfig => GoogleApi.Connectors.V1.Model.ConnectorsLogConfig.t() | nil,
74+
:connectorVersionLaunchStage => String.t() | nil,
75+
:configVariables => list(GoogleApi.Connectors.V1.Model.ConfigVariable.t()) | nil,
76+
:lockConfig => GoogleApi.Connectors.V1.Model.LockConfig.t() | nil,
77+
:billingConfig => GoogleApi.Connectors.V1.Model.BillingConfig.t() | nil,
78+
:suspended => boolean() | nil,
79+
:sslConfig => GoogleApi.Connectors.V1.Model.SslConfig.t() | nil,
80+
:asyncOperationsEnabled => boolean() | nil,
81+
:imageLocation => String.t() | nil,
7582
:eventingConfig => GoogleApi.Connectors.V1.Model.EventingConfig.t() | nil,
83+
:destinationConfigs => list(GoogleApi.Connectors.V1.Model.DestinationConfig.t()) | nil,
7684
:eventingEnablementType => String.t() | nil,
77-
:eventingRuntimeData => GoogleApi.Connectors.V1.Model.EventingRuntimeData.t() | nil,
7885
:host => String.t() | nil,
79-
:imageLocation => String.t() | nil,
80-
:isTrustedTester => boolean() | nil,
81-
:labels => map() | nil,
82-
:lockConfig => GoogleApi.Connectors.V1.Model.LockConfig.t() | nil,
83-
:logConfig => GoogleApi.Connectors.V1.Model.ConnectorsLogConfig.t() | nil,
84-
:name => String.t() | nil,
85-
:nodeConfig => GoogleApi.Connectors.V1.Model.NodeConfig.t() | nil,
86-
:serviceAccount => String.t() | nil,
86+
:authOverrideEnabled => boolean() | nil,
87+
:connectionRevision => String.t() | nil,
88+
:updateTime => DateTime.t() | nil,
89+
:trafficShapingConfigs =>
90+
list(GoogleApi.Connectors.V1.Model.TrafficShapingConfig.t()) | nil,
8791
:serviceDirectory => String.t() | nil,
88-
:sslConfig => GoogleApi.Connectors.V1.Model.SslConfig.t() | nil,
8992
:status => GoogleApi.Connectors.V1.Model.ConnectionStatus.t() | nil,
90-
:subscriptionType => String.t() | nil,
91-
:suspended => boolean() | nil,
92-
:tlsServiceDirectory => String.t() | nil,
93-
:updateTime => DateTime.t() | nil
93+
:envoyImageLocation => String.t() | nil,
94+
:connectorVersionInfraConfig =>
95+
GoogleApi.Connectors.V1.Model.ConnectorVersionInfraConfig.t() | nil,
96+
:eventingRuntimeData => GoogleApi.Connectors.V1.Model.EventingRuntimeData.t() | nil
9497
}
9598

96-
field(:asyncOperationsEnabled)
99+
field(:serviceAccount)
100+
field(:createTime, as: DateTime)
101+
field(:labels, type: :map)
102+
field(:nodeConfig, as: GoogleApi.Connectors.V1.Model.NodeConfig)
103+
field(:name)
104+
field(:connectorVersion)
105+
field(:subscriptionType)
106+
field(:tlsServiceDirectory)
107+
field(:description)
97108
field(:authConfig, as: GoogleApi.Connectors.V1.Model.AuthConfig)
98-
field(:authOverrideEnabled)
99-
field(:billingConfig, as: GoogleApi.Connectors.V1.Model.BillingConfig)
109+
field(:isTrustedTester)
110+
field(:logConfig, as: GoogleApi.Connectors.V1.Model.ConnectorsLogConfig)
111+
field(:connectorVersionLaunchStage)
100112
field(:configVariables, as: GoogleApi.Connectors.V1.Model.ConfigVariable, type: :list)
113+
field(:lockConfig, as: GoogleApi.Connectors.V1.Model.LockConfig)
114+
field(:billingConfig, as: GoogleApi.Connectors.V1.Model.BillingConfig)
115+
field(:suspended)
116+
field(:sslConfig, as: GoogleApi.Connectors.V1.Model.SslConfig)
117+
field(:asyncOperationsEnabled)
118+
field(:imageLocation)
119+
field(:eventingConfig, as: GoogleApi.Connectors.V1.Model.EventingConfig)
120+
field(:destinationConfigs, as: GoogleApi.Connectors.V1.Model.DestinationConfig, type: :list)
121+
field(:eventingEnablementType)
122+
field(:host)
123+
field(:authOverrideEnabled)
101124
field(:connectionRevision)
102-
field(:connectorVersion)
125+
field(:updateTime, as: DateTime)
126+
127+
field(:trafficShapingConfigs,
128+
as: GoogleApi.Connectors.V1.Model.TrafficShapingConfig,
129+
type: :list
130+
)
131+
132+
field(:serviceDirectory)
133+
field(:status, as: GoogleApi.Connectors.V1.Model.ConnectionStatus)
134+
field(:envoyImageLocation)
103135

104136
field(:connectorVersionInfraConfig,
105137
as: GoogleApi.Connectors.V1.Model.ConnectorVersionInfraConfig
106138
)
107139

108-
field(:connectorVersionLaunchStage)
109-
field(:createTime, as: DateTime)
110-
field(:description)
111-
field(:destinationConfigs, as: GoogleApi.Connectors.V1.Model.DestinationConfig, type: :list)
112-
field(:envoyImageLocation)
113-
field(:eventingConfig, as: GoogleApi.Connectors.V1.Model.EventingConfig)
114-
field(:eventingEnablementType)
115140
field(:eventingRuntimeData, as: GoogleApi.Connectors.V1.Model.EventingRuntimeData)
116-
field(:host)
117-
field(:imageLocation)
118-
field(:isTrustedTester)
119-
field(:labels, type: :map)
120-
field(:lockConfig, as: GoogleApi.Connectors.V1.Model.LockConfig)
121-
field(:logConfig, as: GoogleApi.Connectors.V1.Model.ConnectorsLogConfig)
122-
field(:name)
123-
field(:nodeConfig, as: GoogleApi.Connectors.V1.Model.NodeConfig)
124-
field(:serviceAccount)
125-
field(:serviceDirectory)
126-
field(:sslConfig, as: GoogleApi.Connectors.V1.Model.SslConfig)
127-
field(:status, as: GoogleApi.Connectors.V1.Model.ConnectionStatus)
128-
field(:subscriptionType)
129-
field(:suspended)
130-
field(:tlsServiceDirectory)
131-
field(:updateTime, as: DateTime)
132141
end
133142

134143
defimpl Poison.Decoder, for: GoogleApi.Connectors.V1.Model.Connection do

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.Connectors.V1.Model.ConnectorVersionInfraConfig do
1919
@moduledoc """
20-
This cofiguration provides infra configs like rate limit threshold which need to be configurable for every connector version
20+
This configuration provides infra configs like rate limit threshold which need to be configurable for every connector version
2121
2222
## Attributes
2323
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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.TrafficShapingConfig do
19+
@moduledoc """
20+
* TrafficShapingConfig defines the configuration for shaping API traffic by specifying a quota limit and the duration over which this limit is enforced. This configuration helps to control and manage the rate at which API calls are made on the client side, preventing service overload on the backend. For example: - if the quota limit is 100 calls per 10 seconds, then the message would be: { quota_limit: 100 duration: { seconds: 10 } } - if the quota limit is 100 calls per 5 minutes, then the message would be: { quota_limit: 100 duration: { seconds: 300 } } - if the quota limit is 10000 calls per day, then the message would be: { quota_limit: 10000 duration: { seconds: 86400 } and so on.
21+
22+
## Attributes
23+
24+
* `duration` (*type:* `String.t`, *default:* `nil`) - Required. * The duration over which the API call quota limits are calculated. This duration is used to define the time window for evaluating if the number of API calls made by a user is within the allowed quota limits. For example: - To define a quota sampled over 16 seconds, set `seconds` to 16 - To define a quota sampled over 5 minutes, set `seconds` to 300 (5 * 60) - To define a quota sampled over 1 day, set `seconds` to 86400 (24 * 60 * 60) and so on. It is important to note that this duration is not the time the quota is valid for, but rather the time window over which the quota is evaluated. For example, if the quota is 100 calls per 10 seconds, then this duration field would be set to 10 seconds.
25+
* `quotaLimit` (*type:* `String.t`, *default:* `nil`) - Required. Maximum number of api calls allowed.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:duration => String.t() | nil,
32+
:quotaLimit => String.t() | nil
33+
}
34+
35+
field(:duration)
36+
field(:quotaLimit)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.Connectors.V1.Model.TrafficShapingConfig do
40+
def decode(value, options) do
41+
GoogleApi.Connectors.V1.Model.TrafficShapingConfig.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.Connectors.V1.Model.TrafficShapingConfig do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

0 commit comments

Comments
 (0)