google-api-client 0.37.1 → 0.37.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +105 -0
  3. data/generated/google/apis/accessapproval_v1.rb +1 -1
  4. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  5. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  6. data/generated/google/apis/accesscontextmanager_v1/classes.rb +2 -2
  7. data/generated/google/apis/accesscontextmanager_v1/service.rb +10 -8
  8. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  9. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +0 -38
  10. data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +0 -16
  11. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  12. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  13. data/generated/google/apis/androidpublisher_v3/classes.rb +193 -0
  14. data/generated/google/apis/androidpublisher_v3/representations.rb +89 -0
  15. data/generated/google/apis/appengine_v1.rb +1 -1
  16. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  17. data/generated/google/apis/appengine_v1beta.rb +1 -1
  18. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  19. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
  20. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  21. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +15 -14
  22. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  23. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  24. data/generated/google/apis/books_v1.rb +1 -1
  25. data/generated/google/apis/books_v1/classes.rb +86 -0
  26. data/generated/google/apis/books_v1/representations.rb +37 -0
  27. data/generated/google/apis/classroom_v1.rb +1 -1
  28. data/generated/google/apis/cloudasset_v1.rb +1 -1
  29. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  30. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  31. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  32. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  33. data/generated/google/apis/cloudiot_v1.rb +1 -1
  34. data/generated/google/apis/cloudkms_v1.rb +1 -1
  35. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  36. data/generated/google/apis/cloudsearch_v1/classes.rb +0 -2
  37. data/generated/google/apis/cloudsearch_v1/service.rb +12 -0
  38. data/generated/google/apis/cloudshell_v1.rb +1 -1
  39. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  40. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  41. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  42. data/generated/google/apis/cloudtrace_v2beta1.rb +1 -1
  43. data/generated/google/apis/composer_v1beta1.rb +1 -1
  44. data/generated/google/apis/composer_v1beta1/classes.rb +1 -1
  45. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  46. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  47. data/generated/google/apis/content_v2.rb +1 -1
  48. data/generated/google/apis/content_v2/classes.rb +30 -26
  49. data/generated/google/apis/content_v2_1.rb +1 -1
  50. data/generated/google/apis/content_v2_1/classes.rb +30 -26
  51. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  52. data/generated/google/apis/datacatalog_v1beta1/classes.rb +25 -37
  53. data/generated/google/apis/datacatalog_v1beta1/representations.rb +2 -15
  54. data/generated/google/apis/datacatalog_v1beta1/service.rb +0 -43
  55. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  56. data/generated/google/apis/dataproc_v1beta2/classes.rb +15 -0
  57. data/generated/google/apis/dataproc_v1beta2/representations.rb +2 -0
  58. data/generated/google/apis/datastore_v1.rb +1 -1
  59. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  60. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  61. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  62. data/generated/google/apis/dfareporting_v3_4/classes.rb +0 -7
  63. data/generated/google/apis/dfareporting_v3_4/representations.rb +0 -1
  64. data/generated/google/apis/dialogflow_v2.rb +1 -1
  65. data/generated/google/apis/dialogflow_v2/classes.rb +20 -231
  66. data/generated/google/apis/dialogflow_v2/representations.rb +1 -95
  67. data/generated/google/apis/dialogflow_v2/service.rb +26 -390
  68. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  69. data/generated/google/apis/dialogflow_v2beta1/classes.rb +23 -235
  70. data/generated/google/apis/dialogflow_v2beta1/representations.rb +1 -95
  71. data/generated/google/apis/dialogflow_v2beta1/service.rb +68 -804
  72. data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
  73. data/generated/google/apis/displayvideo_v1.rb +38 -0
  74. data/generated/google/apis/displayvideo_v1/classes.rb +382 -0
  75. data/generated/google/apis/displayvideo_v1/representations.rb +167 -0
  76. data/generated/google/apis/displayvideo_v1/service.rb +176 -0
  77. data/generated/google/apis/dlp_v2.rb +1 -1
  78. data/generated/google/apis/dlp_v2/classes.rb +31 -0
  79. data/generated/google/apis/dlp_v2/representations.rb +5 -0
  80. data/generated/google/apis/docs_v1.rb +1 -1
  81. data/generated/google/apis/docs_v1/classes.rb +22 -0
  82. data/generated/google/apis/docs_v1/representations.rb +3 -0
  83. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  84. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  85. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  86. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +1 -1
  87. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  88. data/generated/google/apis/firestore_v1.rb +1 -1
  89. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  90. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  91. data/generated/google/apis/fitness_v1.rb +1 -1
  92. data/generated/google/apis/fitness_v1/service.rb +13 -9
  93. data/generated/google/apis/genomics_v1.rb +1 -1
  94. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  95. data/generated/google/apis/iam_v1.rb +1 -1
  96. data/generated/google/apis/language_v1.rb +1 -1
  97. data/generated/google/apis/language_v1beta1.rb +1 -1
  98. data/generated/google/apis/language_v1beta2.rb +1 -1
  99. data/generated/google/apis/logging_v2.rb +1 -1
  100. data/generated/google/apis/logging_v2/classes.rb +22 -35
  101. data/generated/google/apis/logging_v2/representations.rb +0 -2
  102. data/generated/google/apis/logging_v2/service.rb +14 -14
  103. data/generated/google/apis/managedidentities_v1.rb +35 -0
  104. data/generated/google/apis/managedidentities_v1/classes.rb +1662 -0
  105. data/generated/google/apis/managedidentities_v1/representations.rb +576 -0
  106. data/generated/google/apis/managedidentities_v1/service.rb +779 -0
  107. data/generated/google/apis/managedidentities_v1alpha1.rb +35 -0
  108. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +1661 -0
  109. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +576 -0
  110. data/generated/google/apis/managedidentities_v1alpha1/service.rb +782 -0
  111. data/generated/google/apis/managedidentities_v1beta1.rb +35 -0
  112. data/generated/google/apis/managedidentities_v1beta1/classes.rb +1659 -0
  113. data/generated/google/apis/managedidentities_v1beta1/representations.rb +576 -0
  114. data/generated/google/apis/managedidentities_v1beta1/service.rb +778 -0
  115. data/generated/google/apis/ml_v1.rb +1 -1
  116. data/generated/google/apis/ml_v1/classes.rb +23 -43
  117. data/generated/google/apis/oauth2_v2.rb +1 -1
  118. data/generated/google/apis/oauth2_v2/classes.rb +0 -68
  119. data/generated/google/apis/oauth2_v2/representations.rb +0 -32
  120. data/generated/google/apis/oauth2_v2/service.rb +0 -30
  121. data/generated/google/apis/pubsub_v1.rb +1 -1
  122. data/generated/google/apis/pubsub_v1/classes.rb +16 -12
  123. data/generated/google/apis/pubsub_v1/service.rb +22 -21
  124. data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
  125. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  126. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  127. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  128. data/generated/google/apis/run_v1.rb +1 -1
  129. data/generated/google/apis/run_v1/classes.rb +48 -0
  130. data/generated/google/apis/run_v1/representations.rb +17 -0
  131. data/generated/google/apis/run_v1/service.rb +208 -0
  132. data/generated/google/apis/run_v1alpha1.rb +1 -1
  133. data/generated/google/apis/run_v1alpha1/classes.rb +431 -280
  134. data/generated/google/apis/run_v1alpha1/representations.rb +156 -105
  135. data/generated/google/apis/run_v1alpha1/service.rb +874 -448
  136. data/generated/google/apis/run_v1beta1.rb +1 -1
  137. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  138. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  139. data/generated/google/apis/secretmanager_v1.rb +3 -3
  140. data/generated/google/apis/secretmanager_v1/service.rb +2 -2
  141. data/generated/google/apis/secretmanager_v1beta1.rb +3 -3
  142. data/generated/google/apis/secretmanager_v1beta1/service.rb +2 -2
  143. data/generated/google/apis/securitycenter_v1.rb +1 -1
  144. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  145. data/generated/google/apis/securitycenter_v1beta1/classes.rb +98 -98
  146. data/generated/google/apis/securitycenter_v1beta1/representations.rb +37 -37
  147. data/generated/google/apis/securitycenter_v1beta1/service.rb +36 -36
  148. data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
  149. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  150. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  151. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +56 -0
  152. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +17 -0
  153. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  154. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  155. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  156. data/generated/google/apis/servicenetworking_v1/classes.rb +56 -0
  157. data/generated/google/apis/servicenetworking_v1/representations.rb +17 -0
  158. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  159. data/generated/google/apis/servicenetworking_v1beta/classes.rb +56 -0
  160. data/generated/google/apis/servicenetworking_v1beta/representations.rb +17 -0
  161. data/generated/google/apis/serviceusage_v1.rb +1 -1
  162. data/generated/google/apis/serviceusage_v1/classes.rb +56 -0
  163. data/generated/google/apis/serviceusage_v1/representations.rb +17 -0
  164. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  165. data/generated/google/apis/serviceusage_v1beta1/classes.rb +56 -0
  166. data/generated/google/apis/serviceusage_v1beta1/representations.rb +17 -0
  167. data/generated/google/apis/spanner_v1.rb +1 -1
  168. data/generated/google/apis/spanner_v1/classes.rb +38 -11
  169. data/generated/google/apis/spanner_v1/representations.rb +15 -0
  170. data/generated/google/apis/speech_v1.rb +1 -1
  171. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  172. data/generated/google/apis/speech_v2beta1.rb +1 -1
  173. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  174. data/generated/google/apis/streetviewpublish_v1/service.rb +1 -1
  175. data/generated/google/apis/texttospeech_v1.rb +1 -1
  176. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  177. data/generated/google/apis/toolresults_v1.rb +1 -1
  178. data/generated/google/apis/toolresults_v1/service.rb +1 -1
  179. data/generated/google/apis/translate_v3.rb +1 -1
  180. data/generated/google/apis/translate_v3beta1.rb +1 -1
  181. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  182. data/generated/google/apis/websecurityscanner_v1/classes.rb +6 -0
  183. data/generated/google/apis/websecurityscanner_v1/representations.rb +1 -0
  184. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  185. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +6 -0
  186. data/generated/google/apis/websecurityscanner_v1beta/representations.rb +1 -0
  187. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  188. data/generated/google/apis/youtube_v3.rb +1 -1
  189. data/generated/google/apis/youtube_v3/classes.rb +72 -33
  190. data/generated/google/apis/youtube_v3/representations.rb +32 -4
  191. data/lib/google/apis/version.rb +1 -1
  192. metadata +19 -3
