From dcae5a47610bb31c7496c4497304b00a108e2f24 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 28 Apr 2024 13:08:25 +0000 Subject: [PATCH] feat: Automated regeneration of NetworkConnectivity client --- clients/network_connectivity/README.md | 2 +- .../network_connectivity/v1/api/projects.ex | 304 ++++++++++++++++++ .../network_connectivity/v1/metadata.ex | 2 +- .../v1/model/consumer_psc_config.ex | 3 + .../v1/model/consumer_psc_connection.ex | 3 + .../v1/model/google_rpc_error_info.ex | 2 +- .../v1/model/internal_range.ex | 2 +- .../model/list_regional_endpoints_response.ex | 58 ++++ .../v1/model/psc_connection.ex | 3 + .../v1/model/regional_endpoint.ex | 79 +++++ clients/network_connectivity/mix.exs | 2 +- 11 files changed, 455 insertions(+), 5 deletions(-) create mode 100644 clients/network_connectivity/lib/google_api/network_connectivity/v1/model/list_regional_endpoints_response.ex create mode 100644 clients/network_connectivity/lib/google_api/network_connectivity/v1/model/regional_endpoint.ex diff --git a/clients/network_connectivity/README.md b/clients/network_connectivity/README.md index 170a3e9111..8fef622e59 100644 --- a/clients/network_connectivity/README.md +++ b/clients/network_connectivity/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_network_connectivity, "~> 0.4"}] + [{:google_api_network_connectivity, "~> 0.5"}] end ``` diff --git a/clients/network_connectivity/lib/google_api/network_connectivity/v1/api/projects.ex b/clients/network_connectivity/lib/google_api/network_connectivity/v1/api/projects.ex index a7203f1ccf..609269f653 100644 --- a/clients/network_connectivity/lib/google_api/network_connectivity/v1/api/projects.ex +++ b/clients/network_connectivity/lib/google_api/network_connectivity/v1/api/projects.ex @@ -2870,6 +2870,310 @@ defmodule GoogleApi.NetworkConnectivity.V1.Api.Projects do ) end + @doc """ + Creates a new RegionalEndpoint in a given project and location. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkConnectivity.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent resource's name of the RegionalEndpoint. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:regionalEndpointId` (*type:* `String.t`) - Required. Unique id of the Regional Endpoint to be created. + * `: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 knows to 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 the 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). + * `:body` (*type:* `GoogleApi.NetworkConnectivity.V1.Model.RegionalEndpoint.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.NetworkConnectivity.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec networkconnectivity_projects_locations_regional_endpoints_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkConnectivity.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkconnectivity_projects_locations_regional_endpoints_create( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :regionalEndpointId => :query, + :requestId => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+parent}/regionalEndpoints", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.NetworkConnectivity.V1.Model.GoogleLongrunningOperation{}] + ) + end + + @doc """ + Deletes a single RegionalEndpoint. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkConnectivity.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the RegionalEndpoint to delete. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `: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 knows to 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 the 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). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.NetworkConnectivity.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec networkconnectivity_projects_locations_regional_endpoints_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkConnectivity.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkconnectivity_projects_locations_regional_endpoints_delete( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :requestId => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.NetworkConnectivity.V1.Model.GoogleLongrunningOperation{}] + ) + end + + @doc """ + Gets details of a single RegionalEndpoint. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkConnectivity.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. Name of the RegionalEndpoint resource to get. Format: `projects/{project}/locations/{location}/regionalEndpoints/{regional_endpoint}` + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.NetworkConnectivity.V1.Model.RegionalEndpoint{}}` on success + * `{:error, info}` on failure + """ + @spec networkconnectivity_projects_locations_regional_endpoints_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkConnectivity.V1.Model.RegionalEndpoint.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkconnectivity_projects_locations_regional_endpoints_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.NetworkConnectivity.V1.Model.RegionalEndpoint{}] + ) + end + + @doc """ + Lists RegionalEndpoints in a given project and location. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkConnectivity.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent resource's name of the RegionalEndpoint. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - A filter expression that filters the results listed in the response. + * `:orderBy` (*type:* `String.t`) - Sort the results by a certain order. + * `:pageSize` (*type:* `integer()`) - Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. + * `:pageToken` (*type:* `String.t`) - A page token. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.NetworkConnectivity.V1.Model.ListRegionalEndpointsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec networkconnectivity_projects_locations_regional_endpoints_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkConnectivity.V1.Model.ListRegionalEndpointsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkconnectivity_projects_locations_regional_endpoints_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :orderBy => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+parent}/regionalEndpoints", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.NetworkConnectivity.V1.Model.ListRegionalEndpointsResponse{}] + ) + end + @doc """ Deletes a single ServiceClass. diff --git a/clients/network_connectivity/lib/google_api/network_connectivity/v1/metadata.ex b/clients/network_connectivity/lib/google_api/network_connectivity/v1/metadata.ex index 70c6c81085..4e5bb92857 100644 --- a/clients/network_connectivity/lib/google_api/network_connectivity/v1/metadata.ex +++ b/clients/network_connectivity/lib/google_api/network_connectivity/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.NetworkConnectivity.V1 do API client metadata for GoogleApi.NetworkConnectivity.V1. """ - @discovery_revision "20240228" + @discovery_revision "20240423" def discovery_revision(), do: @discovery_revision end diff --git a/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/consumer_psc_config.ex b/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/consumer_psc_config.ex index 1ce934c10a..5f335a9ad2 100644 --- a/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/consumer_psc_config.ex +++ b/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/consumer_psc_config.ex @@ -23,6 +23,7 @@ defmodule GoogleApi.NetworkConnectivity.V1.Model.ConsumerPscConfig do * `disableGlobalAccess` (*type:* `boolean()`, *default:* `nil`) - This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region. * `network` (*type:* `String.t`, *default:* `nil`) - The resource path of the consumer network where PSC connections are allowed to be created in. Note, this network does not need be in the ConsumerPscConfig.project in the case of SharedVPC. Example: projects/{projectNumOrId}/global/networks/{networkId}. + * `producerInstanceId` (*type:* `String.t`, *default:* `nil`) - Immutable. An immutable identifier for the producer instance. * `project` (*type:* `String.t`, *default:* `nil`) - The consumer project where PSC connections are allowed to be created in. * `state` (*type:* `String.t`, *default:* `nil`) - Output only. Overall state of PSC Connections management for this consumer psc config. """ @@ -32,12 +33,14 @@ defmodule GoogleApi.NetworkConnectivity.V1.Model.ConsumerPscConfig do @type t :: %__MODULE__{ :disableGlobalAccess => boolean() | nil, :network => String.t() | nil, + :producerInstanceId => String.t() | nil, :project => String.t() | nil, :state => String.t() | nil } field(:disableGlobalAccess) field(:network) + field(:producerInstanceId) field(:project) field(:state) end diff --git a/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/consumer_psc_connection.ex b/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/consumer_psc_connection.ex index 4faa9dcf2e..4837757074 100644 --- a/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/consumer_psc_connection.ex +++ b/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/consumer_psc_connection.ex @@ -28,6 +28,7 @@ defmodule GoogleApi.NetworkConnectivity.V1.Model.ConsumerPscConnection do * `gceOperation` (*type:* `String.t`, *default:* `nil`) - The last Compute Engine operation to setup PSC connection. * `ip` (*type:* `String.t`, *default:* `nil`) - The IP literal allocated on the consumer network for the PSC forwarding rule that is created to connect to the producer service attachment in this service connection map. * `network` (*type:* `String.t`, *default:* `nil`) - The consumer network whose PSC forwarding rule is connected to the service attachments in this service connection map. Note that the network could be on a different project (shared VPC). + * `producerInstanceId` (*type:* `String.t`, *default:* `nil`) - Immutable. An immutable identifier for the producer instance. * `project` (*type:* `String.t`, *default:* `nil`) - The consumer project whose PSC forwarding rule is connected to the service attachments in this service connection map. * `pscConnectionId` (*type:* `String.t`, *default:* `nil`) - The PSC connection id of the PSC forwarding rule connected to the service attachments in this service connection map. * `selectedSubnetwork` (*type:* `String.t`, *default:* `nil`) - Output only. The URI of the selected subnetwork selected to allocate IP address for this connection. @@ -45,6 +46,7 @@ defmodule GoogleApi.NetworkConnectivity.V1.Model.ConsumerPscConnection do :gceOperation => String.t() | nil, :ip => String.t() | nil, :network => String.t() | nil, + :producerInstanceId => String.t() | nil, :project => String.t() | nil, :pscConnectionId => String.t() | nil, :selectedSubnetwork => String.t() | nil, @@ -59,6 +61,7 @@ defmodule GoogleApi.NetworkConnectivity.V1.Model.ConsumerPscConnection do field(:gceOperation) field(:ip) field(:network) + field(:producerInstanceId) field(:project) field(:pscConnectionId) field(:selectedSubnetwork) diff --git a/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/google_rpc_error_info.ex b/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/google_rpc_error_info.ex index 37822a871e..eeb8e821f9 100644 --- a/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/google_rpc_error_info.ex +++ b/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/google_rpc_error_info.ex @@ -22,7 +22,7 @@ defmodule GoogleApi.NetworkConnectivity.V1.Model.GoogleRpcErrorInfo do ## Attributes * `domain` (*type:* `String.t`, *default:* `nil`) - The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com". - * `metadata` (*type:* `map()`, *default:* `nil`) - Additional structured details about this error. Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request. + * `metadata` (*type:* `map()`, *default:* `nil`) - Additional structured details about this error. Keys must match /a-z+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request. * `reason` (*type:* `String.t`, *default:* `nil`) - The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE. """ diff --git a/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/internal_range.ex b/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/internal_range.ex index 1f47f08b1b..6ccfc727bd 100644 --- a/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/internal_range.ex +++ b/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/internal_range.ex @@ -26,7 +26,7 @@ defmodule GoogleApi.NetworkConnectivity.V1.Model.InternalRange do * `ipCidrRange` (*type:* `String.t`, *default:* `nil`) - The IP range that this internal range defines. * `labels` (*type:* `map()`, *default:* `nil`) - User-defined labels. * `name` (*type:* `String.t`, *default:* `nil`) - Immutable. The name of an internal range. Format: projects/{project}/locations/{location}/internalRanges/{internal_range} See: https://google.aip.dev/122#fields-representing-resource-names - * `network` (*type:* `String.t`, *default:* `nil`) - The URL or resource ID of the network in which to reserve the internal range. The network cannot be deleted if there are any reserved internal ranges referring to it. Legacy networks are not supported. This can only be specified for a global internal address. Example: - URL: /compute/v1/projects/{project}/global/networks/{resourceId} - ID: network123 + * `network` (*type:* `String.t`, *default:* `nil`) - The URL or resource ID of the network in which to reserve the internal range. The network cannot be deleted if there are any reserved internal ranges referring to it. Legacy networks are not supported. For example: https://www.googleapis.com/compute/v1/projects/{project}/locations/global/networks/{network} projects/{project}/locations/global/networks/{network} {network} * `overlaps` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Types of resources that are allowed to overlap with the current internal range. * `peering` (*type:* `String.t`, *default:* `nil`) - The type of peering set for this internal range. * `prefixLength` (*type:* `integer()`, *default:* `nil`) - An alternate to ip_cidr_range. Can be set when trying to create a reservation that automatically finds a free range of the given size. If both ip_cidr_range and prefix_length are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size. diff --git a/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/list_regional_endpoints_response.ex b/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/list_regional_endpoints_response.ex new file mode 100644 index 0000000000..4ac66a363e --- /dev/null +++ b/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/list_regional_endpoints_response.ex @@ -0,0 +1,58 @@ +# 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.NetworkConnectivity.V1.Model.ListRegionalEndpointsResponse do + @moduledoc """ + Response for ListRegionalEndpoints. + + ## Attributes + + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The next pagination token in the List response. It should be used as page_token for the following request. An empty value means no more result. + * `regionalEndpoints` (*type:* `list(GoogleApi.NetworkConnectivity.V1.Model.RegionalEndpoint.t)`, *default:* `nil`) - Regional endpoints to be returned. + * `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - Locations that could not be reached. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nextPageToken => String.t() | nil, + :regionalEndpoints => + list(GoogleApi.NetworkConnectivity.V1.Model.RegionalEndpoint.t()) | nil, + :unreachable => list(String.t()) | nil + } + + field(:nextPageToken) + + field(:regionalEndpoints, + as: GoogleApi.NetworkConnectivity.V1.Model.RegionalEndpoint, + type: :list + ) + + field(:unreachable, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.NetworkConnectivity.V1.Model.ListRegionalEndpointsResponse do + def decode(value, options) do + GoogleApi.NetworkConnectivity.V1.Model.ListRegionalEndpointsResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.NetworkConnectivity.V1.Model.ListRegionalEndpointsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/psc_connection.ex b/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/psc_connection.ex index 1ce40a0b5a..90ac2d0cf4 100644 --- a/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/psc_connection.ex +++ b/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/psc_connection.ex @@ -28,6 +28,7 @@ defmodule GoogleApi.NetworkConnectivity.V1.Model.PscConnection do * `errorInfo` (*type:* `GoogleApi.NetworkConnectivity.V1.Model.GoogleRpcErrorInfo.t`, *default:* `nil`) - Output only. The error info for the latest error during operating this connection. * `errorType` (*type:* `String.t`, *default:* `nil`) - The error type indicates whether the error is consumer facing, producer facing or system internal. * `gceOperation` (*type:* `String.t`, *default:* `nil`) - The last Compute Engine operation to setup PSC connection. + * `producerInstanceId` (*type:* `String.t`, *default:* `nil`) - Immutable. An immutable identifier for the producer instance. * `pscConnectionId` (*type:* `String.t`, *default:* `nil`) - The PSC connection id of the PSC forwarding rule. * `selectedSubnetwork` (*type:* `String.t`, *default:* `nil`) - Output only. The URI of the subnetwork selected to allocate IP address for this connection. * `state` (*type:* `String.t`, *default:* `nil`) - State of the PSC Connection @@ -43,6 +44,7 @@ defmodule GoogleApi.NetworkConnectivity.V1.Model.PscConnection do :errorInfo => GoogleApi.NetworkConnectivity.V1.Model.GoogleRpcErrorInfo.t() | nil, :errorType => String.t() | nil, :gceOperation => String.t() | nil, + :producerInstanceId => String.t() | nil, :pscConnectionId => String.t() | nil, :selectedSubnetwork => String.t() | nil, :state => String.t() | nil @@ -55,6 +57,7 @@ defmodule GoogleApi.NetworkConnectivity.V1.Model.PscConnection do field(:errorInfo, as: GoogleApi.NetworkConnectivity.V1.Model.GoogleRpcErrorInfo) field(:errorType) field(:gceOperation) + field(:producerInstanceId) field(:pscConnectionId) field(:selectedSubnetwork) field(:state) diff --git a/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/regional_endpoint.ex b/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/regional_endpoint.ex new file mode 100644 index 0000000000..c6ffd19ec5 --- /dev/null +++ b/clients/network_connectivity/lib/google_api/network_connectivity/v1/model/regional_endpoint.ex @@ -0,0 +1,79 @@ +# 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.NetworkConnectivity.V1.Model.RegionalEndpoint do + @moduledoc """ + The RegionalEndpoint resource. + + ## Attributes + + * `accessType` (*type:* `String.t`, *default:* `nil`) - Required. The access type of this regional endpoint. This field is reflected in the PSC Forwarding Rule configuration to enable global access. + * `address` (*type:* `String.t`, *default:* `nil`) - Optional. The IP Address of the Regional Endpoint. When no address is provided, an IP from the subnetwork is allocated. Use one of the following formats: * IPv4 address as in `10.0.0.1` * Address resource URI as in `projects/{project}/regions/{region}/addresses/{address_name}` + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time when the RegionalEndpoint was created. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. A description of this resource. + * `ipAddress` (*type:* `String.t`, *default:* `nil`) - Output only. The literal IP address of the PSC Forwarding Rule created on behalf of the customer. This field is deprecated. Use address instead. + * `labels` (*type:* `map()`, *default:* `nil`) - User-defined labels. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The name of a RegionalEndpoint. Format: `projects/{project}/locations/{location}/regionalEndpoints/{regional_endpoint}`. + * `network` (*type:* `String.t`, *default:* `nil`) - The name of the VPC network for this private regional endpoint. Format: `projects/{project}/global/networks/{network}` + * `pscForwardingRule` (*type:* `String.t`, *default:* `nil`) - Output only. The resource reference of the PSC Forwarding Rule created on behalf of the customer. Format: `//compute.googleapis.com/projects/{project}/regions/{region}/forwardingRules/{forwarding_rule_name}` + * `subnetwork` (*type:* `String.t`, *default:* `nil`) - The name of the subnetwork from which the IP address will be allocated. Format: `projects/{project}/regions/{region}/subnetworks/{subnetwork}` + * `targetGoogleApi` (*type:* `String.t`, *default:* `nil`) - Required. The service endpoint this private regional endpoint connects to. Format: `{apiname}.{region}.p.rep.googleapis.com` Example: "cloudkms.us-central1.p.rep.googleapis.com". + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time when the RegionalEndpoint was updated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :accessType => String.t() | nil, + :address => String.t() | nil, + :createTime => DateTime.t() | nil, + :description => String.t() | nil, + :ipAddress => String.t() | nil, + :labels => map() | nil, + :name => String.t() | nil, + :network => String.t() | nil, + :pscForwardingRule => String.t() | nil, + :subnetwork => String.t() | nil, + :targetGoogleApi => String.t() | nil, + :updateTime => DateTime.t() | nil + } + + field(:accessType) + field(:address) + field(:createTime, as: DateTime) + field(:description) + field(:ipAddress) + field(:labels, type: :map) + field(:name) + field(:network) + field(:pscForwardingRule) + field(:subnetwork) + field(:targetGoogleApi) + field(:updateTime, as: DateTime) +end + +defimpl Poison.Decoder, for: GoogleApi.NetworkConnectivity.V1.Model.RegionalEndpoint do + def decode(value, options) do + GoogleApi.NetworkConnectivity.V1.Model.RegionalEndpoint.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.NetworkConnectivity.V1.Model.RegionalEndpoint do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/network_connectivity/mix.exs b/clients/network_connectivity/mix.exs index 8e374e8e8c..c1704168e2 100644 --- a/clients/network_connectivity/mix.exs +++ b/clients/network_connectivity/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.NetworkConnectivity.Mixfile do use Mix.Project - @version "0.4.0" + @version "0.5.0" def project() do [