google-cloud-translate-v3 0.9.0 → 0.10.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.
@@ -24,6 +24,46 @@ module Google
24
24
  module TranslationService
25
25
  # Path helper methods for the TranslationService API.
26
26
  module Paths
27
+ ##
28
+ # Create a fully-qualified AdaptiveMtDataset resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param dataset [String]
37
+ #
38
+ # @return [::String]
39
+ def adaptive_mt_dataset_path project:, location:, dataset:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
42
+
43
+ "projects/#{project}/locations/#{location}/adaptiveMtDatasets/#{dataset}"
44
+ end
45
+
46
+ ##
47
+ # Create a fully-qualified AdaptiveMtFile resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ # @param dataset [String]
56
+ # @param file [String]
57
+ #
58
+ # @return [::String]
59
+ def adaptive_mt_file_path project:, location:, dataset:, file:
60
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
61
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
62
+ raise ::ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/"
63
+
64
+ "projects/#{project}/locations/#{location}/adaptiveMtDatasets/#{dataset}/adaptiveMtFiles/#{file}"
65
+ end
66
+
27
67
  ##
28
68
  # Create a fully-qualified Glossary resource string.
29
69
  #