@@ -48,13 +48,10 @@ module Google
48
48
  @batch_path = 'batch'
49
49
  end
50
50
 
51
- # Creates/updates the specified agent.
51
+ # Deletes the specified agent.
52
52
  # @param [String] parent
53
- # Required. The project of this agent.
53
+ # Required. The project that the agent to delete is associated with.
54
54
  # Format: `projects/<Project ID>`.
55
- # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent] google_cloud_dialogflow_v2_agent_object
56
- # @param [String] update_mask
57
- # Optional. The mask to control which fields get updated.
58
55
  # @param [String] fields
59
56
  # Selector specifying which fields to include in a partial response.
60
57
  # @param [String] quota_user
@@ -64,30 +61,27 @@ module Google
64
61
  # Request-specific options
65
62
  #
66
63
  # @yield [result, err] Result & error if block supplied
67
- # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent] parsed result object
64
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleProtobufEmpty] parsed result object
68
65
  # @yieldparam err [StandardError] error object if request failed
69
66
  #
70
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent]
67
+ # @return [Google::Apis::DialogflowV2::GoogleProtobufEmpty]
71
68
  #
72
69
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
70
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
71
  # @raise [Google::Apis::AuthorizationError] Authorization is required
75
- def agent_project(parent, google_cloud_dialogflow_v2_agent_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
76
- command = make_simple_command(:post, 'v2/{+parent}/agent', options)
77
- command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent::Representation
78
- command.request_object = google_cloud_dialogflow_v2_agent_object
79
- command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent::Representation
80
- command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent
72
+ def delete_project_agent(parent, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:delete, 'v2/{+parent}/agent', options)
74
+ command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation
75
+ command.response_class = Google::Apis::DialogflowV2::GoogleProtobufEmpty
81
76
  command.params['parent'] = parent unless parent.nil?
82
- command.query['updateMask'] = update_mask unless update_mask.nil?
83
77
  command.query['fields'] = fields unless fields.nil?
84
78
  command.query['quotaUser'] = quota_user unless quota_user.nil?
85
79
  execute_or_queue_command(command, &block)
86
80
  end
87
81
 
88
- # Deletes the specified agent.
82
+ # Retrieves the specified agent.
89
83
  # @param [String] parent
90
- # Required. The project that the agent to delete is associated with.
84
+ # Required. The project that the agent to fetch is associated with.
91
85
  # Format: `projects/<Project ID>`.
92
86
  # @param [String] fields
93
87
  # Selector specifying which fields to include in a partial response.
@@ -98,28 +92,31 @@ module Google
98
92
  # Request-specific options
99
93
  #
100
94
  # @yield [result, err] Result & error if block supplied
101
- # @yieldparam result [Google::Apis::DialogflowV2::GoogleProtobufEmpty] parsed result object
95
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent] parsed result object
102
96
  # @yieldparam err [StandardError] error object if request failed
