google-apis-discoveryengine_v1 0.45.0 → 0.47.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.
@@ -51,6 +51,51 @@ module Google
51
51
  @batch_path = 'batch'
52
52
  end
53
53
 
54
+ # Downloads a file from the session.
55
+ # @param [String] name
56
+ # Required. The resource name of the Session. Format: `projects/`project`/
57
+ # locations/`location`/collections/`collection`/engines/`engine`/sessions/`
58
+ # session``
59
+ # @param [String] file_id
60
+ # Required. The ID of the file to be downloaded.
61
+ # @param [String] view_id
62
+ # Optional. The ID of the view to be downloaded.
63
+ # @param [String] fields
64
+ # Selector specifying which fields to include in a partial response.
65
+ # @param [String] quota_user
66
+ # Available to use for quota purposes for server-side applications. Can be any
67
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
68
+ # @param [IO, String] download_dest
69
+ # IO stream or filename to receive content download
70
+ # @param [Google::Apis::RequestOptions] options
71
+ # Request-specific options
72
+ #
73
+ # @yield [result, err] Result & error if block supplied
74
+ # @yieldparam result [Google::Apis::DiscoveryengineV1::GdataMedia] parsed result object
75
+ # @yieldparam err [StandardError] error object if request failed
76
+ #
77
+ # @return [Google::Apis::DiscoveryengineV1::GdataMedia]
78
+ #
79
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
80
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
82
+ def download_medium(name, file_id: nil, view_id: nil, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block)
83
+ if download_dest.nil?
84
+ command = make_simple_command(:get, 'v1/{+name}:downloadFile', options)
85
+ else
86
+ command = make_download_command(:get, 'v1/{+name}:downloadFile', options)
87
+ command.download_dest = download_dest
88
+ end
89
+ command.response_representation = Google::Apis::DiscoveryengineV1::GdataMedia::Representation
90
+ command.response_class = Google::Apis::DiscoveryengineV1::GdataMedia
91
+ command.params['name'] = name unless name.nil?
92
+ command.query['fileId'] = file_id unless file_id.nil?
93
+ command.query['viewId'] = view_id unless view_id.nil?
94
+ command.query['fields'] = fields unless fields.nil?
95
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
96
+ execute_or_queue_command(command, &block)
97
+ end
98
+
54
99
  # Provisions the project resource. During the process, related systems will get
55
100
  # prepared and initialized. Caller must read the [Terms for data use](https://
56
101
  # cloud.google.com/retail/data-use-terms), and optionally specify in request to
@@ -2461,9 +2506,12 @@ module Google
2461
2506
  # Required. The data store resource name. Format: `projects/`project`/locations/`
2462
2507
  # location`/collections/`collection`/dataStores/`data_store_id``
2463
2508
  # @param [String] filter
2464
- # A filter to apply on the list results. The supported features are:
2465
- # user_pseudo_id, state, starred. Examples: "user_pseudo_id = some_id" "starred =
2466
- # true"
2509
+ # A comma-separated list of fields to filter by, in EBNF grammar. The supported
2510
+ # fields are: * `user_pseudo_id` * `state` * `display_name` * `starred` * `
2511
+ # is_pinned` * `labels` * `create_time` * `update_time` Examples: * `
2512
+ # user_pseudo_id = some_id` * `display_name = "some_name"` * `starred = true` * `
2513
+ # is_pinned=true AND (NOT labels:hidden)` * `create_time > "1970-01-01T12:00:00Z"
2514
+ # `
2467
2515
  # @param [String] order_by
2468
2516
  # A comma-separated list of fields to order by, sorted in ascending order. Use "
2469
2517
  # desc" after a field name for descending. Supported fields: * `update_time` * `
@@ -3654,6 +3702,76 @@ module Google
3654
3702
  execute_or_queue_command(command, &block)
3655
3703
  end
3656
3704
 
