Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat: Automated regeneration of networkservices v1 client #20286

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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions generated/google-apis-networkservices_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-networkservices_v1

### v0.48.0 (2024-09-29)

* Regenerated from discovery document revision 20240919

### v0.47.0 (2024-09-22)

* Regenerated from discovery document revision 20240913
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2174,8 +2174,8 @@ class LbRouteExtension

# 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-
# INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Backend
# services overview](https://cloud.google.com/load-balancing/docs/backend-
# service).
# Corresponds to the JSON property `loadBalancingScheme`
# @return [String]
Expand All @@ -2186,8 +2186,7 @@ class LbRouteExtension
# message sent to the extension server. The metadata is available under the
# namespace `com.google.lb_route_extension.`. The following variables are
# supported in the metadata Struct: ``forwarding_rule_id`` - substituted with
# the forwarding rule's fully qualified resource name. Only one of the resource
# level metadata and extension level metadata can be set.
# the forwarding rule's fully qualified resource name.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
Expand Down Expand Up @@ -2264,8 +2263,8 @@ class LbTrafficExtension

# 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-
# INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Backend
# services overview](https://cloud.google.com/load-balancing/docs/backend-
# service).
# Corresponds to the JSON property `loadBalancingScheme`
# @return [String]
Expand All @@ -2275,8 +2274,7 @@ class LbTrafficExtension
# metadata_context.filter_metadata` map field. The metadata is available under
# the key `com.google.lb_traffic_extension.`. The following variables are
# supported in the metadata: ``forwarding_rule_id`` - substituted with the
# forwarding rule's fully qualified resource name. Only one of the resource
# level metadata and extension level metadata can be set.
# forwarding rule's fully qualified resource name.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module NetworkservicesV1
# Version of the google-apis-networkservices_v1 gem
GEM_VERSION = "0.47.0"
GEM_VERSION = "0.48.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.15.1"

# Revision of the discovery document this client was generated from
REVISION = "20240913"
REVISION = "20240919"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -1393,8 +1393,8 @@ def list_project_location_lb_route_extensions(parent, filter: nil, order_by: nil
# UUID is not supported (00000000-0000-0000-0000-000000000000).
# @param [String] update_mask
# Optional. Used to specify the fields to be overwritten in the `
# LbRouteExtension` resource by the update. The fields specified in the
# update_mask are relative to the resource, not the full request. A field is
# 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.
# @param [String] fields
Expand Down Expand Up @@ -1617,8 +1617,8 @@ def list_project_location_lb_traffic_extensions(parent, filter: nil, order_by: n
# UUID is not supported (00000000-0000-0000-0000-000000000000).
# @param [String] update_mask
# Optional. Used to specify the fields to be overwritten in the `
# LbTrafficExtension` resource by the update. The fields specified in the
# update_mask are relative to the resource, not the full request. A field is
# 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.
# @param [String] fields
Expand Down Expand Up @@ -2214,51 +2214,6 @@ def get_project_location_service_lb_policy(name, fields: nil, quota_user: nil, o
execute_or_queue_command(command, &block)
end

# Gets the access control policy for a resource. Returns an empty policy if the
# resource exists and does not have a policy set.
# @param [String] resource
# 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.
# @param [Fixnum] options_requested_policy_version
# 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).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::NetworkservicesV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_service_lb_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
command.response_class = Google::Apis::NetworkservicesV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

# Lists ServiceLbPolicies in a given project and location.
# @param [String] parent
# Required. The project and location from which the ServiceLbPolicies should be
Expand Down Expand Up @@ -2339,82 +2294,6 @@ def patch_project_location_service_lb_policy(name, service_lb_policy_object = ni
execute_or_queue_command(command, &block)
end

# Sets the access control policy on the specified resource. Replaces any
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
# PERMISSION_DENIED` errors.
# @param [String] resource
# 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.
# @param [Google::Apis::NetworkservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::NetworkservicesV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_service_lb_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::NetworkservicesV1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
command.response_class = Google::Apis::NetworkservicesV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

# 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.
# @param [String] resource
# 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.
# @param [Google::Apis::NetworkservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def test_service_lb_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

# Creates a new TcpRoute in a given project and location.
# @param [String] parent
# Required. The parent resource of the TcpRoute. Must be in the format `projects/
Expand Down
Loading