103
97
  #
104
- # @return [Google::Apis::DialogflowV2::GoogleProtobufEmpty]
98
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent]
105
99
  #
106
100
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
107
101
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
108
102
  # @raise [Google::Apis::AuthorizationError] Authorization is required
109
- def delete_project_agent(parent, fields: nil, quota_user: nil, options: nil, &block)
110
- command = make_simple_command(:delete, 'v2/{+parent}/agent', options)
111
- command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation
112
- command.response_class = Google::Apis::DialogflowV2::GoogleProtobufEmpty
103
+ def get_project_agent(parent, fields: nil, quota_user: nil, options: nil, &block)
104
+ command = make_simple_command(:get, 'v2/{+parent}/agent', options)
105
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent::Representation
106
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent
113
107
  command.params['parent'] = parent unless parent.nil?
114
108
  command.query['fields'] = fields unless fields.nil?
115
109
  command.query['quotaUser'] = quota_user unless quota_user.nil?
116
110
  execute_or_queue_command(command, &block)
117
111
  end
118
112
 
119
- # Retrieves the specified agent.
113
+ # Creates/updates the specified agent.
120
114
  # @param [String] parent
121
- # Required. The project that the agent to fetch is associated with.
115
+ # Required. The project of this agent.
122
116
  # Format: `projects/<Project ID>`.
