Skip to content

Commit b4ded61

Browse files
feat: Automated regeneration of clouddeploy v1 client (googleapis#20425)
Auto-created at 2024-10-20 09:42:21 +0000 using the toys pull request generator.
1 parent 7eccde8 commit b4ded61

File tree

5 files changed

+128
-2
lines changed

5 files changed

+128
-2
lines changed

api_names_out.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62826,6 +62826,11 @@
6282662826
"/clouddeploy:v1/ApproveRolloutRequest/overrideDeployPolicy": override_deploy_policy
6282762827
"/clouddeploy:v1/ApproveRolloutRequest/overrideDeployPolicy/override_deploy_policy": override_deploy_policy
6282862828
"/clouddeploy:v1/ApproveRolloutResponse": approve_rollout_response
62829+
"/clouddeploy:v1/AssociatedEntities": associated_entities
62830+
"/clouddeploy:v1/AssociatedEntities/anthosClusters": anthos_clusters
62831+
"/clouddeploy:v1/AssociatedEntities/anthosClusters/anthos_cluster": anthos_cluster
62832+
"/clouddeploy:v1/AssociatedEntities/gkeClusters": gke_clusters
62833+
"/clouddeploy:v1/AssociatedEntities/gkeClusters/gke_cluster": gke_cluster
6282962834
"/clouddeploy:v1/AuditConfig": audit_config
6283062835
"/clouddeploy:v1/AuditConfig/auditLogConfigs": audit_log_configs
6283162836
"/clouddeploy:v1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config
@@ -63101,6 +63106,7 @@
6310163106
"/clouddeploy:v1/GatewayServiceMesh/deployment": deployment
6310263107
"/clouddeploy:v1/GatewayServiceMesh/httpRoute": http_route
6310363108
"/clouddeploy:v1/GatewayServiceMesh/podSelectorLabel": pod_selector_label
63109+
"/clouddeploy:v1/GatewayServiceMesh/routeDestinations": route_destinations
6310463110
"/clouddeploy:v1/GatewayServiceMesh/routeUpdateWaitTime": route_update_wait_time
6310563111
"/clouddeploy:v1/GatewayServiceMesh/service": service
6310663112
"/clouddeploy:v1/GatewayServiceMesh/stableCutbackDuration": stable_cutback_duration
@@ -63507,6 +63513,10 @@
6350763513
"/clouddeploy:v1/RolloutUpdateEvent/rolloutUpdateType": rollout_update_type
6350863514
"/clouddeploy:v1/RolloutUpdateEvent/targetId": target_id
6350963515
"/clouddeploy:v1/RolloutUpdateEvent/type": type
63516+
"/clouddeploy:v1/RouteDestinations": route_destinations
63517+
"/clouddeploy:v1/RouteDestinations/destinationIds": destination_ids
63518+
"/clouddeploy:v1/RouteDestinations/destinationIds/destination_id": destination_id
63519+
"/clouddeploy:v1/RouteDestinations/propagateService": propagate_service
6351063520
"/clouddeploy:v1/RuntimeConfig": runtime_config
6351163521
"/clouddeploy:v1/RuntimeConfig/cloudRun": cloud_run
6351263522
"/clouddeploy:v1/RuntimeConfig/kubernetes": kubernetes
@@ -63572,6 +63582,8 @@
6357263582
"/clouddeploy:v1/Target/annotations": annotations
6357363583
"/clouddeploy:v1/Target/annotations/annotation": annotation
6357463584
"/clouddeploy:v1/Target/anthosCluster": anthos_cluster
63585+
"/clouddeploy:v1/Target/associatedEntities": associated_entities
63586+
"/clouddeploy:v1/Target/associatedEntities/associated_entity": associated_entity
6357563587
"/clouddeploy:v1/Target/createTime": create_time
6357663588
"/clouddeploy:v1/Target/customTarget": custom_target
6357763589
"/clouddeploy:v1/Target/deployParameters": deploy_parameters

generated/google-apis-clouddeploy_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-clouddeploy_v1
22

3+
### v0.53.0 (2024-10-20)
4+
5+
* Regenerated from discovery document revision 20241010
6+
37
### v0.52.0 (2024-10-13)
48

59
* Regenerated from discovery document revision 20241002

generated/google-apis-clouddeploy_v1/lib/google/apis/clouddeploy_v1/classes.rb

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,31 @@ def update!(**args)
269269
end
270270
end
271271

272+
# Information about entities associated with a `Target`.
273+
class AssociatedEntities
274+
include Google::Apis::Core::Hashable
275+
276+
# Optional. Information specifying Anthos clusters as associated entities.
277+
# Corresponds to the JSON property `anthosClusters`
278+
# @return [Array<Google::Apis::ClouddeployV1::AnthosCluster>]
279+
attr_accessor :anthos_clusters
280+
281+
# Optional. Information specifying GKE clusters as associated entities.
282+
# Corresponds to the JSON property `gkeClusters`
283+
# @return [Array<Google::Apis::ClouddeployV1::GkeCluster>]
284+
attr_accessor :gke_clusters
285+
286+
def initialize(**args)
287+
update!(**args)
288+
end
289+
290+
# Update properties of this object
291+
def update!(**args)
292+
@anthos_clusters = args[:anthos_clusters] if args.key?(:anthos_clusters)
293+
@gke_clusters = args[:gke_clusters] if args.key?(:gke_clusters)
294+
end
295+
end
296+
272297
# Specifies the audit configuration for a service. The configuration determines
273298
# which permission types are logged, and what identities, if any, are exempted
274299
# from logging. An AuditConfig must have one or more AuditLogConfigs. If there
@@ -2374,6 +2399,11 @@ class GatewayServiceMesh
23742399
# @return [String]
23752400
attr_accessor :pod_selector_label
23762401

2402+
# Information about route destinations for the Gateway API service mesh.
2403+
# Corresponds to the JSON property `routeDestinations`
2404+
# @return [Google::Apis::ClouddeployV1::RouteDestinations]
2405+
attr_accessor :route_destinations
2406+
23772407
# Optional. The time to wait for route updates to propagate. The maximum
23782408
# configurable time is 3 hours, in seconds format. If unspecified, there is no
23792409
# wait time.
@@ -2402,6 +2432,7 @@ def update!(**args)
24022432
@deployment = args[:deployment] if args.key?(:deployment)
24032433
@http_route = args[:http_route] if args.key?(:http_route)
24042434
@pod_selector_label = args[:pod_selector_label] if args.key?(:pod_selector_label)
2435+
@route_destinations = args[:route_destinations] if args.key?(:route_destinations)
24052436
@route_update_wait_time = args[:route_update_wait_time] if args.key?(:route_update_wait_time)
24062437
@service = args[:service] if args.key?(:service)
24072438
@stable_cutback_duration = args[:stable_cutback_duration] if args.key?(:stable_cutback_duration)
@@ -5171,6 +5202,38 @@ def update!(**args)
51715202
end
51725203
end
51735204

5205+
# Information about route destinations for the Gateway API service mesh.
5206+
class RouteDestinations
5207+
include Google::Apis::Core::Hashable
5208+
5209+
# Required. The clusters where the Gateway API HTTPRoute resource will be
5210+
# deployed to. Valid entries include the associated entities IDs configured in
5211+
# the Target resource and "@self" to include the Target cluster.
5212+
# Corresponds to the JSON property `destinationIds`
5213+
# @return [Array<String>]
5214+
attr_accessor :destination_ids
5215+
5216+
# Optional. Whether to propagate the Kubernetes Service to the route destination
5217+
# clusters. The Service will always be deployed to the Target cluster even if
5218+
# the HTTPRoute is not. This option may be used to facilitiate successful DNS
5219+
# lookup in the route destination clusters. Can only be set to true if
5220+
# destinations are specified.
5221+
# Corresponds to the JSON property `propagateService`
5222+
# @return [Boolean]
5223+
attr_accessor :propagate_service
5224+
alias_method :propagate_service?, :propagate_service
5225+
5226+
def initialize(**args)
5227+
update!(**args)
5228+
end
5229+
5230+
# Update properties of this object
5231+
def update!(**args)
5232+
@destination_ids = args[:destination_ids] if args.key?(:destination_ids)
5233+
@propagate_service = args[:propagate_service] if args.key?(:propagate_service)
5234+
end
5235+
end
5236+
51745237
# RuntimeConfig contains the runtime specific configurations for a deployment
51755238
# strategy.
51765239
class RuntimeConfig
@@ -5678,6 +5741,18 @@ class Target
56785741
# @return [Google::Apis::ClouddeployV1::AnthosCluster]
56795742
attr_accessor :anthos_cluster
56805743

5744+
# Optional. Map of entity IDs to their associated entities. Associated entities
5745+
# allows specifying places other than the deployment target for specific
5746+
# features. For example, the Gateway API canary can be configured to deploy the
5747+
# HTTPRoute to a different cluster(s) than the deployment cluster using
5748+
# associated entities. An entity ID must consist of lower-case letters, numbers,
5749+
# and hyphens, start with a letter and end with a letter or a number, and have a
5750+
# max length of 63 characters. In other words, it must match the following regex:
5751+
# `^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$`.
5752+
# Corresponds to the JSON property `associatedEntities`
5753+
# @return [Hash<String,Google::Apis::ClouddeployV1::AssociatedEntities>]
5754+
attr_accessor :associated_entities
5755+
56815756
# Output only. Time at which the `Target` was created.
56825757
# Corresponds to the JSON property `createTime`
56835758
# @return [String]
@@ -5777,6 +5852,7 @@ def initialize(**args)
57775852
def update!(**args)
57785853
@annotations = args[:annotations] if args.key?(:annotations)
57795854
@anthos_cluster = args[:anthos_cluster] if args.key?(:anthos_cluster)
5855+
@associated_entities = args[:associated_entities] if args.key?(:associated_entities)
57805856
@create_time = args[:create_time] if args.key?(:create_time)
57815857
@custom_target = args[:custom_target] if args.key?(:custom_target)
57825858
@deploy_parameters = args[:deploy_parameters] if args.key?(:deploy_parameters)

generated/google-apis-clouddeploy_v1/lib/google/apis/clouddeploy_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module ClouddeployV1
1818
# Version of the google-apis-clouddeploy_v1 gem
19-
GEM_VERSION = "0.52.0"
19+
GEM_VERSION = "0.53.0"
2020

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

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20241002"
25+
REVISION = "20241010"
2626
end
2727
end
2828
end

generated/google-apis-clouddeploy_v1/lib/google/apis/clouddeploy_v1/representations.rb

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
8888
include Google::Apis::Core::JsonObjectSupport
8989
end
9090

91+
class AssociatedEntities
92+
class Representation < Google::Apis::Core::JsonRepresentation; end
93+
94+
include Google::Apis::Core::JsonObjectSupport
95+
end
96+
9197
class AuditConfig
9298
class Representation < Google::Apis::Core::JsonRepresentation; end
9399

@@ -802,6 +808,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
802808
include Google::Apis::Core::JsonObjectSupport
803809
end
804810

811+
class RouteDestinations
812+
class Representation < Google::Apis::Core::JsonRepresentation; end
813+
814+
include Google::Apis::Core::JsonObjectSupport
815+
end
816+
805817
class RuntimeConfig
806818
class Representation < Google::Apis::Core::JsonRepresentation; end
807819

@@ -1064,6 +1076,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
10641076
end
10651077
end
10661078

1079+
class AssociatedEntities
1080+
# @private
1081+
class Representation < Google::Apis::Core::JsonRepresentation
1082+
collection :anthos_clusters, as: 'anthosClusters', class: Google::Apis::ClouddeployV1::AnthosCluster, decorator: Google::Apis::ClouddeployV1::AnthosCluster::Representation
1083+
1084+
collection :gke_clusters, as: 'gkeClusters', class: Google::Apis::ClouddeployV1::GkeCluster, decorator: Google::Apis::ClouddeployV1::GkeCluster::Representation
1085+
1086+
end
1087+
end
1088+
10671089
class AuditConfig
10681090
# @private
10691091
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1607,6 +1629,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
16071629
property :deployment, as: 'deployment'
16081630
property :http_route, as: 'httpRoute'
16091631
property :pod_selector_label, as: 'podSelectorLabel'
1632+
property :route_destinations, as: 'routeDestinations', class: Google::Apis::ClouddeployV1::RouteDestinations, decorator: Google::Apis::ClouddeployV1::RouteDestinations::Representation
1633+
16101634
property :route_update_wait_time, as: 'routeUpdateWaitTime'
16111635
property :service, as: 'service'
16121636
property :stable_cutback_duration, as: 'stableCutbackDuration'
@@ -2351,6 +2375,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
23512375
end
23522376
end
23532377

2378+
class RouteDestinations
2379+
# @private
2380+
class Representation < Google::Apis::Core::JsonRepresentation
2381+
collection :destination_ids, as: 'destinationIds'
2382+
property :propagate_service, as: 'propagateService'
2383+
end
2384+
end
2385+
23542386
class RuntimeConfig
23552387
# @private
23562388
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2496,6 +2528,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
24962528
hash :annotations, as: 'annotations'
24972529
property :anthos_cluster, as: 'anthosCluster', class: Google::Apis::ClouddeployV1::AnthosCluster, decorator: Google::Apis::ClouddeployV1::AnthosCluster::Representation
24982530

2531+
hash :associated_entities, as: 'associatedEntities', class: Google::Apis::ClouddeployV1::AssociatedEntities, decorator: Google::Apis::ClouddeployV1::AssociatedEntities::Representation
2532+
24992533
property :create_time, as: 'createTime'
25002534
property :custom_target, as: 'customTarget', class: Google::Apis::ClouddeployV1::CustomTarget, decorator: Google::Apis::ClouddeployV1::CustomTarget::Representation
25012535

0 commit comments

Comments
 (0)