Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of ServiceNetworking client #10960

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ defmodule GoogleApi.ServiceNetworking.V1.Api.Operations do
end

@doc """
Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

## Parameters

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.ServiceNetworking.V1 do
API client metadata for GoogleApi.ServiceNetworking.V1.
"""

@discovery_revision "20221115"
@discovery_revision "20240306"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defmodule GoogleApi.ServiceNetworking.V1.Model.AddDnsZoneRequest do
## Attributes

* `consumerNetwork` (*type:* `String.t`, *default:* `nil`) - Required. The network that the consumer is using to connect with services. Must be in the form of projects/{project}/global/networks/{network} {project} is the project number, as in '12345' {network} is the network name.
* `dnsSuffix` (*type:* `String.t`, *default:* `nil`) - Required. The DNS name suffix for the zones e.g. `example.com`.
* `dnsSuffix` (*type:* `String.t`, *default:* `nil`) - Required. The DNS name suffix for the zones e.g. `example.com.`. Cloud DNS requires that a DNS suffix ends with a trailing dot.
* `name` (*type:* `String.t`, *default:* `nil`) - Required. The name for both the private zone in the shared producer host project and the peering zone in the consumer project. Must be unique within both projects. The name must be 1-63 characters long, must begin with a letter, end with a letter or digit, and only contain lowercase letters, digits or dashes.
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,21 @@ defmodule GoogleApi.ServiceNetworking.V1.Model.AddSubnetworkRequest do

## Attributes