3705
+ # Gets an Assistant.
3706
+ # @param [String] name
3707
+ # Required. Resource name of Assistant. Format: `projects/`project`/locations/`
3708
+ # location`/collections/`collection`/engines/`engine`/assistants/`assistant``
3709
+ # @param [String] fields
3710
+ # Selector specifying which fields to include in a partial response.
3711
+ # @param [String] quota_user
3712
+ # Available to use for quota purposes for server-side applications. Can be any
3713
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3714
+ # @param [Google::Apis::RequestOptions] options
3715
+ # Request-specific options
3716
+ #
3717
+ # @yield [result, err] Result & error if block supplied
3718
+ # @yieldparam result [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Assistant] parsed result object
3719
+ # @yieldparam err [StandardError] error object if request failed
3720
+ #
3721
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Assistant]
3722
+ #
3723
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3724
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3725
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3726
+ def get_project_location_collection_engine_assistant(name, fields: nil, quota_user: nil, options: nil, &block)
3727
+ command = make_simple_command(:get, 'v1/{+name}', options)
3728
+ command.response_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Assistant::Representation
3729
+ command.response_class = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Assistant
3730
+ command.params['name'] = name unless name.nil?
3731
+ command.query['fields'] = fields unless fields.nil?
3732
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3733
+ execute_or_queue_command(command, &block)
3734
+ end
3735
+
3736
+ # Updates an Assistant
3737
+ # @param [String] name
3738
+ # Immutable. Resource name of the assistant. Format: `projects/`project`/
3739
+ # locations/`location`/collections/`collection`/engines/`engine`/assistants/`
3740
+ # assistant`` It must be a UTF-8 encoded string with a length limit of 1024
3741
+ # characters.
3742
+ # @param [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Assistant] google_cloud_discoveryengine_v1_assistant_object
3743
+ # @param [String] update_mask
3744
+ # The list of fields to update.
3745
+ # @param [String] fields
3746
+ # Selector specifying which fields to include in a partial response.
3747
+ # @param [String] quota_user
3748
+ # Available to use for quota purposes for server-side applications. Can be any
3749
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3750
+ # @param [Google::Apis::RequestOptions] options
3751
+ # Request-specific options
3752
+ #
3753
+ # @yield [result, err] Result & error if block supplied
3754
+ # @yieldparam result [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Assistant] parsed result object
3755
+ # @yieldparam err [StandardError] error object if request failed
3756
+ #
3757
+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Assistant]
3758
+ #
3759
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3760
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3761
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3762
+ def patch_project_location_collection_engine_assistant(name, google_cloud_discoveryengine_v1_assistant_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3763
+ command = make_simple_command(:patch, 'v1/{+name}', options)
3764
+ command.request_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Assistant::Representation
3765
+ command.request_object = google_cloud_discoveryengine_v1_assistant_object
3766
+ command.response_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Assistant::Representation
3767
+ command.response_class = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Assistant
3768
+ command.params['name'] = name unless name.nil?
3769
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3770
+ command.query['fields'] = fields unless fields.nil?
3771
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3772
+ execute_or_queue_command(command, &block)
3773
+ end
3774
+
3657
3775
  # Assists the user with a query in a streaming fashion.
3658
3776
  # @param [String] name
3659
3777
  # Required. The resource name of the Assistant. Format: `projects/`project`/
@@ -4607,9 +4725,12 @@ module Google
4607
4725
  # Required. The data store resource name. Format: `projects/`project`/locations/`
4608
4726
  # location`/collections/`collection`/dataStores/`data_store_id``
4609
4727
  # @param [String] filter
4610
- # A filter to apply on the list results. The supported features are:
4611
- # user_pseudo_id, state, starred. Examples: "user_pseudo_id = some_id" "starred =
4612
- # true"
4728
+ # A comma-separated list of fields to filter by, in EBNF grammar. The supported
4729
+ # fields are: * `user_pseudo_id` * `state` * `display_name` * `starred` * `
4730
+ # is_pinned` * `labels` * `create_time` * `update_time` Examples: * `
4731
+ # user_pseudo_id = some_id` * `display_name = "some_name"` * `starred = true` * `
4732
+ # is_pinned=true AND (NOT labels:hidden)` * `create_time > "1970-01-01T12:00:00Z"
4733
+ # `
4613
4734
  # @param [String] order_by
4614
4735
  # A comma-separated list of fields to order by, sorted in ascending order. Use "
4615
4736
  # desc" after a field name for descending. Supported fields: * `update_time` * `
@@ -6748,9 +6869,12 @@ module Google
6748
6869
  # Required. The data store resource name. Format: `projects/`project`/locations/`
6749
6870
  # location`/collections/`collection`/dataStores/`data_store_id``
6750
6871
  # @param [String] filter
6751
- # A filter to apply on the list results. The supported features are:
6752
- # user_pseudo_id, state, starred. Examples: "user_pseudo_id = some_id" "starred =
6753
- # true"
6872
+ # A comma-separated list of fields to filter by, in EBNF grammar. The supported
6873
+ # fields are: * `user_pseudo_id` * `state` * `display_name` * `starred` * `
6874
+ # is_pinned` * `labels` * `create_time` * `update_time` Examples: * `
6875
+ # user_pseudo_id = some_id` * `display_name = "some_name"` * `starred = true` * `
6876
+ # is_pinned=true AND (NOT labels:hidden)` * `create_time > "1970-01-01T12:00:00Z"
6877
+ # `
6754
6878
  # @param [String] order_by
6755
6879
  # A comma-separated list of fields to order by, sorted in ascending order. Use "
6756
6880
  # desc" after a field name for descending. Supported fields: * `update_time` * `
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-discoveryengine_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.45.0
4
+ version: 0.47.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-discoveryengine_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1/v0.45.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1/v0.47.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1
62
62
  rdoc_options: []
63
63
  require_paths: