google-apis-apihub_v1 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc622ccbcc1c476e1acbb415a54c7784036fdee2cdc0084e697e8eab7becaec8
4
- data.tar.gz: 05f2ab56338a6fd7afee586c8bd74e32dacb704f6b244e61b6d71286df2c09e0
3
+ metadata.gz: 7e0ea98298a789d309e7f622b205bdc4d4e7d3e4a5e96c84265ce98127ca12cf
4
+ data.tar.gz: 13508509c72cbcc8ad2e5e88150719cbc55741bbed57f8c667e5930b9cae989b
5
5
  SHA512:
6
- metadata.gz: ed49a4930deb1ec906225d17173f8ad7278f2f5b85c3eedd21b52972ecadc37807cbf2f4a7d871f571521bedca9fe0abc25bd394923e9056427acdf41c3f17d3
7
- data.tar.gz: d441e1105b5daea759ddef7c9ecc101946f015b344719642345b265d47f44af9cbd9d49fd43485f65b7d3d41f588fe24543770511e90bfbaa08ac5b4a66ef4d2
6
+ metadata.gz: a1121749233425ca65294120223773427129605d2795ae6ad6da0501cee7bf32441dd83119d07057af7a420ea26d77353dfc2ec35bb7d24d2bcd87e7e87081f8
7
+ data.tar.gz: fa4e97bdcf59dc779c74b6d63ffd719f8fbec50d3e68a1d9e9917c5a1549dc37f225f1ff21bb35fc5ef64c2ea1bdd9e0bb768d8e686c93dde18d9733b55122bc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-apihub_v1
2
2
 
3
+ ### v0.5.0 (2025-07-06)
4
+
5
+ * Regenerated from discovery document revision 20250701
6
+
3
7
  ### v0.4.0 (2025-06-22)
4
8
 
5
9
  * Regenerated from discovery document revision 20250611
@@ -1461,6 +1461,11 @@ module Google
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 @@ module Google
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 @@ module Google
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 @@ module Google
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 @@ module Google
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 @@ module Google
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 @@ module Google
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 @@ module Google
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 @@ module Google
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 @@ module Google
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 @@ module Google
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
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ApihubV1
18
18
  # Version of the google-apis-apihub_v1 gem
19
- GEM_VERSION = "0.4.0"
19
+ GEM_VERSION = "0.5.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250611"
25
+ REVISION = "20250701"
26
26
  end
27
27
  end
28
28
  end
@@ -508,6 +508,12 @@ module Google
508
508
  include Google::Apis::Core::JsonObjectSupport
509
509
  end
510
510
 
511
+ class GoogleCloudApihubV1ResourceConfig
512
+ class Representation < Google::Apis::Core::JsonRepresentation; end
513
+
514
+ include Google::Apis::Core::JsonObjectSupport
515
+ end
516
+
511
517
  class GoogleCloudApihubV1RuntimeProjectAttachment
512
518
  class Representation < Google::Apis::Core::JsonRepresentation; end
513
519
 
@@ -1049,12 +1055,18 @@ module Google
1049
1055
  collection :endpoints, as: 'endpoints'
1050
1056
  property :environment, as: 'environment', class: Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues, decorator: Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues::Representation
1051
1057
 
1058
+ property :management_url, as: 'managementUrl', class: Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues, decorator: Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues::Representation
1059
+
1052
1060
  property :name, as: 'name'
1053
1061
  property :resource_uri, as: 'resourceUri'
1054
1062
  property :slo, as: 'slo', class: Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues, decorator: Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues::Representation
1055
1063
 
1064
+ property :source_environment, as: 'sourceEnvironment'
1056
1065
  collection :source_metadata, as: 'sourceMetadata', class: Google::Apis::ApihubV1::GoogleCloudApihubV1SourceMetadata, decorator: Google::Apis::ApihubV1::GoogleCloudApihubV1SourceMetadata::Representation
1057
1066
 
1067
+ property :source_project, as: 'sourceProject'
1068
+ property :source_uri, as: 'sourceUri', class: Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues, decorator: Google::Apis::ApihubV1::GoogleCloudApihubV1AttributeValues::Representation
1069
+
1058
1070
  property :update_time, as: 'updateTime'
1059
1071
  end
1060
1072
  end
@@ -1454,6 +1466,7 @@ module Google
1454
1466
  property :display_name, as: 'displayName'
1455
1467
  property :documentation, as: 'documentation', class: Google::Apis::ApihubV1::GoogleCloudApihubV1Documentation, decorator: Google::Apis::ApihubV1::GoogleCloudApihubV1Documentation::Representation
1456
1468
 
