Skip to content

Commit 16f4669

Browse files
feat: Automated regeneration of analyticshub v1 client (googleapis#24210)
Auto-created at 2025-09-07 10:16:12 +0000 using the toys pull request generator.
1 parent f5b05e2 commit 16f4669

File tree

5 files changed

+92
-2
lines changed

5 files changed

+92
-2
lines changed

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30892,6 +30892,10 @@
3089230892
"/analyticshub:v1/BigQueryConfig/writeMetadata": write_metadata
3089330893
"/analyticshub:v1/BigQueryDatasetSource": big_query_dataset_source
3089430894
"/analyticshub:v1/BigQueryDatasetSource/dataset": dataset
30895+
"/analyticshub:v1/BigQueryDatasetSource/effectiveReplicas": effective_replicas
30896+
"/analyticshub:v1/BigQueryDatasetSource/effectiveReplicas/effective_replica": effective_replica
30897+
"/analyticshub:v1/BigQueryDatasetSource/replicaLocations": replica_locations
30898+
"/analyticshub:v1/BigQueryDatasetSource/replicaLocations/replica_location": replica_location
3089530899
"/analyticshub:v1/BigQueryDatasetSource/restrictedExportPolicy": restricted_export_policy
3089630900
"/analyticshub:v1/BigQueryDatasetSource/selectedResources": selected_resources
3089730901
"/analyticshub:v1/BigQueryDatasetSource/selectedResources/selected_resource": selected_resource
@@ -31105,6 +31109,10 @@
3110531109
"/analyticshub:v1/RefreshSubscriptionRequest": refresh_subscription_request
3110631110
"/analyticshub:v1/RefreshSubscriptionResponse": refresh_subscription_response
3110731111
"/analyticshub:v1/RefreshSubscriptionResponse/subscription": subscription
31112+
"/analyticshub:v1/Replica": replica
31113+
"/analyticshub:v1/Replica/location": location
31114+
"/analyticshub:v1/Replica/primaryState": primary_state
31115+
"/analyticshub:v1/Replica/replicaState": replica_state
3110831116
"/analyticshub:v1/RestrictedExportConfig": restricted_export_config
3110931117
"/analyticshub:v1/RestrictedExportConfig/enabled": enabled
3111031118
"/analyticshub:v1/RestrictedExportConfig/restrictDirectTableAccess": restrict_direct_table_access

generated/google-apis-analyticshub_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-analyticshub_v1
22

3+
### v0.37.0 (2025-09-07)
4+
5+
* Regenerated from discovery document revision 20250901
6+
37
### v0.36.0 (2025-08-17)
48

59
* Regenerated from discovery document revision 20250807

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

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,19 @@ class BigQueryDatasetSource
224224
# @return [String]
225225
attr_accessor :dataset
226226

227+
# Output only. Server-owned effective state of replicas. Contains both primary
228+
# and secondary replicas. Each replica includes a system-computed (output-only)
229+
# state and primary designation.
230+
# Corresponds to the JSON property `effectiveReplicas`
231+
# @return [Array<Google::Apis::AnalyticshubV1::Replica>]
232+
attr_accessor :effective_replicas
233+
234+
# Optional. A list of regions where the publisher has created shared dataset
235+
# replicas.
236+
# Corresponds to the JSON property `replicaLocations`
237+
# @return [Array<String>]
238+
attr_accessor :replica_locations
239+
227240
# Restricted export policy used to configure restricted export on linked dataset.
228241
# Corresponds to the JSON property `restrictedExportPolicy`
229242
# @return [Google::Apis::AnalyticshubV1::RestrictedExportPolicy]
@@ -242,6 +255,8 @@ def initialize(**args)
242255
# Update properties of this object
243256
def update!(**args)
244257
@dataset = args[:dataset] if args.key?(:dataset)
258+
@effective_replicas = args[:effective_replicas] if args.key?(:effective_replicas)
259+
@replica_locations = args[:replica_locations] if args.key?(:replica_locations)
245260
@restricted_export_policy = args[:restricted_export_policy] if args.key?(:restricted_export_policy)
246261
@selected_resources = args[:selected_resources] if args.key?(:selected_resources)
247262
end
@@ -683,6 +698,13 @@ class DestinationDataset
683698
# @return [String]
684699
attr_accessor :location
685700

701+
# Optional. The geographic locations where the dataset should be replicated. See
702+
# [BigQuery locations](https://cloud.google.com/bigquery/docs/locations) for
703+
# supported locations.
704+
# Corresponds to the JSON property `replicaLocations`
705+
# @return [Array<String>]
706+
attr_accessor :replica_locations
707+
686708
def initialize(**args)
687709
update!(**args)
688710
end
@@ -694,6 +716,7 @@ def update!(**args)
694716
@friendly_name = args[:friendly_name] if args.key?(:friendly_name)
695717
@labels = args[:labels] if args.key?(:labels)
696718
@location = args[:location] if args.key?(:location)
719+
@replica_locations = args[:replica_locations] if args.key?(:replica_locations)
697720
end
698721
end
699722

@@ -2068,6 +2091,42 @@ def update!(**args)
20682091
end
20692092
end
20702093

2094+
# Represents the state of a replica of a shared dataset. It includes the
2095+
# geographic location of the replica and system-computed, output-only fields
2096+
# indicating its replication state and whether it is the primary replica.
2097+
class Replica
2098+
include Google::Apis::Core::Hashable
2099+
2100+
# Output only. The geographic location where the replica resides. See [BigQuery
2101+
# locations](https://cloud.google.com/bigquery/docs/locations) for supported
2102+
# locations. Eg. "us-central1".
2103+
# Corresponds to the JSON property `location`
2104+
# @return [String]
2105+
attr_accessor :location
2106+
2107+
# Output only. Indicates that this replica is the primary replica.
2108+
# Corresponds to the JSON property `primaryState`
2109+
# @return [String]
2110+
attr_accessor :primary_state
2111+
2112+
# Output only. Assigned by Analytics Hub based on real BigQuery replication
2113+
# state.
2114+
# Corresponds to the JSON property `replicaState`
2115+
# @return [String]
2116+
attr_accessor :replica_state
2117+
2118+
def initialize(**args)
2119+
update!(**args)
2120+
end
2121+
2122+
# Update properties of this object
2123+
def update!(**args)
2124+
@location = args[:location] if args.key?(:location)
2125+
@primary_state = args[:primary_state] if args.key?(:primary_state)
2126+
@replica_state = args[:replica_state] if args.key?(:replica_state)
2127+
end
2128+
end
2129+
20712130
# Restricted export config, used to configure restricted export on linked
20722131
# dataset.
20732132
class RestrictedExportConfig

generated/google-apis-analyticshub_v1/lib/google/apis/analyticshub_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 AnalyticshubV1
1818
# Version of the google-apis-analyticshub_v1 gem
19-
GEM_VERSION = "0.36.0"
19+
GEM_VERSION = "0.37.0"
2020

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

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

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
310310
include Google::Apis::Core::JsonObjectSupport
311311
end
312312

313+
class Replica
314+
class Representation < Google::Apis::Core::JsonRepresentation; end
315+
316+
include Google::Apis::Core::JsonObjectSupport
317+
end
318+
313319
class RestrictedExportConfig
314320
class Representation < Google::Apis::Core::JsonRepresentation; end
315321

@@ -471,6 +477,9 @@ class BigQueryDatasetSource
471477
# @private
472478
class Representation < Google::Apis::Core::JsonRepresentation
473479
property :dataset, as: 'dataset'
480+
collection :effective_replicas, as: 'effectiveReplicas', class: Google::Apis::AnalyticshubV1::Replica, decorator: Google::Apis::AnalyticshubV1::Replica::Representation
481+
482+
collection :replica_locations, as: 'replicaLocations'
474483
property :restricted_export_policy, as: 'restrictedExportPolicy', class: Google::Apis::AnalyticshubV1::RestrictedExportPolicy, decorator: Google::Apis::AnalyticshubV1::RestrictedExportPolicy::Representation
475484

476485
collection :selected_resources, as: 'selectedResources', class: Google::Apis::AnalyticshubV1::SelectedResource, decorator: Google::Apis::AnalyticshubV1::SelectedResource::Representation
@@ -562,6 +571,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
562571
property :friendly_name, as: 'friendlyName'
563572
hash :labels, as: 'labels'
564573
property :location, as: 'location'
574+
collection :replica_locations, as: 'replicaLocations'
565575
end
566576
end
567577

@@ -910,6 +920,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
910920
end
911921
end
912922

923+
class Replica
924+
# @private
925+
class Representation < Google::Apis::Core::JsonRepresentation
926+
property :location, as: 'location'
927+
property :primary_state, as: 'primaryState'
928+
property :replica_state, as: 'replicaState'
929+
end
930+
end
931+
913932
class RestrictedExportConfig
914933
# @private
915934
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)