Skip to content

Commit 7394a6e

Browse files
feat: Automated regeneration of NetworkServices client (googleapis#12224)
Auto-created at 2024-09-27 13:14:36 +0000 using the toys pull request generator.
1 parent 2ea49f8 commit 7394a6e

File tree

6 files changed

+9
-227
lines changed

6 files changed

+9
-227
lines changed

clients/network_services/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_network_services, "~> 0.7"}]
14+
[{:google_api_network_services, "~> 0.8"}]
1515
end
1616
```
1717

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

Lines changed: 2 additions & 220 deletions
Original file line numberDiff line numberDiff line change
@@ -2591,7 +2591,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do
25912591
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
25922592
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
25932593
* `:requestId` (*type:* `String.t`) - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request. For example, consider a situation where 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 original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2594-
* `:updateMask` (*type:* `String.t`) - Optional. Used to specify the fields to be overwritten in the `LbRouteExtension` resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.
2594+
* `:updateMask` (*type:* `String.t`) - Optional. Used to specify the fields to be overwritten in the `LbRouteExtension` resource by the update. The fields specified in the `update_mask` are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.
25952595
* `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.LbRouteExtension.t`) -
25962596
* `opts` (*type:* `keyword()`) - Call options
25972597
@@ -2965,7 +2965,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do
29652965
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
29662966
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
29672967
* `:requestId` (*type:* `String.t`) - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request. For example, consider a situation where 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 original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2968-
* `:updateMask` (*type:* `String.t`) - Optional. Used to specify the fields to be overwritten in the `LbTrafficExtension` resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.
2968+
* `:updateMask` (*type:* `String.t`) - Optional. Used to specify the fields to be overwritten in the `LbTrafficExtension` resource by the update. The fields specified in the `update_mask` are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.
29692969
* `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.LbTrafficExtension.t`) -
29702970
* `opts` (*type:* `keyword()`) - Call options
29712971
@@ -4177,78 +4177,6 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do
41774177
|> Response.decode(opts ++ [struct: %GoogleApi.NetworkServices.V1.Model.ServiceLbPolicy{}])
41784178
end
41794179

4180-
@doc """
4181-
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
4182-
4183-
## Parameters
4184-
4185-
* `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server
4186-
* `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
4187-
* `optional_params` (*type:* `keyword()`) - Optional parameters
4188-
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
4189-
* `:access_token` (*type:* `String.t`) - OAuth access token.
4190-
* `:alt` (*type:* `String.t`) - Data format for response.
4191-
* `:callback` (*type:* `String.t`) - JSONP
4192-
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
4193-
* `: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.
4194-
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
4195-
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
4196-
* `: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.
4197-
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
4198-
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
4199-
* `:"options.requestedPolicyVersion"` (*type:* `integer()`) - Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
4200-
* `opts` (*type:* `keyword()`) - Call options
4201-
4202-
## Returns
4203-
4204-
* `{:ok, %GoogleApi.NetworkServices.V1.Model.Policy{}}` on success
4205-
* `{:error, info}` on failure
4206-
"""
4207-
@spec networkservices_projects_locations_service_lb_policies_get_iam_policy(
4208-
Tesla.Env.client(),
4209-
String.t(),
4210-
keyword(),
4211-
keyword()
4212-
) ::
4213-
{:ok, GoogleApi.NetworkServices.V1.Model.Policy.t()}
4214-
| {:ok, Tesla.Env.t()}
4215-
| {:ok, list()}
4216-
| {:error, any()}
4217-
def networkservices_projects_locations_service_lb_policies_get_iam_policy(
4218-
connection,
4219-
resource,
4220-
optional_params \\ [],
4221-
opts \\ []
4222-
) do
4223-
optional_params_config = %{
4224-
:"$.xgafv" => :query,
4225-
:access_token => :query,
4226-
:alt => :query,
4227-
:callback => :query,
4228-
:fields => :query,
4229-
:key => :query,
4230-
:oauth_token => :query,
4231-
:prettyPrint => :query,
4232-
:quotaUser => :query,
4233-
:uploadType => :query,
4234-
:upload_protocol => :query,
4235-
:"options.requestedPolicyVersion" => :query
4236-
}
4237-
4238-
request =
4239-
Request.new()
4240-
|> Request.method(:get)
4241-
|> Request.url("/v1/{+resource}:getIamPolicy", %{
4242-
"resource" => URI.encode(resource, &URI.char_unreserved?/1)
4243-
})
4244-
|> Request.add_optional_params(optional_params_config, optional_params)
4245-
|> Request.library_version(@library_version)
4246-
4247-
connection
4248-
|> Connection.execute(request)
4249-
|> Response.decode(opts ++ [struct: %GoogleApi.NetworkServices.V1.Model.Policy{}])
4250-
end
4251-
42524180
@doc """
42534181
Lists ServiceLbPolicies in a given project and location.
42544182
@@ -4399,152 +4327,6 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do
43994327
|> Response.decode(opts ++ [struct: %GoogleApi.NetworkServices.V1.Model.Operation{}])
44004328
end
44014329

4402-
@doc """
4403-
Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
4404-
4405-
## Parameters
4406-
4407-
* `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server
4408-
* `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
4409-
* `optional_params` (*type:* `keyword()`) - Optional parameters
4410-
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
4411-
* `:access_token` (*type:* `String.t`) - OAuth access token.
4412-
* `:alt` (*type:* `String.t`) - Data format for response.
4413-
* `:callback` (*type:* `String.t`) - JSONP
4414-
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
4415-
* `: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.
4416-
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
4417-
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
4418-
* `: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.
4419-
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
4420-
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
4421-
* `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.SetIamPolicyRequest.t`) -
4422-
* `opts` (*type:* `keyword()`) - Call options
4423-
4424-
## Returns
4425-
4426-
* `{:ok, %GoogleApi.NetworkServices.V1.Model.Policy{}}` on success
4427-
* `{:error, info}` on failure
4428-
"""
4429-
@spec networkservices_projects_locations_service_lb_policies_set_iam_policy(
4430-
Tesla.Env.client(),
4431-
String.t(),
4432-
keyword(),
4433-
keyword()
4434-
) ::
4435-
{:ok, GoogleApi.NetworkServices.V1.Model.Policy.t()}
4436-
| {:ok, Tesla.Env.t()}
4437-
| {:ok, list()}
4438-
| {:error, any()}
4439-
def networkservices_projects_locations_service_lb_policies_set_iam_policy(
4440-
connection,
4441-
resource,
4442-
optional_params \\ [],
4443-
opts \\ []
4444-
) do
4445-
optional_params_config = %{
4446-
:"$.xgafv" => :query,
4447-
:access_token => :query,
4448-
:alt => :query,
4449-
:callback => :query,
4450-
:fields => :query,
4451-
:key => :query,
4452-
:oauth_token => :query,
4453-
:prettyPrint => :query,
4454-
:quotaUser => :query,
4455-
:uploadType => :query,
4456-
:upload_protocol => :query,
4457-
:body => :body
4458-
}
4459-
4460-
request =
4461-
Request.new()
4462-
|> Request.method(:post)
4463-
|> Request.url("/v1/{+resource}:setIamPolicy", %{
4464-
"resource" => URI.encode(resource, &URI.char_unreserved?/1)
4465-
})
4466-
|> Request.add_optional_params(optional_params_config, optional_params)
4467-
|> Request.library_version(@library_version)
4468-
4469-
connection
4470-
|> Connection.execute(request)
4471-
|> Response.decode(opts ++ [struct: %GoogleApi.NetworkServices.V1.Model.Policy{}])
4472-
end
4473-
4474-
@doc """
4475-
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
4476-
4477-
## Parameters
4478-
4479-
* `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server
4480-
* `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
4481-
* `optional_params` (*type:* `keyword()`) - Optional parameters
4482-
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
4483-
* `:access_token` (*type:* `String.t`) - OAuth access token.
4484-
* `:alt` (*type:* `String.t`) - Data format for response.
4485-
* `:callback` (*type:* `String.t`) - JSONP
4486-
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
4487-
* `: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.
4488-
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
4489-
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
4490-
* `: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.
4491-
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
4492-
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
4493-
* `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.TestIamPermissionsRequest.t`) -
4494-
* `opts` (*type:* `keyword()`) - Call options
4495-
4496-
## Returns
4497-
4498-
* `{:ok, %GoogleApi.NetworkServices.V1.Model.TestIamPermissionsResponse{}}` on success
4499-
* `{:error, info}` on failure
4500-
"""
4501-
@spec networkservices_projects_locations_service_lb_policies_test_iam_permissions(
4502-
Tesla.Env.client(),
4503-
String.t(),
4504-
keyword(),
4505-
keyword()
4506-
) ::
4507-
{:ok, GoogleApi.NetworkServices.V1.Model.TestIamPermissionsResponse.t()}
4508-
| {:ok, Tesla.Env.t()}
4509-
| {:ok, list()}
4510-
| {:error, any()}
4511-
def networkservices_projects_locations_service_lb_policies_test_iam_permissions(
4512-
connection,
4513-
resource,
4514-
optional_params \\ [],
4515-
opts \\ []
4516-
) do
4517-
optional_params_config = %{
4518-
:"$.xgafv" => :query,
4519-
:access_token => :query,
4520-
:alt => :query,
4521-
:callback => :query,
4522-
:fields => :query,
4523-
:key => :query,
4524-
:oauth_token => :query,
4525-
:prettyPrint => :query,
4526-
:quotaUser => :query,
4527-
:uploadType => :query,
4528-
:upload_protocol => :query,
4529-
:body => :body
4530-
}
4531-
4532-
request =
4533-
Request.new()
4534-
|> Request.method(:post)
4535-
|> Request.url("/v1/{+resource}:testIamPermissions", %{
4536-
"resource" => URI.encode(resource, &URI.char_unreserved?/1)
4537-
})
4538-
|> Request.add_optional_params(optional_params_config, optional_params)
4539-
|> Request.library_version(@library_version)
4540-
4541-
connection
4542-
|> Connection.execute(request)
4543-
|> Response.decode(
4544-
opts ++ [struct: %GoogleApi.NetworkServices.V1.Model.TestIamPermissionsResponse{}]
4545-
)
4546-
end
4547-
45484330
@doc """
45494331
Creates a new TcpRoute in a given project and location.
45504332

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

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

23-
@discovery_revision "20240913"
23+
@discovery_revision "20240919"
2424

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

clients/network_services/lib/google_api/network_services/v1/model/lb_route_extension.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ defmodule GoogleApi.NetworkServices.V1.Model.LbRouteExtension do
2626
* `extensionChains` (*type:* `list(GoogleApi.NetworkServices.V1.Model.ExtensionChain.t)`, *default:* `nil`) - Required. A set of ordered extension chains that contain the match conditions and extensions to execute. Match conditions for each extension chain are evaluated in sequence for a given request. The first extension chain that has a condition that matches the request is executed. Any subsequent extension chains do not execute. Limited to 5 extension chains per resource.
2727
* `forwardingRules` (*type:* `list(String.t)`, *default:* `nil`) - Required. A list of references to the forwarding rules to which this service extension is attached to. At least one forwarding rule is required. There can be only one `LbRouteExtension` resource per forwarding rule.
2828
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. Set of labels associated with the `LbRouteExtension` resource. The format must comply with [the requirements for labels](https://cloud.google.com/compute/docs/labeling-resources#requirements) for Google Cloud resources.
29-
* `loadBalancingScheme` (*type:* `String.t`, *default:* `nil`) - Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Choosing a load balancer](https://cloud.google.com/load-balancing/docs/backend-service).
30-
* `metadata` (*type:* `map()`, *default:* `nil`) - Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google.lb_route_extension.`. The following variables are supported in the metadata Struct: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. Only one of the resource level metadata and extension level metadata can be set.
29+
* `loadBalancingScheme` (*type:* `String.t`, *default:* `nil`) - Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service).
30+
* `metadata` (*type:* `map()`, *default:* `nil`) - Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google.lb_route_extension.`. The following variables are supported in the metadata Struct: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name.
3131
* `name` (*type:* `String.t`, *default:* `nil`) - Required. Identifier. Name of the `LbRouteExtension` resource in the following format: `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`.
3232
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the resource was updated.
3333
"""

0 commit comments

Comments
 (0)