@@ -1461,6 +1461,11 @@ class GoogleCloudApihubV1Deployment
1461
1461
# @return [Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues]
1462
1462
attr_accessor :environment
1463
1463
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
+
1464
1469
# Identifier. The name of the deployment. Format: `projects/`project`/locations/`
1465
1470
# location`/deployments/`deployment``
1466
1471
# Corresponds to the JSON property `name`
@@ -1479,12 +1484,30 @@ class GoogleCloudApihubV1Deployment
1479
1484
# @return [Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues]
1480
1485
attr_accessor :slo
1481
1486
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
+
1482
1493
# Output only. The list of sources and metadata from the sources of the
1483
1494
# deployment.
1484
1495
# Corresponds to the JSON property `sourceMetadata`
1485
1496
# @return [Array<Google::Apis::ApihubV1::GoogleCloudApihubV1SourceMetadata>]
1486
1497
attr_accessor :source_metadata
1487
1498
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
+
1488
1511
# Output only. The time at which the deployment was last updated.
1489
1512
# Corresponds to the JSON property `updateTime`
1490
1513
# @return [String]
@@ -1505,10 +1528,14 @@ def update!(**args)
1505
1528
@documentation = args [ :documentation ] if args . key? ( :documentation )
1506
1529
@endpoints = args [ :endpoints ] if args . key? ( :endpoints )
1507
1530
@environment = args [ :environment ] if args . key? ( :environment )
1531
+ @management_url = args [ :management_url ] if args . key? ( :management_url )
1508
1532
@name = args [ :name ] if args . key? ( :name )
1509
1533
@resource_uri = args [ :resource_uri ] if args . key? ( :resource_uri )
1510
1534
@slo = args [ :slo ] if args . key? ( :slo )
1535
+ @source_environment = args [ :source_environment ] if args . key? ( :source_environment )
1511
1536
@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 )
1512
1539
@update_time = args [ :update_time ] if args . key? ( :update_time )
1513
1540
end
1514
1541
end
@@ -2734,6 +2761,11 @@ class GoogleCloudApihubV1Plugin
2734
2761
# @return [Google::Apis::ApihubV1::GoogleCloudApihubV1Documentation]
2735
2762
attr_accessor :documentation
2736
2763
2764
+ # Optional. The type of the gateway.
2765
+ # Corresponds to the JSON property `gatewayType`
2766
+ # @return [String]
2767
+ attr_accessor :gateway_type
2768
+
2737
2769
# The information related to the service implemented by the plugin developer,
2738
2770
# used to invoke the plugin's functionality.
2739
2771
# Corresponds to the JSON property `hostingService`
@@ -2787,6 +2819,7 @@ def update!(**args)
2787
2819
@description = args [ :description ] if args . key? ( :description )
2788
2820
@display_name = args [ :display_name ] if args . key? ( :display_name )
2789
2821
@documentation = args [ :documentation ] if args . key? ( :documentation )
2822
+ @gateway_type = args [ :gateway_type ] if args . key? ( :gateway_type )
2790
2823
@hosting_service = args [ :hosting_service ] if args . key? ( :hosting_service )
2791
2824
@name = args [ :name ] if args . key? ( :name )
2792
2825
@ownership_type = args [ :ownership_type ] if args . key? ( :ownership_type )
@@ -2885,6 +2918,13 @@ class GoogleCloudApihubV1PluginInstance
2885
2918
# @return [String]
2886
2919
attr_accessor :name
2887
2920
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
+
2888
2928
# Output only. The current state of the plugin instance (e.g., enabled, disabled,
2889
2929
# provisioning).
2890
2930
# Corresponds to the JSON property `state`
@@ -2909,6 +2949,7 @@ def update!(**args)
2909
2949
@display_name = args [ :display_name ] if args . key? ( :display_name )
2910
2950
@error_message = args [ :error_message ] if args . key? ( :error_message )
2911
2951
@name = args [ :name ] if args . key? ( :name )
2952
+ @source_project_id = args [ :source_project_id ] if args . key? ( :source_project_id )
2912
2953
@state = args [ :state ] if args . key? ( :state )
2913
2954
@update_time = args [ :update_time ] if args . key? ( :update_time )
2914
2955
end
@@ -2935,6 +2976,11 @@ class GoogleCloudApihubV1PluginInstanceAction
2935
2976
# @return [Google::Apis::ApihubV1::GoogleCloudApihubV1ExecutionStatus]
2936
2977
attr_accessor :hub_instance_action
2937
2978
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
+
2938
2984
# Optional. The schedule for this plugin instance action. This can only be set
2939
2985
# if the plugin supports API_HUB_SCHEDULE_TRIGGER mode for this action.
2940
2986
# Corresponds to the JSON property `scheduleCronExpression`
@@ -2947,6 +2993,12 @@ class GoogleCloudApihubV1PluginInstanceAction
2947
2993
# @return [String]
2948
2994
attr_accessor :schedule_time_zone
2949
2995
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
+
2950
3002
# Output only. The current state of the plugin action in the plugin instance.
2951
3003
# Corresponds to the JSON property `state`
2952
3004
# @return [String]
@@ -2961,8 +3013,10 @@ def update!(**args)
2961
3013
@action_id = args [ :action_id ] if args . key? ( :action_id )
2962
3014
@curation_config = args [ :curation_config ] if args . key? ( :curation_config )
2963
3015
@hub_instance_action = args [ :hub_instance_action ] if args . key? ( :hub_instance_action )
3016
+ @resource_config = args [ :resource_config ] if args . key? ( :resource_config )
2964
3017
@schedule_cron_expression = args [ :schedule_cron_expression ] if args . key? ( :schedule_cron_expression )
2965
3018
@schedule_time_zone = args [ :schedule_time_zone ] if args . key? ( :schedule_time_zone )
3019
+ @service_account = args [ :service_account ] if args . key? ( :service_account )
2966
3020
@state = args [ :state ] if args . key? ( :state )
2967
3021
end
2968
3022
end
@@ -3070,6 +3124,32 @@ def update!(**args)
3070
3124
end
3071
3125
end
3072
3126
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
+
3073
3153
# Runtime project attachment represents an attachment from the runtime project
3074
3154
# to the host project. Api Hub looks for deployments in the attached runtime
3075
3155
# projects and creates corresponding resources in Api Hub for the discovered
0 commit comments