Skip to content

Commit 950d425

Browse files
feat: Automated regeneration of apihub v1 client (googleapis#23615)
Auto-created at 2025-07-06 10:02:17 +0000 using the toys pull request generator.
1 parent 1e422c3 commit 950d425

File tree

6 files changed

+166
-2
lines changed

6 files changed

+166
-2
lines changed

api_names_out.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39171,11 +39171,15 @@
3917139171
"/apihub:v1/GoogleCloudApihubV1Deployment/endpoints": endpoints
3917239172
"/apihub:v1/GoogleCloudApihubV1Deployment/endpoints/endpoint": endpoint
3917339173
"/apihub:v1/GoogleCloudApihubV1Deployment/environment": environment
39174+
"/apihub:v1/GoogleCloudApihubV1Deployment/managementUrl": management_url
3917439175
"/apihub:v1/GoogleCloudApihubV1Deployment/name": name
3917539176
"/apihub:v1/GoogleCloudApihubV1Deployment/resourceUri": resource_uri
3917639177
"/apihub:v1/GoogleCloudApihubV1Deployment/slo": slo
39178+
"/apihub:v1/GoogleCloudApihubV1Deployment/sourceEnvironment": source_environment
3917739179
"/apihub:v1/GoogleCloudApihubV1Deployment/sourceMetadata": source_metadata
3917839180
"/apihub:v1/GoogleCloudApihubV1Deployment/sourceMetadata/source_metadatum": source_metadatum
39181+
"/apihub:v1/GoogleCloudApihubV1Deployment/sourceProject": source_project
39182+
"/apihub:v1/GoogleCloudApihubV1Deployment/sourceUri": source_uri
3917939183
"/apihub:v1/GoogleCloudApihubV1Deployment/updateTime": update_time
3918039184
"/apihub:v1/GoogleCloudApihubV1DeploymentMetadata": google_cloud_apihub_v1_deployment_metadata
3918139185
"/apihub:v1/GoogleCloudApihubV1DeploymentMetadata/deployment": deployment
@@ -39345,6 +39349,7 @@
3934539349
"/apihub:v1/GoogleCloudApihubV1Plugin/description": description
3934639350
"/apihub:v1/GoogleCloudApihubV1Plugin/displayName": display_name
3934739351
"/apihub:v1/GoogleCloudApihubV1Plugin/documentation": documentation
39352+
"/apihub:v1/GoogleCloudApihubV1Plugin/gatewayType": gateway_type
3934839353
"/apihub:v1/GoogleCloudApihubV1Plugin/hostingService": hosting_service
3934939354
"/apihub:v1/GoogleCloudApihubV1Plugin/name": name
3935039355
"/apihub:v1/GoogleCloudApihubV1Plugin/ownershipType": ownership_type
@@ -39367,14 +39372,17 @@
3936739372
"/apihub:v1/GoogleCloudApihubV1PluginInstance/displayName": display_name
3936839373
"/apihub:v1/GoogleCloudApihubV1PluginInstance/errorMessage": error_message
3936939374
"/apihub:v1/GoogleCloudApihubV1PluginInstance/name": name
39375+
"/apihub:v1/GoogleCloudApihubV1PluginInstance/sourceProjectId": source_project_id
3937039376
"/apihub:v1/GoogleCloudApihubV1PluginInstance/state": state
3937139377
"/apihub:v1/GoogleCloudApihubV1PluginInstance/updateTime": update_time
3937239378
"/apihub:v1/GoogleCloudApihubV1PluginInstanceAction": google_cloud_apihub_v1_plugin_instance_action
3937339379
"/apihub:v1/GoogleCloudApihubV1PluginInstanceAction/actionId": action_id
3937439380
"/apihub:v1/GoogleCloudApihubV1PluginInstanceAction/curationConfig": curation_config
3937539381
"/apihub:v1/GoogleCloudApihubV1PluginInstanceAction/hubInstanceAction": hub_instance_action
39382+
"/apihub:v1/GoogleCloudApihubV1PluginInstanceAction/resourceConfig": resource_config
3937639383
"/apihub:v1/GoogleCloudApihubV1PluginInstanceAction/scheduleCronExpression": schedule_cron_expression
3937739384
"/apihub:v1/GoogleCloudApihubV1PluginInstanceAction/scheduleTimeZone": schedule_time_zone
39385+
"/apihub:v1/GoogleCloudApihubV1PluginInstanceAction/serviceAccount": service_account
3937839386
"/apihub:v1/GoogleCloudApihubV1PluginInstanceAction/state": state
3937939387
"/apihub:v1/GoogleCloudApihubV1PluginInstanceActionID": google_cloud_apihub_v1_plugin_instance_action_id
3938039388
"/apihub:v1/GoogleCloudApihubV1PluginInstanceActionID/actionId": action_id
@@ -39388,6 +39396,9 @@
3938839396
"/apihub:v1/GoogleCloudApihubV1Range": google_cloud_apihub_v1_range
3938939397
"/apihub:v1/GoogleCloudApihubV1Range/end": end
3939039398
"/apihub:v1/GoogleCloudApihubV1Range/start": start
39399+
"/apihub:v1/GoogleCloudApihubV1ResourceConfig": google_cloud_apihub_v1_resource_config
39400+
"/apihub:v1/GoogleCloudApihubV1ResourceConfig/actionType": action_type
39401+
"/apihub:v1/GoogleCloudApihubV1ResourceConfig/pubsubTopic": pubsub_topic
3939139402
"/apihub:v1/GoogleCloudApihubV1RuntimeProjectAttachment": google_cloud_apihub_v1_runtime_project_attachment
3939239403
"/apihub:v1/GoogleCloudApihubV1RuntimeProjectAttachment/createTime": create_time
3939339404
"/apihub:v1/GoogleCloudApihubV1RuntimeProjectAttachment/name": name
@@ -39744,6 +39755,9 @@
3974439755
"/apihub:v1/apihub.projects.locations.plugins.instances.list/pageSize": page_size
3974539756
"/apihub:v1/apihub.projects.locations.plugins.instances.list/pageToken": page_token
3974639757
"/apihub:v1/apihub.projects.locations.plugins.instances.list/parent": parent
39758+
"/apihub:v1/apihub.projects.locations.plugins.instances.patch": patch_project_location_plugin_instance
39759+
"/apihub:v1/apihub.projects.locations.plugins.instances.patch/name": name
39760+
"/apihub:v1/apihub.projects.locations.plugins.instances.patch/updateMask": update_mask
3974739761
"/apihub:v1/apihub.projects.locations.plugins.list": list_project_location_plugins
3974839762
"/apihub:v1/apihub.projects.locations.plugins.list/filter": filter
3974939763
"/apihub:v1/apihub.projects.locations.plugins.list/pageSize": page_size

generated/google-apis-apihub_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-apihub_v1
22

3+
### v0.5.0 (2025-07-06)
4+
5+
* Regenerated from discovery document revision 20250701
6+
37
### v0.4.0 (2025-06-22)
48

59
* Regenerated from discovery document revision 20250611

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

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,6 +1461,11 @@ class GoogleCloudApihubV1Deployment
14611461
# @return [Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues]
14621462
attr_accessor :environment
14631463

1464+
# The attribute values associated with resource.
1465+
# Corresponds to the JSON property `managementUrl`
1466+
# @return [Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues]
1467+
attr_accessor :management_url
1468+
14641469
# Identifier. The name of the deployment. Format: `projects/`project`/locations/`
14651470
# location`/deployments/`deployment``
14661471
# Corresponds to the JSON property `name`
@@ -1479,12 +1484,30 @@ class GoogleCloudApihubV1Deployment
14791484
# @return [Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues]
14801485
attr_accessor :slo
14811486

1487+
# Optional. The environment at source for the deployment. For example: prod, dev,
1488+
# staging, etc.
1489+
# Corresponds to the JSON property `sourceEnvironment`
1490+
# @return [String]
1491+
attr_accessor :source_environment
1492+
14821493
# Output only. The list of sources and metadata from the sources of the
14831494
# deployment.
14841495
# Corresponds to the JSON property `sourceMetadata`
14851496
# @return [Array<Google::Apis::ApihubV1::GoogleCloudApihubV1SourceMetadata>]
14861497
attr_accessor :source_metadata
14871498

1499+
# Optional. The project to which the deployment belongs. For GCP gateways, this
1500+
# will refer to the project identifier. For others like Edge/OPDK, this will
1501+
# refer to the org identifier.
1502+
# Corresponds to the JSON property `sourceProject`
1503+
# @return [String]
1504+
attr_accessor :source_project
1505+
1506+
# The attribute values associated with resource.
1507+
# Corresponds to the JSON property `sourceUri`
1508+
# @return [Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues]
1509+
attr_accessor :source_uri
1510+
14881511
# Output only. The time at which the deployment was last updated.
14891512
# Corresponds to the JSON property `updateTime`
14901513
# @return [String]
@@ -1505,10 +1528,14 @@ def update!(**args)
15051528
@documentation = args[:documentation] if args.key?(:documentation)
15061529
@endpoints = args[:endpoints] if args.key?(:endpoints)
15071530
@environment = args[:environment] if args.key?(:environment)
1531+
@management_url = args[:management_url] if args.key?(:management_url)
15081532
@name = args[:name] if args.key?(:name)
15091533
@resource_uri = args[:resource_uri] if args.key?(:resource_uri)
15101534
@slo = args[:slo] if args.key?(:slo)
1535+
@source_environment = args[:source_environment] if args.key?(:source_environment)
15111536
@source_metadata = args[:source_metadata] if args.key?(:source_metadata)
1537+
@source_project = args[:source_project] if args.key?(:source_project)
1538+
@source_uri = args[:source_uri] if args.key?(:source_uri)
15121539
@update_time = args[:update_time] if args.key?(:update_time)
15131540
end
15141541
end
@@ -2734,6 +2761,11 @@ class GoogleCloudApihubV1Plugin
27342761
# @return [Google::Apis::ApihubV1::GoogleCloudApihubV1Documentation]
27352762
attr_accessor :documentation
27362763

2764+
# Optional. The type of the gateway.
2765+
# Corresponds to the JSON property `gatewayType`
2766+
# @return [String]
2767+
attr_accessor :gateway_type
2768+
27372769
# The information related to the service implemented by the plugin developer,
27382770
# used to invoke the plugin's functionality.
27392771
# Corresponds to the JSON property `hostingService`
@@ -2787,6 +2819,7 @@ def update!(**args)
27872819
@description = args[:description] if args.key?(:description)
27882820
@display_name = args[:display_name] if args.key?(:display_name)
27892821
@documentation = args[:documentation] if args.key?(:documentation)
2822+
@gateway_type = args[:gateway_type] if args.key?(:gateway_type)
27902823
@hosting_service = args[:hosting_service] if args.key?(:hosting_service)
27912824
@name = args[:name] if args.key?(:name)
27922825
@ownership_type = args[:ownership_type] if args.key?(:ownership_type)
@@ -2885,6 +2918,13 @@ class GoogleCloudApihubV1PluginInstance
28852918
# @return [String]
28862919
attr_accessor :name
28872920

2921+
# Optional. The source project id of the plugin instance. This will be the id of
2922+
# runtime project in case of gcp based plugins and org id in case of non gcp
2923+
# based plugins. This is a required field.
2924+
# Corresponds to the JSON property `sourceProjectId`
2925+
# @return [String]
2926+
attr_accessor :source_project_id
2927+
28882928
# Output only. The current state of the plugin instance (e.g., enabled, disabled,
28892929
# provisioning).
28902930
# Corresponds to the JSON property `state`
@@ -2909,6 +2949,7 @@ def update!(**args)
29092949
@display_name = args[:display_name] if args.key?(:display_name)
29102950
@error_message = args[:error_message] if args.key?(:error_message)
29112951
@name = args[:name] if args.key?(:name)
2952+
@source_project_id = args[:source_project_id] if args.key?(:source_project_id)
29122953
@state = args[:state] if args.key?(:state)
29132954
@update_time = args[:update_time] if args.key?(:update_time)
29142955
end
@@ -2935,6 +2976,11 @@ class GoogleCloudApihubV1PluginInstanceAction
29352976
# @return [Google::Apis::ApihubV1::GoogleCloudApihubV1ExecutionStatus]
29362977
attr_accessor :hub_instance_action
29372978

2979+
# The configuration of resources created for a given plugin instance action.
2980+
# Corresponds to the JSON property `resourceConfig`
2981+
# @return [Google::Apis::ApihubV1::GoogleCloudApihubV1ResourceConfig]
2982+
attr_accessor :resource_config
2983+
29382984
# Optional. The schedule for this plugin instance action. This can only be set
29392985
# if the plugin supports API_HUB_SCHEDULE_TRIGGER mode for this action.
29402986
# Corresponds to the JSON property `scheduleCronExpression`
@@ -2947,6 +2993,12 @@ class GoogleCloudApihubV1PluginInstanceAction
29472993
# @return [String]
29482994
attr_accessor :schedule_time_zone
29492995

2996+
# Optional. The service account used to publish data. Note, the service account
2997+
# will only be accepted for non GCP plugins like OPDK.
2998+
# Corresponds to the JSON property `serviceAccount`
2999+
# @return [String]
3000+
attr_accessor :service_account
3001+
29503002
# Output only. The current state of the plugin action in the plugin instance.
29513003
# Corresponds to the JSON property `state`
29523004
# @return [String]
@@ -2961,8 +3013,10 @@ def update!(**args)
29613013
@action_id = args[:action_id] if args.key?(:action_id)
29623014
@curation_config = args[:curation_config] if args.key?(:curation_config)
29633015
@hub_instance_action = args[:hub_instance_action] if args.key?(:hub_instance_action)
3016+
@resource_config = args[:resource_config] if args.key?(:resource_config)
29643017
@schedule_cron_expression = args[:schedule_cron_expression] if args.key?(:schedule_cron_expression)
29653018
@schedule_time_zone = args[:schedule_time_zone] if args.key?(:schedule_time_zone)
3019+
@service_account = args[:service_account] if args.key?(:service_account)
29663020
@state = args[:state] if args.key?(:state)
29673021
end
29683022
end
@@ -3070,6 +3124,32 @@ def update!(**args)
30703124
end
30713125
end
30723126

3127+
# The configuration of resources created for a given plugin instance action.
3128+
class GoogleCloudApihubV1ResourceConfig
3129+
include Google::Apis::Core::Hashable
3130+
3131+
# Output only. The type of the action.
3132+
# Corresponds to the JSON property `actionType`
3133+
# @return [String]
3134+
attr_accessor :action_type
3135+
3136+
# Output only. The pubsub topic to publish the data to. Format is projects/`
3137+
# project`/topics/`topic`
3138+
# Corresponds to the JSON property `pubsubTopic`
3139+
# @return [String]
3140+
attr_accessor :pubsub_topic
3141+
3142+
def initialize(**args)
3143+
update!(**args)
3144+
end
3145+
3146+
# Update properties of this object
3147+
def update!(**args)
3148+
@action_type = args[:action_type] if args.key?(:action_type)
3149+
@pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
3150+
end
3151+
end
3152+
30733153
# Runtime project attachment represents an attachment from the runtime project
30743154
# to the host project. Api Hub looks for deployments in the attached runtime
30753155
# projects and creates corresponding resources in Api Hub for the discovered

generated/google-apis-apihub_v1/lib/google/apis/apihub_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 ApihubV1
1818
# Version of the google-apis-apihub_v1 gem
19-
GEM_VERSION = "0.4.0"
19+
GEM_VERSION = "0.5.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 = "20250611"
25+
REVISION = "20250701"
2626
end
2727
end
2828
end

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
508508
include Google::Apis::Core::JsonObjectSupport
509509
end
510510

511+
class GoogleCloudApihubV1ResourceConfig
512+
class Representation < Google::Apis::Core::JsonRepresentation; end
513+
514+
include Google::Apis::Core::JsonObjectSupport
515+
end
516+
511517
class GoogleCloudApihubV1RuntimeProjectAttachment
512518
class Representation < Google::Apis::Core::JsonRepresentation; end
513519

@@ -1049,12 +1055,18 @@ class Representation < Google::Apis::Core::JsonRepresentation
10491055
collection :endpoints, as: 'endpoints'
10501056
property :environment, as: 'environment', class: Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues, decorator: Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues::Representation
10511057

1058+
property :management_url, as: 'managementUrl', class: Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues, decorator: Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues::Representation
1059+
10521060
property :name, as: 'name'
10531061
property :resource_uri, as: 'resourceUri'
10541062
property :slo, as: 'slo', class: Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues, decorator: Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues::Representation
10551063

1064+
property :source_environment, as: 'sourceEnvironment'
10561065
collection :source_metadata, as: 'sourceMetadata', class: Google::Apis::ApihubV1::GoogleCloudApihubV1SourceMetadata, decorator: Google::Apis::ApihubV1::GoogleCloudApihubV1SourceMetadata::Representation
10571066

1067+
property :source_project, as: 'sourceProject'
1068+
property :source_uri, as: 'sourceUri', class: Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues, decorator: Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues::Representation
1069+
10581070
property :update_time, as: 'updateTime'
10591071
end
10601072
end
@@ -1454,6 +1466,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
14541466
property :display_name, as: 'displayName'
14551467
property :documentation, as: 'documentation', class: Google::Apis::ApihubV1::GoogleCloudApihubV1Documentation, decorator: Google::Apis::ApihubV1::GoogleCloudApihubV1Documentation::Representation
14561468

1469+
property :gateway_type, as: 'gatewayType'
14571470
property :hosting_service, as: 'hostingService', class: Google::Apis::ApihubV1::GoogleCloudApihubV1HostingService, decorator: Google::Apis::ApihubV1::GoogleCloudApihubV1HostingService::Representation
14581471

14591472
property :name, as: 'name'
@@ -1489,6 +1502,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
14891502
property :display_name, as: 'displayName'
14901503
property :error_message, as: 'errorMessage'
14911504
property :name, as: 'name'
1505+
property :source_project_id, as: 'sourceProjectId'
14921506
property :state, as: 'state'
14931507
property :update_time, as: 'updateTime'
14941508
end
@@ -1502,8 +1516,11 @@ class Representation < Google::Apis::Core::JsonRepresentation
15021516

15031517
property :hub_instance_action, as: 'hubInstanceAction', class: Google::Apis::ApihubV1::GoogleCloudApihubV1ExecutionStatus, decorator: Google::Apis::ApihubV1::GoogleCloudApihubV1ExecutionStatus::Representation
15041518

1519+
property :resource_config, as: 'resourceConfig', class: Google::Apis::ApihubV1::GoogleCloudApihubV1ResourceConfig, decorator: Google::Apis::ApihubV1::GoogleCloudApihubV1ResourceConfig::Representation
1520+
15051521
property :schedule_cron_expression, as: 'scheduleCronExpression'
15061522
property :schedule_time_zone, as: 'scheduleTimeZone'
1523+
property :service_account, as: 'serviceAccount'
15071524
property :state, as: 'state'
15081525
end
15091526
end
@@ -1542,6 +1559,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
15421559
end
15431560
end
15441561

1562+
class GoogleCloudApihubV1ResourceConfig
1563+
# @private
1564+
class Representation < Google::Apis::Core::JsonRepresentation
1565+
property :action_type, as: 'actionType'
1566+
property :pubsub_topic, as: 'pubsubTopic'
1567+
end
1568+
end
1569+
15451570
class GoogleCloudApihubV1RuntimeProjectAttachment
15461571
# @private
15471572
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)