google-apis-discoveryengine_v1alpha 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec8f8082c4de03bd947d1459c082a886341d7488b998a2e560d26f635825b3e5
4
- data.tar.gz: eaa59bc81d66de1a4adec80a727289bc1df3a1f443d62cc02377da136f8bf209
3
+ metadata.gz: 76cc0be63dc858237fa1cccf673e2c6f9676414b45a3ffedac5d2cd0ab7be73a
4
+ data.tar.gz: 8ff052786a416019d29fac0385b113fe52353d3a955181493cb2c1fc2caebf06
5
5
  SHA512:
6
- metadata.gz: 85a336a82551c5e970170ae86df7992da40e655267244bde1371e9388150dc62fa7000b44d3b1d2019e30faed99e3a6451cde0f3873e9be685379488b4e56408
7
- data.tar.gz: 8696b24aada09bc7a4f430bc9f9d50083d007801e93b8fd0a512b9d360becbabb7bdb287eac2ccfa6130d866643bacb4d6fc86188be9ff3cd13980eabd03a781
6
+ metadata.gz: b56c418a1ba9dfbdb6cae5fbc7c30d6cafe859cabd910cdbf2e25283d070793712f6a72c9292ce2e3c5b165442cc643ec849769525b6bc5c906b367bbe539e12
7
+ data.tar.gz: 50d7c1f59779898b6781a860fad61965fbaa8ca745046df4ed5fb46575fe27f2c4801d125c964be39cbd8d79a2c20d35590feb570760bd15c666c55f72e80fd9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-discoveryengine_v1alpha
2
2
 
3
+ ### v0.13.0 (2023-06-25)
4
+
5
+ * Regenerated from discovery document revision 20230620
6
+
3
7
  ### v0.12.0 (2023-05-28)
4
8
 
5
9
  * Regenerated from discovery document revision 20230525
@@ -754,14 +754,14 @@ module Google
754
754
  class GoogleCloudDiscoveryengineV1alphaDocumentInfo
755
755
  include Google::Apis::Core::Hashable
756
756
 
757
- # Required. The Document resource ID.
757
+ # The Document resource ID.
758
758
  # Corresponds to the JSON property `id`
759
759
  # @return [String]
760
760
  attr_accessor :id
761
761
 
762
- # Required. The Document resource full name, of the form: `projects/`project_id`/
763
- # locations/`location`/collections/`collection_id`/dataStores/`data_store_id`/
764
- # branches/`branch_id`/documents/`document_id``
762
+ # The Document resource full name, of the form: `projects/`project_id`/locations/
763
+ # `location`/collections/`collection_id`/dataStores/`data_store_id`/branches/`
764
+ # branch_id`/documents/`document_id``
765
765
  # Corresponds to the JSON property `name`
766
766
  # @return [String]
767
767
  attr_accessor :name
@@ -780,7 +780,7 @@ module Google
780
780
  # @return [Fixnum]
781
781
  attr_accessor :quantity
782
782
 
783
- # Required. The Document url - only allowed for DataStores with content_config
783
+ # The Document url - only allowed for DataStores with content_config
784
784
  # PUBLIC_WEBSITE.
785
785
  # Corresponds to the JSON property `uri`
786
786
  # @return [String]
@@ -811,8 +811,10 @@ module Google
811
811
  # ID set to the first 128 bits of SHA256(URI) encoded as a hex string. * `custom`
812
812
  # : One custom data JSON per row in arbitrary format that conforms the defined
813
813
  # Schema of the data store. This can only be used by the GENERIC Data Store
814
- # vertical. Supported values for user even imports: * `user_event` (default):
815
- # One JSON UserEvent per line.
814
+ # vertical. * `csv`: A CSV file with header conforming the defined Schema of the
815
+ # data store. Each entry after the header will be imported as a Document. This
816
+ # can only be used by the GENERIC Data Store vertical. Supported values for user
817
+ # even imports: * `user_event` (default): One JSON UserEvent per line.
816
818
  # Corresponds to the JSON property `dataSchema`
817
819
  # @return [String]
818
820
  attr_accessor :data_schema
@@ -888,8 +890,8 @@ module Google
888
890
  # If unset or set to `false`, Document.ids have to be specified using id_field,
889
891
  # otherwises, documents without IDs will fail to be imported. Only set this
890
892
  # field when using GcsSource or BigQuerySource, and when GcsSource.data_schema
891
- # or BigQuerySource.data_schema is `custom`. Otherwise, an INVALID_ARGUMENT
892
- # error is thrown.
893
+ # or BigQuerySource.data_schema is `custom` or `csv`. Otherwise, an
894
+ # INVALID_ARGUMENT error is thrown.
893
895
  # Corresponds to the JSON property `autoGenerateIds`
894
896
  # @return [Boolean]
895
897
  attr_accessor :auto_generate_ids
@@ -1403,6 +1405,106 @@ module Google
1403
1405
  end
1404
1406
  end
1405
1407
 
1408
+ # Metadata related to the progress of the PurgeUserEvents operation. This will
1409
+ # be returned by the google.longrunning.Operation.metadata field.
1410
+ class GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata
1411
+ include Google::Apis::Core::Hashable
1412
+
1413
+ # Operation create time.
1414
+ # Corresponds to the JSON property `createTime`
1415
+ # @return [String]
1416
+ attr_accessor :create_time
1417
+
1418
+ # Count of entries that encountered errors while processing.
1419
+ # Corresponds to the JSON property `failureCount`
1420
+ # @return [Fixnum]
1421
+ attr_accessor :failure_count
1422
+
1423
+ # Count of entries that were deleted successfully.
1424
+ # Corresponds to the JSON property `successCount`
1425
+ # @return [Fixnum]
1426
+ attr_accessor :success_count
1427
+
1428
+ # Operation last update time. If the operation is done, this is also the finish
1429
+ # time.
1430
+ # Corresponds to the JSON property `updateTime`
1431
+ # @return [String]
1432
+ attr_accessor :update_time
1433
+
1434
+ def initialize(**args)
1435
+ update!(**args)
1436
+ end
1437
+
1438
+ # Update properties of this object
1439
+ def update!(**args)
1440
+ @create_time = args[:create_time] if args.key?(:create_time)
1441
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
1442
+ @success_count = args[:success_count] if args.key?(:success_count)
1443
+ @update_time = args[:update_time] if args.key?(:update_time)
1444
+ end
1445
+ end
1446
+
1447
+ # Request message for PurgeUserEvents method.
1448
+ class GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest
1449
+ include Google::Apis::Core::Hashable
1450
+
1451
+ # Required. The filter string to specify the events to be deleted with a length
1452
+ # limit of 5,000 characters. The eligible fields for filtering are: * `eventType`
1453
+ # : Double quoted UserEvent.event_type string. * `eventTime`: in ISO 8601 "zulu"
1454
+ # format. * `userPseudoId`: Double quoted string. Specifying this will delete
1455
+ # all events associated with a visitor. * `userId`: Double quoted string.
1456
+ # Specifying this will delete all events associated with a user. Examples: *
1457
+ # Deleting all events in a time range: `eventTime > "2012-04-23T18:25:43.511Z"
1458
+ # eventTime < "2012-04-23T18:30:43.511Z"` * Deleting specific eventType: `
1459
+ # eventType = "search"` * Deleting all events for a specific visitor: `
1460
+ # userPseudoId = "visitor1024"` * Deleting all events inside a DataStore: `*`
1461
+ # The filtering fields are assumed to have an implicit AND.
1462
+ # Corresponds to the JSON property `filter`
1463
+ # @return [String]
1464
+ attr_accessor :filter
1465
+
1466
+ # The `force` field is currently not supported. Purge user event requests will
1467
+ # permanently delete all purgeable events. Once the development is complete: If `
1468
+ # force` is set to false, the method will return the expected purge count
1469
+ # without deleting any user events. This field will default to false if not
1470
+ # included in the request.
1471
+ # Corresponds to the JSON property `force`
1472
+ # @return [Boolean]
1473
+ attr_accessor :force
1474
+ alias_method :force?, :force
1475
+
1476
+ def initialize(**args)
1477
+ update!(**args)
1478
+ end
1479
+
1480
+ # Update properties of this object
1481
+ def update!(**args)
1482
+ @filter = args[:filter] if args.key?(:filter)
1483
+ @force = args[:force] if args.key?(:force)
1484
+ end
1485
+ end
1486
+
1487
+ # Response of the PurgeUserEventsRequest. If the long running operation is
1488
+ # successfully done, then this message is returned by the google.longrunning.
1489
+ # Operations.response field.
1490
+ class GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse
1491
+ include Google::Apis::Core::Hashable
1492
+
1493
+ # The total count of events purged as a result of the operation.
1494
+ # Corresponds to the JSON property `purgeCount`
1495
+ # @return [Fixnum]
1496
+ attr_accessor :purge_count
1497
+
1498
+ def initialize(**args)
1499
+ update!(**args)
1500
+ end
1501
+
1502
+ # Update properties of this object
1503
+ def update!(**args)
1504
+ @purge_count = args[:purge_count] if args.key?(:purge_count)
1505
+ end
1506
+ end
1507
+
1406
1508
  # Request message for Recommend method.
1407
1509
  class GoogleCloudDiscoveryengineV1alphaRecommendRequest
1408
1510
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DiscoveryengineV1alpha
18
18
  # Version of the google-apis-discoveryengine_v1alpha gem
19
- GEM_VERSION = "0.12.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230525"
25
+ REVISION = "20230620"
26
26
  end
27
27
  end
28
28
  end
@@ -250,6 +250,24 @@ module Google
250
250
  include Google::Apis::Core::JsonObjectSupport
251
251
  end
252
252
 
253
+ class GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
253
271
  class GoogleCloudDiscoveryengineV1alphaRecommendRequest
254
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
255
273
 
@@ -753,6 +771,31 @@ module Google
753
771
  end
754
772
  end
755
773
 