117
+ # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent] google_cloud_dialogflow_v2_agent_object
118
+ # @param [String] update_mask
119
+ # Optional. The mask to control which fields get updated.
123
120
  # @param [String] fields
124
121
  # Selector specifying which fields to include in a partial response.
125
122
  # @param [String] quota_user
@@ -137,11 +134,14 @@ module Google
137
134
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
138
135
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
139
136
  # @raise [Google::Apis::AuthorizationError] Authorization is required
140
- def get_project_agent(parent, fields: nil, quota_user: nil, options: nil, &block)
141
- command = make_simple_command(:get, 'v2/{+parent}/agent', options)
137
+ def set_project_agent(parent, google_cloud_dialogflow_v2_agent_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
138
+ command = make_simple_command(:post, 'v2/{+parent}/agent', options)
139
+ command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent::Representation
140
+ command.request_object = google_cloud_dialogflow_v2_agent_object
142
141
  command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent::Representation
143
142
  command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent
144
143
  command.params['parent'] = parent unless parent.nil?
144
+ command.query['updateMask'] = update_mask unless update_mask.nil?
145
145
  command.query['fields'] = fields unless fields.nil?
146
146
  command.query['quotaUser'] = quota_user unless quota_user.nil?
147
147
  execute_or_queue_command(command, &block)
@@ -826,226 +826,6 @@ module Google
826
826
  execute_or_queue_command(command, &block)
827
827
  end
828
828
 
829
- # Creates an agent environment.
830
- # @param [String] parent
831
- # Required. The agent to create a environment for.
832
- # Format: `projects/<Project ID>/agent`.
833
- # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment] google_cloud_dialogflow_v2_environment_object
834
- # @param [String] environment_id
835
- # Required. The unique id of the new environment.
836
- # @param [String] fields
837
- # Selector specifying which fields to include in a partial response.
838
- # @param [String] quota_user
839
- # Available to use for quota purposes for server-side applications. Can be any
840
- # arbitrary string assigned to a user, but should not exceed 40 characters.
841
- # @param [Google::Apis::RequestOptions] options
842
- # Request-specific options
843
- #
844
- # @yield [result, err] Result & error if block supplied
845
- # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment] parsed result object
846
- # @yieldparam err [StandardError] error object if request failed
847
- #
848
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment]
849
- #
850
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
851
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
852
- # @raise [Google::Apis::AuthorizationError] Authorization is required
853
- def create_project_agent_environment(parent, google_cloud_dialogflow_v2_environment_object = nil, environment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
854
- command = make_simple_command(:post, 'v2/{+parent}/environments', options)
855
- command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment::Representation
856
- command.request_object = google_cloud_dialogflow_v2_environment_object
857
- command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment::Representation
858
- command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment
859
- command.params['parent'] = parent unless parent.nil?
860
- command.query['environmentId'] = environment_id unless environment_id.nil?
861
- command.query['fields'] = fields unless fields.nil?
862
- command.query['quotaUser'] = quota_user unless quota_user.nil?
863
- execute_or_queue_command(command, &block)
864
- end
865
-
866
- # Deletes the specified agent environment.
867
- # @param [String] name
868
- # Required. The name of the environment to delete.
869
- # Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
870
- # @param [String] fields
871
- # Selector specifying which fields to include in a partial response.
872
- # @param [String] quota_user
873
- # Available to use for quota purposes for server-side applications. Can be any
874
- # arbitrary string assigned to a user, but should not exceed 40 characters.
875
- # @param [Google::Apis::RequestOptions] options
876
- # Request-specific options
877
- #
878
- # @yield [result, err] Result & error if block supplied
879
- # @yieldparam result [Google::Apis::DialogflowV2::GoogleProtobufEmpty] parsed result object
880
- # @yieldparam err [StandardError] error object if request failed
881
- #
882
- # @return [Google::Apis::DialogflowV2::GoogleProtobufEmpty]
883
- #
884
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
885
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
886
- # @raise [Google::Apis::AuthorizationError] Authorization is required
887
- def delete_project_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
888
- command = make_simple_command(:delete, 'v2/{+name}', options)
889
- command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation
890
- command.response_class = Google::Apis::DialogflowV2::GoogleProtobufEmpty
891
- command.params['name'] = name unless name.nil?
892
- command.query['fields'] = fields unless fields.nil?
893
- command.query['quotaUser'] = quota_user unless quota_user.nil?
894
- execute_or_queue_command(command, &block)
895
- end
896
-
897
- # Retrieves the specified agent environment.
898
- # @param [String] name
899
- # Required. The name of the environment.
900
- # Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
901
- # @param [String] fields
902
- # Selector specifying which fields to include in a partial response.
903
- # @param [String] quota_user
904
- # Available to use for quota purposes for server-side applications. Can be any
905
- # arbitrary string assigned to a user, but should not exceed 40 characters.
906
- # @param [Google::Apis::RequestOptions] options
907
- # Request-specific options
908
- #
909
- # @yield [result, err] Result & error if block supplied
910
- # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment] parsed result object
911
- # @yieldparam err [StandardError] error object if request failed
912
- #
913
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment]
914
- #
915
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
916
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
917
- # @raise [Google::Apis::AuthorizationError] Authorization is required
918
- def get_project_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
919
- command = make_simple_command(:get, 'v2/{+name}', options)
920
- command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment::Representation
921
- command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment
922
- command.params['name'] = name unless name.nil?
923
- command.query['fields'] = fields unless fields.nil?
924
- command.query['quotaUser'] = quota_user unless quota_user.nil?
925
- execute_or_queue_command(command, &block)
926
- end
927
-
928
- # Gets the history of the specified environment.
929
- # @param [String] parent
930
- # Required. The name of the environment to retrieve history for.
931
- # Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
932
- # @param [Fixnum] page_size
933
- # Optional. The maximum number of items to return in a single page. By default
934
- # 100 and
935
- # at most 1000.
936
- # @param [String] page_token
937
- # Optional. The next_page_token value returned from a previous list request.
938
- # @param [String] fields
939
- # Selector specifying which fields to include in a partial response.
940
- # @param [String] quota_user
941
- # Available to use for quota purposes for server-side applications. Can be any
942
- # arbitrary string assigned to a user, but should not exceed 40 characters.
943
- # @param [Google::Apis::RequestOptions] options
944
- # Request-specific options
945
- #
946
- # @yield [result, err] Result & error if block supplied
947
- # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EnvironmentHistory] parsed result object
948
- # @yieldparam err [StandardError] error object if request failed
949
- #
950
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EnvironmentHistory]
951
- #
952
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
953
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
954
- # @raise [Google::Apis::AuthorizationError] Authorization is required
955
- def get_project_agent_environment_history(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
956
- command = make_simple_command(:get, 'v2/{+parent}/history', options)
957
- command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EnvironmentHistory::Representation
958
- command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EnvironmentHistory
959
- command.params['parent'] = parent unless parent.nil?
960
- command.query['pageSize'] = page_size unless page_size.nil?
961
- command.query['pageToken'] = page_token unless page_token.nil?
962
- command.query['fields'] = fields unless fields.nil?
963
- command.query['quotaUser'] = quota_user unless quota_user.nil?
964
- execute_or_queue_command(command, &block)
965
- end
966
-
967
- # Returns the list of all environments of the specified agent.
968
- # @param [String] parent
969
- # Required. The agent to list all environments from.
970
- # Format: `projects/<Project ID>/agent`.
971
- # @param [Fixnum] page_size
972
- # Optional. The maximum number of items to return in a single page. By default
973
- # 100 and
974
- # at most 1000.
975
- # @param [String] page_token
976
- # Optional. The next_page_token value returned from a previous list request.
977
- # @param [String] fields
978
- # Selector specifying which fields to include in a partial response.
979
- # @param [String] quota_user
980
- # Available to use for quota purposes for server-side applications. Can be any
981
- # arbitrary string assigned to a user, but should not exceed 40 characters.
982
- # @param [Google::Apis::RequestOptions] options
983
- # Request-specific options
984
- #
985
- # @yield [result, err] Result & error if block supplied
986
- # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListEnvironmentsResponse] parsed result object
987
- # @yieldparam err [StandardError] error object if request failed
988
- #
989
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListEnvironmentsResponse]
990
- #
991
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
992
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
993
- # @raise [Google::Apis::AuthorizationError] Authorization is required
994
- def list_project_agent_environments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
995
- command = make_simple_command(:get, 'v2/{+parent}/environments', options)
996
- command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListEnvironmentsResponse::Representation
997
- command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListEnvironmentsResponse
998
- command.params['parent'] = parent unless parent.nil?
999
- command.query['pageSize'] = page_size unless page_size.nil?
1000
- command.query['pageToken'] = page_token unless page_token.nil?
1001
- command.query['fields'] = fields unless fields.nil?
1002
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1003
- execute_or_queue_command(command, &block)
1004
- end
1005
-
1006
- # Updates the specified agent environment.
1007
- # This method allows you to deploy new agent versions into the environment.
1008
- # When a environment is pointed to a new agent version by setting
1009
- # `environment.agent_version`, the environment is temporarily set to the
1010
- # `LOADING` state. During that time, the environment keeps on serving the
1011
- # previous version of the agent. After the new agent version is done loading,
1012
- # the environment is set back to the `RUNNING` state.
1013
- # @param [String] name
1014
- # Output only. The unique identifier of this agent environment.
1015
- # Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
1016
- # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment] google_cloud_dialogflow_v2_environment_object
1017
- # @param [String] update_mask
1018
- # Optional. The mask to control which fields get updated.
1019
- # @param [String] fields
1020
- # Selector specifying which fields to include in a partial response.
1021
- # @param [String] quota_user
1022
- # Available to use for quota purposes for server-side applications. Can be any
1023
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1024
- # @param [Google::Apis::RequestOptions] options
1025
- # Request-specific options
1026
- #
1027
- # @yield [result, err] Result & error if block supplied
1028
- # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment] parsed result object
1029
- # @yieldparam err [StandardError] error object if request failed
1030
- #
1031
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment]
1032
- #
1033
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1034
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1035
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1036
- def patch_project_agent_environment(name, google_cloud_dialogflow_v2_environment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1037
- command = make_simple_command(:patch, 'v2/{+name}', options)
1038
- command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment::Representation
1039
- command.request_object = google_cloud_dialogflow_v2_environment_object
1040
- command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment::Representation
1041
- command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment
1042
- command.params['name'] = name unless name.nil?
1043
- command.query['updateMask'] = update_mask unless update_mask.nil?
1044
- command.query['fields'] = fields unless fields.nil?
1045
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1046
- execute_or_queue_command(command, &block)
1047
- end
1048
-
1049
829
  # Deletes intents in the specified agent.
1050
830
  # Operation <response: google.protobuf.Empty>
1051
831
  # @param [String] parent
@@ -1777,150 +1557,6 @@ module Google
1777
1557
  execute_or_queue_command(command, &block)
1778
1558
  end
1779
1559
 
1780
- # Creates an agent version.
1781
- # @param [String] parent
1782
- # Required. The agent to create a version for.
1783
- # Format: `projects/<Project ID>/agent`.
1784
- # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version] google_cloud_dialogflow_v2_version_object
1785
- # @param [String] fields
1786
- # Selector specifying which fields to include in a partial response.
1787
- # @param [String] quota_user
1788
- # Available to use for quota purposes for server-side applications. Can be any
1789
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1790
- # @param [Google::Apis::RequestOptions] options
1791
- # Request-specific options
1792
- #
1793
- # @yield [result, err] Result & error if block supplied
1794
- # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version] parsed result object
1795
- # @yieldparam err [StandardError] error object if request failed
1796
- #
1797
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version]
1798
- #
1799
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1800
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1801
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1802
- def create_project_agent_version(parent, google_cloud_dialogflow_v2_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1803
- command = make_simple_command(:post, 'v2/{+parent}/versions', options)
1804
- command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version::Representation
1805
- command.request_object = google_cloud_dialogflow_v2_version_object
1806
- command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version::Representation
1807
- command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version
1808
- command.params['parent'] = parent unless parent.nil?
1809
- command.query['fields'] = fields unless fields.nil?
1810
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1811
- execute_or_queue_command(command, &block)
1812
- end
1813
-
1814
- # Retrieves the specified agent version.
1815
- # @param [String] name
1816
- # Required. The name of the version.
1817
- # Format: `projects/<Project ID>/agent/versions/<Version ID>`.
1818
- # @param [String] fields
1819
- # Selector specifying which fields to include in a partial response.
1820
- # @param [String] quota_user
1821
- # Available to use for quota purposes for server-side applications. Can be any
1822
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1823
- # @param [Google::Apis::RequestOptions] options
1824
- # Request-specific options
1825
- #
1826
- # @yield [result, err] Result & error if block supplied
1827
- # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version] parsed result object
1828
- # @yieldparam err [StandardError] error object if request failed
1829
- #
1830
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version]
1831
- #
1832
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1833
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1834
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1835
- def get_project_agent_version(name, fields: nil, quota_user: nil, options: nil, &block)
1836
- command = make_simple_command(:get, 'v2/{+name}', options)
1837
- command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version::Representation
1838
- command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version
1839
- command.params['name'] = name unless name.nil?
1840
- command.query['fields'] = fields unless fields.nil?
1841
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1842
- execute_or_queue_command(command, &block)
1843
- end
1844
-
1845
- # Returns the list of all versions of the specified agent.
1846
- # @param [String] parent
1847
- # Required. The agent to list all versions from.
1848
- # Format: `projects/<Project ID>/agent`.
1849
- # @param [Fixnum] page_size
1850
- # Optional. The maximum number of items to return in a single page. By default
1851
- # 100 and
1852
- # at most 1000.
1853
- # @param [String] page_token
1854
- # Optional. The next_page_token value returned from a previous list request.
1855
- # @param [String] fields
1856
- # Selector specifying which fields to include in a partial response.
1857
- # @param [String] quota_user
1858
- # Available to use for quota purposes for server-side applications. Can be any
1859
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1860
- # @param [Google::Apis::RequestOptions] options
1861
- # Request-specific options
1862
- #
1863
- # @yield [result, err] Result & error if block supplied
1864
- # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListVersionsResponse] parsed result object
1865
- # @yieldparam err [StandardError] error object if request failed
1866
- #
1867
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListVersionsResponse]
1868
- #
1869
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1870
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1871
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1872
- def list_project_agent_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1873
- command = make_simple_command(:get, 'v2/{+parent}/versions', options)
1874
- command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListVersionsResponse::Representation
1875
- command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListVersionsResponse
1876
- command.params['parent'] = parent unless parent.nil?
1877
- command.query['pageSize'] = page_size unless page_size.nil?
1878
- command.query['pageToken'] = page_token unless page_token.nil?
1879
- command.query['fields'] = fields unless fields.nil?
1880
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1881
- execute_or_queue_command(command, &block)
1882
- end
1883
-
1884
- # Updates the specified agent version.
1885
- # Note that this method does not allow you to update the state of the agent
1886
- # the given version points to. It allows you to update only mutable
1887
- # properties of the version resource.
1888
- # @param [String] name
1889
- # Output only. The unique identifier of this agent version.
1890
- # Format: `projects/<Project ID>/agent/versions/<Version ID>`.
1891
- # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version] google_cloud_dialogflow_v2_version_object
1892
- # @param [String] update_mask
1893
- # Optional. The mask to control which fields get updated.
1894
- # @param [String] fields
1895
- # Selector specifying which fields to include in a partial response.
1896
- # @param [String] quota_user
1897
- # Available to use for quota purposes for server-side applications. Can be any
1898
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1899
- # @param [Google::Apis::RequestOptions] options
1900
- # Request-specific options
1901
- #
1902
- # @yield [result, err] Result & error if block supplied
1903
- # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version] parsed result object
1904
- # @yieldparam err [StandardError] error object if request failed
1905
- #
1906
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version]
1907
- #
1908
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1909
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1910
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1911
- def patch_project_agent_version(name, google_cloud_dialogflow_v2_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1912
- command = make_simple_command(:patch, 'v2/{+name}', options)
1913
- command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version::Representation
1914
- command.request_object = google_cloud_dialogflow_v2_version_object
1915
- command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version::Representation
1916
- command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version
1917
- command.params['name'] = name unless name.nil?
1918
- command.query['updateMask'] = update_mask unless update_mask.nil?
1919
- command.query['fields'] = fields unless fields.nil?
1920
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1921
- execute_or_queue_command(command, &block)
1922
- end
1923
-
1924
1560
  # Starts asynchronous cancellation on a long-running operation. The server
1925
1561
  # makes a best effort to cancel the operation, but success is not
1926
1562
  # guaranteed. If the server doesn't support this method, it returns