google-apis-discoveryengine_v1alpha 0.74.0 → 0.75.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.
@@ -9930,6 +9930,105 @@ module Google
9930
9930
  execute_or_queue_command(command, &block)
9931
9931
  end
9932
9932
 
9933
+ # Batch deletes Notebooks. Needs a side channel with the user's EUC.
9934
+ # @param [String] parent
9935
+ # Required. The parent branch resource name, such as `projects/`project`/
9936
+ # locations/`location``.
9937
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaBatchDeleteNotebooksRequest] google_cloud_notebooklm_v1alpha_batch_delete_notebooks_request_object
9938
+ # @param [String] fields
9939
+ # Selector specifying which fields to include in a partial response.
9940
+ # @param [String] quota_user
9941
+ # Available to use for quota purposes for server-side applications. Can be any
9942
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9943
+ # @param [Google::Apis::RequestOptions] options
9944
+ # Request-specific options
9945
+ #
9946
+ # @yield [result, err] Result & error if block supplied
9947
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleProtobufEmpty] parsed result object
9948
+ # @yieldparam err [StandardError] error object if request failed
9949
+ #
9950
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleProtobufEmpty]
9951
+ #
9952
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9953
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9954
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9955
+ def batch_project_location_notebook_delete(parent, google_cloud_notebooklm_v1alpha_batch_delete_notebooks_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
9956
+ command = make_simple_command(:post, 'v1alpha/{+parent}/notebooks:batchDelete', options)
9957
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaBatchDeleteNotebooksRequest::Representation
9958
+ command.request_object = google_cloud_notebooklm_v1alpha_batch_delete_notebooks_request_object
9959
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleProtobufEmpty::Representation
9960
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleProtobufEmpty
9961
+ command.params['parent'] = parent unless parent.nil?
9962
+ command.query['fields'] = fields unless fields.nil?
9963
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9964
+ execute_or_queue_command(command, &block)
9965
+ end
9966
+
9967
+ # Creates a notebook. Needs a side channel with the user's EUC.
9968
+ # @param [String] parent
9969
+ # Required. The parent resource name, such as `projects/`project`/locations/`
9970
+ # location``.
9971
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaNotebook] google_cloud_notebooklm_v1alpha_notebook_object
9972
+ # @param [String] fields
9973
+ # Selector specifying which fields to include in a partial response.
9974
+ # @param [String] quota_user
9975
+ # Available to use for quota purposes for server-side applications. Can be any
9976
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9977
+ # @param [Google::Apis::RequestOptions] options
9978
+ # Request-specific options
9979
+ #
9980
+ # @yield [result, err] Result & error if block supplied
9981
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaNotebook] parsed result object
9982
+ # @yieldparam err [StandardError] error object if request failed
9983
+ #
9984
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaNotebook]
9985
+ #
9986
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9987
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9988
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9989
+ def create_project_location_notebook(parent, google_cloud_notebooklm_v1alpha_notebook_object = nil, fields: nil, quota_user: nil, options: nil, &block)
9990
+ command = make_simple_command(:post, 'v1alpha/{+parent}/notebooks', options)
9991
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaNotebook::Representation
9992
+ command.request_object = google_cloud_notebooklm_v1alpha_notebook_object
9993
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaNotebook::Representation
9994
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaNotebook
9995
+ command.params['parent'] = parent unless parent.nil?
9996
+ command.query['fields'] = fields unless fields.nil?
9997
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9998
+ execute_or_queue_command(command, &block)
9999
+ end
10000
+
10001
+ # Gets a notebook. Needs a side channel with the user's EUC.
10002
+ # @param [String] name
10003
+ # Required. Full resource name of Notebook, such as `projects/`project`/
10004
+ # locations/`location`/notebooks/`notebook_id``.
10005
+ # @param [String] fields
10006
+ # Selector specifying which fields to include in a partial response.
10007
+ # @param [String] quota_user
10008
+ # Available to use for quota purposes for server-side applications. Can be any
10009
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10010
+ # @param [Google::Apis::RequestOptions] options
10011
+ # Request-specific options
10012
+ #
10013
+ # @yield [result, err] Result & error if block supplied
10014
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaNotebook] parsed result object
10015
+ # @yieldparam err [StandardError] error object if request failed
10016
+ #
10017
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaNotebook]
10018
+ #
10019
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10020
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10021
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10022
+ def get_project_location_notebook(name, fields: nil, quota_user: nil, options: nil, &block)
10023
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
10024
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaNotebook::Representation
10025
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaNotebook
10026
+ command.params['name'] = name unless name.nil?
10027
+ command.query['fields'] = fields unless fields.nil?
10028
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10029
+ execute_or_queue_command(command, &block)
10030
+ end
10031
+
9933
10032
  # Lists the recently viewed notebooks. Needs a side channel with the user's EUC.
9934
10033
  # @param [String] parent
9935
10034
  # Required. The parent branch resource name, such as `projects/`project`/
@@ -9969,6 +10068,106 @@ module Google
9969
10068
  execute_or_queue_command(command, &block)
9970
10069
  end
9971
10070
 
10071
+ # Shares a notebook to other accounts. Needs a side channel with the user's EUC.
10072
+ # @param [String] name
10073
+ # Required. Full resource name of Notebook, such as `projects/`project`/
10074
+ # locations/`location`/notebooks/`notebook_id``.
10075
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaShareNotebookRequest] google_cloud_notebooklm_v1alpha_share_notebook_request_object
10076
+ # @param [String] fields
10077
+ # Selector specifying which fields to include in a partial response.
10078
+ # @param [String] quota_user
10079
+ # Available to use for quota purposes for server-side applications. Can be any
10080
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10081
+ # @param [Google::Apis::RequestOptions] options
10082
+ # Request-specific options
10083
+ #
10084
+ # @yield [result, err] Result & error if block supplied
10085
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaShareNotebookResponse] parsed result object
10086
+ # @yieldparam err [StandardError] error object if request failed
10087
+ #
10088
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaShareNotebookResponse]
10089
+ #
10090
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10091
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10092
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10093
+ def share_project_location_notebook(name, google_cloud_notebooklm_v1alpha_share_notebook_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
10094
+ command = make_simple_command(:post, 'v1alpha/{+name}:share', options)
10095
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaShareNotebookRequest::Representation
10096
+ command.request_object = google_cloud_notebooklm_v1alpha_share_notebook_request_object
10097
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaShareNotebookResponse::Representation
10098
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaShareNotebookResponse
10099
+ command.params['name'] = name unless name.nil?
10100
+ command.query['fields'] = fields unless fields.nil?
10101
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10102
+ execute_or_queue_command(command, &block)
10103
+ end
10104
+
10105
+ # Generates a new audio overview. Needs a side channel with the user's EUC.
10106
+ # @param [String] parent
10107
+ # Required. The parent resource where this notebook will be created. Format:
10108
+ # projects/`project`/locations/`location`/notebooks/`notebook`
10109
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaCreateAudioOverviewRequest] google_cloud_notebooklm_v1alpha_create_audio_overview_request_object
10110
+ # @param [String] fields
10111
+ # Selector specifying which fields to include in a partial response.
10112
+ # @param [String] quota_user
10113
+ # Available to use for quota purposes for server-side applications. Can be any
10114
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10115
+ # @param [Google::Apis::RequestOptions] options
10116
+ # Request-specific options
10117
+ #
10118
+ # @yield [result, err] Result & error if block supplied
10119
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse] parsed result object
10120
+ # @yieldparam err [StandardError] error object if request failed
10121
+ #
10122
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse]
10123
+ #
10124
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10125
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10126
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10127
+ def create_project_location_notebook_audio_overview(parent, google_cloud_notebooklm_v1alpha_create_audio_overview_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
10128
+ command = make_simple_command(:post, 'v1alpha/{+parent}/audioOverviews', options)
10129
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaCreateAudioOverviewRequest::Representation
10130
+ command.request_object = google_cloud_notebooklm_v1alpha_create_audio_overview_request_object
10131
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse::Representation
10132
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse
10133
+ command.params['parent'] = parent unless parent.nil?
10134
+ command.query['fields'] = fields unless fields.nil?
10135
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10136
+ execute_or_queue_command(command, &block)
10137
+ end
10138
+
10139
+ # Deletes an audio overview. Needs a side channel with the user's EUC.
10140
+ # @param [String] name
10141
+ # Required. The full resource name of the AudioOverview, such as `projects/`
10142
+ # project`/locations/`location`/notebooks/`notebook`/audioOverviews/`
10143
+ # audio_overview_id``.
10144
+ # @param [String] fields
10145
+ # Selector specifying which fields to include in a partial response.
10146
+ # @param [String] quota_user
10147
+ # Available to use for quota purposes for server-side applications. Can be any
10148
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10149
+ # @param [Google::Apis::RequestOptions] options
10150
+ # Request-specific options
10151
+ #
10152
+ # @yield [result, err] Result & error if block supplied
10153
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleProtobufEmpty] parsed result object
10154
+ # @yieldparam err [StandardError] error object if request failed
10155
+ #
10156
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleProtobufEmpty]
10157
+ #
10158
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10159
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10160
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10161
+ def delete_project_location_notebook_audio_overview(name, fields: nil, quota_user: nil, options: nil, &block)
10162
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
10163
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleProtobufEmpty::Representation
10164
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleProtobufEmpty
10165
+ command.params['name'] = name unless name.nil?
10166
+ command.query['fields'] = fields unless fields.nil?
10167
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10168
+ execute_or_queue_command(command, &block)
10169
+ end
10170
+
9972
10171
  # Creates a list of Sources.
9973
10172
  # @param [String] parent
9974
10173
  # Required. The parent resource where the sources will be created. Format:
@@ -10003,6 +10202,71 @@ module Google
10003
10202
  execute_or_queue_command(command, &block)
10004
10203
  end
10005
10204
 
10205
+ # Deletes multiple sources
10206
+ # @param [String] parent
10207
+ # Required. The parent resource where the sources will be deleted. Format:
10208
+ # projects/`project`/locations/`location`/notebooks/`notebook`
10209
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaBatchDeleteSourcesRequest] google_cloud_notebooklm_v1alpha_batch_delete_sources_request_object
10210
+ # @param [String] fields
10211
+ # Selector specifying which fields to include in a partial response.
10212
+ # @param [String] quota_user
10213
+ # Available to use for quota purposes for server-side applications. Can be any
10214
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10215
+ # @param [Google::Apis::RequestOptions] options
10216
+ # Request-specific options
10217
+ #
10218
+ # @yield [result, err] Result & error if block supplied
10219
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleProtobufEmpty] parsed result object
10220
+ # @yieldparam err [StandardError] error object if request failed
10221
+ #
10222
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleProtobufEmpty]
10223
+ #
10224
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10225
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10226
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10227
+ def batch_project_location_notebook_source_delete(parent, google_cloud_notebooklm_v1alpha_batch_delete_sources_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
10228
+ command = make_simple_command(:post, 'v1alpha/{+parent}/sources:batchDelete', options)
10229
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaBatchDeleteSourcesRequest::Representation
10230
+ command.request_object = google_cloud_notebooklm_v1alpha_batch_delete_sources_request_object
10231
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleProtobufEmpty::Representation
10232
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleProtobufEmpty
10233
+ command.params['parent'] = parent unless parent.nil?
10234
+ command.query['fields'] = fields unless fields.nil?
10235
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10236
+ execute_or_queue_command(command, &block)
10237
+ end
10238
+
10239
+ # Gets a Source.
10240
+ # @param [String] name
10241
+ # Required. The resource name for source Format: projects/`project`/locations/`
10242
+ # location`/notebooks/`notebook`/sources/`source`
10243
+ # @param [String] fields
10244
+ # Selector specifying which fields to include in a partial response.
10245
+ # @param [String] quota_user
10246
+ # Available to use for quota purposes for server-side applications. Can be any
10247
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10248
+ # @param [Google::Apis::RequestOptions] options
10249
+ # Request-specific options
10250
+ #
10251
+ # @yield [result, err] Result & error if block supplied
10252
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaSource] parsed result object
10253
+ # @yieldparam err [StandardError] error object if request failed
10254
+ #
10255
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaSource]
10256
+ #
10257
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10258
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10259
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10260
+ def get_project_location_notebook_source(name, fields: nil, quota_user: nil, options: nil, &block)
10261
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
10262
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaSource::Representation
10263
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudNotebooklmV1alphaSource
10264
+ command.params['name'] = name unless name.nil?
10265
+ command.query['fields'] = fields unless fields.nil?
10266
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10267
+ execute_or_queue_command(command, &block)
10268
+ end
10269
+
10006
10270
  # Uploads a file for Notebook LM to use. Creates a Source.
10007
10271
  # @param [String] parent
10008
10272
  # Required. The parent resource where the sources will be created. Format:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-discoveryengine_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.74.0
4
+ version: 0.75.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_v1alpha/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.74.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.75.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1alpha
62
62
  rdoc_options: []
63
63
  require_paths: