google-apis-apihub_v1 0.3.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: 2ecedb604854a7723bd68db689745783df7a751e7e041455e0ba400d85ebaec1
4
- data.tar.gz: 5ac7853378dcae3745e3badcce31f5c44a2807371a44d70df634436d70213656
3
+ metadata.gz: 7e0ea98298a789d309e7f622b205bdc4d4e7d3e4a5e96c84265ce98127ca12cf
4
+ data.tar.gz: 13508509c72cbcc8ad2e5e88150719cbc55741bbed57f8c667e5930b9cae989b
5
5
  SHA512:
6
- metadata.gz: 31ae16fd97a8e8c43b602cd3344d9bdc14e06eddb1bb77fe4222e970a48a039b8b8a67647fa4af5299da5963a786c84dcc3271883222f7271bdb305f05a16c5d
7
- data.tar.gz: b0d8e8ea0dc82b51ad325cbc3ab403777617daf1e7c7b5ded214b95e135ed9a6aaad8f9d077a4b8f91659fa5676dc59b44ec67cd30455d45879c28ba449f9937
6
+ metadata.gz: a1121749233425ca65294120223773427129605d2795ae6ad6da0501cee7bf32441dd83119d07057af7a420ea26d77353dfc2ec35bb7d24d2bcd87e7e87081f8
7
+ data.tar.gz: fa4e97bdcf59dc779c74b6d63ffd719f8fbec50d3e68a1d9e9917c5a1549dc37f225f1ff21bb35fc5ef64c2ea1bdd9e0bb768d8e686c93dde18d9733b55122bc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.4.0 (2025-06-22)
8
+
9
+ * Regenerated from discovery document revision 20250611
10
+
3
11
  ### v0.3.0 (2025-06-01)
4
12
 
5
13
  * Regenerated from discovery document revision 20250526
@@ -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.3.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 = "20250526"
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
@@ -531,33 +531,37 @@ module Google
531
531
  # json_values.values` - The allowed value of the user defined JSON attribute
532
532
  # associated with the Resource. Allowed comparison operator is `:`. Here user-
533
533
  # defined-attribute-json is a placeholder that can be replaced with any user
534
- # defined JSON attribute name. Expressions are combined with either `AND` logic
535
- # operator or `OR` logical operator but not both of them together i.e. only one
536
- # of the `AND` or `OR` operator can be used throughout the filter string and
537
- # both the operators cannot be used together. No other logical operators are
538
- # supported. At most three filter fields are allowed in the filter string and if
539
- # provided more than that then `INVALID_ARGUMENT` error is returned by the API.
540
- # Here are a few examples: * `owner.email = \"apihub@google.com\"` - - The owner
541
- # team email is _apihub@google.com_. * `owner.email = \"apihub@google.com\" AND
542
- # create_time < \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:
543
- # 00Z\"` - The owner team email is _apihub@google.com_ and the api was created
544
- # before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. * `owner.
545
- # email = \"apihub@google.com\" OR team.enum_values.values.id: apihub-team-id` -
546
- # The filter string specifies the APIs where the owner team email is _apihub@
547
- # google.com_ or the id of the allowed value associated with the team attribute
548
- # is _apihub-team-id_. * `owner.email = \"apihub@google.com\" OR team.
549
- # enum_values.values.display_name: ApiHub Team` - The filter string specifies
550
- # the APIs where the owner team email is _apihub@google.com_ or the display name
551
- # of the allowed value associated with the team attribute is `ApiHub Team`. * `
552
- # owner.email = \"apihub@google.com\" AND attributes.projects/test-project-id/
553
- # locations/test-location-id/ attributes/17650f90-4a29-4971-b3c0-d5532da3764b.
554
- # enum_values.values.id: test_enum_id AND attributes.projects/test-project-id/
555
- # locations/test-location-id/ attributes/1765\0f90-4a29-5431-b3d0-d5532da3764c.
556
- # string_values.values: test_string_value` - The filter string specifies the
557
- # APIs where the owner team email is _apihub@google.com_ and the id of the
558
- # allowed value associated with the user defined attribute of type enum is
559
- # _test_enum_id_ and the value of the user defined attribute of type string is
560
- # _test_..
534
+ # defined JSON attribute name. A filter function is also supported in the filter
535
+ # string. The filter function is `id(name)`. The `id(name)` function returns the
536
+ # id of the resource name. For example, `id(name) = \"api-1\"` is equivalent to `
537
+ # name = \"projects/test-project-id/locations/test-location-id/apis/api-1\"`
538
+ # provided the parent is `projects/test-project-id/locations/test-location-id`.
539
+ # Expressions are combined with either `AND` logic operator or `OR` logical
540
+ # operator but not both of them together i.e. only one of the `AND` or `OR`
541
+ # operator can be used throughout the filter string and both the operators
542
+ # cannot be used together. No other logical operators are supported. At most
543
+ # three filter fields are allowed in the filter string and if provided more than
544
+ # that then `INVALID_ARGUMENT` error is returned by the API. Here are a few
545
+ # examples: * `owner.email = \"apihub@google.com\"` - - The owner team email is
546
+ # _apihub@google.com_. * `owner.email = \"apihub@google.com\" AND create_time < \
547
+ # "2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - The
548
+ # owner team email is _apihub@google.com_ and the api was created before _2021-
549
+ # 08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. * `owner.email = \"
550
+ # apihub@google.com\" OR team.enum_values.values.id: apihub-team-id` - The
551
+ # filter string specifies the APIs where the owner team email is _apihub@google.
552
+ # com_ or the id of the allowed value associated with the team attribute is
553
+ # _apihub-team-id_. * `owner.email = \"apihub@google.com\" OR team.enum_values.
554
+ # values.display_name: ApiHub Team` - The filter string specifies the APIs where
555
+ # the owner team email is _apihub@google.com_ or the display name of the allowed
556
+ # value associated with the team attribute is `ApiHub Team`. * `owner.email = \"
557
+ # apihub@google.com\" AND attributes.projects/test-project-id/locations/test-
558
+ # location-id/ attributes/17650f90-4a29-4971-b3c0-d5532da3764b.enum_values.
559
+ # values.id: test_enum_id AND attributes.projects/test-project-id/locations/test-
560
+ # location-id/ attributes/1765\0f90-4a29-5431-b3d0-d5532da3764c.string_values.
561
+ # values: test_string_value` - The filter string specifies the APIs where the
562
+ # owner team email is _apihub@google.com_ and the id of the allowed value
563
+ # associated with the user defined attribute of type enum is _test_enum_id_ and
564
+ # the value of the user defined attribute of type string is _test_..
561
565
  # @param [Fixnum] page_size
562
566
  # Optional. The maximum number of API resources to return. The service may
563
567
  # return fewer than this value. If unspecified, at most 50 Apis will be returned.
@@ -2312,7 +2316,12 @@ module Google
2312
2316
  # json_values.values` - The allowed value of the user defined JSON attribute
2313
2317
  # associated with the Resource. Allowed comparison operator is `:`. Here user-
2314
2318
  # defined-attribute-json is a placeholder that can be replaced with any user
2315
- # defined JSON attribute name. Expressions are combined with either `AND` logic
2319
+ # defined JSON attribute name. A filter function is also supported in the filter
2320
+ # string. The filter function is `id(name)`. The `id(name)` function returns the
2321
+ # id of the resource name. For example, `id(name) = \"deployment-1\"` is
2322
+ # equivalent to `name = \"projects/test-project-id/locations/test-location-id/
2323
+ # deployments/deployment-1\"` provided the parent is `projects/test-project-id/
2324
+ # locations/test-location-id`. Expressions are combined with either `AND` logic
2316
2325
  # operator or `OR` logical operator but not both of them together i.e. only one
2317
2326
  # of the `AND` or `OR` operator can be used throughout the filter string and
2318
2327
  # both the operators cannot be used together. No other logical operators are
@@ -2379,8 +2388,8 @@ module Google
2379
2388
  # Update a deployment resource in the API hub. The following fields in the
2380
2389
  # deployment resource can be updated: * display_name * description *
2381
2390
  # documentation * deployment_type * resource_uri * endpoints * slo * environment
2382
- # * attributes The update_mask should be used to specify the fields being
2383
- # updated.
2391
+ # * attributes * source_project * source_environment * management_url *
2392
+ # source_uri The update_mask should be used to specify the fields being updated.
2384
2393
  # @param [String] name
2385
2394
  # Identifier. The name of the deployment. Format: `projects/`project`/locations/`
2386
2395
  # location`/deployments/`deployment``
@@ -3397,14 +3406,19 @@ module Google
3397
3406
  # filtering. The value must be a string. The comparison operator must be one of:
3398
3407
  # `<`, `>` or `=`. Filters are not case sensitive. The following fields in the `
3399
3408
  # PluginInstances` are eligible for filtering: * `state` - The state of the
3400
- # Plugin Instance. Allowed comparison operators: `=`. Expressions are combined
3401
- # with either `AND` logic operator or `OR` logical operator but not both of them
3402
- # together i.e. only one of the `AND` or `OR` operator can be used throughout
3403
- # the filter string and both the operators cannot be used together. No other
3404
- # logical operators are supported. At most three filter fields are allowed in
3405
- # the filter string and if provided more than that then `INVALID_ARGUMENT` error
3406
- # is returned by the API. Here are a few examples: * `state = ENABLED` - The
3407
- # plugin instance is in enabled state.
3409
+ # Plugin Instance. Allowed comparison operators: `=`. A filter function is also
3410
+ # supported in the filter string. The filter function is `id(name)`. The `id(
3411
+ # name)` function returns the id of the resource name. For example, `id(name) = \
3412
+ # "plugin-instance-1\"` is equivalent to `name = \"projects/test-project-id/
3413
+ # locations/test-location-id/plugins/plugin-1/instances/plugin-instance-1\"`
3414
+ # provided the parent is `projects/test-project-id/locations/test-location-id/
3415
+ # plugins/plugin-1`. Expressions are combined with either `AND` logic operator
3416
+ # or `OR` logical operator but not both of them together i.e. only one of the `
3417
+ # AND` or `OR` operator can be used throughout the filter string and both the
3418
+ # operators cannot be used together. No other logical operators are supported.
3419
+ # At most three filter fields are allowed in the filter string and if provided
3420
+ # more than that then `INVALID_ARGUMENT` error is returned by the API. Here are
3421
+ # a few examples: * `state = ENABLED` - The plugin instance is in enabled state.
3408
3422
  # @param [Fixnum] page_size
3409
3423
  # Optional. The maximum number of hub plugins to return. The service may return
3410
3424
  # fewer than this value. If unspecified, at most 50 hub plugins will be returned.
@@ -3444,6 +3458,47 @@ module Google
3444
3458
  execute_or_queue_command(command, &block)
3445
3459
  end
3446
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
+
3447
3502
  # Get the contents of the style guide.
3448
3503
  # @param [String] name
3449
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.3.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.3.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: