Skip to content

Commit 2860b5b

Browse files
feat: Automated regeneration of Connectors client (googleapis#12645)
Auto-created at 2024-12-06 13:13:56 +0000 using the toys pull request generator.
1 parent b16a7ac commit 2860b5b

20 files changed

+391
-48
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.16"}]
14+
[{:google_api_connectors, "~> 0.17"}]
1515
end
1616
```
1717

clients/connectors/lib/google_api/connectors/v1/api/projects.ex

Lines changed: 145 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2433,6 +2433,150 @@ defmodule GoogleApi.Connectors.V1.Api.Projects do
24332433
|> Response.decode(opts ++ [struct: %GoogleApi.Connectors.V1.Model.Operation{}])
24342434
end
24352435

2436+
@doc """
2437+
Publish request for the CustomConnectorVersion. Once approved, the CustomConnectorVersion will be published as PartnerConnector.
2438+
2439+
## Parameters
2440+
2441+
* `connection` (*type:* `GoogleApi.Connectors.V1.Connection.t`) - Connection to server
2442+
* `name` (*type:* `String.t`) - Required. Resource name of the form: `projects/{project}/locations/{location}/customConnectors/{custom_connector}/customConnectorVersions/{custom_connector_version}`
2443+
* `optional_params` (*type:* `keyword()`) - Optional parameters
2444+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
2445+
* `:access_token` (*type:* `String.t`) - OAuth access token.
2446+
* `:alt` (*type:* `String.t`) - Data format for response.
2447+
* `:callback` (*type:* `String.t`) - JSONP
2448+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
2449+
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
2450+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
2451+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
2452+
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
2453+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
2454+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
2455+
* `:body` (*type:* `GoogleApi.Connectors.V1.Model.PublishCustomConnectorVersionRequest.t`) -
2456+
* `opts` (*type:* `keyword()`) - Call options
2457+
2458+
## Returns
2459+
2460+
* `{:ok, %GoogleApi.Connectors.V1.Model.Operation{}}` on success
2461+
* `{:error, info}` on failure
2462+
"""
2463+
@spec connectors_projects_locations_custom_connectors_custom_connector_versions_publish(
2464+
Tesla.Env.client(),
2465+
String.t(),
2466+
keyword(),
2467+
keyword()
2468+
) ::
2469+
{:ok, GoogleApi.Connectors.V1.Model.Operation.t()}
2470+
| {:ok, Tesla.Env.t()}
2471+
| {:ok, list()}
2472+
| {:error, any()}
2473+
def connectors_projects_locations_custom_connectors_custom_connector_versions_publish(
2474+
connection,
2475+
name,
2476+
optional_params \\ [],
2477+
opts \\ []
2478+
) do
2479+
optional_params_config = %{
2480+
:"$.xgafv" => :query,
2481+
:access_token => :query,
2482+
:alt => :query,
2483+
:callback => :query,
2484+
:fields => :query,
2485+
:key => :query,
2486+
:oauth_token => :query,
2487+
:prettyPrint => :query,
2488+
:quotaUser => :query,
2489+
:uploadType => :query,
2490+
:upload_protocol => :query,
2491+
:body => :body
2492+
}
2493+
2494+
request =
2495+
Request.new()
2496+
|> Request.method(:post)
2497+
|> Request.url("/v1/{+name}:publish", %{
2498+
"name" => URI.encode(name, &URI.char_unreserved?/1)
2499+
})
2500+
|> Request.add_optional_params(optional_params_config, optional_params)
2501+
|> Request.library_version(@library_version)
2502+
2503+
connection
2504+
|> Connection.execute(request)
2505+
|> Response.decode(opts ++ [struct: %GoogleApi.Connectors.V1.Model.Operation{}])
2506+
end
2507+
2508+
@doc """
2509+
Withdraw the publish request for the CustomConnectorVersion. This can only be used before the CustomConnectorVersion is published.
2510+
2511+
## Parameters
2512+
2513+
* `connection` (*type:* `GoogleApi.Connectors.V1.Connection.t`) - Connection to server
2514+
* `name` (*type:* `String.t`) - Required. Resource name of the form: `projects/{project}/locations/{location}/customConnectors/{custom_connector}/customConnectorVersions/{custom_connector_version}`
2515+
* `optional_params` (*type:* `keyword()`) - Optional parameters
2516+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
2517+
* `:access_token` (*type:* `String.t`) - OAuth access token.
2518+
* `:alt` (*type:* `String.t`) - Data format for response.
2519+
* `:callback` (*type:* `String.t`) - JSONP
2520+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
2521+
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
2522+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
2523+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
2524+
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
2525+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
2526+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
2527+
* `:body` (*type:* `GoogleApi.Connectors.V1.Model.WithdrawCustomConnectorVersionRequest.t`) -
2528+
* `opts` (*type:* `keyword()`) - Call options
2529+
2530+
## Returns
2531+
2532+
* `{:ok, %GoogleApi.Connectors.V1.Model.Operation{}}` on success
2533+
* `{:error, info}` on failure
2534+
"""
2535+
@spec connectors_projects_locations_custom_connectors_custom_connector_versions_withdraw(
2536+
Tesla.Env.client(),
2537+
String.t(),
2538+
keyword(),
2539+
keyword()
2540+
) ::
2541+
{:ok, GoogleApi.Connectors.V1.Model.Operation.t()}
2542+
| {:ok, Tesla.Env.t()}
2543+
| {:ok, list()}
2544+
| {:error, any()}
2545+
def connectors_projects_locations_custom_connectors_custom_connector_versions_withdraw(
2546+
connection,
2547+
name,
2548+
optional_params \\ [],
2549+
opts \\ []
2550+
) do
2551+
optional_params_config = %{
2552+
:"$.xgafv" => :query,
2553+
:access_token => :query,
2554+
:alt => :query,
2555+
:callback => :query,
2556+
:fields => :query,
2557+
:key => :query,
2558+
:oauth_token => :query,
2559+
:prettyPrint => :query,
2560+
:quotaUser => :query,
2561+
:uploadType => :query,
2562+
:upload_protocol => :query,
2563+
:body => :body
2564+
}
2565+
2566+
request =
2567+
Request.new()
2568+
|> Request.method(:post)
2569+
|> Request.url("/v1/{+name}:withdraw", %{
2570+
"name" => URI.encode(name, &URI.char_unreserved?/1)
2571+
})
2572+
|> Request.add_optional_params(optional_params_config, optional_params)
2573+
|> Request.library_version(@library_version)
2574+
2575+
connection
2576+
|> Connection.execute(request)
2577+
|> Response.decode(opts ++ [struct: %GoogleApi.Connectors.V1.Model.Operation{}])
2578+
end
2579+
24362580
@doc """
24372581
Creates a new EndpointAttachment in a given project and location.
24382582
@@ -3906,7 +4050,7 @@ defmodule GoogleApi.Connectors.V1.Api.Projects do
39064050
end
39074051

39084052
@doc """
3909-
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
4053+
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
39104054
39114055
## Parameters
39124056

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

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

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ defmodule GoogleApi.Connectors.V1.Model.AuthorizationCodeLink do
2121
2222
## Attributes
2323
24-
* `clientId` (*type:* `String.t`, *default:* `nil`) - The client ID assigned to the Google Cloud Connectors OAuth app for the connector data source.
24+
* `clientId` (*type:* `String.t`, *default:* `nil`) - Optional. The client ID assigned to the Google Cloud Connectors OAuth app for the connector data source.
2525
* `clientSecret` (*type:* `GoogleApi.Connectors.V1.Model.Secret.t`, *default:* `nil`) - Optional. The client secret assigned to the Google Cloud Connectors OAuth app for the connector data source.
26-
* `enablePkce` (*type:* `boolean()`, *default:* `nil`) - Whether to enable PKCE for the auth code flow.
26+
* `enablePkce` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether to enable PKCE for the auth code flow.
2727
* `omitQueryParams` (*type:* `boolean()`, *default:* `nil`) - Optional. Omit query params from the redirect URI.
28-
* `scopes` (*type:* `list(String.t)`, *default:* `nil`) - The scopes for which the user will authorize Google Cloud Connectors on the connector data source.
29-
* `uri` (*type:* `String.t`, *default:* `nil`) - The base URI the user must click to trigger the authorization code login flow.
28+
* `scopes` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The scopes for which the user will authorize Google Cloud Connectors on the connector data source.
29+
* `uri` (*type:* `String.t`, *default:* `nil`) - Optional. The base URI the user must click to trigger the authorization code login flow.
3030
"""
3131

3232
use GoogleApi.Gax.ModelBase

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@ defmodule GoogleApi.Connectors.V1.Model.ConfigVariableTemplate do
2121
2222
## Attributes
2323
24-
* `authorizationCodeLink` (*type:* `GoogleApi.Connectors.V1.Model.AuthorizationCodeLink.t`, *default:* `nil`) - Authorization code link options. To be populated if `ValueType` is `AUTHORIZATION_CODE`
25-
* `description` (*type:* `String.t`, *default:* `nil`) - Description.
26-
* `displayName` (*type:* `String.t`, *default:* `nil`) - Display name of the parameter.
27-
* `enumOptions` (*type:* `list(GoogleApi.Connectors.V1.Model.EnumOption.t)`, *default:* `nil`) - Enum options. To be populated if `ValueType` is `ENUM`
24+
* `authorizationCodeLink` (*type:* `GoogleApi.Connectors.V1.Model.AuthorizationCodeLink.t`, *default:* `nil`) - Optional. Authorization code link options. To be populated if `ValueType` is `AUTHORIZATION_CODE`
25+
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description.
26+
* `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. Display name of the parameter.
27+
* `enumOptions` (*type:* `list(GoogleApi.Connectors.V1.Model.EnumOption.t)`, *default:* `nil`) - Optional. Enum options. To be populated if `ValueType` is `ENUM`
2828
* `enumSource` (*type:* `String.t`, *default:* `nil`) - Optional. enum source denotes the source of api to fill the enum options
29-
* `isAdvanced` (*type:* `boolean()`, *default:* `nil`) - Indicates if current template is part of advanced settings
30-
* `key` (*type:* `String.t`, *default:* `nil`) - Key of the config variable.
29+
* `isAdvanced` (*type:* `boolean()`, *default:* `nil`) - Optional. Indicates if current template is part of advanced settings
30+
* `key` (*type:* `String.t`, *default:* `nil`) - Optional. Key of the config variable.
3131
* `locationType` (*type:* `String.t`, *default:* `nil`) - Optional. Location Tyep denotes where this value should be sent in BYOC connections.
3232
* `multipleSelectConfig` (*type:* `GoogleApi.Connectors.V1.Model.MultipleSelectConfig.t`, *default:* `nil`) - Optional. MultipleSelectConfig represents the multiple options for a config variable.
33-
* `required` (*type:* `boolean()`, *default:* `nil`) - Flag represents that this `ConfigVariable` must be provided for a connection.
34-
* `requiredCondition` (*type:* `GoogleApi.Connectors.V1.Model.LogicalExpression.t`, *default:* `nil`) - Condition under which a field would be required. The condition can be represented in the form of a logical expression.
35-
* `roleGrant` (*type:* `GoogleApi.Connectors.V1.Model.RoleGrant.t`, *default:* `nil`) - Role grant configuration for the config variable.
36-
* `state` (*type:* `String.t`, *default:* `nil`) - State of the config variable.
37-
* `validationRegex` (*type:* `String.t`, *default:* `nil`) - Regular expression in RE2 syntax used for validating the `value` of a `ConfigVariable`.
38-
* `valueType` (*type:* `String.t`, *default:* `nil`) - Type of the parameter: string, int, bool etc. consider custom type for the benefit for the validation.
33+
* `required` (*type:* `boolean()`, *default:* `nil`) - Optional. Flag represents that this `ConfigVariable` must be provided for a connection.
34+
* `requiredCondition` (*type:* `GoogleApi.Connectors.V1.Model.LogicalExpression.t`, *default:* `nil`) - Optional. Condition under which a field would be required. The condition can be represented in the form of a logical expression.
35+
* `roleGrant` (*type:* `GoogleApi.Connectors.V1.Model.RoleGrant.t`, *default:* `nil`) - Optional. Role grant configuration for the config variable.
36+
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. State of the config variable.
37+
* `validationRegex` (*type:* `String.t`, *default:* `nil`) - Optional. Regular expression in RE2 syntax used for validating the `value` of a `ConfigVariable`.
38+
* `valueType` (*type:* `String.t`, *default:* `nil`) - Optional. Type of the parameter: string, int, bool etc. consider custom type for the benefit for the validation.
3939
"""
4040

4141
use GoogleApi.Gax.ModelBase

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ defmodule GoogleApi.Connectors.V1.Model.Connector do
3131
* `externalUri` (*type:* `String.t`, *default:* `nil`) - Output only. Link to external page.
3232
* `labels` (*type:* `map()`, *default:* `nil`) - Output only. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
3333
* `launchStage` (*type:* `String.t`, *default:* `nil`) - Output only. Flag to mark the version indicating the launch stage.
34+
* `marketplaceConnectorDetails` (*type:* `GoogleApi.Connectors.V1.Model.MarketplaceConnectorDetails.t`, *default:* `nil`) - Output only. Marketplace connector details. Will be null if the connector is not marketplace connector.
3435
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. Resource name of the Connector. Format: projects/{project}/locations/{location}/providers/{provider}/connectors/{connector} Only global location is supported for Connector resource.
3536
* `tags` (*type:* `list(String.t)`, *default:* `nil`) - Output only. Tags of the connector.
3637
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Updated time.
@@ -50,6 +51,8 @@ defmodule GoogleApi.Connectors.V1.Model.Connector do
5051
:externalUri => String.t() | nil,
5152
:labels => map() | nil,
5253
:launchStage => String.t() | nil,
54+
:marketplaceConnectorDetails =>
55+
GoogleApi.Connectors.V1.Model.MarketplaceConnectorDetails.t() | nil,
5356
:name => String.t() | nil,
5457
:tags => list(String.t()) | nil,
5558
:updateTime => DateTime.t() | nil,
@@ -66,6 +69,11 @@ defmodule GoogleApi.Connectors.V1.Model.Connector do
6669
field(:externalUri)
6770
field(:labels, type: :map)
6871
field(:launchStage)
72+
73+
field(:marketplaceConnectorDetails,
74+
as: GoogleApi.Connectors.V1.Model.MarketplaceConnectorDetails
75+
)
76+
6977
field(:name)
7078
field(:tags, type: :list)
7179
field(:updateTime, as: DateTime)

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
@@ -22,7 +22,7 @@ defmodule GoogleApi.Connectors.V1.Model.ConnectorVersionInfraConfig do
2222
## Attributes
2323
2424
* `connectionRatelimitWindowSeconds` (*type:* `String.t`, *default:* `nil`) - Output only. The window used for ratelimiting runtime requests to connections.
25-
* `deploymentModel` (*type:* `String.t`, *default:* `nil`) - Optional. Indicates whether connector is deployed on GKE/CloudRun
25+
* `deploymentModel` (*type:* `String.t`, *default:* `nil`) - Output only. Indicates whether connector is deployed on GKE/CloudRun
2626
* `deploymentModelMigrationState` (*type:* `String.t`, *default:* `nil`) - Output only. Status of the deployment model migration.
2727
* `hpaConfig` (*type:* `GoogleApi.Connectors.V1.Model.HPAConfig.t`, *default:* `nil`) - Output only. HPA autoscaling config.
2828
* `internalclientRatelimitThreshold` (*type:* `String.t`, *default:* `nil`) - Output only. Max QPS supported for internal requests originating from Connd.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ defmodule GoogleApi.Connectors.V1.Model.EnumOption do
2121
2222
## Attributes
2323
24-
* `displayName` (*type:* `String.t`, *default:* `nil`) - Display name of the option.
25-
* `id` (*type:* `String.t`, *default:* `nil`) - Id of the option.
24+
* `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. Display name of the option.
25+
* `id` (*type:* `String.t`, *default:* `nil`) - Optional. Id of the option.
2626
"""
2727

2828
use GoogleApi.Gax.ModelBase

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+
* `gsutil` (*type:* `GoogleApi.Connectors.V1.Model.GSUtil.t`, *default:* `nil`) - OPTION 2: Write the event to Cloud Storage bucket.
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+
:gsutil => GoogleApi.Connectors.V1.Model.GSUtil.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(:gsutil, as: GoogleApi.Connectors.V1.Model.GSUtil)
3841
field(:serviceAccount)
3942
field(:type)
4043
end

0 commit comments

Comments
 (0)