* `allowSubnetCidrRoutesOverlap` (*type:* `boolean()`, *default:* `nil`) - Optional. Defines the allowSubnetCidrRoutesOverlap field of the subnet, e.g. Available in alpha and beta according to [Compute API documentation](https://cloud.google.com/compute/docs/reference/rest/beta/subnetworks/insert)
* `checkServiceNetworkingUsePermission` (*type:* `boolean()`, *default:* `nil`) - Optional. The IAM permission check determines whether the consumer project has 'servicenetworking.services.use' permission or not.
* `computeIdempotencyWindow` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies a custom time bucket for Arcus subnetwork request idempotency. If two equivalent concurrent requests are made, Arcus will know to ignore the request if it has already been completed or is in progress. Only requests with matching compute_idempotency_window have guaranteed idempotency. Changing this time window between requests results in undefined behavior. Zero (or empty) value with custom_compute_idempotency_window=true specifies no idempotency (i.e. no request ID is provided to Arcus). Maximum value of 14 days (enforced by Arcus limit). For more information on how to use, see: go/revisit-sn-idempotency-window
* `consumer` (*type:* `String.t`, *default:* `nil`) - Required. A resource that represents the service consumer, such as `projects/123456`. The project number can be different from the value in the consumer network parameter. For example, the network might be part of a Shared VPC network. In those cases, Service Networking validates that this resource belongs to that Shared VPC.
* `consumerNetwork` (*type:* `String.t`, *default:* `nil`) - Required. The name of the service consumer's VPC network. The network must have an existing private connection that was provisioned through the connections.create method. The name must be in the following format: `projects/{project}/global/networks/{network}`, where {project} is a project number, such as `12345`. {network} is the name of a VPC network in the project.
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description of the subnet.
* `ipPrefixLength` (*type:* `integer()`, *default:* `nil`) - Required. The prefix length of the subnet's IP address range. Use CIDR range notation, such as `30` to provision a subnet with an `x.x.x.x/30` CIDR range. The IP address range is drawn from a pool of available ranges in the service consumer's allocated range.
* `internalRange` (*type:* `String.t`, *default:* `nil`) - Optional. The url of an Internal Range. Eg: `projects//locations/global/internalRanges/`. If specified, it means that the subnetwork cidr will be created using the combination of requested_address/ip_prefix_length. Note that the subnet cidr has to be within the cidr range of this Internal Range.
* `ipPrefixLength` (*type:* `integer()`, *default:* `nil`) - Required. The prefix length of the subnet's IP address range. Use CIDR range notation, such as `29` to provision a subnet with an `x.x.x.x/29` CIDR range. The IP address range is drawn from a pool of available ranges in the service consumer's allocated range. GCE disallows subnets with prefix_length > 29
* `outsideAllocationPublicIpRange` (*type:* `String.t`, *default:* `nil`) - Optional. Enable outside allocation using public IP addresses. Any public IP range may be specified. If this field is provided, we will not use customer reserved ranges for this primary IP range.
* `privateIpv6GoogleAccess` (*type:* `String.t`, *default:* `nil`) - Optional. The private IPv6 google access type for the VMs in this subnet. For information about the access types that can be set using this field, see [subnetwork](https://cloud.google.com/compute/docs/reference/rest/v1/subnetworks) in the Compute API documentation.
* `purpose` (*type:* `String.t`, *default:* `nil`) - Optional. Defines the purpose field of the subnet, e.g. 'PRIVATE_SERVICE_CONNECT'. For information about the purposes that can be set using this field, see [subnetwork](https://cloud.google.com/compute/docs/reference/rest/v1/subnetworks) in the Compute API documentation.
* `region` (*type:* `String.t`, *default:* `nil`) - Required. The name of a [region](/compute/docs/regions-zones) for the subnet, such `europe-west1`.
* `requestedAddress` (*type:* `String.t`, *default:* `nil`) - Optional. The starting address of a range. The address must be a valid IPv4 address in the x.x.x.x format. This value combined with the IP prefix range is the CIDR range for the subnet. The range must be within the allocated range that is assigned to the private connection. If the CIDR range isn't available, the call fails.
* `requestedRanges` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The name of one or more allocated IP address ranges associated with this private service access connection. If no range names are provided all ranges associated with this connection will be considered. If a CIDR range with the specified IP prefix length is not available within these ranges, the call fails.
* `role` (*type:* `String.t`, *default:* `nil`) - Optional. Defines the role field of the subnet, e.g. 'ACTIVE'. For information about the roles that can be set using this field, see [subnetwork](https://cloud.google.com/compute/docs/reference/rest/v1/subnetworks) in the Compute API documentation.
* `secondaryIpRangeSpecs` (*type:* `list(GoogleApi.ServiceNetworking.V1.Model.SecondaryIpRangeSpec.t)`, *default:* `nil`) - Optional. A list of secondary IP ranges to be created within the new subnetwork.
* `subnetwork` (*type:* `String.t`, *default:* `nil`) - Required. A name for the new subnet. For information about the naming requirements, see [subnetwork](/compute/docs/reference/rest/v1/subnetworks) in the Compute API documentation.
* `subnetworkUsers` (*type:* `list(String.t)`, *default:* `nil`) - A list of members that are granted the `roles/servicenetworking.subnetworkAdmin` role on the subnet.
Expand All @@ -42,37 +45,43 @@ defmodule GoogleApi.ServiceNetworking.V1.Model.AddSubnetworkRequest do
use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:allowSubnetCidrRoutesOverlap => boolean() | nil,
:checkServiceNetworkingUsePermission => boolean() | nil,
:computeIdempotencyWindow => String.t() | nil,
:consumer => String.t() | nil,
:consumerNetwork => String.t() | nil,
:description => String.t() | nil,
:internalRange => String.t() | nil,
:ipPrefixLength => integer() | nil,
:outsideAllocationPublicIpRange => String.t() | nil,
:privateIpv6GoogleAccess => String.t() | nil,
:purpose => String.t() | nil,
:region => String.t() | nil,
:requestedAddress => String.t() | nil,
:requestedRanges => list(String.t()) | nil,
:role => String.t() | nil,
:secondaryIpRangeSpecs =>
list(GoogleApi.ServiceNetworking.V1.Model.SecondaryIpRangeSpec.t()) | nil,
:subnetwork => String.t() | nil,
:subnetworkUsers => list(String.t()) | nil,
:useCustomComputeIdempotencyWindow => boolean() | nil
}

field(:allowSubnetCidrRoutesOverlap)
field(:checkServiceNetworkingUsePermission)
field(:computeIdempotencyWindow)
field(:consumer)
field(:consumerNetwork)
field(:description)
field(:internalRange)
field(:ipPrefixLength)
field(:outsideAllocationPublicIpRange)
field(:privateIpv6GoogleAccess)
field(:purpose)
field(:region)
field(:requestedAddress)
field(:requestedRanges, type: :list)
field(:role)

field(:secondaryIpRangeSpecs,
as: GoogleApi.ServiceNetworking.V1.Model.SecondaryIpRangeSpec,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ defmodule GoogleApi.ServiceNetworking.V1.Model.BackendRule do
* `jwtAudience` (*type:* `String.t`, *default:* `nil`) - The JWT audience is used when generating a JWT ID token for the backend. This ID token will be added in the HTTP "authorization" header, and sent to the backend.
* `minDeadline` (*type:* `float()`, *default:* `nil`) - Deprecated, do not use.
* `operationDeadline` (*type:* `float()`, *default:* `nil`) - The number of seconds to wait for the completion of a long running operation. The default is no deadline.
* `overridesByRequestProtocol` (*type:* `%{optional(String.t) => GoogleApi.ServiceNetworking.V1.Model.BackendRule.t}`, *default:* `nil`) - The map between request protocol and the backend address.
* `pathTranslation` (*type:* `String.t`, *default:* `nil`) -
* `protocol` (*type:* `String.t`, *default:* `nil`) - The protocol used for sending a request to the backend. The supported values are "http/1.1" and "h2". The default value is inferred from the scheme in the address field: SCHEME PROTOCOL http:// http/1.1 https:// http/1.1 grpc:// h2 grpcs:// h2 For secure HTTP backends (https://) that support HTTP/2, set this field to "h2" for improved performance. Configuring this field to non-default values is only supported for secure HTTP backends. This field will be ignored for all other backends. See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for more details on the supported values.
* `selector` (*type:* `String.t`, *default:* `nil`) - Selects the methods to which this rule applies. Refer to selector for syntax details.
Expand All @@ -41,6 +42,8 @@ defmodule GoogleApi.ServiceNetworking.V1.Model.BackendRule do
:jwtAudience => String.t() | nil,
:minDeadline => float() | nil,
:operationDeadline => float() | nil,
:overridesByRequestProtocol =>
%{optional(String.t()) => GoogleApi.ServiceNetworking.V1.Model.BackendRule.t()} | nil,
:pathTranslation => String.t() | nil,
:protocol => String.t() | nil,
:selector => String.t() | nil
Expand All @@ -52,6 +55,12 @@ defmodule GoogleApi.ServiceNetworking.V1.Model.BackendRule do
field(:jwtAudience)
field(:minDeadline)
field(:operationDeadline)

field(:overridesByRequestProtocol,
as: GoogleApi.ServiceNetworking.V1.Model.BackendRule,
type: :map
)

field(:pathTranslation)
field(:protocol)
field(:selector)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ defmodule GoogleApi.ServiceNetworking.V1.Model.ClientLibrarySettings do
* `pythonSettings` (*type:* `GoogleApi.ServiceNetworking.V1.Model.PythonSettings.t`, *default:* `nil`) - Settings for Python client libraries.
* `restNumericEnums` (*type:* `boolean()`, *default:* `nil`) - When using transport=rest, the client request will encode enums as numbers rather than strings.
* `rubySettings` (*type:* `GoogleApi.ServiceNetworking.V1.Model.RubySettings.t`, *default:* `nil`) - Settings for Ruby client libraries.
* `version` (*type:* `String.t`, *default:* `nil`) - Version of the API to apply these settings to.
* `version` (*type:* `String.t`, *default:* `nil`) - Version of the API to apply these settings to. This is the full protobuf package for the API, ending in the version element. Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,18 @@ defmodule GoogleApi.ServiceNetworking.V1.Model.Control do
## Attributes

* `environment` (*type:* `String.t`, *default:* `nil`) - The service controller environment to use. If empty, no control plane feature (like quota and billing) will be enabled. The recommended value for most services is servicecontrol.googleapis.com
* `methodPolicies` (*type:* `list(GoogleApi.ServiceNetworking.V1.Model.MethodPolicy.t)`, *default:* `nil`) - Defines policies applying to the API methods of the service.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:environment => String.t() | nil
:environment => String.t() | nil,
:methodPolicies => list(GoogleApi.ServiceNetworking.V1.Model.MethodPolicy.t()) | nil
}

field(:environment)
field(:methodPolicies, as: GoogleApi.ServiceNetworking.V1.Model.MethodPolicy, type: :list)
end

defimpl Poison.Decoder, for: GoogleApi.ServiceNetworking.V1.Model.Control do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defmodule GoogleApi.ServiceNetworking.V1.Model.DnsRecordSet do
## Attributes

* `data` (*type:* `list(String.t)`, *default:* `nil`) - Required. As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) for examples see https://cloud.google.com/dns/records/json-record.
* `domain` (*type:* `String.t`, *default:* `nil`) - Required. The DNS or domain name of the record set, e.g. `test.example.com`.
* `domain` (*type:* `String.t`, *default:* `nil`) - Required. The DNS or domain name of the record set, e.g. `test.example.com`. Cloud DNS requires that a DNS suffix ends with a trailing dot.
* `ttl` (*type:* `String.t`, *default:* `nil`) - Required. The period of time for which this RecordSet can be cached by resolvers.
* `type` (*type:* `String.t`, *default:* `nil`) - Required. The identifier of a supported record type.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule GoogleApi.ServiceNetworking.V1.Model.DnsZone do

## Attributes

* `dnsSuffix` (*type:* `String.t`, *default:* `nil`) - The DNS name suffix of this zone e.g. `example.com.`.
* `dnsSuffix` (*type:* `String.t`, *default:* `nil`) - The DNS name suffix of this zone e.g. `example.com.`. Cloud DNS requires that a DNS suffix ends with a trailing dot.
* `name` (*type:* `String.t`, *default:* `nil`) - User assigned name for this resource. Must be unique within the project. The name must be 1-63 characters long, must begin with a letter, end with a letter or digit, and only contain lowercase letters, digits or dashes.
"""

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.ServiceNetworking.V1.Model.DnsZonePair do
@moduledoc """
* Represents a pair of private and peering DNS zone resources. *

## Attributes

* `consumerPeeringZone` (*type:* `GoogleApi.ServiceNetworking.V1.Model.DnsZone.t`, *default:* `nil`) - The DNS peering zone in the consumer project.
* `producerPrivateZone` (*type:* `GoogleApi.ServiceNetworking.V1.Model.DnsZone.t`, *default:* `nil`) - The private DNS zone in the shared producer host project.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:consumerPeeringZone => GoogleApi.ServiceNetworking.V1.Model.DnsZone.t() | nil,
:producerPrivateZone => GoogleApi.ServiceNetworking.V1.Model.DnsZone.t() | nil
}

field(:consumerPeeringZone, as: GoogleApi.ServiceNetworking.V1.Model.DnsZone)
field(:producerPrivateZone, as: GoogleApi.ServiceNetworking.V1.Model.DnsZone)
end

defimpl Poison.Decoder, for: GoogleApi.ServiceNetworking.V1.Model.DnsZonePair do
def decode(value, options) do
GoogleApi.ServiceNetworking.V1.Model.DnsZonePair.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.ServiceNetworking.V1.Model.DnsZonePair do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Loading
Loading