google-apis-translate_v3 0.17.0 → 0.18.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d5d1547468216cc4aaa7f289d3266918020d4d93d7c2f062c8e49f118db2085
|
4
|
+
data.tar.gz: be1f9fe68499b7f9198a107664f19d6ed872a451ecbcbc4dea66dfb173652588
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be92e728e139bb2f2e78b8f946aac2153b2c90ae5a1ecb8892eccfe0ba82bda16811d0c5de368ac72ae77124c94aff8625928aa66759d64d073b1132a01922b5
|
7
|
+
data.tar.gz: 4e62a2001fd75fba07a229badb444d8cd68a704b85647e3f3f35f3d79f044c324797f567fed187283d5b0e5d79731fbd1a53dd41efeb73727338ed68a9f1990a
|
data/CHANGELOG.md
CHANGED
@@ -99,8 +99,8 @@ module Google
|
|
99
99
|
attr_accessor :output_config
|
100
100
|
|
101
101
|
# Required. The BCP-47 language code of the input document if known, for example,
|
102
|
-
# "en-US" or "sr-Latn". Supported language codes are listed in Language
|
103
|
-
# (https://cloud.google.com/translate/docs/languages).
|
102
|
+
# "en-US" or "sr-Latn". Supported language codes are listed in [Language
|
103
|
+
# Support](https://cloud.google.com/translate/docs/languages).
|
104
104
|
# Corresponds to the JSON property `sourceLanguageCode`
|
105
105
|
# @return [String]
|
106
106
|
attr_accessor :source_language_code
|
@@ -470,6 +470,11 @@ module Google
|
|
470
470
|
class Glossary
|
471
471
|
include Google::Apis::Core::Hashable
|
472
472
|
|
473
|
+
# Optional. The display name of the glossary.
|
474
|
+
# Corresponds to the JSON property `displayName`
|
475
|
+
# @return [String]
|
476
|
+
attr_accessor :display_name
|
477
|
+
|
473
478
|
# Output only. When the glossary creation was finished.
|
474
479
|
# Corresponds to the JSON property `endTime`
|
475
480
|
# @return [String]
|
@@ -513,6 +518,7 @@ module Google
|
|
513
518
|
|
514
519
|
# Update properties of this object
|
515
520
|
def update!(**args)
|
521
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
516
522
|
@end_time = args[:end_time] if args.key?(:end_time)
|
517
523
|
@entry_count = args[:entry_count] if args.key?(:entry_count)
|
518
524
|
@input_config = args[:input_config] if args.key?(:input_config)
|
@@ -523,6 +529,46 @@ module Google
|
|
523
529
|
end
|
524
530
|
end
|
525
531
|
|
532
|
+
# Represents a single entry in a glossary.
|
533
|
+
class GlossaryEntry
|
534
|
+
include Google::Apis::Core::Hashable
|
535
|
+
|
536
|
+
# Describes the glossary entry.
|
537
|
+
# Corresponds to the JSON property `description`
|
538
|
+
# @return [String]
|
539
|
+
attr_accessor :description
|
540
|
+
|
541
|
+
# Required. The resource name of the entry. Format: "projects/*/locations/*/
|
542
|
+
# glossaries/*/glossaryEntries/*"
|
543
|
+
# Corresponds to the JSON property `name`
|
544
|
+
# @return [String]
|
545
|
+
attr_accessor :name
|
546
|
+
|
547
|
+
# Represents a single entry for an unidirectional glossary.
|
548
|
+
# Corresponds to the JSON property `termsPair`
|
549
|
+
# @return [Google::Apis::TranslateV3::GlossaryTermsPair]
|
550
|
+
attr_accessor :terms_pair
|
551
|
+
|
552
|
+
# Represents a single entry for an equivalent term set glossary. This is used
|
553
|
+
# for equivalent term sets where each term can be replaced by the other terms in
|
554
|
+
# the set.
|
555
|
+
# Corresponds to the JSON property `termsSet`
|
556
|
+
# @return [Google::Apis::TranslateV3::GlossaryTermsSet]
|
557
|
+
attr_accessor :terms_set
|
558
|
+
|
559
|
+
def initialize(**args)
|
560
|
+
update!(**args)
|
561
|
+
end
|
562
|
+
|
563
|
+
# Update properties of this object
|
564
|
+
def update!(**args)
|
565
|
+
@description = args[:description] if args.key?(:description)
|
566
|
+
@name = args[:name] if args.key?(:name)
|
567
|
+
@terms_pair = args[:terms_pair] if args.key?(:terms_pair)
|
568
|
+
@terms_set = args[:terms_set] if args.key?(:terms_set)
|
569
|
+
end
|
570
|
+
end
|
571
|
+
|
526
572
|
# Input configuration for glossaries.
|
527
573
|
class GlossaryInputConfig
|
528
574
|
include Google::Apis::Core::Hashable
|
@@ -542,6 +588,77 @@ module Google
|
|
542
588
|
end
|
543
589
|
end
|
544
590
|
|
591
|
+
# Represents a single glossary term
|
592
|
+
class GlossaryTerm
|
593
|
+
include Google::Apis::Core::Hashable
|
594
|
+
|
595
|
+
# The language for this glossary term.
|
596
|
+
# Corresponds to the JSON property `languageCode`
|
597
|
+
# @return [String]
|
598
|
+
attr_accessor :language_code
|
599
|
+
|
600
|
+
# The text for the glossary term.
|
601
|
+
# Corresponds to the JSON property `text`
|
602
|
+
# @return [String]
|
603
|
+
attr_accessor :text
|
604
|
+
|
605
|
+
def initialize(**args)
|
606
|
+
update!(**args)
|
607
|
+
end
|
608
|
+
|
609
|
+
# Update properties of this object
|
610
|
+
def update!(**args)
|
611
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
612
|
+
@text = args[:text] if args.key?(:text)
|
613
|
+
end
|
614
|
+
end
|
615
|
+
|
616
|
+
# Represents a single entry for an unidirectional glossary.
|
617
|
+
class GlossaryTermsPair
|
618
|
+
include Google::Apis::Core::Hashable
|
619
|
+
|
620
|
+
# Represents a single glossary term
|
621
|
+
# Corresponds to the JSON property `sourceTerm`
|
622
|
+
# @return [Google::Apis::TranslateV3::GlossaryTerm]
|
623
|
+
attr_accessor :source_term
|
624
|
+
|
625
|
+
# Represents a single glossary term
|
626
|
+
# Corresponds to the JSON property `targetTerm`
|
627
|
+
# @return [Google::Apis::TranslateV3::GlossaryTerm]
|
628
|
+
attr_accessor :target_term
|
629
|
+
|
630
|
+
def initialize(**args)
|
631
|
+
update!(**args)
|
632
|
+
end
|
633
|
+
|
634
|
+
# Update properties of this object
|
635
|
+
def update!(**args)
|
636
|
+
@source_term = args[:source_term] if args.key?(:source_term)
|
637
|
+
@target_term = args[:target_term] if args.key?(:target_term)
|
638
|
+
end
|
639
|
+
end
|
640
|
+
|
641
|
+
# Represents a single entry for an equivalent term set glossary. This is used
|
642
|
+
# for equivalent term sets where each term can be replaced by the other terms in
|
643
|
+
# the set.
|
644
|
+
class GlossaryTermsSet
|
645
|
+
include Google::Apis::Core::Hashable
|
646
|
+
|
647
|
+
# Each term in the set represents a term that can be replaced by the other terms.
|
648
|
+
# Corresponds to the JSON property `terms`
|
649
|
+
# @return [Array<Google::Apis::TranslateV3::GlossaryTerm>]
|
650
|
+
attr_accessor :terms
|
651
|
+
|
652
|
+
def initialize(**args)
|
653
|
+
update!(**args)
|
654
|
+
end
|
655
|
+
|
656
|
+
# Update properties of this object
|
657
|
+
def update!(**args)
|
658
|
+
@terms = args[:terms] if args.key?(:terms)
|
659
|
+
end
|
660
|
+
end
|
661
|
+
|
545
662
|
# Input configuration for BatchTranslateText request.
|
546
663
|
class InputConfig
|
547
664
|
include Google::Apis::Core::Hashable
|
@@ -644,6 +761,32 @@ module Google
|
|
644
761
|
end
|
645
762
|
end
|
646
763
|
|
764
|
+
# Response message for ListGlossaryEntries
|
765
|
+
class ListGlossaryEntriesResponse
|
766
|
+
include Google::Apis::Core::Hashable
|
767
|
+
|
768
|
+
# Optional. The Glossary Entries
|
769
|
+
# Corresponds to the JSON property `glossaryEntries`
|
770
|
+
# @return [Array<Google::Apis::TranslateV3::GlossaryEntry>]
|
771
|
+
attr_accessor :glossary_entries
|
772
|
+
|
773
|
+
# Optional. A token to retrieve a page of results. Pass this value in the [
|
774
|
+
# ListGLossaryEntriesRequest.page_token] field in the subsequent calls.
|
775
|
+
# Corresponds to the JSON property `nextPageToken`
|
776
|
+
# @return [String]
|
777
|
+
attr_accessor :next_page_token
|
778
|
+
|
779
|
+
def initialize(**args)
|
780
|
+
update!(**args)
|
781
|
+
end
|
782
|
+
|
783
|
+
# Update properties of this object
|
784
|
+
def update!(**args)
|
785
|
+
@glossary_entries = args[:glossary_entries] if args.key?(:glossary_entries)
|
786
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
787
|
+
end
|
788
|
+
end
|
789
|
+
|
647
790
|
# The response message for Locations.ListLocations.
|
648
791
|
class ListLocationsResponse
|
649
792
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module TranslateV3
|
18
18
|
# Version of the google-apis-translate_v3 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.18.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.9.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220805"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -112,12 +112,36 @@ module Google
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
113
113
|
end
|
114
114
|
|
115
|
+
class GlossaryEntry
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
115
121
|
class GlossaryInputConfig
|
116
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
123
|
|
118
124
|
include Google::Apis::Core::JsonObjectSupport
|
119
125
|
end
|
120
126
|
|
127
|
+
class GlossaryTerm
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class GlossaryTermsPair
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class GlossaryTermsSet
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
121
145
|
class InputConfig
|
122
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
147
|
|
@@ -142,6 +166,12 @@ module Google
|
|
142
166
|
include Google::Apis::Core::JsonObjectSupport
|
143
167
|
end
|
144
168
|
|
169
|
+
class ListGlossaryEntriesResponse
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
145
175
|
class ListLocationsResponse
|
146
176
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
177
|
|
@@ -363,6 +393,7 @@ module Google
|
|
363
393
|
class Glossary
|
364
394
|
# @private
|
365
395
|
class Representation < Google::Apis::Core::JsonRepresentation
|
396
|
+
property :display_name, as: 'displayName'
|
366
397
|
property :end_time, as: 'endTime'
|
367
398
|
property :entry_count, as: 'entryCount'
|
368
399
|
property :input_config, as: 'inputConfig', class: Google::Apis::TranslateV3::GlossaryInputConfig, decorator: Google::Apis::TranslateV3::GlossaryInputConfig::Representation
|
@@ -376,6 +407,18 @@ module Google
|
|
376
407
|
end
|
377
408
|
end
|
378
409
|
|
410
|
+
class GlossaryEntry
|
411
|
+
# @private
|
412
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
413
|
+
property :description, as: 'description'
|
414
|
+
property :name, as: 'name'
|
415
|
+
property :terms_pair, as: 'termsPair', class: Google::Apis::TranslateV3::GlossaryTermsPair, decorator: Google::Apis::TranslateV3::GlossaryTermsPair::Representation
|
416
|
+
|
417
|
+
property :terms_set, as: 'termsSet', class: Google::Apis::TranslateV3::GlossaryTermsSet, decorator: Google::Apis::TranslateV3::GlossaryTermsSet::Representation
|
418
|
+
|
419
|
+
end
|
420
|
+
end
|
421
|
+
|
379
422
|
class GlossaryInputConfig
|
380
423
|
# @private
|
381
424
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -384,6 +427,32 @@ module Google
|
|
384
427
|
end
|
385
428
|
end
|
386
429
|
|
430
|
+
class GlossaryTerm
|
431
|
+
# @private
|
432
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
433
|
+
property :language_code, as: 'languageCode'
|
434
|
+
property :text, as: 'text'
|
435
|
+
end
|
436
|
+
end
|
437
|
+
|
438
|
+
class GlossaryTermsPair
|
439
|
+
# @private
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
441
|
+
property :source_term, as: 'sourceTerm', class: Google::Apis::TranslateV3::GlossaryTerm, decorator: Google::Apis::TranslateV3::GlossaryTerm::Representation
|
442
|
+
|
443
|
+
property :target_term, as: 'targetTerm', class: Google::Apis::TranslateV3::GlossaryTerm, decorator: Google::Apis::TranslateV3::GlossaryTerm::Representation
|
444
|
+
|
445
|
+
end
|
446
|
+
end
|
447
|
+
|
448
|
+
class GlossaryTermsSet
|
449
|
+
# @private
|
450
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
451
|
+
collection :terms, as: 'terms', class: Google::Apis::TranslateV3::GlossaryTerm, decorator: Google::Apis::TranslateV3::GlossaryTerm::Representation
|
452
|
+
|
453
|
+
end
|
454
|
+
end
|
455
|
+
|
387
456
|
class InputConfig
|
388
457
|
# @private
|
389
458
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -417,6 +486,15 @@ module Google
|
|
417
486
|
end
|
418
487
|
end
|
419
488
|
|
489
|
+
class ListGlossaryEntriesResponse
|
490
|
+
# @private
|
491
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
492
|
+
collection :glossary_entries, as: 'glossaryEntries', class: Google::Apis::TranslateV3::GlossaryEntry, decorator: Google::Apis::TranslateV3::GlossaryEntry::Representation
|
493
|
+
|
494
|
+
property :next_page_token, as: 'nextPageToken'
|
495
|
+
end
|
496
|
+
end
|
497
|
+
|
420
498
|
class ListLocationsResponse
|
421
499
|
# @private
|
422
500
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -647,6 +647,213 @@ module Google
|
|
647
647
|
execute_or_queue_command(command, &block)
|
648
648
|
end
|
649
649
|
|
650
|
+
# Updates a glossary. A LRO is used since the update can be async if the
|
651
|
+
# glossary's entry file is updated.
|
652
|
+
# @param [String] name
|
653
|
+
# Required. The resource name of the glossary. Glossary names have the form `
|
654
|
+
# projects/`project-number-or-id`/locations/`location-id`/glossaries/`glossary-
|
655
|
+
# id``.
|
656
|
+
# @param [Google::Apis::TranslateV3::Glossary] glossary_object
|
657
|
+
# @param [String] update_mask
|
658
|
+
# The list of fields to be updated. Currently only `display_name` and '
|
659
|
+
# input_config'
|
660
|
+
# @param [String] fields
|
661
|
+
# Selector specifying which fields to include in a partial response.
|
662
|
+
# @param [String] quota_user
|
663
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
664
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
665
|
+
# @param [Google::Apis::RequestOptions] options
|
666
|
+
# Request-specific options
|
667
|
+
#
|
668
|
+
# @yield [result, err] Result & error if block supplied
|
669
|
+
# @yieldparam result [Google::Apis::TranslateV3::Operation] parsed result object
|
670
|
+
# @yieldparam err [StandardError] error object if request failed
|
671
|
+
#
|
672
|
+
# @return [Google::Apis::TranslateV3::Operation]
|
673
|
+
#
|
674
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
675
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
676
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
677
|
+
def patch_project_location_glossary(name, glossary_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
678
|
+
command = make_simple_command(:patch, 'v3/{+name}', options)
|
679
|
+
command.request_representation = Google::Apis::TranslateV3::Glossary::Representation
|
680
|
+
command.request_object = glossary_object
|
681
|
+
command.response_representation = Google::Apis::TranslateV3::Operation::Representation
|
682
|
+
command.response_class = Google::Apis::TranslateV3::Operation
|
683
|
+
command.params['name'] = name unless name.nil?
|
684
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
685
|
+
command.query['fields'] = fields unless fields.nil?
|
686
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
687
|
+
execute_or_queue_command(command, &block)
|
688
|
+
end
|
689
|
+
|
690
|
+
# Creates a glossary entry.
|
691
|
+
# @param [String] parent
|
692
|
+
# Required. The resource name of the glossary to create the entry under.
|
693
|
+
# @param [Google::Apis::TranslateV3::GlossaryEntry] glossary_entry_object
|
694
|
+
# @param [String] fields
|
695
|
+
# Selector specifying which fields to include in a partial response.
|
696
|
+
# @param [String] quota_user
|
697
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
698
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
699
|
+
# @param [Google::Apis::RequestOptions] options
|
700
|
+
# Request-specific options
|
701
|
+
#
|
702
|
+
# @yield [result, err] Result & error if block supplied
|
703
|
+
# @yieldparam result [Google::Apis::TranslateV3::GlossaryEntry] parsed result object
|
704
|
+
# @yieldparam err [StandardError] error object if request failed
|
705
|
+
#
|
706
|
+
# @return [Google::Apis::TranslateV3::GlossaryEntry]
|
707
|
+
#
|
708
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
709
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
710
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
711
|
+
def create_project_location_glossary_glossary_entry(parent, glossary_entry_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
712
|
+
command = make_simple_command(:post, 'v3/{+parent}/glossaryEntries', options)
|
713
|
+
command.request_representation = Google::Apis::TranslateV3::GlossaryEntry::Representation
|
714
|
+
command.request_object = glossary_entry_object
|
715
|
+
command.response_representation = Google::Apis::TranslateV3::GlossaryEntry::Representation
|
716
|
+
command.response_class = Google::Apis::TranslateV3::GlossaryEntry
|
717
|
+
command.params['parent'] = parent unless parent.nil?
|
718
|
+
command.query['fields'] = fields unless fields.nil?
|
719
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
720
|
+
execute_or_queue_command(command, &block)
|
721
|
+
end
|
722
|
+
|
723
|
+
# Deletes a single entry from the glossary
|
724
|
+
# @param [String] name
|
725
|
+
# Required. The resource name of the glossary entry to delete
|
726
|
+
# @param [String] fields
|
727
|
+
# Selector specifying which fields to include in a partial response.
|
728
|
+
# @param [String] quota_user
|
729
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
730
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
731
|
+
# @param [Google::Apis::RequestOptions] options
|
732
|
+
# Request-specific options
|
733
|
+
#
|
734
|
+
# @yield [result, err] Result & error if block supplied
|
735
|
+
# @yieldparam result [Google::Apis::TranslateV3::Empty] parsed result object
|
736
|
+
# @yieldparam err [StandardError] error object if request failed
|
737
|
+
#
|
738
|
+
# @return [Google::Apis::TranslateV3::Empty]
|
739
|
+
#
|
740
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
741
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
742
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
743
|
+
def delete_project_location_glossary_glossary_entry(name, fields: nil, quota_user: nil, options: nil, &block)
|
744
|
+
command = make_simple_command(:delete, 'v3/{+name}', options)
|
745
|
+
command.response_representation = Google::Apis::TranslateV3::Empty::Representation
|
746
|
+
command.response_class = Google::Apis::TranslateV3::Empty
|
747
|
+
command.params['name'] = name unless name.nil?
|
748
|
+
command.query['fields'] = fields unless fields.nil?
|
749
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
750
|
+
execute_or_queue_command(command, &block)
|
751
|
+
end
|
752
|
+
|
753
|
+
# Gets a single glossary entry by the given id.
|
754
|
+
# @param [String] name
|
755
|
+
# Required. The resource name of the glossary entry to get
|
756
|
+
# @param [String] fields
|
757
|
+
# Selector specifying which fields to include in a partial response.
|
758
|
+
# @param [String] quota_user
|
759
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
760
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
761
|
+
# @param [Google::Apis::RequestOptions] options
|
762
|
+
# Request-specific options
|
763
|
+
#
|
764
|
+
# @yield [result, err] Result & error if block supplied
|
765
|
+
# @yieldparam result [Google::Apis::TranslateV3::GlossaryEntry] parsed result object
|
766
|
+
# @yieldparam err [StandardError] error object if request failed
|
767
|
+
#
|
768
|
+
# @return [Google::Apis::TranslateV3::GlossaryEntry]
|
769
|
+
#
|
770
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
771
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
772
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
773
|
+
def get_project_location_glossary_glossary_entry(name, fields: nil, quota_user: nil, options: nil, &block)
|
774
|
+
command = make_simple_command(:get, 'v3/{+name}', options)
|
775
|
+
command.response_representation = Google::Apis::TranslateV3::GlossaryEntry::Representation
|
776
|
+
command.response_class = Google::Apis::TranslateV3::GlossaryEntry
|
777
|
+
command.params['name'] = name unless name.nil?
|
778
|
+
command.query['fields'] = fields unless fields.nil?
|
779
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
780
|
+
execute_or_queue_command(command, &block)
|
781
|
+
end
|
782
|
+
|
783
|
+
# List the entries for the glossary.
|
784
|
+
# @param [String] parent
|
785
|
+
# Required. The parent glossary resource name for listing the glossary's entries.
|
786
|
+
# @param [Fixnum] page_size
|
787
|
+
# Optional. Requested page size. The server may return fewer glossary entries
|
788
|
+
# than requested. If unspecified, the server picks an appropriate default.
|
789
|
+
# @param [String] page_token
|
790
|
+
# Optional. A token identifying a page of results the server should return.
|
791
|
+
# Typically, this is the value of [ListGlossaryEntriesResponse.next_page_token]
|
792
|
+
# returned from the previous call. The first page is returned if `page_token`is
|
793
|
+
# empty or missing.
|
794
|
+
# @param [String] fields
|
795
|
+
# Selector specifying which fields to include in a partial response.
|
796
|
+
# @param [String] quota_user
|
797
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
798
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
799
|
+
# @param [Google::Apis::RequestOptions] options
|
800
|
+
# Request-specific options
|
801
|
+
#
|
802
|
+
# @yield [result, err] Result & error if block supplied
|
803
|
+
# @yieldparam result [Google::Apis::TranslateV3::ListGlossaryEntriesResponse] parsed result object
|
804
|
+
# @yieldparam err [StandardError] error object if request failed
|
805
|
+
#
|
806
|
+
# @return [Google::Apis::TranslateV3::ListGlossaryEntriesResponse]
|
807
|
+
#
|
808
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
809
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
810
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
811
|
+
def list_project_location_glossary_glossary_entries(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
812
|
+
command = make_simple_command(:get, 'v3/{+parent}/glossaryEntries', options)
|
813
|
+
command.response_representation = Google::Apis::TranslateV3::ListGlossaryEntriesResponse::Representation
|
814
|
+
command.response_class = Google::Apis::TranslateV3::ListGlossaryEntriesResponse
|
815
|
+
command.params['parent'] = parent unless parent.nil?
|
816
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
817
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
818
|
+
command.query['fields'] = fields unless fields.nil?
|
819
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
820
|
+
execute_or_queue_command(command, &block)
|
821
|
+
end
|
822
|
+
|
823
|
+
# Updates a glossary entry.
|
824
|
+
# @param [String] name
|
825
|
+
# Required. The resource name of the entry. Format: "projects/*/locations/*/
|
826
|
+
# glossaries/*/glossaryEntries/*"
|
827
|
+
# @param [Google::Apis::TranslateV3::GlossaryEntry] glossary_entry_object
|
828
|
+
# @param [String] fields
|
829
|
+
# Selector specifying which fields to include in a partial response.
|
830
|
+
# @param [String] quota_user
|
831
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
832
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
833
|
+
# @param [Google::Apis::RequestOptions] options
|
834
|
+
# Request-specific options
|
835
|
+
#
|
836
|
+
# @yield [result, err] Result & error if block supplied
|
837
|
+
# @yieldparam result [Google::Apis::TranslateV3::GlossaryEntry] parsed result object
|
838
|
+
# @yieldparam err [StandardError] error object if request failed
|
839
|
+
#
|
840
|
+
# @return [Google::Apis::TranslateV3::GlossaryEntry]
|
841
|
+
#
|
842
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
843
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
844
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
845
|
+
def patch_project_location_glossary_glossary_entry(name, glossary_entry_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
846
|
+
command = make_simple_command(:patch, 'v3/{+name}', options)
|
847
|
+
command.request_representation = Google::Apis::TranslateV3::GlossaryEntry::Representation
|
848
|
+
command.request_object = glossary_entry_object
|
849
|
+
command.response_representation = Google::Apis::TranslateV3::GlossaryEntry::Representation
|
850
|
+
command.response_class = Google::Apis::TranslateV3::GlossaryEntry
|
851
|
+
command.params['name'] = name unless name.nil?
|
852
|
+
command.query['fields'] = fields unless fields.nil?
|
853
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
854
|
+
execute_or_queue_command(command, &block)
|
855
|
+
end
|
856
|
+
|
650
857
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
651
858
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
652
859
|
# 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.18.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: 2022-
|
11
|
+
date: 2022-08-15 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-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.18.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: []
|