Skip to content

Commit

Permalink
feat: Automated regeneration of networkservices v1 client (googleapis…
Browse files Browse the repository at this point in the history
…#14415)

Auto-created at 2023-04-02 10:03:12 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Apr 2, 2023
1 parent 53b6441 commit df6e4de
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 9 deletions.
7 changes: 7 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214367,16 +214367,23 @@
"/networkservices:v1/Expr/location": location
"/networkservices:v1/Expr/title": title
"/networkservices:v1/Gateway": gateway
"/networkservices:v1/Gateway/addresses": addresses
"/networkservices:v1/Gateway/addresses/address": address
"/networkservices:v1/Gateway/certificateUrls": certificate_urls
"/networkservices:v1/Gateway/certificateUrls/certificate_url": certificate_url
"/networkservices:v1/Gateway/createTime": create_time
"/networkservices:v1/Gateway/description": description
"/networkservices:v1/Gateway/gatewaySecurityPolicy": gateway_security_policy
"/networkservices:v1/Gateway/labels": labels
"/networkservices:v1/Gateway/labels/label": label
"/networkservices:v1/Gateway/name": name
"/networkservices:v1/Gateway/network": network
"/networkservices:v1/Gateway/ports": ports
"/networkservices:v1/Gateway/ports/port": port
"/networkservices:v1/Gateway/scope": scope
"/networkservices:v1/Gateway/selfLink": self_link
"/networkservices:v1/Gateway/serverTlsPolicy": server_tls_policy
"/networkservices:v1/Gateway/subnetwork": subnetwork
"/networkservices:v1/Gateway/type": type
"/networkservices:v1/Gateway/updateTime": update_time
"/networkservices:v1/GrpcRoute": grpc_route
Expand Down
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.23.0 (2023-04-02)

* Regenerated from discovery document revision 20230323

### v0.22.0 (2023-03-05)

* Regenerated from discovery document revision 20230227
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,21 @@ def update!(**args)
class Gateway
include Google::Apis::Core::Hashable

# Optional. Zero or one IPv4-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.
# Corresponds to the JSON property `addresses`
# @return [Array<String>]
attr_accessor :addresses

# 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'.
# Corresponds to the JSON property `certificateUrls`
# @return [Array<String>]
attr_accessor :certificate_urls

# Output only. The timestamp when the resource was created.
# Corresponds to the JSON property `createTime`
# @return [String]
Expand All @@ -451,6 +466,14 @@ class Gateway
# @return [String]
attr_accessor :description

# 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'.
# Corresponds to the JSON property `gatewaySecurityPolicy`
# @return [String]
attr_accessor :gateway_security_policy

# Optional. Set of label tags associated with the Gateway resource.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
Expand All @@ -462,6 +485,13 @@ class Gateway
# @return [String]
attr_accessor :name

# 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'.
# Corresponds to the JSON property `network`
# @return [String]
attr_accessor :network

# 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
Expand Down Expand Up @@ -490,6 +520,14 @@ class Gateway
# @return [String]
attr_accessor :server_tls_policy

# 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".
# Corresponds to the JSON property `subnetwork`
# @return [String]
attr_accessor :subnetwork

# Immutable. The type of the customer managed gateway. This field is required.
# If unspecified, an error is returned.
# Corresponds to the JSON property `type`
Expand All @@ -507,14 +545,19 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@addresses = args[:addresses] if args.key?(:addresses)
@certificate_urls = args[:certificate_urls] if args.key?(:certificate_urls)
@create_time = args[:create_time] if args.key?(:create_time)
@description = args[:description] if args.key?(:description)
@gateway_security_policy = args[:gateway_security_policy] if args.key?(:gateway_security_policy)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@network = args[:network] if args.key?(:network)
@ports = args[:ports] if args.key?(:ports)
@scope = args[:scope] if args.key?(:scope)
@self_link = args[:self_link] if args.key?(:self_link)
@server_tls_policy = args[:server_tls_policy] if args.key?(:server_tls_policy)
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
@type = args[:type] if args.key?(:type)
@update_time = args[:update_time] if args.key?(:update_time)
end
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.22.0"
GEM_VERSION = "0.23.0"

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

# Revision of the discovery document this client was generated from
REVISION = "20230227"
REVISION = "20230323"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -538,14 +538,19 @@ class Representation < Google::Apis::Core::JsonRepresentation
class Gateway
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :addresses, as: 'addresses'
collection :certificate_urls, as: 'certificateUrls'
property :create_time, as: 'createTime'
property :description, as: 'description'
property :gateway_security_policy, as: 'gatewaySecurityPolicy'
hash :labels, as: 'labels'
property :name, as: 'name'
property :network, as: 'network'
collection :ports, as: 'ports'
property :scope, as: 'scope'
property :self_link, as: 'selfLink'
property :server_tls_policy, as: 'serverTlsPolicy'
property :subnetwork, as: 'subnetwork'
property :type, as: 'type'
property :update_time, as: 'updateTime'
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2454,13 +2454,7 @@ def get_project_location_operation(name, fields: nil, quota_user: nil, options:
end

# 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.
# doesn't support this method, it returns `UNIMPLEMENTED`.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
Expand Down

0 comments on commit df6e4de

Please sign in to comment.