google-apis-translate_v3 0.20.0 → 0.22.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.
@@ -496,6 +496,251 @@ module Google
|
|
496
496
|
execute_or_queue_command(command, &block)
|
497
497
|
end
|
498
498
|
|
499
|
+
# Creates a Dataset.
|
500
|
+
# @param [String] parent
|
501
|
+
# Required. The project name.
|
502
|
+
# @param [Google::Apis::TranslateV3::Dataset] dataset_object
|
503
|
+
# @param [String] fields
|
504
|
+
# Selector specifying which fields to include in a partial response.
|
505
|
+
# @param [String] quota_user
|
506
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
507
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
508
|
+
# @param [Google::Apis::RequestOptions] options
|
509
|
+
# Request-specific options
|
510
|
+
#
|
511
|
+
# @yield [result, err] Result & error if block supplied
|
512
|
+
# @yieldparam result [Google::Apis::TranslateV3::Operation] parsed result object
|
513
|
+
# @yieldparam err [StandardError] error object if request failed
|
514
|
+
#
|
515
|
+
# @return [Google::Apis::TranslateV3::Operation]
|
516
|
+
#
|
517
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
518
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
519
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
520
|
+
def create_project_location_dataset(parent, dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
521
|
+
command = make_simple_command(:post, 'v3/{+parent}/datasets', options)
|
522
|
+
command.request_representation = Google::Apis::TranslateV3::Dataset::Representation
|
523
|
+
command.request_object = dataset_object
|
524
|
+
command.response_representation = Google::Apis::TranslateV3::Operation::Representation
|
525
|
+
command.response_class = Google::Apis::TranslateV3::Operation
|
526
|
+
command.params['parent'] = parent unless parent.nil?
|
527
|
+
command.query['fields'] = fields unless fields.nil?
|
528
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
529
|
+
execute_or_queue_command(command, &block)
|
530
|
+
end
|
531
|
+
|
532
|
+
# Deletes a dataset and all of its contents.
|
533
|
+
# @param [String] name
|
534
|
+
# Required. The name of the dataset to delete.
|
535
|
+
# @param [String] fields
|
536
|
+
# Selector specifying which fields to include in a partial response.
|
537
|
+
# @param [String] quota_user
|
538
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
539
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
540
|
+
# @param [Google::Apis::RequestOptions] options
|
541
|
+
# Request-specific options
|
542
|
+
#
|
543
|
+
# @yield [result, err] Result & error if block supplied
|
544
|
+
# @yieldparam result [Google::Apis::TranslateV3::Operation] parsed result object
|
545
|
+
# @yieldparam err [StandardError] error object if request failed
|
546
|
+
#
|
547
|
+
# @return [Google::Apis::TranslateV3::Operation]
|
548
|
+
#
|
549
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
550
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
551
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
552
|
+
def delete_project_location_dataset(name, fields: nil, quota_user: nil, options: nil, &block)
|
553
|
+
command = make_simple_command(:delete, 'v3/{+name}', options)
|
554
|
+
command.response_representation = Google::Apis::TranslateV3::Operation::Representation
|
555
|
+
command.response_class = Google::Apis::TranslateV3::Operation
|
556
|
+
command.params['name'] = name unless name.nil?
|
557
|
+
command.query['fields'] = fields unless fields.nil?
|
558
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
559
|
+
execute_or_queue_command(command, &block)
|
560
|
+
end
|
561
|
+
|
562
|
+
# Exports dataset's data to the provided output location.
|
563
|
+
# @param [String] dataset
|
564
|
+
# Required. Name of the dataset. In form of `projects/`project-number-or-id`/
|
565
|
+
# locations/`location-id`/datasets/`dataset-id``
|
566
|
+
# @param [Google::Apis::TranslateV3::ExportDataRequest] export_data_request_object
|
567
|
+
# @param [String] fields
|
568
|
+
# Selector specifying which fields to include in a partial response.
|
569
|
+
# @param [String] quota_user
|
570
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
571
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
572
|
+
# @param [Google::Apis::RequestOptions] options
|
573
|
+
# Request-specific options
|
574
|
+
#
|
575
|
+
# @yield [result, err] Result & error if block supplied
|
576
|
+
# @yieldparam result [Google::Apis::TranslateV3::Operation] parsed result object
|
577
|
+
# @yieldparam err [StandardError] error object if request failed
|
578
|
+
#
|
579
|
+
# @return [Google::Apis::TranslateV3::Operation]
|
580
|
+
#
|
581
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
582
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
583
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
584
|
+
def export_dataset_data(dataset, export_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
585
|
+
command = make_simple_command(:post, 'v3/{+dataset}:exportData', options)
|
586
|
+
command.request_representation = Google::Apis::TranslateV3::ExportDataRequest::Representation
|
587
|
+
command.request_object = export_data_request_object
|
588
|
+
command.response_representation = Google::Apis::TranslateV3::Operation::Representation
|
589
|
+
command.response_class = Google::Apis::TranslateV3::Operation
|
590
|
+
command.params['dataset'] = dataset unless dataset.nil?
|
591
|
+
command.query['fields'] = fields unless fields.nil?
|
592
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
593
|
+
execute_or_queue_command(command, &block)
|
594
|
+
end
|
595
|
+
|
596
|
+
# Gets a Dataset.
|
597
|
+
# @param [String] name
|
598
|
+
# Required. The resource name of the dataset to retrieve.
|
599
|
+
# @param [String] fields
|
600
|
+
# Selector specifying which fields to include in a partial response.
|
601
|
+
# @param [String] quota_user
|
602
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
603
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
604
|
+
# @param [Google::Apis::RequestOptions] options
|
605
|
+
# Request-specific options
|
606
|
+
#
|
607
|
+
# @yield [result, err] Result & error if block supplied
|
608
|
+
# @yieldparam result [Google::Apis::TranslateV3::Dataset] parsed result object
|
609
|
+
# @yieldparam err [StandardError] error object if request failed
|
610
|
+
#
|
611
|
+
# @return [Google::Apis::TranslateV3::Dataset]
|
612
|
+
#
|
613
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
614
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
615
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
616
|
+
def get_project_location_dataset(name, fields: nil, quota_user: nil, options: nil, &block)
|
617
|
+
command = make_simple_command(:get, 'v3/{+name}', options)
|
618
|
+
command.response_representation = Google::Apis::TranslateV3::Dataset::Representation
|
619
|
+
command.response_class = Google::Apis::TranslateV3::Dataset
|
620
|
+
command.params['name'] = name unless name.nil?
|
621
|
+
command.query['fields'] = fields unless fields.nil?
|
622
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
623
|
+
execute_or_queue_command(command, &block)
|
624
|
+
end
|
625
|
+
|
626
|
+
# Import sentence pairs into translation Dataset.
|
627
|
+
# @param [String] dataset
|
628
|
+
# Required. Name of the dataset. In form of `projects/`project-number-or-id`/
|
629
|
+
# locations/`location-id`/datasets/`dataset-id``
|
630
|
+
# @param [Google::Apis::TranslateV3::ImportDataRequest] import_data_request_object
|
631
|
+
# @param [String] fields
|
632
|
+
# Selector specifying which fields to include in a partial response.
|
633
|
+
# @param [String] quota_user
|
634
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
635
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
636
|
+
# @param [Google::Apis::RequestOptions] options
|
637
|
+
# Request-specific options
|
638
|
+
#
|
639
|
+
# @yield [result, err] Result & error if block supplied
|
640
|
+
# @yieldparam result [Google::Apis::TranslateV3::Operation] parsed result object
|
641
|
+
# @yieldparam err [StandardError] error object if request failed
|
642
|
+
#
|
643
|
+
# @return [Google::Apis::TranslateV3::Operation]
|
644
|
+
#
|
645
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
646
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
647
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
648
|
+
def import_dataset_data(dataset, import_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
649
|
+
command = make_simple_command(:post, 'v3/{+dataset}:importData', options)
|
650
|
+
command.request_representation = Google::Apis::TranslateV3::ImportDataRequest::Representation
|
651
|
+
command.request_object = import_data_request_object
|
652
|
+
command.response_representation = Google::Apis::TranslateV3::Operation::Representation
|
653
|
+
command.response_class = Google::Apis::TranslateV3::Operation
|
654
|
+
command.params['dataset'] = dataset unless dataset.nil?
|
655
|
+
command.query['fields'] = fields unless fields.nil?
|
656
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
657
|
+
execute_or_queue_command(command, &block)
|
658
|
+
end
|
659
|
+
|
660
|
+
# Lists datasets.
|
661
|
+
# @param [String] parent
|
662
|
+
# Required. Name of the parent project. In form of `projects/`project-number-or-
|
663
|
+
# id`/locations/`location-id``
|
664
|
+
# @param [Fixnum] page_size
|
665
|
+
# Optional. Requested page size. The server can return fewer results than
|
666
|
+
# requested.
|
667
|
+
# @param [String] page_token
|
668
|
+
# Optional. A token identifying a page of results for the server to return.
|
669
|
+
# Typically obtained from next_page_token field in the response of a
|
670
|
+
# ListDatasets call.
|
671
|
+
# @param [String] fields
|
672
|
+
# Selector specifying which fields to include in a partial response.
|
673
|
+
# @param [String] quota_user
|
674
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
675
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
676
|
+
# @param [Google::Apis::RequestOptions] options
|
677
|
+
# Request-specific options
|
678
|
+
#
|
679
|
+
# @yield [result, err] Result & error if block supplied
|
680
|
+
# @yieldparam result [Google::Apis::TranslateV3::ListDatasetsResponse] parsed result object
|
681
|
+
# @yieldparam err [StandardError] error object if request failed
|
682
|
+
#
|
683
|
+
# @return [Google::Apis::TranslateV3::ListDatasetsResponse]
|
684
|
+
#
|
685
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
686
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
687
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
688
|
+
def list_project_location_datasets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
689
|
+
command = make_simple_command(:get, 'v3/{+parent}/datasets', options)
|
690
|
+
command.response_representation = Google::Apis::TranslateV3::ListDatasetsResponse::Representation
|
691
|
+
command.response_class = Google::Apis::TranslateV3::ListDatasetsResponse
|
692
|
+
command.params['parent'] = parent unless parent.nil?
|
693
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
694
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
695
|
+
command.query['fields'] = fields unless fields.nil?
|
696
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
697
|
+
execute_or_queue_command(command, &block)
|
698
|
+
end
|
699
|
+
|
700
|
+
# Lists sentence pairs in the dataset.
|
701
|
+
# @param [String] parent
|
702
|
+
# Required. Name of the parent dataset. In form of `projects/`project-number-or-
|
703
|
+
# id`/locations/`location-id`/datasets/`dataset-id``
|
704
|
+
# @param [String] filter
|
705
|
+
# Optional. An expression for filtering the examples that will be returned.
|
706
|
+
# Example filter: * `usage=TRAIN`
|
707
|
+
# @param [Fixnum] page_size
|
708
|
+
# Optional. Requested page size. The server can return fewer results than
|
709
|
+
# requested.
|
710
|
+
# @param [String] page_token
|
711
|
+
# Optional. A token identifying a page of results for the server to return.
|
712
|
+
# Typically obtained from next_page_token field in the response of a
|
713
|
+
# ListExamples call.
|
714
|
+
# @param [String] fields
|
715
|
+
# Selector specifying which fields to include in a partial response.
|
716
|
+
# @param [String] quota_user
|
717
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
718
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
719
|
+
# @param [Google::Apis::RequestOptions] options
|
720
|
+
# Request-specific options
|
721
|
+
#
|
722
|
+
# @yield [result, err] Result & error if block supplied
|
723
|
+
# @yieldparam result [Google::Apis::TranslateV3::ListExamplesResponse] parsed result object
|
724
|
+
# @yieldparam err [StandardError] error object if request failed
|
725
|
+
#
|
726
|
+
# @return [Google::Apis::TranslateV3::ListExamplesResponse]
|
727
|
+
#
|
728
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
729
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
730
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
731
|
+
def list_project_location_dataset_examples(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
732
|
+
command = make_simple_command(:get, 'v3/{+parent}/examples', options)
|
733
|
+
command.response_representation = Google::Apis::TranslateV3::ListExamplesResponse::Representation
|
734
|
+
command.response_class = Google::Apis::TranslateV3::ListExamplesResponse
|
735
|
+
command.params['parent'] = parent unless parent.nil?
|
736
|
+
command.query['filter'] = filter unless filter.nil?
|
737
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
738
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
739
|
+
command.query['fields'] = fields unless fields.nil?
|
740
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
741
|
+
execute_or_queue_command(command, &block)
|
742
|
+
end
|
743
|
+
|
499
744
|
# Creates a glossary and returns the long-running operation. Returns NOT_FOUND,
|
500
745
|
# if the project doesn't exist.
|
501
746
|
# @param [String] parent
|
@@ -854,6 +1099,144 @@ module Google
|
|
854
1099
|
execute_or_queue_command(command, &block)
|
855
1100
|
end
|
856
1101
|
|
1102
|
+
# Creates a Model.
|
1103
|
+
# @param [String] parent
|
1104
|
+
# Required. The project name, in form of `projects/`project`/locations/`location`
|
1105
|
+
# `
|
1106
|
+
# @param [Google::Apis::TranslateV3::Model] model_object
|
1107
|
+
# @param [String] fields
|
1108
|
+
# Selector specifying which fields to include in a partial response.
|
1109
|
+
# @param [String] quota_user
|
1110
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1111
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1112
|
+
# @param [Google::Apis::RequestOptions] options
|
1113
|
+
# Request-specific options
|
1114
|
+
#
|
1115
|
+
# @yield [result, err] Result & error if block supplied
|
1116
|
+
# @yieldparam result [Google::Apis::TranslateV3::Operation] parsed result object
|
1117
|
+
# @yieldparam err [StandardError] error object if request failed
|
1118
|
+
#
|
1119
|
+
# @return [Google::Apis::TranslateV3::Operation]
|
1120
|
+
#
|
1121
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1122
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1123
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1124
|
+
def create_project_location_model(parent, model_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1125
|
+
command = make_simple_command(:post, 'v3/{+parent}/models', options)
|
1126
|
+
command.request_representation = Google::Apis::TranslateV3::Model::Representation
|
1127
|
+
command.request_object = model_object
|
1128
|
+
command.response_representation = Google::Apis::TranslateV3::Operation::Representation
|
1129
|
+
command.response_class = Google::Apis::TranslateV3::Operation
|
1130
|
+
command.params['parent'] = parent unless parent.nil?
|
1131
|
+
command.query['fields'] = fields unless fields.nil?
|
1132
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1133
|
+
execute_or_queue_command(command, &block)
|
1134
|
+
end
|
1135
|
+
|
1136
|
+
# Deletes a model.
|
1137
|
+
# @param [String] name
|
1138
|
+
# Required. The name of the model to delete.
|
1139
|
+
# @param [String] fields
|
1140
|
+
# Selector specifying which fields to include in a partial response.
|
1141
|
+
# @param [String] quota_user
|
1142
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1143
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1144
|
+
# @param [Google::Apis::RequestOptions] options
|
1145
|
+
# Request-specific options
|
1146
|
+
#
|
1147
|
+
# @yield [result, err] Result & error if block supplied
|
1148
|
+
# @yieldparam result [Google::Apis::TranslateV3::Operation] parsed result object
|
1149
|
+
# @yieldparam err [StandardError] error object if request failed
|
1150
|
+
#
|
1151
|
+
# @return [Google::Apis::TranslateV3::Operation]
|
1152
|
+
#
|
1153
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1154
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1155
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1156
|
+
def delete_project_location_model(name, fields: nil, quota_user: nil, options: nil, &block)
|
1157
|
+
command = make_simple_command(:delete, 'v3/{+name}', options)
|
1158
|
+
command.response_representation = Google::Apis::TranslateV3::Operation::Representation
|
1159
|
+
command.response_class = Google::Apis::TranslateV3::Operation
|
1160
|
+
command.params['name'] = name unless name.nil?
|
1161
|
+
command.query['fields'] = fields unless fields.nil?
|
1162
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1163
|
+
execute_or_queue_command(command, &block)
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
# Gets a model.
|
1167
|
+
# @param [String] name
|
1168
|
+
# Required. The resource name of the model to retrieve.
|
1169
|
+
# @param [String] fields
|
1170
|
+
# Selector specifying which fields to include in a partial response.
|
1171
|
+
# @param [String] quota_user
|
1172
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1173
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1174
|
+
# @param [Google::Apis::RequestOptions] options
|
1175
|
+
# Request-specific options
|
1176
|
+
#
|
1177
|
+
# @yield [result, err] Result & error if block supplied
|
1178
|
+
# @yieldparam result [Google::Apis::TranslateV3::Model] parsed result object
|
1179
|
+
# @yieldparam err [StandardError] error object if request failed
|
1180
|
+
#
|
1181
|
+
# @return [Google::Apis::TranslateV3::Model]
|
1182
|
+
#
|
1183
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1184
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1185
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1186
|
+
def get_project_location_model(name, fields: nil, quota_user: nil, options: nil, &block)
|
1187
|
+
command = make_simple_command(:get, 'v3/{+name}', options)
|
1188
|
+
command.response_representation = Google::Apis::TranslateV3::Model::Representation
|
1189
|
+
command.response_class = Google::Apis::TranslateV3::Model
|
1190
|
+
command.params['name'] = name unless name.nil?
|
1191
|
+
command.query['fields'] = fields unless fields.nil?
|
1192
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1193
|
+
execute_or_queue_command(command, &block)
|
1194
|
+
end
|
1195
|
+
|
1196
|
+
# Lists models.
|
1197
|
+
# @param [String] parent
|
1198
|
+
# Required. Name of the parent project. In form of `projects/`project-number-or-
|
1199
|
+
# id`/locations/`location-id``
|
1200
|
+
# @param [String] filter
|
1201
|
+
# Optional. An expression for filtering the models that will be returned.
|
1202
|
+
# Supported filter: `dataset_id=$`dataset_id``
|
1203
|
+
# @param [Fixnum] page_size
|
1204
|
+
# Optional. Requested page size. The server can return fewer results than
|
1205
|
+
# requested.
|
1206
|
+
# @param [String] page_token
|
1207
|
+
# Optional. A token identifying a page of results for the server to return.
|
1208
|
+
# Typically obtained from next_page_token field in the response of a ListModels
|
1209
|
+
# call.
|
1210
|
+
# @param [String] fields
|
1211
|
+
# Selector specifying which fields to include in a partial response.
|
1212
|
+
# @param [String] quota_user
|
1213
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1214
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1215
|
+
# @param [Google::Apis::RequestOptions] options
|
1216
|
+
# Request-specific options
|
1217
|
+
#
|
1218
|
+
# @yield [result, err] Result & error if block supplied
|
1219
|
+
# @yieldparam result [Google::Apis::TranslateV3::ListModelsResponse] parsed result object
|
1220
|
+
# @yieldparam err [StandardError] error object if request failed
|
1221
|
+
#
|
1222
|
+
# @return [Google::Apis::TranslateV3::ListModelsResponse]
|
1223
|
+
#
|
1224
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1225
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1226
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1227
|
+
def list_project_location_models(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1228
|
+
command = make_simple_command(:get, 'v3/{+parent}/models', options)
|
1229
|
+
command.response_representation = Google::Apis::TranslateV3::ListModelsResponse::Representation
|
1230
|
+
command.response_class = Google::Apis::TranslateV3::ListModelsResponse
|
1231
|
+
command.params['parent'] = parent unless parent.nil?
|
1232
|
+
command.query['filter'] = filter unless filter.nil?
|
1233
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1234
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1235
|
+
command.query['fields'] = fields unless fields.nil?
|
1236
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1237
|
+
execute_or_queue_command(command, &block)
|
1238
|
+
end
|
1239
|
+
|
857
1240
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
858
1241
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
859
1242
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-translate_v3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.22.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:
|
11
|
+
date: 2023-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.9.
|
19
|
+
version: 0.9.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.9.
|
29
|
+
version: 0.9.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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-translate_v3/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-translate_v3/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-translate_v3/v0.22.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-translate_v3
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.4.2
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Translation API V3
|