774
+ class GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata
775
+ # @private
776
+ class Representation < Google::Apis::Core::JsonRepresentation
777
+ property :create_time, as: 'createTime'
778
+ property :failure_count, :numeric_string => true, as: 'failureCount'
779
+ property :success_count, :numeric_string => true, as: 'successCount'
780
+ property :update_time, as: 'updateTime'
781
+ end
782
+ end
783
+
784
+ class GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest
785
+ # @private
786
+ class Representation < Google::Apis::Core::JsonRepresentation
787
+ property :filter, as: 'filter'
788
+ property :force, as: 'force'
789
+ end
790
+ end
791
+
792
+ class GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse
793
+ # @private
794
+ class Representation < Google::Apis::Core::JsonRepresentation
795
+ property :purge_count, :numeric_string => true, as: 'purgeCount'
796
+ end
797
+ end
798
+
756
799
  class GoogleCloudDiscoveryengineV1alphaRecommendRequest
757
800
  # @private
758
801
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -731,6 +731,44 @@ module Google
731
731
  execute_or_queue_command(command, &block)
732
732
  end
733
733
 
734
+ # Deletes permanently all user events specified by the filter provided.
735
+ # Depending on the number of events specified by the filter, this operation
736
+ # could take hours or days to complete. To test a filter, use the list command
737
+ # first.
738
+ # @param [String] parent
739
+ # Required. The resource name of the catalog under which the events are created.
740
+ # The format is `projects/$`projectId`/locations/global/collections/`$
741
+ # collectionId`/dataStores/$`dataStoreId``
742
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest] google_cloud_discoveryengine_v1alpha_purge_user_events_request_object
743
+ # @param [String] fields
744
+ # Selector specifying which fields to include in a partial response.
745
+ # @param [String] quota_user
746
+ # Available to use for quota purposes for server-side applications. Can be any
747
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
748
+ # @param [Google::Apis::RequestOptions] options
749
+ # Request-specific options
750
+ #
751
+ # @yield [result, err] Result & error if block supplied
752
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation] parsed result object
753
+ # @yieldparam err [StandardError] error object if request failed
754
+ #
755
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation]
756
+ #
757
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
758
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
759
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
760
+ def purge_project_location_collection_data_store_user_event(parent, google_cloud_discoveryengine_v1alpha_purge_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
761
+ command = make_simple_command(:post, 'v1alpha/{+parent}/userEvents:purge', options)
762
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest::Representation
763
+ command.request_object = google_cloud_discoveryengine_v1alpha_purge_user_events_request_object
764
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation::Representation
765
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation
766
+ command.params['parent'] = parent unless parent.nil?
767
+ command.query['fields'] = fields unless fields.nil?
768
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
769
+ execute_or_queue_command(command, &block)
770
+ end
771
+
734
772
  # Writes a single user event.
735
773
  # @param [String] parent
736
774
  # Required. The parent DataStore resource name, such as `projects/`project`/
@@ -1518,6 +1556,44 @@ module Google
1518
1556
  execute_or_queue_command(command, &block)
1519
1557
  end
1520
1558
 
1559
+ # Deletes permanently all user events specified by the filter provided.
1560
+ # Depending on the number of events specified by the filter, this operation
1561
+ # could take hours or days to complete. To test a filter, use the list command
1562
+ # first.
1563
+ # @param [String] parent
1564
+ # Required. The resource name of the catalog under which the events are created.
1565
+ # The format is `projects/$`projectId`/locations/global/collections/`$
1566
+ # collectionId`/dataStores/$`dataStoreId``
1567
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest] google_cloud_discoveryengine_v1alpha_purge_user_events_request_object
1568
+ # @param [String] fields
1569
+ # Selector specifying which fields to include in a partial response.
1570
+ # @param [String] quota_user
1571
+ # Available to use for quota purposes for server-side applications. Can be any
1572
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1573
+ # @param [Google::Apis::RequestOptions] options
1574
+ # Request-specific options
1575
+ #
1576
+ # @yield [result, err] Result & error if block supplied
1577
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation] parsed result object
1578
+ # @yieldparam err [StandardError] error object if request failed
1579
+ #
1580
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation]
1581
+ #
1582
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1583
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1584
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1585
+ def purge_project_location_data_store_user_event(parent, google_cloud_discoveryengine_v1alpha_purge_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1586
+ command = make_simple_command(:post, 'v1alpha/{+parent}/userEvents:purge', options)
1587
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest::Representation
1588
+ command.request_object = google_cloud_discoveryengine_v1alpha_purge_user_events_request_object
1589
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation::Representation
1590
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation
1591
+ command.params['parent'] = parent unless parent.nil?
1592
+ command.query['fields'] = fields unless fields.nil?
1593
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1594
+ execute_or_queue_command(command, &block)
1595
+ end
1596
+
1521
1597
  # Writes a single user event.
1522
1598
  # @param [String] parent
1523
1599
  # Required. The parent DataStore resource name, such as `projects/`project`/
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-discoveryengine_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-28 00:00:00.000000000 Z
11
+ date: 2023-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.12.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.13.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []