diff --git a/clients/network_services/lib/google_api/network_services/v1/api/projects.ex b/clients/network_services/lib/google_api/network_services/v1/api/projects.ex index 458dc2ae90..f64eaa912f 100644 --- a/clients/network_services/lib/google_api/network_services/v1/api/projects.ex +++ b/clients/network_services/lib/google_api/network_services/v1/api/projects.ex @@ -2710,12 +2710,12 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do end @doc """ - Creates a new Mesh in a given project and location. + Creates a new `LbRouteExtension` resource in a given project and location. ## Parameters * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server - * `parent` (*type:* `String.t`) - Required. The parent resource of the Mesh. Must be in the format `projects/*/locations/global`. + * `parent` (*type:* `String.t`) - Required. The parent resource of the `LbRouteExtension` resource. Must be in the format `projects/{project}/locations/{location}`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -2728,8 +2728,9 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `: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"). - * `:meshId` (*type:* `String.t`) - Required. Short name of the Mesh resource to be created. - * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.Mesh.t`) - + * `:lbRouteExtensionId` (*type:* `String.t`) - Required. User-provided ID of the `LbRouteExtension` resource 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 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). + * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.LbRouteExtension.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -2737,7 +2738,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `{:ok, %GoogleApi.NetworkServices.V1.Model.Operation{}}` on success * `{:error, info}` on failure """ - @spec networkservices_projects_locations_meshes_create( + @spec networkservices_projects_locations_lb_route_extensions_create( Tesla.Env.client(), String.t(), keyword(), @@ -2747,7 +2748,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def networkservices_projects_locations_meshes_create( + def networkservices_projects_locations_lb_route_extensions_create( connection, parent, optional_params \\ [], @@ -2765,14 +2766,15 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, - :meshId => :query, + :lbRouteExtensionId => :query, + :requestId => :query, :body => :body } request = Request.new() |> Request.method(:post) - |> Request.url("/v1/{+parent}/meshes", %{ + |> Request.url("/v1/{+parent}/lbRouteExtensions", %{ "parent" => URI.encode(parent, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) @@ -2784,12 +2786,12 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do end @doc """ - Deletes a single Mesh. + Deletes the specified `LbRouteExtension` resource. ## Parameters * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - Required. A name of the Mesh to delete. Must be in the format `projects/*/locations/global/meshes/*`. + * `name` (*type:* `String.t`) - Required. The name of the `LbRouteExtension` resource to delete. Must be in the format `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -2802,6 +2804,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `: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 can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after 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). * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -2809,7 +2812,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `{:ok, %GoogleApi.NetworkServices.V1.Model.Operation{}}` on success * `{:error, info}` on failure """ - @spec networkservices_projects_locations_meshes_delete( + @spec networkservices_projects_locations_lb_route_extensions_delete( Tesla.Env.client(), String.t(), keyword(), @@ -2819,7 +2822,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def networkservices_projects_locations_meshes_delete( + def networkservices_projects_locations_lb_route_extensions_delete( connection, name, optional_params \\ [], @@ -2836,7 +2839,8 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do :prettyPrint => :query, :quotaUser => :query, :uploadType => :query, - :upload_protocol => :query + :upload_protocol => :query, + :requestId => :query } request = @@ -2854,12 +2858,12 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do end @doc """ - Gets details of a single Mesh. + Gets details of the specified `LbRouteExtension` resource. ## Parameters * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - Required. A name of the Mesh to get. Must be in the format `projects/*/locations/global/meshes/*`. + * `name` (*type:* `String.t`) - Required. A name of the `LbRouteExtension` resource to get. Must be in the format `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -2876,20 +2880,20 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do ## Returns - * `{:ok, %GoogleApi.NetworkServices.V1.Model.Mesh{}}` on success + * `{:ok, %GoogleApi.NetworkServices.V1.Model.LbRouteExtension{}}` on success * `{:error, info}` on failure """ - @spec networkservices_projects_locations_meshes_get( + @spec networkservices_projects_locations_lb_route_extensions_get( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.NetworkServices.V1.Model.Mesh.t()} + {:ok, GoogleApi.NetworkServices.V1.Model.LbRouteExtension.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def networkservices_projects_locations_meshes_get( + def networkservices_projects_locations_lb_route_extensions_get( connection, name, optional_params \\ [], @@ -2920,16 +2924,16 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do connection |> Connection.execute(request) - |> Response.decode(opts ++ [struct: %GoogleApi.NetworkServices.V1.Model.Mesh{}]) + |> Response.decode(opts ++ [struct: %GoogleApi.NetworkServices.V1.Model.LbRouteExtension{}]) end @doc """ - Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. + Lists `LbRouteExtension` resources in a given project and location. ## Parameters * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server - * `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. + * `parent` (*type:* `String.t`) - Required. The project and location from which the `LbRouteExtension` resources are listed, specified in the following format: `projects/{project}/locations/{location}`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -2942,27 +2946,30 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `: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"). - * `:"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). + * `:filter` (*type:* `String.t`) - Optional. Filtering results. + * `:orderBy` (*type:* `String.t`) - Optional. Hint for how to order the results. + * `:pageSize` (*type:* `integer()`) - Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default. + * `:pageToken` (*type:* `String.t`) - Optional. A token identifying a page of results that the server returns. * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.NetworkServices.V1.Model.Policy{}}` on success + * `{:ok, %GoogleApi.NetworkServices.V1.Model.ListLbRouteExtensionsResponse{}}` on success * `{:error, info}` on failure """ - @spec networkservices_projects_locations_meshes_get_iam_policy( + @spec networkservices_projects_locations_lb_route_extensions_list( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.NetworkServices.V1.Model.Policy.t()} + {:ok, GoogleApi.NetworkServices.V1.Model.ListLbRouteExtensionsResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def networkservices_projects_locations_meshes_get_iam_policy( + def networkservices_projects_locations_lb_route_extensions_list( connection, - resource, + parent, optional_params \\ [], opts \\ [] ) do @@ -2978,30 +2985,35 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, - :"options.requestedPolicyVersion" => :query + :filter => :query, + :orderBy => :query, + :pageSize => :query, + :pageToken => :query } request = Request.new() |> Request.method(:get) - |> Request.url("/v1/{+resource}:getIamPolicy", %{ - "resource" => URI.encode(resource, &URI.char_unreserved?/1) + |> Request.url("/v1/{+parent}/lbRouteExtensions", %{ + "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.NetworkServices.V1.Model.Policy{}]) + |> Response.decode( + opts ++ [struct: %GoogleApi.NetworkServices.V1.Model.ListLbRouteExtensionsResponse{}] + ) end @doc """ - Lists Meshes in a given project and location. + Updates the parameters of the specified `LbRouteExtension` resource. ## Parameters * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server - * `parent` (*type:* `String.t`) - Required. The project and location from which the Meshes should be listed, specified in the format `projects/*/locations/global`. + * `name` (*type:* `String.t`) - Required. Identifier. Name of the `LbRouteExtension` resource in the following format: `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -3014,28 +3026,29 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `: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"). - * `:pageSize` (*type:* `integer()`) - Maximum number of Meshes to return per call. - * `:pageToken` (*type:* `String.t`) - The value returned by the last `ListMeshesResponse` Indicates that this is a continuation of a prior `ListMeshes` call, and that the system should return the next page of data. + * `: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). + * `:updateMask` (*type:* `String.t`) - Required. 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. + * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.LbRouteExtension.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.NetworkServices.V1.Model.ListMeshesResponse{}}` on success + * `{:ok, %GoogleApi.NetworkServices.V1.Model.Operation{}}` on success * `{:error, info}` on failure """ - @spec networkservices_projects_locations_meshes_list( + @spec networkservices_projects_locations_lb_route_extensions_patch( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.NetworkServices.V1.Model.ListMeshesResponse.t()} + {:ok, GoogleApi.NetworkServices.V1.Model.Operation.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def networkservices_projects_locations_meshes_list( + def networkservices_projects_locations_lb_route_extensions_patch( connection, - parent, + name, optional_params \\ [], opts \\ [] ) do @@ -3051,31 +3064,32 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, - :pageSize => :query, - :pageToken => :query + :requestId => :query, + :updateMask => :query, + :body => :body } request = Request.new() - |> Request.method(:get) - |> Request.url("/v1/{+parent}/meshes", %{ - "parent" => URI.encode(parent, &URI.char_unreserved?/1) + |> Request.method(:patch) + |> 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.NetworkServices.V1.Model.ListMeshesResponse{}]) + |> Response.decode(opts ++ [struct: %GoogleApi.NetworkServices.V1.Model.Operation{}]) end @doc """ - Updates the parameters of a single Mesh. + Creates a new `LbTrafficExtension` resource in a given project and location. ## Parameters * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - Required. Name of the Mesh resource. It matches pattern `projects/*/locations/global/meshes/`. + * `parent` (*type:* `String.t`) - Required. The parent resource of the `LbTrafficExtension` resource. Must be in the format `projects/{project}/locations/{location}`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -3088,8 +3102,9 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `: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"). - * `:updateMask` (*type:* `String.t`) - Optional. Field mask is used to specify the fields to be overwritten in the Mesh resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. - * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.Mesh.t`) - + * `:lbTrafficExtensionId` (*type:* `String.t`) - Required. User-provided ID of the `LbTrafficExtension` resource 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 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). + * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.LbTrafficExtension.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -3097,7 +3112,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `{:ok, %GoogleApi.NetworkServices.V1.Model.Operation{}}` on success * `{:error, info}` on failure """ - @spec networkservices_projects_locations_meshes_patch( + @spec networkservices_projects_locations_lb_traffic_extensions_create( Tesla.Env.client(), String.t(), keyword(), @@ -3107,9 +3122,9 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def networkservices_projects_locations_meshes_patch( + def networkservices_projects_locations_lb_traffic_extensions_create( connection, - name, + parent, optional_params \\ [], opts \\ [] ) do @@ -3125,15 +3140,16 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, - :updateMask => :query, + :lbTrafficExtensionId => :query, + :requestId => :query, :body => :body } request = Request.new() - |> Request.method(:patch) - |> Request.url("/v1/{+name}", %{ - "name" => URI.encode(name, &URI.char_unreserved?/1) + |> Request.method(:post) + |> Request.url("/v1/{+parent}/lbTrafficExtensions", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) @@ -3144,12 +3160,12 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do end @doc """ - Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + Deletes the specified `LbTrafficExtension` resource. ## Parameters * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server - * `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. + * `name` (*type:* `String.t`) - Required. The name of the `LbTrafficExtension` resource to delete. Must be in the format `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -3162,27 +3178,27 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `: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"). - * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.SetIamPolicyRequest.t`) - + * `: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 after 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). * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.NetworkServices.V1.Model.Policy{}}` on success + * `{:ok, %GoogleApi.NetworkServices.V1.Model.Operation{}}` on success * `{:error, info}` on failure """ - @spec networkservices_projects_locations_meshes_set_iam_policy( + @spec networkservices_projects_locations_lb_traffic_extensions_delete( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.NetworkServices.V1.Model.Policy.t()} + {:ok, GoogleApi.NetworkServices.V1.Model.Operation.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def networkservices_projects_locations_meshes_set_iam_policy( + def networkservices_projects_locations_lb_traffic_extensions_delete( connection, - resource, + name, optional_params \\ [], opts \\ [] ) do @@ -3198,30 +3214,30 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, - :body => :body + :requestId => :query } request = Request.new() - |> Request.method(:post) - |> Request.url("/v1/{+resource}:setIamPolicy", %{ - "resource" => URI.encode(resource, &URI.char_unreserved?/1) + |> 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.NetworkServices.V1.Model.Policy{}]) + |> Response.decode(opts ++ [struct: %GoogleApi.NetworkServices.V1.Model.Operation{}]) end @doc """ - 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. + Gets details of the specified `LbTrafficExtension` resource. ## Parameters * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server - * `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. + * `name` (*type:* `String.t`) - Required. A name of the `LbTrafficExtension` resource to get. Must be in the format `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -3234,27 +3250,26 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `: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"). - * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.TestIamPermissionsRequest.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.NetworkServices.V1.Model.TestIamPermissionsResponse{}}` on success + * `{:ok, %GoogleApi.NetworkServices.V1.Model.LbTrafficExtension{}}` on success * `{:error, info}` on failure """ - @spec networkservices_projects_locations_meshes_test_iam_permissions( + @spec networkservices_projects_locations_lb_traffic_extensions_get( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.NetworkServices.V1.Model.TestIamPermissionsResponse.t()} + {:ok, GoogleApi.NetworkServices.V1.Model.LbTrafficExtension.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def networkservices_projects_locations_meshes_test_iam_permissions( + def networkservices_projects_locations_lb_traffic_extensions_get( connection, - resource, + name, optional_params \\ [], opts \\ [] ) do @@ -3269,33 +3284,30 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do :prettyPrint => :query, :quotaUser => :query, :uploadType => :query, - :upload_protocol => :query, - :body => :body + :upload_protocol => :query } request = Request.new() - |> Request.method(:post) - |> Request.url("/v1/{+resource}:testIamPermissions", %{ - "resource" => URI.encode(resource, &URI.char_unreserved?/1) + |> 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.NetworkServices.V1.Model.TestIamPermissionsResponse{}] - ) + |> Response.decode(opts ++ [struct: %GoogleApi.NetworkServices.V1.Model.LbTrafficExtension{}]) end @doc """ - 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`. + Lists `LbTrafficExtension` resources in a given project and location. ## Parameters * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - The name of the operation resource to be cancelled. + * `parent` (*type:* `String.t`) - Required. The project and location from which the `LbTrafficExtension` resources are listed, specified in the following format: `projects/{project}/locations/{location}`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -3308,27 +3320,30 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `: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"). - * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.CancelOperationRequest.t`) - + * `:filter` (*type:* `String.t`) - Optional. Filtering results. + * `:orderBy` (*type:* `String.t`) - Optional. Hint for how to order the results. + * `:pageSize` (*type:* `integer()`) - Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default. + * `:pageToken` (*type:* `String.t`) - Optional. A token identifying a page of results that the server returns. * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.NetworkServices.V1.Model.Empty{}}` on success + * `{:ok, %GoogleApi.NetworkServices.V1.Model.ListLbTrafficExtensionsResponse{}}` on success * `{:error, info}` on failure """ - @spec networkservices_projects_locations_operations_cancel( + @spec networkservices_projects_locations_lb_traffic_extensions_list( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.NetworkServices.V1.Model.Empty.t()} + {:ok, GoogleApi.NetworkServices.V1.Model.ListLbTrafficExtensionsResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def networkservices_projects_locations_operations_cancel( + def networkservices_projects_locations_lb_traffic_extensions_list( connection, - name, + parent, optional_params \\ [], opts \\ [] ) do @@ -3344,30 +3359,35 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, - :body => :body + :filter => :query, + :orderBy => :query, + :pageSize => :query, + :pageToken => :query } request = Request.new() - |> Request.method(:post) - |> Request.url("/v1/{+name}:cancel", %{ - "name" => URI.encode(name, &URI.char_unreserved?/1) + |> Request.method(:get) + |> Request.url("/v1/{+parent}/lbTrafficExtensions", %{ + "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.NetworkServices.V1.Model.Empty{}]) + |> Response.decode( + opts ++ [struct: %GoogleApi.NetworkServices.V1.Model.ListLbTrafficExtensionsResponse{}] + ) end @doc """ - Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + Updates the parameters of the specified `LbTrafficExtension` resource. ## Parameters * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - The name of the operation resource to be deleted. + * `name` (*type:* `String.t`) - Required. Identifier. Name of the `LbTrafficExtension` resource in the following format: `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -3380,24 +3400,27 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `: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 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). + * `:updateMask` (*type:* `String.t`) - Required. 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. + * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.LbTrafficExtension.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.NetworkServices.V1.Model.Empty{}}` on success + * `{:ok, %GoogleApi.NetworkServices.V1.Model.Operation{}}` on success * `{:error, info}` on failure """ - @spec networkservices_projects_locations_operations_delete( + @spec networkservices_projects_locations_lb_traffic_extensions_patch( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.NetworkServices.V1.Model.Empty.t()} + {:ok, GoogleApi.NetworkServices.V1.Model.Operation.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def networkservices_projects_locations_operations_delete( + def networkservices_projects_locations_lb_traffic_extensions_patch( connection, name, optional_params \\ [], @@ -3414,12 +3437,15 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do :prettyPrint => :query, :quotaUser => :query, :uploadType => :query, - :upload_protocol => :query + :upload_protocol => :query, + :requestId => :query, + :updateMask => :query, + :body => :body } request = Request.new() - |> Request.method(:delete) + |> Request.method(:patch) |> Request.url("/v1/{+name}", %{ "name" => URI.encode(name, &URI.char_unreserved?/1) }) @@ -3428,16 +3454,16 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do connection |> Connection.execute(request) - |> Response.decode(opts ++ [struct: %GoogleApi.NetworkServices.V1.Model.Empty{}]) + |> Response.decode(opts ++ [struct: %GoogleApi.NetworkServices.V1.Model.Operation{}]) end @doc """ - Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. + Creates a new Mesh in a given project and location. ## Parameters * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - The name of the operation resource. + * `parent` (*type:* `String.t`) - Required. The parent resource of the Mesh. Must be in the format `projects/*/locations/global`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -3450,6 +3476,8 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `: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"). + * `:meshId` (*type:* `String.t`) - Required. Short name of the Mesh resource to be created. + * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.Mesh.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -3457,7 +3485,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `{:ok, %GoogleApi.NetworkServices.V1.Model.Operation{}}` on success * `{:error, info}` on failure """ - @spec networkservices_projects_locations_operations_get( + @spec networkservices_projects_locations_meshes_create( Tesla.Env.client(), String.t(), keyword(), @@ -3467,9 +3495,9 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def networkservices_projects_locations_operations_get( + def networkservices_projects_locations_meshes_create( connection, - name, + parent, optional_params \\ [], opts \\ [] ) do @@ -3484,14 +3512,16 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do :prettyPrint => :query, :quotaUser => :query, :uploadType => :query, - :upload_protocol => :query + :upload_protocol => :query, + :meshId => :query, + :body => :body } request = Request.new() - |> Request.method(:get) - |> Request.url("/v1/{+name}", %{ - "name" => URI.encode(name, &URI.char_unreserved?/1) + |> Request.method(:post) + |> Request.url("/v1/{+parent}/meshes", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) @@ -3502,12 +3532,12 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects 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. + Deletes a single Mesh. ## Parameters * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - The name of the operation's parent resource. + * `name` (*type:* `String.t`) - Required. A name of the Mesh to delete. Must be in the format `projects/*/locations/global/meshes/*`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -3520,27 +3550,24 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `: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`) - The standard list filter. - * `:pageSize` (*type:* `integer()`) - The standard list page size. - * `:pageToken` (*type:* `String.t`) - The standard list page token. * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.NetworkServices.V1.Model.ListOperationsResponse{}}` on success + * `{:ok, %GoogleApi.NetworkServices.V1.Model.Operation{}}` on success * `{:error, info}` on failure """ - @spec networkservices_projects_locations_operations_list( + @spec networkservices_projects_locations_meshes_delete( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.NetworkServices.V1.Model.ListOperationsResponse.t()} + {:ok, GoogleApi.NetworkServices.V1.Model.Operation.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def networkservices_projects_locations_operations_list( + def networkservices_projects_locations_meshes_delete( connection, name, optional_params \\ [], @@ -3557,16 +3584,13 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do :prettyPrint => :query, :quotaUser => :query, :uploadType => :query, - :upload_protocol => :query, - :filter => :query, - :pageSize => :query, - :pageToken => :query + :upload_protocol => :query } request = Request.new() - |> Request.method(:get) - |> Request.url("/v1/{+name}/operations", %{ + |> Request.method(:delete) + |> Request.url("/v1/{+name}", %{ "name" => URI.encode(name, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) @@ -3574,18 +3598,16 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do connection |> Connection.execute(request) - |> Response.decode( - opts ++ [struct: %GoogleApi.NetworkServices.V1.Model.ListOperationsResponse{}] - ) + |> Response.decode(opts ++ [struct: %GoogleApi.NetworkServices.V1.Model.Operation{}]) end @doc """ - Creates a new ServiceBinding in a given project and location. + Gets details of a single Mesh. ## Parameters * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server - * `parent` (*type:* `String.t`) - Required. The parent resource of the ServiceBinding. Must be in the format `projects/*/locations/global`. + * `name` (*type:* `String.t`) - Required. A name of the Mesh to get. Must be in the format `projects/*/locations/global/meshes/*`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -3598,28 +3620,26 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `: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"). - * `:serviceBindingId` (*type:* `String.t`) - Required. Short name of the ServiceBinding resource to be created. - * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.ServiceBinding.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.NetworkServices.V1.Model.Operation{}}` on success + * `{:ok, %GoogleApi.NetworkServices.V1.Model.Mesh{}}` on success * `{:error, info}` on failure """ - @spec networkservices_projects_locations_service_bindings_create( + @spec networkservices_projects_locations_meshes_get( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.NetworkServices.V1.Model.Operation.t()} + {:ok, GoogleApi.NetworkServices.V1.Model.Mesh.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def networkservices_projects_locations_service_bindings_create( + def networkservices_projects_locations_meshes_get( connection, - parent, + name, optional_params \\ [], opts \\ [] ) do @@ -3634,32 +3654,30 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do :prettyPrint => :query, :quotaUser => :query, :uploadType => :query, - :upload_protocol => :query, - :serviceBindingId => :query, - :body => :body + :upload_protocol => :query } request = Request.new() - |> Request.method(:post) - |> Request.url("/v1/{+parent}/serviceBindings", %{ - "parent" => URI.encode(parent, &URI.char_unreserved?/1) + |> 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.NetworkServices.V1.Model.Operation{}]) + |> Response.decode(opts ++ [struct: %GoogleApi.NetworkServices.V1.Model.Mesh{}]) end @doc """ - Deletes a single ServiceBinding. + Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. ## Parameters * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - Required. A name of the ServiceBinding to delete. Must be in the format `projects/*/locations/global/serviceBindings/*`. + * `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. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -3672,26 +3690,27 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `: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"). + * `:"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). * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.NetworkServices.V1.Model.Operation{}}` on success + * `{:ok, %GoogleApi.NetworkServices.V1.Model.Policy{}}` on success * `{:error, info}` on failure """ - @spec networkservices_projects_locations_service_bindings_delete( + @spec networkservices_projects_locations_meshes_get_iam_policy( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.NetworkServices.V1.Model.Operation.t()} + {:ok, GoogleApi.NetworkServices.V1.Model.Policy.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def networkservices_projects_locations_service_bindings_delete( + def networkservices_projects_locations_meshes_get_iam_policy( connection, - name, + resource, optional_params \\ [], opts \\ [] ) do @@ -3706,16 +3725,1183 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do :prettyPrint => :query, :quotaUser => :query, :uploadType => :query, - :upload_protocol => :query + :upload_protocol => :query, + :"options.requestedPolicyVersion" => :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.method(:get) + |> Request.url("/v1/{+resource}:getIamPolicy", %{ + "resource" => URI.encode(resource, &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.NetworkServices.V1.Model.Policy{}]) + end + + @doc """ + Lists Meshes in a given project and location. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The project and location from which the Meshes should be listed, specified in the format `projects/*/locations/global`. + * `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"). + * `:pageSize` (*type:* `integer()`) - Maximum number of Meshes to return per call. + * `:pageToken` (*type:* `String.t`) - The value returned by the last `ListMeshesResponse` Indicates that this is a continuation of a prior `ListMeshes` call, and that the system should return the next page of data. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.NetworkServices.V1.Model.ListMeshesResponse{}}` on success + * `{:error, info}` on failure + """ + @spec networkservices_projects_locations_meshes_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkServices.V1.Model.ListMeshesResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkservices_projects_locations_meshes_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, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+parent}/meshes", %{ + "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.NetworkServices.V1.Model.ListMeshesResponse{}]) + end + + @doc """ + Updates the parameters of a single Mesh. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. Name of the Mesh resource. It matches pattern `projects/*/locations/global/meshes/`. + * `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"). + * `:updateMask` (*type:* `String.t`) - Optional. Field mask is used to specify the fields to be overwritten in the Mesh resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. + * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.Mesh.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.NetworkServices.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec networkservices_projects_locations_meshes_patch( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkServices.V1.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkservices_projects_locations_meshes_patch( + 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, + :updateMask => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> 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.NetworkServices.V1.Model.Operation{}]) + end + + @doc """ + Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server + * `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. + * `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"). + * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.SetIamPolicyRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.NetworkServices.V1.Model.Policy{}}` on success + * `{:error, info}` on failure + """ + @spec networkservices_projects_locations_meshes_set_iam_policy( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkServices.V1.Model.Policy.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkservices_projects_locations_meshes_set_iam_policy( + connection, + resource, + 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, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+resource}:setIamPolicy", %{ + "resource" => URI.encode(resource, &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.NetworkServices.V1.Model.Policy{}]) + end + + @doc """ + 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. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server + * `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. + * `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"). + * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.TestIamPermissionsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.NetworkServices.V1.Model.TestIamPermissionsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec networkservices_projects_locations_meshes_test_iam_permissions( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkServices.V1.Model.TestIamPermissionsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkservices_projects_locations_meshes_test_iam_permissions( + connection, + resource, + 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, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+resource}:testIamPermissions", %{ + "resource" => URI.encode(resource, &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.NetworkServices.V1.Model.TestIamPermissionsResponse{}] + ) + end + + @doc """ + 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`. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - The name of the operation resource to be cancelled. + * `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"). + * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.CancelOperationRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.NetworkServices.V1.Model.Empty{}}` on success + * `{:error, info}` on failure + """ + @spec networkservices_projects_locations_operations_cancel( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkServices.V1.Model.Empty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkservices_projects_locations_operations_cancel( + 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, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+name}:cancel", %{ + "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.NetworkServices.V1.Model.Empty{}]) + end + + @doc """ + Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - The name of the operation resource to be deleted. + * `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.NetworkServices.V1.Model.Empty{}}` on success + * `{:error, info}` on failure + """ + @spec networkservices_projects_locations_operations_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkServices.V1.Model.Empty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkservices_projects_locations_operations_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 + } + + 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.NetworkServices.V1.Model.Empty{}]) + end + + @doc """ + Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - The name of the operation resource. + * `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.NetworkServices.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec networkservices_projects_locations_operations_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkServices.V1.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkservices_projects_locations_operations_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.NetworkServices.V1.Model.Operation{}]) + end + + @doc """ + Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - The name of the operation's parent resource. + * `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`) - The standard list filter. + * `:pageSize` (*type:* `integer()`) - The standard list page size. + * `:pageToken` (*type:* `String.t`) - The standard list page token. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.NetworkServices.V1.Model.ListOperationsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec networkservices_projects_locations_operations_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkServices.V1.Model.ListOperationsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkservices_projects_locations_operations_list( + 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, + :filter => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+name}/operations", %{ + "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.NetworkServices.V1.Model.ListOperationsResponse{}] + ) + end + + @doc """ + Creates a new ServiceBinding in a given project and location. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent resource of the ServiceBinding. Must be in the format `projects/*/locations/global`. + * `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"). + * `:serviceBindingId` (*type:* `String.t`) - Required. Short name of the ServiceBinding resource to be created. + * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.ServiceBinding.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.NetworkServices.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec networkservices_projects_locations_service_bindings_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkServices.V1.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkservices_projects_locations_service_bindings_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, + :serviceBindingId => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+parent}/serviceBindings", %{ + "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.NetworkServices.V1.Model.Operation{}]) + end + + @doc """ + Deletes a single ServiceBinding. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. A name of the ServiceBinding to delete. Must be in the format `projects/*/locations/global/serviceBindings/*`. + * `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.NetworkServices.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec networkservices_projects_locations_service_bindings_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkServices.V1.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkservices_projects_locations_service_bindings_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 + } + + 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.NetworkServices.V1.Model.Operation{}]) + end + + @doc """ + Gets details of a single ServiceBinding. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. A name of the ServiceBinding to get. Must be in the format `projects/*/locations/global/serviceBindings/*`. + * `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.NetworkServices.V1.Model.ServiceBinding{}}` on success + * `{:error, info}` on failure + """ + @spec networkservices_projects_locations_service_bindings_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkServices.V1.Model.ServiceBinding.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkservices_projects_locations_service_bindings_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.NetworkServices.V1.Model.ServiceBinding{}]) + end + + @doc """ + Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server + * `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. + * `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"). + * `:"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). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.NetworkServices.V1.Model.Policy{}}` on success + * `{:error, info}` on failure + """ + @spec networkservices_projects_locations_service_bindings_get_iam_policy( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkServices.V1.Model.Policy.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkservices_projects_locations_service_bindings_get_iam_policy( + connection, + resource, + 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, + :"options.requestedPolicyVersion" => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+resource}:getIamPolicy", %{ + "resource" => URI.encode(resource, &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.NetworkServices.V1.Model.Policy{}]) + end + + @doc """ + Lists ServiceBinding in a given project and location. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The project and location from which the ServiceBindings should be listed, specified in the format `projects/*/locations/global`. + * `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"). + * `:pageSize` (*type:* `integer()`) - Maximum number of ServiceBindings to return per call. + * `:pageToken` (*type:* `String.t`) - The value returned by the last `ListServiceBindingsResponse` Indicates that this is a continuation of a prior `ListRouters` call, and that the system should return the next page of data. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.NetworkServices.V1.Model.ListServiceBindingsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec networkservices_projects_locations_service_bindings_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkServices.V1.Model.ListServiceBindingsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkservices_projects_locations_service_bindings_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, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+parent}/serviceBindings", %{ + "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.NetworkServices.V1.Model.ListServiceBindingsResponse{}] + ) + end + + @doc """ + Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server + * `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. + * `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"). + * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.SetIamPolicyRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.NetworkServices.V1.Model.Policy{}}` on success + * `{:error, info}` on failure + """ + @spec networkservices_projects_locations_service_bindings_set_iam_policy( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkServices.V1.Model.Policy.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkservices_projects_locations_service_bindings_set_iam_policy( + connection, + resource, + 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, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+resource}:setIamPolicy", %{ + "resource" => URI.encode(resource, &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.NetworkServices.V1.Model.Policy{}]) + end + + @doc """ + 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. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server + * `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. + * `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"). + * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.TestIamPermissionsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.NetworkServices.V1.Model.TestIamPermissionsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec networkservices_projects_locations_service_bindings_test_iam_permissions( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkServices.V1.Model.TestIamPermissionsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkservices_projects_locations_service_bindings_test_iam_permissions( + connection, + resource, + 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, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+resource}:testIamPermissions", %{ + "resource" => URI.encode(resource, &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.NetworkServices.V1.Model.TestIamPermissionsResponse{}] + ) + end + + @doc """ + Creates a new ServiceLbPolicy in a given project and location. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent resource of the ServiceLbPolicy. Must be in the format `projects/{project}/locations/{location}`. + * `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"). + * `:serviceLbPolicyId` (*type:* `String.t`) - Required. Short name of the ServiceLbPolicy resource to be created. E.g. for resource name `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`. the id is value of {service_lb_policy_name} + * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.ServiceLbPolicy.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.NetworkServices.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec networkservices_projects_locations_service_lb_policies_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkServices.V1.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkservices_projects_locations_service_lb_policies_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, + :serviceLbPolicyId => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+parent}/serviceLbPolicies", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) connection @@ -3724,12 +4910,12 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do end @doc """ - Gets details of a single ServiceBinding. + Deletes a single ServiceLbPolicy. ## Parameters * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - Required. A name of the ServiceBinding to get. Must be in the format `projects/*/locations/global/serviceBindings/*`. + * `name` (*type:* `String.t`) - Required. A name of the ServiceLbPolicy to delete. Must be in the format `projects/{project}/locations/{location}/serviceLbPolicies/*`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -3746,20 +4932,90 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do ## Returns - * `{:ok, %GoogleApi.NetworkServices.V1.Model.ServiceBinding{}}` on success + * `{:ok, %GoogleApi.NetworkServices.V1.Model.Operation{}}` on success * `{:error, info}` on failure """ - @spec networkservices_projects_locations_service_bindings_get( + @spec networkservices_projects_locations_service_lb_policies_delete( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.NetworkServices.V1.Model.ServiceBinding.t()} + {:ok, GoogleApi.NetworkServices.V1.Model.Operation.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def networkservices_projects_locations_service_bindings_get( + def networkservices_projects_locations_service_lb_policies_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 + } + + 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.NetworkServices.V1.Model.Operation{}]) + end + + @doc """ + Gets details of a single ServiceLbPolicy. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. A name of the ServiceLbPolicy to get. Must be in the format `projects/{project}/locations/{location}/serviceLbPolicies/*`. + * `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.NetworkServices.V1.Model.ServiceLbPolicy{}}` on success + * `{:error, info}` on failure + """ + @spec networkservices_projects_locations_service_lb_policies_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkServices.V1.Model.ServiceLbPolicy.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkservices_projects_locations_service_lb_policies_get( connection, name, optional_params \\ [], @@ -3790,7 +5046,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do connection |> Connection.execute(request) - |> Response.decode(opts ++ [struct: %GoogleApi.NetworkServices.V1.Model.ServiceBinding{}]) + |> Response.decode(opts ++ [struct: %GoogleApi.NetworkServices.V1.Model.ServiceLbPolicy{}]) end @doc """ @@ -3820,7 +5076,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `{:ok, %GoogleApi.NetworkServices.V1.Model.Policy{}}` on success * `{:error, info}` on failure """ - @spec networkservices_projects_locations_service_bindings_get_iam_policy( + @spec networkservices_projects_locations_service_lb_policies_get_iam_policy( Tesla.Env.client(), String.t(), keyword(), @@ -3830,7 +5086,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def networkservices_projects_locations_service_bindings_get_iam_policy( + def networkservices_projects_locations_service_lb_policies_get_iam_policy( connection, resource, optional_params \\ [], @@ -3866,12 +5122,12 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do end @doc """ - Lists ServiceBinding in a given project and location. + Lists ServiceLbPolicies in a given project and location. ## Parameters * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server - * `parent` (*type:* `String.t`) - Required. The project and location from which the ServiceBindings should be listed, specified in the format `projects/*/locations/global`. + * `parent` (*type:* `String.t`) - Required. The project and location from which the ServiceLbPolicies should be listed, specified in the format `projects/{project}/locations/{location}`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -3884,26 +5140,26 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `: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"). - * `:pageSize` (*type:* `integer()`) - Maximum number of ServiceBindings to return per call. - * `:pageToken` (*type:* `String.t`) - The value returned by the last `ListServiceBindingsResponse` Indicates that this is a continuation of a prior `ListRouters` call, and that the system should return the next page of data. + * `:pageSize` (*type:* `integer()`) - Maximum number of ServiceLbPolicies to return per call. + * `:pageToken` (*type:* `String.t`) - The value returned by the last `ListServiceLbPoliciesResponse` Indicates that this is a continuation of a prior `ListRouters` call, and that the system should return the next page of data. * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.NetworkServices.V1.Model.ListServiceBindingsResponse{}}` on success + * `{:ok, %GoogleApi.NetworkServices.V1.Model.ListServiceLbPoliciesResponse{}}` on success * `{:error, info}` on failure """ - @spec networkservices_projects_locations_service_bindings_list( + @spec networkservices_projects_locations_service_lb_policies_list( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.NetworkServices.V1.Model.ListServiceBindingsResponse.t()} + {:ok, GoogleApi.NetworkServices.V1.Model.ListServiceLbPoliciesResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def networkservices_projects_locations_service_bindings_list( + def networkservices_projects_locations_service_lb_policies_list( connection, parent, optional_params \\ [], @@ -3928,7 +5184,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do request = Request.new() |> Request.method(:get) - |> Request.url("/v1/{+parent}/serviceBindings", %{ + |> Request.url("/v1/{+parent}/serviceLbPolicies", %{ "parent" => URI.encode(parent, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) @@ -3937,10 +5193,84 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do connection |> Connection.execute(request) |> Response.decode( - opts ++ [struct: %GoogleApi.NetworkServices.V1.Model.ListServiceBindingsResponse{}] + opts ++ [struct: %GoogleApi.NetworkServices.V1.Model.ListServiceLbPoliciesResponse{}] ) end + @doc """ + Updates the parameters of a single ServiceLbPolicy. + + ## Parameters + + * `connection` (*type:* `GoogleApi.NetworkServices.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. Name of the ServiceLbPolicy resource. It matches pattern `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`. + * `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"). + * `:updateMask` (*type:* `String.t`) - Optional. Field mask is used to specify the fields to be overwritten in the ServiceLbPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. + * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.ServiceLbPolicy.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.NetworkServices.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec networkservices_projects_locations_service_lb_policies_patch( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.NetworkServices.V1.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def networkservices_projects_locations_service_lb_policies_patch( + 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, + :updateMask => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> 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.NetworkServices.V1.Model.Operation{}]) + end + @doc """ Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. @@ -3968,7 +5298,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `{:ok, %GoogleApi.NetworkServices.V1.Model.Policy{}}` on success * `{:error, info}` on failure """ - @spec networkservices_projects_locations_service_bindings_set_iam_policy( + @spec networkservices_projects_locations_service_lb_policies_set_iam_policy( Tesla.Env.client(), String.t(), keyword(), @@ -3978,7 +5308,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def networkservices_projects_locations_service_bindings_set_iam_policy( + def networkservices_projects_locations_service_lb_policies_set_iam_policy( connection, resource, optional_params \\ [], @@ -4040,7 +5370,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `{:ok, %GoogleApi.NetworkServices.V1.Model.TestIamPermissionsResponse{}}` on success * `{:error, info}` on failure """ - @spec networkservices_projects_locations_service_bindings_test_iam_permissions( + @spec networkservices_projects_locations_service_lb_policies_test_iam_permissions( Tesla.Env.client(), String.t(), keyword(), @@ -4050,7 +5380,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def networkservices_projects_locations_service_bindings_test_iam_permissions( + def networkservices_projects_locations_service_lb_policies_test_iam_permissions( connection, resource, optional_params \\ [], @@ -4106,7 +5436,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `: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"). - * `:tcpRouteId` (*type:* `String.t`) - Required. Short name of the TcpRoute resource to be created. E.g. TODO(Add an example). + * `:tcpRouteId` (*type:* `String.t`) - Required. Short name of the TcpRoute resource to be created. * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.TcpRoute.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -4470,7 +5800,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do * `: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"). - * `:tlsRouteId` (*type:* `String.t`) - Required. Short name of the TlsRoute resource to be created. E.g. TODO(Add an example). + * `:tlsRouteId` (*type:* `String.t`) - Required. Short name of the TlsRoute resource to be created. * `:body` (*type:* `GoogleApi.NetworkServices.V1.Model.TlsRoute.t`) - * `opts` (*type:* `keyword()`) - Call options diff --git a/clients/network_services/lib/google_api/network_services/v1/metadata.ex b/clients/network_services/lib/google_api/network_services/v1/metadata.ex index b118dd6cbe..2de855c37d 100644 --- a/clients/network_services/lib/google_api/network_services/v1/metadata.ex +++ b/clients/network_services/lib/google_api/network_services/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.NetworkServices.V1 do API client metadata for GoogleApi.NetworkServices.V1. """ - @discovery_revision "20220825" + @discovery_revision "20240228" def discovery_revision(), do: @discovery_revision end diff --git a/clients/network_services/lib/google_api/network_services/v1/model/binding.ex b/clients/network_services/lib/google_api/network_services/v1/model/binding.ex index 71e4cc9ff8..6e5b953387 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/binding.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/binding.ex @@ -22,8 +22,8 @@ defmodule GoogleApi.NetworkServices.V1.Model.Binding do ## Attributes * `condition` (*type:* `GoogleApi.NetworkServices.V1.Model.Expr.t`, *default:* `nil`) - The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. - * `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`. + * `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). """ use GoogleApi.Gax.ModelBase diff --git a/clients/network_services/lib/google_api/network_services/v1/model/endpoint_matcher_metadata_label_matcher.ex b/clients/network_services/lib/google_api/network_services/v1/model/endpoint_matcher_metadata_label_matcher.ex index c58282594e..16e75b2873 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/endpoint_matcher_metadata_label_matcher.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/endpoint_matcher_metadata_label_matcher.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.EndpointMatcherMetadataLabelMatcher ## Attributes - * `metadataLabelMatchCriteria` (*type:* `String.t`, *default:* `nil`) - Specifies how matching should be done. Supported values are: MATCH_ANY: At least one of the Labels specified in the matcher should match the metadata presented by xDS client. MATCH_ALL: The metadata presented by the xDS client should contain all of the labels specified here. The selection is determined based on the best match. For example, suppose there are three EndpointPolicy resources P1, P2 and P3 and if P1 has a the matcher as MATCH_ANY , P2 has MATCH_ALL , and P3 has MATCH_ALL . If a client with label connects, the config from P1 will be selected. If a client with label connects, the config from P2 will be selected. If a client with label connects, the config from P3 will be selected. If there is more than one best match, (for example, if a config P4 with selector exists and if a client with label connects), an error will be thrown. + * `metadataLabelMatchCriteria` (*type:* `String.t`, *default:* `nil`) - Specifies how matching should be done. Supported values are: MATCH_ANY: At least one of the Labels specified in the matcher should match the metadata presented by xDS client. MATCH_ALL: The metadata presented by the xDS client should contain all of the labels specified here. The selection is determined based on the best match. For example, suppose there are three EndpointPolicy resources P1, P2 and P3 and if P1 has a the matcher as MATCH_ANY , P2 has MATCH_ALL , and P3 has MATCH_ALL . If a client with label connects, the config from P1 will be selected. If a client with label connects, the config from P2 will be selected. If a client with label connects, the config from P3 will be selected. If there is more than one best match, (for example, if a config P4 with selector exists and if a client with label connects), pick up the one with older creation time. * `metadataLabels` (*type:* `list(GoogleApi.NetworkServices.V1.Model.EndpointMatcherMetadataLabelMatcherMetadataLabels.t)`, *default:* `nil`) - The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list can have at most 64 entries. The list can be empty if the match criteria is MATCH_ANY, to specify a wildcard match (i.e this matches any client). """ diff --git a/clients/network_services/lib/google_api/network_services/v1/model/extension_chain.ex b/clients/network_services/lib/google_api/network_services/v1/model/extension_chain.ex new file mode 100644 index 0000000000..61b0c2a2fe --- /dev/null +++ b/clients/network_services/lib/google_api/network_services/v1/model/extension_chain.ex @@ -0,0 +1,54 @@ +# 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.NetworkServices.V1.Model.ExtensionChain do + @moduledoc """ + A single extension chain wrapper that contains the match conditions and extensions to execute. + + ## Attributes + + * `extensions` (*type:* `list(GoogleApi.NetworkServices.V1.Model.ExtensionChainExtension.t)`, *default:* `nil`) - Required. A set of extensions to execute for the matching request. At least one extension is required. Up to 3 extensions can be defined for each extension chain for `LbTrafficExtension` resource. `LbRouteExtension` chains are limited to 1 extension per extension chain. + * `matchCondition` (*type:* `GoogleApi.NetworkServices.V1.Model.ExtensionChainMatchCondition.t`, *default:* `nil`) - Required. Conditions under which this chain is invoked for a request. + * `name` (*type:* `String.t`, *default:* `nil`) - Required. The name for this extension chain. The name is logged as part of the HTTP request logs. The name must conform with RFC-1034, is restricted to lower-cased letters, numbers and hyphens, and can have a maximum length of 63 characters. Additionally, the first character must be a letter and the last a letter or a number. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :extensions => + list(GoogleApi.NetworkServices.V1.Model.ExtensionChainExtension.t()) | nil, + :matchCondition => + GoogleApi.NetworkServices.V1.Model.ExtensionChainMatchCondition.t() | nil, + :name => String.t() | nil + } + + field(:extensions, as: GoogleApi.NetworkServices.V1.Model.ExtensionChainExtension, type: :list) + field(:matchCondition, as: GoogleApi.NetworkServices.V1.Model.ExtensionChainMatchCondition) + field(:name) +end + +defimpl Poison.Decoder, for: GoogleApi.NetworkServices.V1.Model.ExtensionChain do + def decode(value, options) do + GoogleApi.NetworkServices.V1.Model.ExtensionChain.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.NetworkServices.V1.Model.ExtensionChain do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/network_services/lib/google_api/network_services/v1/model/extension_chain_extension.ex b/clients/network_services/lib/google_api/network_services/v1/model/extension_chain_extension.ex new file mode 100644 index 0000000000..25adbd5f42 --- /dev/null +++ b/clients/network_services/lib/google_api/network_services/v1/model/extension_chain_extension.ex @@ -0,0 +1,64 @@ +# 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.NetworkServices.V1.Model.ExtensionChainExtension do + @moduledoc """ + A single extension in the chain to execute for the matching request. + + ## Attributes + + * `authority` (*type:* `String.t`, *default:* `nil`) - Optional. The `:authority` header in the gRPC request sent from Envoy to the extension service. Required for Callout extensions. + * `failOpen` (*type:* `boolean()`, *default:* `nil`) - Optional. Determines how the proxy behaves if the call to the extension fails or times out. When set to `TRUE`, request or response processing continues without error. Any subsequent extensions in the extension chain are also executed. When set to `FALSE` or the default setting of `FALSE` is used, one of the following happens: * If response headers have not been delivered to the downstream client, a generic 500 error is returned to the client. The error response can be tailored by configuring a custom error response in the load balancer. * If response headers have been delivered, then the HTTP stream to the downstream client is reset. + * `forwardHeaders` (*type:* `list(String.t)`, *default:* `nil`) - Optional. List of the HTTP headers to forward to the extension (from the client or backend). If omitted, all headers are sent. Each element is a string indicating the header name. + * `name` (*type:* `String.t`, *default:* `nil`) - Required. The name for this extension. The name is logged as part of the HTTP request logs. The name must conform with RFC-1034, is restricted to lower-cased letters, numbers and hyphens, and can have a maximum length of 63 characters. Additionally, the first character must be a letter and the last a letter or a number. + * `service` (*type:* `String.t`, *default:* `nil`) - Required. The reference to the service that runs the extension. Currently only callout extensions are supported here. To configure a callout extension, `service` must be a fully-qualified reference to a [backend service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) in the format: `https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}` or `https://www.googleapis.com/compute/v1/projects/{project}/global/backendServices/{backendService}`. + * `supportedEvents` (*type:* `list(String.t)`, *default:* `nil`) - Optional. A set of events during request or response processing for which this extension is called. This field is required for the `LbTrafficExtension` resource. It's not relevant for the `LbRouteExtension` resource. + * `timeout` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies the timeout for each individual message on the stream. The timeout must be between 10-1000 milliseconds. Required for Callout extensions. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :authority => String.t() | nil, + :failOpen => boolean() | nil, + :forwardHeaders => list(String.t()) | nil, + :name => String.t() | nil, + :service => String.t() | nil, + :supportedEvents => list(String.t()) | nil, + :timeout => String.t() | nil + } + + field(:authority) + field(:failOpen) + field(:forwardHeaders, type: :list) + field(:name) + field(:service) + field(:supportedEvents, type: :list) + field(:timeout) +end + +defimpl Poison.Decoder, for: GoogleApi.NetworkServices.V1.Model.ExtensionChainExtension do + def decode(value, options) do + GoogleApi.NetworkServices.V1.Model.ExtensionChainExtension.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.NetworkServices.V1.Model.ExtensionChainExtension do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/network_services/lib/google_api/network_services/v1/model/extension_chain_match_condition.ex b/clients/network_services/lib/google_api/network_services/v1/model/extension_chain_match_condition.ex new file mode 100644 index 0000000000..4d9db6370b --- /dev/null +++ b/clients/network_services/lib/google_api/network_services/v1/model/extension_chain_match_condition.ex @@ -0,0 +1,46 @@ +# 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.NetworkServices.V1.Model.ExtensionChainMatchCondition do + @moduledoc """ + Conditions under which this chain is invoked for a request. + + ## Attributes + + * `celExpression` (*type:* `String.t`, *default:* `nil`) - Required. A Common Expression Language (CEL) expression that is used to match requests for which the extension chain is executed. For more information, see [CEL matcher language reference](/service-extensions/docs/cel-matcher-language-reference). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :celExpression => String.t() | nil + } + + field(:celExpression) +end + +defimpl Poison.Decoder, for: GoogleApi.NetworkServices.V1.Model.ExtensionChainMatchCondition do + def decode(value, options) do + GoogleApi.NetworkServices.V1.Model.ExtensionChainMatchCondition.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.NetworkServices.V1.Model.ExtensionChainMatchCondition do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/network_services/lib/google_api/network_services/v1/model/gateway.ex b/clients/network_services/lib/google_api/network_services/v1/model/gateway.ex index 0f282587cc..906505f061 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/gateway.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/gateway.ex @@ -17,18 +17,25 @@ defmodule GoogleApi.NetworkServices.V1.Model.Gateway do @moduledoc """ - Gateway represents the configuration for a proxy, typically a load balancer. It captures the ip:port over which the services are exposed by the proxy, along with any policy configurations. Routes have reference to to Gateways to dictate how requests should be routed by this Gateway. + Gateway represents the configuration for a proxy, typically a load balancer. It captures the ip:port over which the services are exposed by the proxy, along with any policy configurations. Routes have reference to to Gateways to dictate how requests should be routed by this Gateway. Next id: 32 ## Attributes + * `addresses` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Zero or one IPv4 or IPv6 address on which the Gateway will receive the traffic. When no address is provided, an IP from the subnetwork is allocated This field only applies to gateways of type 'SECURE_WEB_GATEWAY'. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6. + * `certificateUrls` (*type:* `list(String.t)`, *default:* `nil`) - Optional. A fully-qualified Certificates URL reference. The proxy presents a Certificate (selected based on SNI) when establishing a TLS connection. This feature only applies to gateways of type 'SECURE_WEB_GATEWAY'. * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the resource was created. * `description` (*type:* `String.t`, *default:* `nil`) - Optional. A free-text description of the resource. Max length 1024 characters. + * `envoyHeaders` (*type:* `String.t`, *default:* `nil`) - Optional. Determines if envoy will insert internal debug headers into upstream requests. Other Envoy headers may still be injected. By default, envoy will not insert any debug headers. + * `gatewaySecurityPolicy` (*type:* `String.t`, *default:* `nil`) - Optional. A fully-qualified GatewaySecurityPolicy URL reference. Defines how a server should apply security policy to inbound (VM to Proxy) initiated connections. For example: `projects/*/locations/*/gatewaySecurityPolicies/swg-policy`. This policy is specific to gateways of type 'SECURE_WEB_GATEWAY'. + * `ipVersion` (*type:* `String.t`, *default:* `nil`) - Optional. The IP Version that will be used by this gateway. Valid options are IPV4 or IPV6. Default is IPV4. * `labels` (*type:* `map()`, *default:* `nil`) - Optional. Set of label tags associated with the Gateway resource. * `name` (*type:* `String.t`, *default:* `nil`) - Required. Name of the Gateway resource. It matches pattern `projects/*/locations/*/gateways/`. - * `ports` (*type:* `list(integer())`, *default:* `nil`) - Required. One or more port numbers (1-65535), on which the Gateway will receive traffic. The proxy binds to the specified ports. Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 and support multiple ports. - * `scope` (*type:* `String.t`, *default:* `nil`) - Required. Immutable. Scope determines how configuration across multiple Gateway instances are merged. The configuration for multiple Gateway instances with the same scope will be merged as presented as a single coniguration to the proxy/load balancer. Max length 64 characters. Scope should start with a letter and can only have letters, numbers, hyphens. + * `network` (*type:* `String.t`, *default:* `nil`) - Optional. The relative resource name identifying the VPC network that is using this configuration. For example: `projects/*/global/networks/network-1`. Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY'. + * `ports` (*type:* `list(integer())`, *default:* `nil`) - Required. One or more port numbers (1-65535), on which the Gateway will receive traffic. The proxy binds to the specified ports. Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and support multiple ports. + * `scope` (*type:* `String.t`, *default:* `nil`) - Optional. Scope determines how configuration across multiple Gateway instances are merged. The configuration for multiple Gateway instances with the same scope will be merged as presented as a single coniguration to the proxy/load balancer. Max length 64 characters. Scope should start with a letter and can only have letters, numbers, hyphens. * `selfLink` (*type:* `String.t`, *default:* `nil`) - Output only. Server-defined URL of this resource * `serverTlsPolicy` (*type:* `String.t`, *default:* `nil`) - Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how TLS traffic is terminated. If empty, TLS termination is disabled. + * `subnetwork` (*type:* `String.t`, *default:* `nil`) - Optional. The relative resource name identifying the subnetwork in which this SWG is allocated. For example: `projects/*/regions/us-central1/subnetworks/network-1` Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY". * `type` (*type:* `String.t`, *default:* `nil`) - Immutable. The type of the customer managed gateway. This field is required. If unspecified, an error is returned. * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the resource was updated. """ @@ -36,26 +43,40 @@ defmodule GoogleApi.NetworkServices.V1.Model.Gateway do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :addresses => list(String.t()) | nil, + :certificateUrls => list(String.t()) | nil, :createTime => DateTime.t() | nil, :description => String.t() | nil, + :envoyHeaders => String.t() | nil, + :gatewaySecurityPolicy => String.t() | nil, + :ipVersion => String.t() | nil, :labels => map() | nil, :name => String.t() | nil, + :network => String.t() | nil, :ports => list(integer()) | nil, :scope => String.t() | nil, :selfLink => String.t() | nil, :serverTlsPolicy => String.t() | nil, + :subnetwork => String.t() | nil, :type => String.t() | nil, :updateTime => DateTime.t() | nil } + field(:addresses, type: :list) + field(:certificateUrls, type: :list) field(:createTime, as: DateTime) field(:description) + field(:envoyHeaders) + field(:gatewaySecurityPolicy) + field(:ipVersion) field(:labels, type: :map) field(:name) + field(:network) field(:ports, type: :list) field(:scope) field(:selfLink) field(:serverTlsPolicy) + field(:subnetwork) field(:type) field(:updateTime, as: DateTime) end diff --git a/clients/network_services/lib/google_api/network_services/v1/model/grpc_route.ex b/clients/network_services/lib/google_api/network_services/v1/model/grpc_route.ex index 6c7dddb460..2952a33261 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/grpc_route.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/grpc_route.ex @@ -24,7 +24,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.GrpcRoute do * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the resource was created. * `description` (*type:* `String.t`, *default:* `nil`) - Optional. A free-text description of the resource. Max length 1024 characters. * `gateways` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Gateways defines a list of gateways this GrpcRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: `projects/*/locations/global/gateways/` - * `hostnames` (*type:* `list(String.t)`, *default:* `nil`) - Required. Service hostnames with an optional port for which this route describes traffic. Format: [:] Hostname is the fully qualified domain name of a network host. This matches the RFC 1123 definition of a hostname with 2 notable exceptions: - IPs are not allowed. - A hostname may be prefixed with a wildcard label (*.). The wildcard label must appear by itself as the first label. Hostname can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.example.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. *.example.com). Note that as per RFC1035 and RFC1123, a label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character. No other punctuation is allowed. The routes associated with a Mesh or Gateway must have unique hostnames. If you attempt to attach multiple routes with conflicting hostnames, the configuration will be rejected. For example, while it is acceptable for routes for the hostnames "*.foo.bar.com" and "*.bar.com" to be associated with the same route, it is not possible to associate two routes both with "*.bar.com" or both with "bar.com". If a port is specified, then gRPC clients must use the channel URI with the port to match this rule (i.e. "xds:///service:123"), otherwise they must supply the URI without a port (i.e. "xds:///service"). + * `hostnames` (*type:* `list(String.t)`, *default:* `nil`) - Required. Service hostnames with an optional port for which this route describes traffic. Format: [:] Hostname is the fully qualified domain name of a network host. This matches the RFC 1123 definition of a hostname with 2 notable exceptions: - IPs are not allowed. - A hostname may be prefixed with a wildcard label (`*.`). The wildcard label must appear by itself as the first label. Hostname can be "precise" which is a domain name without the terminating dot of a network host (e.g. `foo.example.com`) or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. `*.example.com`). Note that as per RFC1035 and RFC1123, a label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character. No other punctuation is allowed. The routes associated with a Mesh or Gateway must have unique hostnames. If you attempt to attach multiple routes with conflicting hostnames, the configuration will be rejected. For example, while it is acceptable for routes for the hostnames `*.foo.bar.com` and `*.bar.com` to be associated with the same route, it is not possible to associate two routes both with `*.bar.com` or both with `bar.com`. If a port is specified, then gRPC clients must use the channel URI with the port to match this rule (i.e. "xds:///service:123"), otherwise they must supply the URI without a port (i.e. "xds:///service"). * `labels` (*type:* `map()`, *default:* `nil`) - Optional. Set of label tags associated with the GrpcRoute resource. * `meshes` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Meshes defines a list of meshes this GrpcRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: `projects/*/locations/global/meshes/` * `name` (*type:* `String.t`, *default:* `nil`) - Required. Name of the GrpcRoute resource. It matches pattern `projects/*/locations/global/grpcRoutes/` diff --git a/clients/network_services/lib/google_api/network_services/v1/model/grpc_route_destination.ex b/clients/network_services/lib/google_api/network_services/v1/model/grpc_route_destination.ex index daa99ebd18..377379c748 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/grpc_route_destination.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/grpc_route_destination.ex @@ -22,7 +22,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.GrpcRouteDestination do ## Attributes * `serviceName` (*type:* `String.t`, *default:* `nil`) - Required. The URL of a destination service to which to route traffic. Must refer to either a BackendService or ServiceDirectoryService. - * `weight` (*type:* `integer()`, *default:* `nil`) - Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them. + * `weight` (*type:* `integer()`, *default:* `nil`) - Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them. """ use GoogleApi.Gax.ModelBase diff --git a/clients/network_services/lib/google_api/network_services/v1/model/grpc_route_route_action.ex b/clients/network_services/lib/google_api/network_services/v1/model/grpc_route_route_action.ex index 05c5284153..19841bef69 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/grpc_route_route_action.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/grpc_route_route_action.ex @@ -23,7 +23,9 @@ defmodule GoogleApi.NetworkServices.V1.Model.GrpcRouteRouteAction do * `destinations` (*type:* `list(GoogleApi.NetworkServices.V1.Model.GrpcRouteDestination.t)`, *default:* `nil`) - Optional. The destination services to which traffic should be forwarded. If multiple destinations are specified, traffic will be split between Backend Service(s) according to the weight field of these destinations. * `faultInjectionPolicy` (*type:* `GoogleApi.NetworkServices.V1.Model.GrpcRouteFaultInjectionPolicy.t`, *default:* `nil`) - Optional. The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced on a percentage of requests before sending those requests to the destination service. Similarly requests from clients can be aborted by for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy + * `idleTimeout` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 1 hour. If set to 0s, the timeout will be disabled. * `retryPolicy` (*type:* `GoogleApi.NetworkServices.V1.Model.GrpcRouteRetryPolicy.t`, *default:* `nil`) - Optional. Specifies the retry policy associated with this route. + * `statefulSessionAffinity` (*type:* `GoogleApi.NetworkServices.V1.Model.GrpcRouteStatefulSessionAffinityPolicy.t`, *default:* `nil`) - Optional. Specifies cookie-based stateful session affinity. * `timeout` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies the timeout for selected route. Timeout is computed from the time the request has been fully processed (i.e. end of stream) up until the response has been completely processed. Timeout includes all retries. """ @@ -34,7 +36,10 @@ defmodule GoogleApi.NetworkServices.V1.Model.GrpcRouteRouteAction do list(GoogleApi.NetworkServices.V1.Model.GrpcRouteDestination.t()) | nil, :faultInjectionPolicy => GoogleApi.NetworkServices.V1.Model.GrpcRouteFaultInjectionPolicy.t() | nil, + :idleTimeout => String.t() | nil, :retryPolicy => GoogleApi.NetworkServices.V1.Model.GrpcRouteRetryPolicy.t() | nil, + :statefulSessionAffinity => + GoogleApi.NetworkServices.V1.Model.GrpcRouteStatefulSessionAffinityPolicy.t() | nil, :timeout => String.t() | nil } @@ -44,7 +49,13 @@ defmodule GoogleApi.NetworkServices.V1.Model.GrpcRouteRouteAction do as: GoogleApi.NetworkServices.V1.Model.GrpcRouteFaultInjectionPolicy ) + field(:idleTimeout) field(:retryPolicy, as: GoogleApi.NetworkServices.V1.Model.GrpcRouteRetryPolicy) + + field(:statefulSessionAffinity, + as: GoogleApi.NetworkServices.V1.Model.GrpcRouteStatefulSessionAffinityPolicy + ) + field(:timeout) end diff --git a/clients/network_services/lib/google_api/network_services/v1/model/grpc_route_stateful_session_affinity_policy.ex b/clients/network_services/lib/google_api/network_services/v1/model/grpc_route_stateful_session_affinity_policy.ex new file mode 100644 index 0000000000..bb03ed3f39 --- /dev/null +++ b/clients/network_services/lib/google_api/network_services/v1/model/grpc_route_stateful_session_affinity_policy.ex @@ -0,0 +1,51 @@ +# 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.NetworkServices.V1.Model.GrpcRouteStatefulSessionAffinityPolicy do + @moduledoc """ + The specification for cookie-based stateful session affinity where the date plane supplies a “session cookie” with the name "GSSA" which encodes a specific destination host and each request containing that cookie will be directed to that host as long as the destination host remains up and healthy. The gRPC proxyless mesh library or sidecar proxy will manage the session cookie but the client application code is responsible for copying the cookie from each RPC in the session to the next. + + ## Attributes + + * `cookieTtl` (*type:* `String.t`, *default:* `nil`) - Required. The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 1 to 86400 seconds (24 hours) inclusive. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cookieTtl => String.t() | nil + } + + field(:cookieTtl) +end + +defimpl Poison.Decoder, + for: GoogleApi.NetworkServices.V1.Model.GrpcRouteStatefulSessionAffinityPolicy do + def decode(value, options) do + GoogleApi.NetworkServices.V1.Model.GrpcRouteStatefulSessionAffinityPolicy.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.NetworkServices.V1.Model.GrpcRouteStatefulSessionAffinityPolicy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/network_services/lib/google_api/network_services/v1/model/http_route.ex b/clients/network_services/lib/google_api/network_services/v1/model/http_route.ex index 8f357b23e5..b253b35852 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/http_route.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/http_route.ex @@ -24,7 +24,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.HttpRoute do * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the resource was created. * `description` (*type:* `String.t`, *default:* `nil`) - Optional. A free-text description of the resource. Max length 1024 characters. * `gateways` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Gateways defines a list of gateways this HttpRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: `projects/*/locations/global/gateways/` - * `hostnames` (*type:* `list(String.t)`, *default:* `nil`) - Required. Hostnames define a set of hosts that should match against the HTTP host header to select a HttpRoute to process the request. Hostname is the fully qualified domain name of a network host, as defined by RFC 1123 with the exception that: - IPs are not allowed. - A hostname may be prefixed with a wildcard label (*.). The wildcard label must appear by itself as the first label. Hostname can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.example.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. *.example.com). Note that as per RFC1035 and RFC1123, a label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character. No other punctuation is allowed. The routes associated with a Mesh or Gateways must have unique hostnames. If you attempt to attach multiple routes with conflicting hostnames, the configuration will be rejected. For example, while it is acceptable for routes for the hostnames "*.foo.bar.com" and "*.bar.com" to be associated with the same Mesh (or Gateways under the same scope), it is not possible to associate two routes both with "*.bar.com" or both with "bar.com". + * `hostnames` (*type:* `list(String.t)`, *default:* `nil`) - Required. Hostnames define a set of hosts that should match against the HTTP host header to select a HttpRoute to process the request. Hostname is the fully qualified domain name of a network host, as defined by RFC 1123 with the exception that: - IPs are not allowed. - A hostname may be prefixed with a wildcard label (`*.`). The wildcard label must appear by itself as the first label. Hostname can be "precise" which is a domain name without the terminating dot of a network host (e.g. `foo.example.com`) or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. `*.example.com`). Note that as per RFC1035 and RFC1123, a label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character. No other punctuation is allowed. The routes associated with a Mesh or Gateways must have unique hostnames. If you attempt to attach multiple routes with conflicting hostnames, the configuration will be rejected. For example, while it is acceptable for routes for the hostnames `*.foo.bar.com` and `*.bar.com` to be associated with the same Mesh (or Gateways under the same scope), it is not possible to associate two routes both with `*.bar.com` or both with `bar.com`. * `labels` (*type:* `map()`, *default:* `nil`) - Optional. Set of label tags associated with the HttpRoute resource. * `meshes` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Meshes defines a list of meshes this HttpRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: `projects/*/locations/global/meshes/` The attached Mesh should be of a type SIDECAR * `name` (*type:* `String.t`, *default:* `nil`) - Required. Name of the HttpRoute resource. It matches pattern `projects/*/locations/global/httpRoutes/http_route_name>`. diff --git a/clients/network_services/lib/google_api/network_services/v1/model/http_route_destination.ex b/clients/network_services/lib/google_api/network_services/v1/model/http_route_destination.ex index 2399feb9ab..8d8fbbf86d 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/http_route_destination.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/http_route_destination.ex @@ -21,17 +21,25 @@ defmodule GoogleApi.NetworkServices.V1.Model.HttpRouteDestination do ## Attributes + * `requestHeaderModifier` (*type:* `GoogleApi.NetworkServices.V1.Model.HttpRouteHeaderModifier.t`, *default:* `nil`) - Optional. The specification for modifying the headers of a matching request prior to delivery of the request to the destination. If HeaderModifiers are set on both the Destination and the RouteAction, they will be merged. Conflicts between the two will not be resolved on the configuration. + * `responseHeaderModifier` (*type:* `GoogleApi.NetworkServices.V1.Model.HttpRouteHeaderModifier.t`, *default:* `nil`) - Optional. The specification for modifying the headers of a response prior to sending the response back to the client. If HeaderModifiers are set on both the Destination and the RouteAction, they will be merged. Conflicts between the two will not be resolved on the configuration. * `serviceName` (*type:* `String.t`, *default:* `nil`) - The URL of a BackendService to route traffic to. - * `weight` (*type:* `integer()`, *default:* `nil`) - Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them. + * `weight` (*type:* `integer()`, *default:* `nil`) - Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :requestHeaderModifier => + GoogleApi.NetworkServices.V1.Model.HttpRouteHeaderModifier.t() | nil, + :responseHeaderModifier => + GoogleApi.NetworkServices.V1.Model.HttpRouteHeaderModifier.t() | nil, :serviceName => String.t() | nil, :weight => integer() | nil } + field(:requestHeaderModifier, as: GoogleApi.NetworkServices.V1.Model.HttpRouteHeaderModifier) + field(:responseHeaderModifier, as: GoogleApi.NetworkServices.V1.Model.HttpRouteHeaderModifier) field(:serviceName) field(:weight) end diff --git a/clients/network_services/lib/google_api/network_services/v1/model/http_route_http_direct_response.ex b/clients/network_services/lib/google_api/network_services/v1/model/http_route_http_direct_response.ex new file mode 100644 index 0000000000..87208a4276 --- /dev/null +++ b/clients/network_services/lib/google_api/network_services/v1/model/http_route_http_direct_response.ex @@ -0,0 +1,52 @@ +# 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.NetworkServices.V1.Model.HttpRouteHttpDirectResponse do + @moduledoc """ + Static HTTP response object to be returned. + + ## Attributes + + * `bytesBody` (*type:* `String.t`, *default:* `nil`) - Optional. Response body as bytes. Maximum body size is 4096B. + * `status` (*type:* `integer()`, *default:* `nil`) - Required. Status to return as part of HTTP Response. Must be a positive integer. + * `stringBody` (*type:* `String.t`, *default:* `nil`) - Optional. Response body as a string. Maximum body length is 1024 characters. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bytesBody => String.t() | nil, + :status => integer() | nil, + :stringBody => String.t() | nil + } + + field(:bytesBody) + field(:status) + field(:stringBody) +end + +defimpl Poison.Decoder, for: GoogleApi.NetworkServices.V1.Model.HttpRouteHttpDirectResponse do + def decode(value, options) do + GoogleApi.NetworkServices.V1.Model.HttpRouteHttpDirectResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.NetworkServices.V1.Model.HttpRouteHttpDirectResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/network_services/lib/google_api/network_services/v1/model/http_route_request_mirror_policy.ex b/clients/network_services/lib/google_api/network_services/v1/model/http_route_request_mirror_policy.ex index 9b78c3ee05..929f30b233 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/http_route_request_mirror_policy.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/http_route_request_mirror_policy.ex @@ -22,15 +22,18 @@ defmodule GoogleApi.NetworkServices.V1.Model.HttpRouteRequestMirrorPolicy do ## Attributes * `destination` (*type:* `GoogleApi.NetworkServices.V1.Model.HttpRouteDestination.t`, *default:* `nil`) - The destination the requests will be mirrored to. The weight of the destination will be ignored. + * `mirrorPercent` (*type:* `number()`, *default:* `nil`) - Optional. The percentage of requests to get mirrored to the desired destination. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :destination => GoogleApi.NetworkServices.V1.Model.HttpRouteDestination.t() | nil + :destination => GoogleApi.NetworkServices.V1.Model.HttpRouteDestination.t() | nil, + :mirrorPercent => number() | nil } field(:destination, as: GoogleApi.NetworkServices.V1.Model.HttpRouteDestination) + field(:mirrorPercent) end defimpl Poison.Decoder, for: GoogleApi.NetworkServices.V1.Model.HttpRouteRequestMirrorPolicy do diff --git a/clients/network_services/lib/google_api/network_services/v1/model/http_route_route_action.ex b/clients/network_services/lib/google_api/network_services/v1/model/http_route_route_action.ex index 6ec7b978d3..bcfa4f82e2 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/http_route_route_action.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/http_route_route_action.ex @@ -23,12 +23,15 @@ defmodule GoogleApi.NetworkServices.V1.Model.HttpRouteRouteAction do * `corsPolicy` (*type:* `GoogleApi.NetworkServices.V1.Model.HttpRouteCorsPolicy.t`, *default:* `nil`) - The specification for allowing client side cross-origin requests. * `destinations` (*type:* `list(GoogleApi.NetworkServices.V1.Model.HttpRouteDestination.t)`, *default:* `nil`) - The destination to which traffic should be forwarded. + * `directResponse` (*type:* `GoogleApi.NetworkServices.V1.Model.HttpRouteHttpDirectResponse.t`, *default:* `nil`) - Optional. Static HTTP Response object to be returned regardless of the request. * `faultInjectionPolicy` (*type:* `GoogleApi.NetworkServices.V1.Model.HttpRouteFaultInjectionPolicy.t`, *default:* `nil`) - The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced on a percentage of requests before sending those requests to the backend service. Similarly requests from clients can be aborted for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy + * `idleTimeout` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 1 hour. If set to 0s, the timeout will be disabled. * `redirect` (*type:* `GoogleApi.NetworkServices.V1.Model.HttpRouteRedirect.t`, *default:* `nil`) - If set, the request is directed as configured by this field. - * `requestHeaderModifier` (*type:* `GoogleApi.NetworkServices.V1.Model.HttpRouteHeaderModifier.t`, *default:* `nil`) - The specification for modifying the headers of a matching request prior to delivery of the request to the destination. + * `requestHeaderModifier` (*type:* `GoogleApi.NetworkServices.V1.Model.HttpRouteHeaderModifier.t`, *default:* `nil`) - The specification for modifying the headers of a matching request prior to delivery of the request to the destination. If HeaderModifiers are set on both the Destination and the RouteAction, they will be merged. Conflicts between the two will not be resolved on the configuration. * `requestMirrorPolicy` (*type:* `GoogleApi.NetworkServices.V1.Model.HttpRouteRequestMirrorPolicy.t`, *default:* `nil`) - Specifies the policy on how requests intended for the routes destination are shadowed to a separate mirrored destination. Proxy will not wait for the shadow destination to respond before returning the response. Prior to sending traffic to the shadow service, the host/authority header is suffixed with -shadow. - * `responseHeaderModifier` (*type:* `GoogleApi.NetworkServices.V1.Model.HttpRouteHeaderModifier.t`, *default:* `nil`) - The specification for modifying the headers of a response prior to sending the response back to the client. + * `responseHeaderModifier` (*type:* `GoogleApi.NetworkServices.V1.Model.HttpRouteHeaderModifier.t`, *default:* `nil`) - The specification for modifying the headers of a response prior to sending the response back to the client. If HeaderModifiers are set on both the Destination and the RouteAction, they will be merged. Conflicts between the two will not be resolved on the configuration. * `retryPolicy` (*type:* `GoogleApi.NetworkServices.V1.Model.HttpRouteRetryPolicy.t`, *default:* `nil`) - Specifies the retry policy associated with this route. + * `statefulSessionAffinity` (*type:* `GoogleApi.NetworkServices.V1.Model.HttpRouteStatefulSessionAffinityPolicy.t`, *default:* `nil`) - Optional. Specifies cookie-based stateful session affinity. * `timeout` (*type:* `String.t`, *default:* `nil`) - Specifies the timeout for selected route. Timeout is computed from the time the request has been fully processed (i.e. end of stream) up until the response has been completely processed. Timeout includes all retries. * `urlRewrite` (*type:* `GoogleApi.NetworkServices.V1.Model.HttpRouteURLRewrite.t`, *default:* `nil`) - The specification for rewrite URL before forwarding requests to the destination. """ @@ -39,8 +42,11 @@ defmodule GoogleApi.NetworkServices.V1.Model.HttpRouteRouteAction do :corsPolicy => GoogleApi.NetworkServices.V1.Model.HttpRouteCorsPolicy.t() | nil, :destinations => list(GoogleApi.NetworkServices.V1.Model.HttpRouteDestination.t()) | nil, + :directResponse => + GoogleApi.NetworkServices.V1.Model.HttpRouteHttpDirectResponse.t() | nil, :faultInjectionPolicy => GoogleApi.NetworkServices.V1.Model.HttpRouteFaultInjectionPolicy.t() | nil, + :idleTimeout => String.t() | nil, :redirect => GoogleApi.NetworkServices.V1.Model.HttpRouteRedirect.t() | nil, :requestHeaderModifier => GoogleApi.NetworkServices.V1.Model.HttpRouteHeaderModifier.t() | nil, @@ -49,22 +55,31 @@ defmodule GoogleApi.NetworkServices.V1.Model.HttpRouteRouteAction do :responseHeaderModifier => GoogleApi.NetworkServices.V1.Model.HttpRouteHeaderModifier.t() | nil, :retryPolicy => GoogleApi.NetworkServices.V1.Model.HttpRouteRetryPolicy.t() | nil, + :statefulSessionAffinity => + GoogleApi.NetworkServices.V1.Model.HttpRouteStatefulSessionAffinityPolicy.t() | nil, :timeout => String.t() | nil, :urlRewrite => GoogleApi.NetworkServices.V1.Model.HttpRouteURLRewrite.t() | nil } field(:corsPolicy, as: GoogleApi.NetworkServices.V1.Model.HttpRouteCorsPolicy) field(:destinations, as: GoogleApi.NetworkServices.V1.Model.HttpRouteDestination, type: :list) + field(:directResponse, as: GoogleApi.NetworkServices.V1.Model.HttpRouteHttpDirectResponse) field(:faultInjectionPolicy, as: GoogleApi.NetworkServices.V1.Model.HttpRouteFaultInjectionPolicy ) + field(:idleTimeout) field(:redirect, as: GoogleApi.NetworkServices.V1.Model.HttpRouteRedirect) field(:requestHeaderModifier, as: GoogleApi.NetworkServices.V1.Model.HttpRouteHeaderModifier) field(:requestMirrorPolicy, as: GoogleApi.NetworkServices.V1.Model.HttpRouteRequestMirrorPolicy) field(:responseHeaderModifier, as: GoogleApi.NetworkServices.V1.Model.HttpRouteHeaderModifier) field(:retryPolicy, as: GoogleApi.NetworkServices.V1.Model.HttpRouteRetryPolicy) + + field(:statefulSessionAffinity, + as: GoogleApi.NetworkServices.V1.Model.HttpRouteStatefulSessionAffinityPolicy + ) + field(:timeout) field(:urlRewrite, as: GoogleApi.NetworkServices.V1.Model.HttpRouteURLRewrite) end diff --git a/clients/network_services/lib/google_api/network_services/v1/model/http_route_stateful_session_affinity_policy.ex b/clients/network_services/lib/google_api/network_services/v1/model/http_route_stateful_session_affinity_policy.ex new file mode 100644 index 0000000000..b76fccbda7 --- /dev/null +++ b/clients/network_services/lib/google_api/network_services/v1/model/http_route_stateful_session_affinity_policy.ex @@ -0,0 +1,51 @@ +# 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.NetworkServices.V1.Model.HttpRouteStatefulSessionAffinityPolicy do + @moduledoc """ + The specification for cookie-based stateful session affinity where the date plane supplies a “session cookie” with the name "GSSA" which encodes a specific destination host and each request containing that cookie will be directed to that host as long as the destination host remains up and healthy. The gRPC proxyless mesh library or sidecar proxy will manage the session cookie but the client application code is responsible for copying the cookie from each RPC in the session to the next. + + ## Attributes + + * `cookieTtl` (*type:* `String.t`, *default:* `nil`) - Required. The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 1 to 86400 seconds (24 hours) inclusive. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cookieTtl => String.t() | nil + } + + field(:cookieTtl) +end + +defimpl Poison.Decoder, + for: GoogleApi.NetworkServices.V1.Model.HttpRouteStatefulSessionAffinityPolicy do + def decode(value, options) do + GoogleApi.NetworkServices.V1.Model.HttpRouteStatefulSessionAffinityPolicy.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.NetworkServices.V1.Model.HttpRouteStatefulSessionAffinityPolicy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/network_services/lib/google_api/network_services/v1/model/lb_route_extension.ex b/clients/network_services/lib/google_api/network_services/v1/model/lb_route_extension.ex new file mode 100644 index 0000000000..ada9adb157 --- /dev/null +++ b/clients/network_services/lib/google_api/network_services/v1/model/lb_route_extension.ex @@ -0,0 +1,67 @@ +# 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.NetworkServices.V1.Model.LbRouteExtension do + @moduledoc """ + `LbRouteExtension` is a resource that lets you control where traffic is routed to for a given request. + + ## Attributes + + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the resource was created. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. A human-readable description of the resource. + * `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. + * `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. + * `labels` (*type:* `map()`, *default:* `nil`) - Optional. Set of labels associated with the `LbRouteExtension` resource. The format must comply with [the requirements for labels](/compute/docs/labeling-resources#requirements) for Google Cloud resources. + * `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). + * `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}`. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the resource was updated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createTime => DateTime.t() | nil, + :description => String.t() | nil, + :extensionChains => list(GoogleApi.NetworkServices.V1.Model.ExtensionChain.t()) | nil, + :forwardingRules => list(String.t()) | nil, + :labels => map() | nil, + :loadBalancingScheme => String.t() | nil, + :name => String.t() | nil, + :updateTime => DateTime.t() | nil + } + + field(:createTime, as: DateTime) + field(:description) + field(:extensionChains, as: GoogleApi.NetworkServices.V1.Model.ExtensionChain, type: :list) + field(:forwardingRules, type: :list) + field(:labels, type: :map) + field(:loadBalancingScheme) + field(:name) + field(:updateTime, as: DateTime) +end + +defimpl Poison.Decoder, for: GoogleApi.NetworkServices.V1.Model.LbRouteExtension do + def decode(value, options) do + GoogleApi.NetworkServices.V1.Model.LbRouteExtension.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.NetworkServices.V1.Model.LbRouteExtension do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/network_services/lib/google_api/network_services/v1/model/lb_traffic_extension.ex b/clients/network_services/lib/google_api/network_services/v1/model/lb_traffic_extension.ex new file mode 100644 index 0000000000..77bffa1b1a --- /dev/null +++ b/clients/network_services/lib/google_api/network_services/v1/model/lb_traffic_extension.ex @@ -0,0 +1,67 @@ +# 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.NetworkServices.V1.Model.LbTrafficExtension do + @moduledoc """ + `LbTrafficExtension` is a resource that lets the extension service modify the headers and payloads of both requests and responses without impacting the choice of backend services or any other security policies associated with the backend service. + + ## Attributes + + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the resource was created. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. A human-readable description of the resource. + * `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. + * `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 `LBTrafficExtension` resource per forwarding rule. + * `labels` (*type:* `map()`, *default:* `nil`) - Optional. Set of labels associated with the `LbTrafficExtension` resource. The format must comply with [the requirements for labels](/compute/docs/labeling-resources#requirements) for Google Cloud resources. + * `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). + * `name` (*type:* `String.t`, *default:* `nil`) - Required. Identifier. Name of the `LbTrafficExtension` resource in the following format: `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the resource was updated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createTime => DateTime.t() | nil, + :description => String.t() | nil, + :extensionChains => list(GoogleApi.NetworkServices.V1.Model.ExtensionChain.t()) | nil, + :forwardingRules => list(String.t()) | nil, + :labels => map() | nil, + :loadBalancingScheme => String.t() | nil, + :name => String.t() | nil, + :updateTime => DateTime.t() | nil + } + + field(:createTime, as: DateTime) + field(:description) + field(:extensionChains, as: GoogleApi.NetworkServices.V1.Model.ExtensionChain, type: :list) + field(:forwardingRules, type: :list) + field(:labels, type: :map) + field(:loadBalancingScheme) + field(:name) + field(:updateTime, as: DateTime) +end + +defimpl Poison.Decoder, for: GoogleApi.NetworkServices.V1.Model.LbTrafficExtension do + def decode(value, options) do + GoogleApi.NetworkServices.V1.Model.LbTrafficExtension.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.NetworkServices.V1.Model.LbTrafficExtension do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/network_services/lib/google_api/network_services/v1/model/list_gateways_response.ex b/clients/network_services/lib/google_api/network_services/v1/model/list_gateways_response.ex index ae3a5c2c02..c60baca003 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/list_gateways_response.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/list_gateways_response.ex @@ -23,17 +23,20 @@ defmodule GoogleApi.NetworkServices.V1.Model.ListGatewaysResponse do * `gateways` (*type:* `list(GoogleApi.NetworkServices.V1.Model.Gateway.t)`, *default:* `nil`) - List of Gateway resources. * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - If there might be more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token`. + * `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - Locations that could not be reached. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :gateways => list(GoogleApi.NetworkServices.V1.Model.Gateway.t()) | nil, - :nextPageToken => String.t() | nil + :nextPageToken => String.t() | nil, + :unreachable => list(String.t()) | nil } field(:gateways, as: GoogleApi.NetworkServices.V1.Model.Gateway, type: :list) field(:nextPageToken) + field(:unreachable, type: :list) end defimpl Poison.Decoder, for: GoogleApi.NetworkServices.V1.Model.ListGatewaysResponse do diff --git a/clients/network_services/lib/google_api/network_services/v1/model/list_lb_route_extensions_response.ex b/clients/network_services/lib/google_api/network_services/v1/model/list_lb_route_extensions_response.ex new file mode 100644 index 0000000000..8680551745 --- /dev/null +++ b/clients/network_services/lib/google_api/network_services/v1/model/list_lb_route_extensions_response.ex @@ -0,0 +1,53 @@ +# 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.NetworkServices.V1.Model.ListLbRouteExtensionsResponse do + @moduledoc """ + Message for response to listing `LbRouteExtension` resources. + + ## Attributes + + * `lbRouteExtensions` (*type:* `list(GoogleApi.NetworkServices.V1.Model.LbRouteExtension.t)`, *default:* `nil`) - The list of `LbRouteExtension` resources. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token identifying a page of results that the server returns. + * `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - Locations that could not be reached. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :lbRouteExtensions => + list(GoogleApi.NetworkServices.V1.Model.LbRouteExtension.t()) | nil, + :nextPageToken => String.t() | nil, + :unreachable => list(String.t()) | nil + } + + field(:lbRouteExtensions, as: GoogleApi.NetworkServices.V1.Model.LbRouteExtension, type: :list) + field(:nextPageToken) + field(:unreachable, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.NetworkServices.V1.Model.ListLbRouteExtensionsResponse do + def decode(value, options) do + GoogleApi.NetworkServices.V1.Model.ListLbRouteExtensionsResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.NetworkServices.V1.Model.ListLbRouteExtensionsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/network_services/lib/google_api/network_services/v1/model/list_lb_traffic_extensions_response.ex b/clients/network_services/lib/google_api/network_services/v1/model/list_lb_traffic_extensions_response.ex new file mode 100644 index 0000000000..776e74ae02 --- /dev/null +++ b/clients/network_services/lib/google_api/network_services/v1/model/list_lb_traffic_extensions_response.ex @@ -0,0 +1,57 @@ +# 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.NetworkServices.V1.Model.ListLbTrafficExtensionsResponse do + @moduledoc """ + Message for response to listing `LbTrafficExtension` resources. + + ## Attributes + + * `lbTrafficExtensions` (*type:* `list(GoogleApi.NetworkServices.V1.Model.LbTrafficExtension.t)`, *default:* `nil`) - The list of `LbTrafficExtension` resources. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token identifying a page of results that the server returns. + * `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - Locations that could not be reached. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :lbTrafficExtensions => + list(GoogleApi.NetworkServices.V1.Model.LbTrafficExtension.t()) | nil, + :nextPageToken => String.t() | nil, + :unreachable => list(String.t()) | nil + } + + field(:lbTrafficExtensions, + as: GoogleApi.NetworkServices.V1.Model.LbTrafficExtension, + type: :list + ) + + field(:nextPageToken) + field(:unreachable, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.NetworkServices.V1.Model.ListLbTrafficExtensionsResponse do + def decode(value, options) do + GoogleApi.NetworkServices.V1.Model.ListLbTrafficExtensionsResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.NetworkServices.V1.Model.ListLbTrafficExtensionsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/network_services/lib/google_api/network_services/v1/model/list_service_lb_policies_response.ex b/clients/network_services/lib/google_api/network_services/v1/model/list_service_lb_policies_response.ex new file mode 100644 index 0000000000..2e7cf7d89a --- /dev/null +++ b/clients/network_services/lib/google_api/network_services/v1/model/list_service_lb_policies_response.ex @@ -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.NetworkServices.V1.Model.ListServiceLbPoliciesResponse do + @moduledoc """ + Response returned by the ListServiceLbPolicies method. + + ## Attributes + + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - If there might be more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token`. + * `serviceLbPolicies` (*type:* `list(GoogleApi.NetworkServices.V1.Model.ServiceLbPolicy.t)`, *default:* `nil`) - List of ServiceLbPolicy resources. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nextPageToken => String.t() | nil, + :serviceLbPolicies => list(GoogleApi.NetworkServices.V1.Model.ServiceLbPolicy.t()) | nil + } + + field(:nextPageToken) + field(:serviceLbPolicies, as: GoogleApi.NetworkServices.V1.Model.ServiceLbPolicy, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.NetworkServices.V1.Model.ListServiceLbPoliciesResponse do + def decode(value, options) do + GoogleApi.NetworkServices.V1.Model.ListServiceLbPoliciesResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.NetworkServices.V1.Model.ListServiceLbPoliciesResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/network_services/lib/google_api/network_services/v1/model/location.ex b/clients/network_services/lib/google_api/network_services/v1/model/location.ex index 6daf2b44bc..3b05cdcff6 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/location.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/location.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.Location do @moduledoc """ - A resource that represents Google Cloud Platform location. + A resource that represents a Google Cloud location. ## Attributes diff --git a/clients/network_services/lib/google_api/network_services/v1/model/mesh.ex b/clients/network_services/lib/google_api/network_services/v1/model/mesh.ex index e41ad70a32..b1d52875d3 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/mesh.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/mesh.ex @@ -23,7 +23,8 @@ defmodule GoogleApi.NetworkServices.V1.Model.Mesh do * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the resource was created. * `description` (*type:* `String.t`, *default:* `nil`) - Optional. A free-text description of the resource. Max length 1024 characters. - * `interceptionPort` (*type:* `integer()`, *default:* `nil`) - Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy to listen on the specified port of localhost (127.0.0.1) address. The SIDECAR proxy will expect all traffic to be redirected to this port regardless of its actual ip:port destination. If unset, a port '15001' is used as the interception port. This will is applicable only for sidecar proxy deployments. + * `envoyHeaders` (*type:* `String.t`, *default:* `nil`) - Optional. Determines if envoy will insert internal debug headers into upstream requests. Other Envoy headers may still be injected. By default, envoy will not insert any debug headers. + * `interceptionPort` (*type:* `integer()`, *default:* `nil`) - Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy to listen on the specified port of localhost (127.0.0.1) address. The SIDECAR proxy will expect all traffic to be redirected to this port regardless of its actual ip:port destination. If unset, a port '15001' is used as the interception port. This is applicable only for sidecar proxy deployments. * `labels` (*type:* `map()`, *default:* `nil`) - Optional. Set of label tags associated with the Mesh resource. * `name` (*type:* `String.t`, *default:* `nil`) - Required. Name of the Mesh resource. It matches pattern `projects/*/locations/global/meshes/`. * `selfLink` (*type:* `String.t`, *default:* `nil`) - Output only. Server-defined URL of this resource @@ -35,6 +36,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.Mesh do @type t :: %__MODULE__{ :createTime => DateTime.t() | nil, :description => String.t() | nil, + :envoyHeaders => String.t() | nil, :interceptionPort => integer() | nil, :labels => map() | nil, :name => String.t() | nil, @@ -44,6 +46,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.Mesh do field(:createTime, as: DateTime) field(:description) + field(:envoyHeaders) field(:interceptionPort) field(:labels, type: :map) field(:name) diff --git a/clients/network_services/lib/google_api/network_services/v1/model/operation.ex b/clients/network_services/lib/google_api/network_services/v1/model/operation.ex index f787601cbf..5f6e14b59c 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/operation.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/operation.ex @@ -25,7 +25,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.Operation do * `error` (*type:* `GoogleApi.NetworkServices.V1.Model.Status.t`, *default:* `nil`) - The error result of the operation in case of failure or cancellation. * `metadata` (*type:* `map()`, *default:* `nil`) - Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. * `name` (*type:* `String.t`, *default:* `nil`) - The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. - * `response` (*type:* `map()`, *default:* `nil`) - The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + * `response` (*type:* `map()`, *default:* `nil`) - The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. """ use GoogleApi.Gax.ModelBase diff --git a/clients/network_services/lib/google_api/network_services/v1/model/policy.ex b/clients/network_services/lib/google_api/network_services/v1/model/policy.ex index a26ebb08b0..4bf08d44aa 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/policy.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/policy.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.Policy do @moduledoc """ - An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). ## Attributes diff --git a/clients/network_services/lib/google_api/network_services/v1/model/service_binding.ex b/clients/network_services/lib/google_api/network_services/v1/model/service_binding.ex index 5d985d1f75..b3d51100ba 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/service_binding.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/service_binding.ex @@ -26,6 +26,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.ServiceBinding do * `labels` (*type:* `map()`, *default:* `nil`) - Optional. Set of label tags associated with the ServiceBinding resource. * `name` (*type:* `String.t`, *default:* `nil`) - Required. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/global/serviceBindings/service_binding_name`. * `service` (*type:* `String.t`, *default:* `nil`) - Required. The full Service Directory Service name of the format projects/*/locations/*/namespaces/*/services/* + * `serviceId` (*type:* `String.t`, *default:* `nil`) - Output only. The unique identifier of the Service Directory Service against which the Service Binding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format. * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the resource was updated. """ @@ -37,6 +38,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.ServiceBinding do :labels => map() | nil, :name => String.t() | nil, :service => String.t() | nil, + :serviceId => String.t() | nil, :updateTime => DateTime.t() | nil } @@ -45,6 +47,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.ServiceBinding do field(:labels, type: :map) field(:name) field(:service) + field(:serviceId) field(:updateTime, as: DateTime) end diff --git a/clients/network_services/lib/google_api/network_services/v1/model/service_lb_policy.ex b/clients/network_services/lib/google_api/network_services/v1/model/service_lb_policy.ex new file mode 100644 index 0000000000..9b276374c9 --- /dev/null +++ b/clients/network_services/lib/google_api/network_services/v1/model/service_lb_policy.ex @@ -0,0 +1,72 @@ +# 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.NetworkServices.V1.Model.ServiceLbPolicy do + @moduledoc """ + ServiceLbPolicy holds global load balancing and traffic distribution configuration that can be applied to a BackendService. + + ## Attributes + + * `autoCapacityDrain` (*type:* `GoogleApi.NetworkServices.V1.Model.ServiceLbPolicyAutoCapacityDrain.t`, *default:* `nil`) - Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when this resource was created. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. A free-text description of the resource. Max length 1024 characters. + * `failoverConfig` (*type:* `GoogleApi.NetworkServices.V1.Model.ServiceLbPolicyFailoverConfig.t`, *default:* `nil`) - Optional. Configuration related to health based failover. + * `labels` (*type:* `map()`, *default:* `nil`) - Optional. Set of label tags associated with the ServiceLbPolicy resource. + * `loadBalancingAlgorithm` (*type:* `String.t`, *default:* `nil`) - Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION. + * `name` (*type:* `String.t`, *default:* `nil`) - Required. Name of the ServiceLbPolicy resource. It matches pattern `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when this resource was last updated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :autoCapacityDrain => + GoogleApi.NetworkServices.V1.Model.ServiceLbPolicyAutoCapacityDrain.t() | nil, + :createTime => DateTime.t() | nil, + :description => String.t() | nil, + :failoverConfig => + GoogleApi.NetworkServices.V1.Model.ServiceLbPolicyFailoverConfig.t() | nil, + :labels => map() | nil, + :loadBalancingAlgorithm => String.t() | nil, + :name => String.t() | nil, + :updateTime => DateTime.t() | nil + } + + field(:autoCapacityDrain, + as: GoogleApi.NetworkServices.V1.Model.ServiceLbPolicyAutoCapacityDrain + ) + + field(:createTime, as: DateTime) + field(:description) + field(:failoverConfig, as: GoogleApi.NetworkServices.V1.Model.ServiceLbPolicyFailoverConfig) + field(:labels, type: :map) + field(:loadBalancingAlgorithm) + field(:name) + field(:updateTime, as: DateTime) +end + +defimpl Poison.Decoder, for: GoogleApi.NetworkServices.V1.Model.ServiceLbPolicy do + def decode(value, options) do + GoogleApi.NetworkServices.V1.Model.ServiceLbPolicy.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.NetworkServices.V1.Model.ServiceLbPolicy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/network_services/lib/google_api/network_services/v1/model/service_lb_policy_auto_capacity_drain.ex b/clients/network_services/lib/google_api/network_services/v1/model/service_lb_policy_auto_capacity_drain.ex new file mode 100644 index 0000000000..6b2456368c --- /dev/null +++ b/clients/network_services/lib/google_api/network_services/v1/model/service_lb_policy_auto_capacity_drain.ex @@ -0,0 +1,46 @@ +# 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.NetworkServices.V1.Model.ServiceLbPolicyAutoCapacityDrain do + @moduledoc """ + Option to specify if an unhealthy IG/NEG should be considered for global load balancing and traffic routing. + + ## Attributes + + * `enable` (*type:* `boolean()`, *default:* `nil`) - Optional. If set to 'True', an unhealthy IG/NEG will be set as drained. - An IG/NEG is considered unhealthy if less than 25% of the instances/endpoints in the IG/NEG are healthy. - This option will never result in draining more than 50% of the configured IGs/NEGs for the Backend Service. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enable => boolean() | nil + } + + field(:enable) +end + +defimpl Poison.Decoder, for: GoogleApi.NetworkServices.V1.Model.ServiceLbPolicyAutoCapacityDrain do + def decode(value, options) do + GoogleApi.NetworkServices.V1.Model.ServiceLbPolicyAutoCapacityDrain.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.NetworkServices.V1.Model.ServiceLbPolicyAutoCapacityDrain do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/network_services/lib/google_api/network_services/v1/model/service_lb_policy_failover_config.ex b/clients/network_services/lib/google_api/network_services/v1/model/service_lb_policy_failover_config.ex new file mode 100644 index 0000000000..4e47b6bede --- /dev/null +++ b/clients/network_services/lib/google_api/network_services/v1/model/service_lb_policy_failover_config.ex @@ -0,0 +1,46 @@ +# 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.NetworkServices.V1.Model.ServiceLbPolicyFailoverConfig do + @moduledoc """ + Option to specify health based failover behavior. This is not related to Network load balancer FailoverPolicy. + + ## Attributes + + * `failoverHealthThreshold` (*type:* `integer()`, *default:* `nil`) - Optional. The percentage threshold that a load balancer will begin to send traffic to failover backends. If the percentage of endpoints in a MIG/NEG is smaller than this value, traffic would be sent to failover backends if possible. This field should be set to a value between 1 and 99. The default value is 50 for Global external HTTP(S) load balancer (classic) and Proxyless service mesh, and 70 for others. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :failoverHealthThreshold => integer() | nil + } + + field(:failoverHealthThreshold) +end + +defimpl Poison.Decoder, for: GoogleApi.NetworkServices.V1.Model.ServiceLbPolicyFailoverConfig do + def decode(value, options) do + GoogleApi.NetworkServices.V1.Model.ServiceLbPolicyFailoverConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.NetworkServices.V1.Model.ServiceLbPolicyFailoverConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/network_services/lib/google_api/network_services/v1/model/tcp_route_route_action.ex b/clients/network_services/lib/google_api/network_services/v1/model/tcp_route_route_action.ex index be52ec31a7..62d6cbe547 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/tcp_route_route_action.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/tcp_route_route_action.ex @@ -21,8 +21,9 @@ defmodule GoogleApi.NetworkServices.V1.Model.TcpRouteRouteAction do ## Attributes - * `destinations` (*type:* `list(GoogleApi.NetworkServices.V1.Model.TcpRouteRouteDestination.t)`, *default:* `nil`) - Optional. The destination services to which traffic should be forwarded. At least one destination service is required. - * `originalDestination` (*type:* `boolean()`, *default:* `nil`) - Optional. If true, Router will use the destination IP and port of the original connection as the destination of the request. Default is false. + * `destinations` (*type:* `list(GoogleApi.NetworkServices.V1.Model.TcpRouteRouteDestination.t)`, *default:* `nil`) - Optional. The destination services to which traffic should be forwarded. At least one destination service is required. Only one of route destination or original destination can be set. + * `idleTimeout` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 30 seconds. If set to 0s, the timeout will be disabled. + * `originalDestination` (*type:* `boolean()`, *default:* `nil`) - Optional. If true, Router will use the destination IP and port of the original connection as the destination of the request. Default is false. Only one of route destinations or original destination can be set. """ use GoogleApi.Gax.ModelBase @@ -30,6 +31,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.TcpRouteRouteAction do @type t :: %__MODULE__{ :destinations => list(GoogleApi.NetworkServices.V1.Model.TcpRouteRouteDestination.t()) | nil, + :idleTimeout => String.t() | nil, :originalDestination => boolean() | nil } @@ -38,6 +40,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.TcpRouteRouteAction do type: :list ) + field(:idleTimeout) field(:originalDestination) end diff --git a/clients/network_services/lib/google_api/network_services/v1/model/tcp_route_route_destination.ex b/clients/network_services/lib/google_api/network_services/v1/model/tcp_route_route_destination.ex index ba8166b551..5317351f7c 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/tcp_route_route_destination.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/tcp_route_route_destination.ex @@ -22,7 +22,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.TcpRouteRouteDestination do ## Attributes * `serviceName` (*type:* `String.t`, *default:* `nil`) - Required. The URL of a BackendService to route traffic to. - * `weight` (*type:* `integer()`, *default:* `nil`) - Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them. + * `weight` (*type:* `integer()`, *default:* `nil`) - Optional. Specifies the proportion of requests forwarded to the backend referenced by the serviceName field. This is computed as: - weight/Sum(weights in this destination list). For non-zero values, there may be some epsilon from the exact proportion defined here depending on the precision an implementation supports. If only one serviceName is specified and it has a weight greater than 0, 100% of the traffic is forwarded to that backend. If weights are specified for any one service name, they need to be specified for all of them. If weights are unspecified for all services, then, traffic is distributed in equal proportions to all of them. """ use GoogleApi.Gax.ModelBase diff --git a/clients/network_services/lib/google_api/network_services/v1/model/tls_route.ex b/clients/network_services/lib/google_api/network_services/v1/model/tls_route.ex index fe71f0f47b..beefe65a64 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/tls_route.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/tls_route.ex @@ -24,6 +24,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.TlsRoute do * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the resource was created. * `description` (*type:* `String.t`, *default:* `nil`) - Optional. A free-text description of the resource. Max length 1024 characters. * `gateways` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Gateways defines a list of gateways this TlsRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: `projects/*/locations/global/gateways/` + * `labels` (*type:* `map()`, *default:* `nil`) - Optional. Set of label tags associated with the TlsRoute resource. * `meshes` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Meshes defines a list of meshes this TlsRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: `projects/*/locations/global/meshes/` The attached Mesh should be of a type SIDECAR * `name` (*type:* `String.t`, *default:* `nil`) - Required. Name of the TlsRoute resource. It matches pattern `projects/*/locations/global/tlsRoutes/tls_route_name>`. * `rules` (*type:* `list(GoogleApi.NetworkServices.V1.Model.TlsRouteRouteRule.t)`, *default:* `nil`) - Required. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match. @@ -37,6 +38,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.TlsRoute do :createTime => DateTime.t() | nil, :description => String.t() | nil, :gateways => list(String.t()) | nil, + :labels => map() | nil, :meshes => list(String.t()) | nil, :name => String.t() | nil, :rules => list(GoogleApi.NetworkServices.V1.Model.TlsRouteRouteRule.t()) | nil, @@ -47,6 +49,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.TlsRoute do field(:createTime, as: DateTime) field(:description) field(:gateways, type: :list) + field(:labels, type: :map) field(:meshes, type: :list) field(:name) field(:rules, as: GoogleApi.NetworkServices.V1.Model.TlsRouteRouteRule, type: :list) diff --git a/clients/network_services/lib/google_api/network_services/v1/model/tls_route_route_action.ex b/clients/network_services/lib/google_api/network_services/v1/model/tls_route_route_action.ex index ee5582d31b..9eb477dcbe 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/tls_route_route_action.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/tls_route_route_action.ex @@ -22,19 +22,23 @@ defmodule GoogleApi.NetworkServices.V1.Model.TlsRouteRouteAction do ## Attributes * `destinations` (*type:* `list(GoogleApi.NetworkServices.V1.Model.TlsRouteRouteDestination.t)`, *default:* `nil`) - Required. The destination services to which traffic should be forwarded. At least one destination service is required. + * `idleTimeout` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 1 hour. If set to 0s, the timeout will be disabled. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :destinations => - list(GoogleApi.NetworkServices.V1.Model.TlsRouteRouteDestination.t()) | nil + list(GoogleApi.NetworkServices.V1.Model.TlsRouteRouteDestination.t()) | nil, + :idleTimeout => String.t() | nil } field(:destinations, as: GoogleApi.NetworkServices.V1.Model.TlsRouteRouteDestination, type: :list ) + + field(:idleTimeout) end defimpl Poison.Decoder, for: GoogleApi.NetworkServices.V1.Model.TlsRouteRouteAction do diff --git a/clients/network_services/lib/google_api/network_services/v1/model/tls_route_route_destination.ex b/clients/network_services/lib/google_api/network_services/v1/model/tls_route_route_destination.ex index cab1357df5..d0ce705075 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/tls_route_route_destination.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/tls_route_route_destination.ex @@ -22,7 +22,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.TlsRouteRouteDestination do ## Attributes * `serviceName` (*type:* `String.t`, *default:* `nil`) - Required. The URL of a BackendService to route traffic to. - * `weight` (*type:* `integer()`, *default:* `nil`) - Optional. Specifies the proportion of requests forwareded to the backend referenced by the service_name field. This is computed as: weight/Sum(weights in destinations) Weights in all destinations does not need to sum up to 100. + * `weight` (*type:* `integer()`, *default:* `nil`) - Optional. Specifies the proportion of requests forwareded to the backend referenced by the service_name field. This is computed as: - weight/Sum(weights in destinations) Weights in all destinations does not need to sum up to 100. """ use GoogleApi.Gax.ModelBase diff --git a/clients/network_services/lib/google_api/network_services/v1/model/tls_route_route_match.ex b/clients/network_services/lib/google_api/network_services/v1/model/tls_route_route_match.ex index a0c63d17f9..a1bfdc6681 100644 --- a/clients/network_services/lib/google_api/network_services/v1/model/tls_route_route_match.ex +++ b/clients/network_services/lib/google_api/network_services/v1/model/tls_route_route_match.ex @@ -22,7 +22,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.TlsRouteRouteMatch do ## Attributes * `alpn` (*type:* `list(String.t)`, *default:* `nil`) - Optional. ALPN (Application-Layer Protocol Negotiation) to match against. Examples: "http/1.1", "h2". At least one of sni_host and alpn is required. Up to 5 alpns across all matches can be set. - * `sniHost` (*type:* `list(String.t)`, *default:* `nil`) - Optional. SNI (server name indicator) to match against. SNI will be matched against all wildcard domains, i.e. www.example.com will be first matched against www.example.com, then *.example.com, then *.com. Partial wildcards are not supported, and values like *w.example.com are invalid. At least one of sni_host and alpn is required. Up to 5 sni hosts across all matches can be set. + * `sniHost` (*type:* `list(String.t)`, *default:* `nil`) - Optional. SNI (server name indicator) to match against. SNI will be matched against all wildcard domains, i.e. `www.example.com` will be first matched against `www.example.com`, then `*.example.com`, then `*.com.` Partial wildcards are not supported, and values like *w.example.com are invalid. At least one of sni_host and alpn is required. Up to 5 sni hosts across all matches can be set. """ use GoogleApi.Gax.ModelBase