1469
+ property :gateway_type, as: 'gatewayType'
1457
1470
  property :hosting_service, as: 'hostingService', class: Google::Apis::ApihubV1::GoogleCloudApihubV1HostingService, decorator: Google::Apis::ApihubV1::GoogleCloudApihubV1HostingService::Representation
1458
1471
 
1459
1472
  property :name, as: 'name'
@@ -1489,6 +1502,7 @@ module Google
1489
1502
  property :display_name, as: 'displayName'
1490
1503
  property :error_message, as: 'errorMessage'
1491
1504
  property :name, as: 'name'
1505
+ property :source_project_id, as: 'sourceProjectId'
1492
1506
  property :state, as: 'state'
1493
1507
  property :update_time, as: 'updateTime'
1494
1508
  end
@@ -1502,8 +1516,11 @@ module Google
1502
1516
 
1503
1517
  property :hub_instance_action, as: 'hubInstanceAction', class: Google::Apis::ApihubV1::GoogleCloudApihubV1ExecutionStatus, decorator: Google::Apis::ApihubV1::GoogleCloudApihubV1ExecutionStatus::Representation
1504
1518
 
1519
+ property :resource_config, as: 'resourceConfig', class: Google::Apis::ApihubV1::GoogleCloudApihubV1ResourceConfig, decorator: Google::Apis::ApihubV1::GoogleCloudApihubV1ResourceConfig::Representation
1520
+
1505
1521
  property :schedule_cron_expression, as: 'scheduleCronExpression'
1506
1522
  property :schedule_time_zone, as: 'scheduleTimeZone'
1523
+ property :service_account, as: 'serviceAccount'
1507
1524
  property :state, as: 'state'
1508
1525
  end
1509
1526
  end
@@ -1542,6 +1559,14 @@ module Google
1542
1559
  end
1543
1560
  end
1544
1561
 
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
+
1545
1570
  class GoogleCloudApihubV1RuntimeProjectAttachment
1546
1571
  # @private
1547
1572
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3458,6 +3458,47 @@ module Google
3458
3458
  execute_or_queue_command(command, &block)
3459
3459
  end
3460
3460
 
3461
+ # Updates a plugin instance in the API hub. The following fields in the
3462
+ # plugin_instance can be updated currently: * display_name *
3463
+ # schedule_cron_expression The update_mask should be used to specify the fields
3464
+ # being updated. To update the auth_config and additional_config of the plugin
3465
+ # instance, use the ApplyPluginInstanceConfig method.
3466
+ # @param [String] name
3467
+ # Identifier. The unique name of the plugin instance resource. Format: `projects/
3468
+ # `project`/locations/`location`/plugins/`plugin`/instances/`instance``
3469
+ # @param [Google::Apis::ApihubV1::GoogleCloudApihubV1PluginInstance] google_cloud_apihub_v1_plugin_instance_object
3470
+ # @param [String] update_mask
3471
+ # Optional. The list of fields to update.
3472
+ # @param [String] fields
3473
+ # Selector specifying which fields to include in a partial response.
3474
+ # @param [String] quota_user
3475
+ # Available to use for quota purposes for server-side applications. Can be any
3476
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3477
+ # @param [Google::Apis::RequestOptions] options
3478
+ # Request-specific options
3479
+ #
3480
+ # @yield [result, err] Result & error if block supplied
3481
+ # @yieldparam result [Google::Apis::ApihubV1::GoogleCloudApihubV1PluginInstance] parsed result object
3482
+ # @yieldparam err [StandardError] error object if request failed
3483
+ #
3484
+ # @return [Google::Apis::ApihubV1::GoogleCloudApihubV1PluginInstance]
3485
+ #
3486
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3487
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3488
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3489
+ def patch_project_location_plugin_instance(name, google_cloud_apihub_v1_plugin_instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3490
+ command = make_simple_command(:patch, 'v1/{+name}', options)
3491
+ command.request_representation = Google::Apis::ApihubV1::GoogleCloudApihubV1PluginInstance::Representation
3492
+ command.request_object = google_cloud_apihub_v1_plugin_instance_object
3493
+ command.response_representation = Google::Apis::ApihubV1::GoogleCloudApihubV1PluginInstance::Representation
3494
+ command.response_class = Google::Apis::ApihubV1::GoogleCloudApihubV1PluginInstance
3495
+ command.params['name'] = name unless name.nil?
3496
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3497
+ command.query['fields'] = fields unless fields.nil?
3498
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3499
+ execute_or_queue_command(command, &block)
3500
+ end
3501
+
3461
3502
  # Get the contents of the style guide.
3462
3503
  # @param [String] name
3463
3504
  # Required. The name of the StyleGuide whose contents need to be retrieved.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-apihub_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-apihub_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-apihub_v1/v0.4.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-apihub_v1/v0.5.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-apihub_v1
62
62
  rdoc_options: []
63
63
  require_paths: