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
@@ -0,0 +1,779 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module ManagedidentitiesV1
23
+ # Managed Service for Microsoft Active Directory API
24
+ #
25
+ # The Managed Service for Microsoft Active Directory API is used for managing a
26
+ # highly available, hardened service running Microsoft Active Directory (AD).
27
+ #
28
+ # @example
29
+ # require 'google/apis/managedidentities_v1'
30
+ #
31
+ # Managedidentities = Google::Apis::ManagedidentitiesV1 # Alias the module
32
+ # service = Managedidentities::ManagedServiceforMicrosoftActiveDirectoryConsumerAPIService.new
33
+ #
34
+ # @see https://cloud.google.com/managed-microsoft-ad/
35
+ class ManagedServiceforMicrosoftActiveDirectoryConsumerAPIService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://managedidentities.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Gets information about a location.
52
+ # @param [String] name
53
+ # Resource name for the location.
54
+ # @param [String] fields
55
+ # Selector specifying which fields to include in a partial response.
56
+ # @param [String] quota_user
57
+ # Available to use for quota purposes for server-side applications. Can be any
58
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
59
+ # @param [Google::Apis::RequestOptions] options
60
+ # Request-specific options
61
+ #
62
+ # @yield [result, err] Result & error if block supplied
63
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Location] parsed result object
64
+ # @yieldparam err [StandardError] error object if request failed
65
+ #
66
+ # @return [Google::Apis::ManagedidentitiesV1::Location]
67
+ #
68
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
71
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
72
+ command = make_simple_command(:get, 'v1/{+name}', options)
73
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Location::Representation
74
+ command.response_class = Google::Apis::ManagedidentitiesV1::Location
75
+ command.params['name'] = name unless name.nil?
76
+ command.query['fields'] = fields unless fields.nil?
77
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
78
+ execute_or_queue_command(command, &block)
79
+ end
80
+
81
+ # Lists information about the supported locations for this service.
82
+ # @param [String] name
83
+ # The resource that owns the locations collection, if applicable.
84
+ # @param [String] filter
85
+ # The standard list filter.
86
+ # @param [Boolean] include_unrevealed_locations
87
+ # If true, the returned list will include locations which are not yet
88
+ # revealed.
89
+ # @param [Fixnum] page_size
90
+ # The standard list page size.
91
+ # @param [String] page_token
92
+ # The standard list page token.
93
+ # @param [String] fields
94
+ # Selector specifying which fields to include in a partial response.
95
+ # @param [String] quota_user
96
+ # Available to use for quota purposes for server-side applications. Can be any
97
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
98
+ # @param [Google::Apis::RequestOptions] options
99
+ # Request-specific options
100
+ #
101
+ # @yield [result, err] Result & error if block supplied
102
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::ListLocationsResponse] parsed result object
103
+ # @yieldparam err [StandardError] error object if request failed
104
+ #
105
+ # @return [Google::Apis::ManagedidentitiesV1::ListLocationsResponse]
106
+ #
107
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
108
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
109
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
110
+ def list_project_locations(name, filter: nil, include_unrevealed_locations: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
111
+ command = make_simple_command(:get, 'v1/{+name}/locations', options)
112
+ command.response_representation = Google::Apis::ManagedidentitiesV1::ListLocationsResponse::Representation
113
+ command.response_class = Google::Apis::ManagedidentitiesV1::ListLocationsResponse
114
+ command.params['name'] = name unless name.nil?
115
+ command.query['filter'] = filter unless filter.nil?
116
+ command.query['includeUnrevealedLocations'] = include_unrevealed_locations unless include_unrevealed_locations.nil?
117
+ command.query['pageSize'] = page_size unless page_size.nil?
118
+ command.query['pageToken'] = page_token unless page_token.nil?
119
+ command.query['fields'] = fields unless fields.nil?
120
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
121
+ execute_or_queue_command(command, &block)
122
+ end
123
+
124
+ # Adds an AD trust to a domain.
125
+ # @param [String] name
126
+ # Required. The resource domain name, project name and location using the form:
127
+ # `projects/`project_id`/locations/global/domains/`domain_name``
128
+ # @param [Google::Apis::ManagedidentitiesV1::AttachTrustRequest] attach_trust_request_object
129
+ # @param [String] fields
130
+ # Selector specifying which fields to include in a partial response.
131
+ # @param [String] quota_user
132
+ # Available to use for quota purposes for server-side applications. Can be any
133
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
134
+ # @param [Google::Apis::RequestOptions] options
135
+ # Request-specific options
136
+ #
137
+ # @yield [result, err] Result & error if block supplied
138
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Operation] parsed result object
139
+ # @yieldparam err [StandardError] error object if request failed
140
+ #
141
+ # @return [Google::Apis::ManagedidentitiesV1::Operation]
142
+ #
143
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
144
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
145
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
146
+ def attach_domain_trust(name, attach_trust_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
147
+ command = make_simple_command(:post, 'v1/{+name}:attachTrust', options)
148
+ command.request_representation = Google::Apis::ManagedidentitiesV1::AttachTrustRequest::Representation
149
+ command.request_object = attach_trust_request_object
150
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Operation::Representation
151
+ command.response_class = Google::Apis::ManagedidentitiesV1::Operation
152
+ command.params['name'] = name unless name.nil?
153
+ command.query['fields'] = fields unless fields.nil?
154
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
155
+ execute_or_queue_command(command, &block)
156
+ end
157
+
158
+ # Creates a Microsoft AD domain.
159
+ # @param [String] parent
160
+ # Required. The resource project name and location using the form:
161
+ # `projects/`project_id`/locations/global`
162
+ # @param [Google::Apis::ManagedidentitiesV1::Domain] domain_object
163
+ # @param [String] domain_name
164
+ # Required. The fully qualified domain name.
165
+ # e.g. mydomain.myorganization.com, with the following restrictions:
166
+ # * Must contain only lowercase letters, numbers, periods and hyphens.
167
+ # * Must start with a letter.
168
+ # * Must contain between 2-64 characters.
169
+ # * Must end with a number or a letter.
170
+ # * Must not start with period.
171
+ # * First segement length (mydomain form example above) shouldn't exceed
172
+ # 15 chars.
173
+ # * The last segment cannot be fully numeric.
174
+ # * Must be unique within the customer project.
175
+ # @param [String] fields
176
+ # Selector specifying which fields to include in a partial response.
177
+ # @param [String] quota_user
178
+ # Available to use for quota purposes for server-side applications. Can be any
179
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
180
+ # @param [Google::Apis::RequestOptions] options
181
+ # Request-specific options
182
+ #
183
+ # @yield [result, err] Result & error if block supplied
184
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Operation] parsed result object
185
+ # @yieldparam err [StandardError] error object if request failed
186
+ #
187
+ # @return [Google::Apis::ManagedidentitiesV1::Operation]
188
+ #
189
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
190
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
191
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
192
+ def create_project_location_global_domain(parent, domain_object = nil, domain_name: nil, fields: nil, quota_user: nil, options: nil, &block)
193
+ command = make_simple_command(:post, 'v1/{+parent}/domains', options)
194
+ command.request_representation = Google::Apis::ManagedidentitiesV1::Domain::Representation
195
+ command.request_object = domain_object
196
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Operation::Representation
197
+ command.response_class = Google::Apis::ManagedidentitiesV1::Operation
198
+ command.params['parent'] = parent unless parent.nil?
199
+ command.query['domainName'] = domain_name unless domain_name.nil?
200
+ command.query['fields'] = fields unless fields.nil?
201
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
202
+ execute_or_queue_command(command, &block)
203
+ end
204
+
205
+ # Deletes a domain.
206
+ # @param [String] name
207
+ # Required. The domain resource name using the form:
208
+ # `projects/`project_id`/locations/global/domains/`domain_name``
209
+ # @param [String] fields
210
+ # Selector specifying which fields to include in a partial response.
211
+ # @param [String] quota_user
212
+ # Available to use for quota purposes for server-side applications. Can be any
213
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
214
+ # @param [Google::Apis::RequestOptions] options
215
+ # Request-specific options
216
+ #
217
+ # @yield [result, err] Result & error if block supplied
218
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Operation] parsed result object
219
+ # @yieldparam err [StandardError] error object if request failed
220
+ #
221
+ # @return [Google::Apis::ManagedidentitiesV1::Operation]
222
+ #
223
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
224
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
225
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
226
+ def delete_project_location_global_domain(name, fields: nil, quota_user: nil, options: nil, &block)
227
+ command = make_simple_command(:delete, 'v1/{+name}', options)
228
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Operation::Representation
229
+ command.response_class = Google::Apis::ManagedidentitiesV1::Operation
230
+ command.params['name'] = name unless name.nil?
231
+ command.query['fields'] = fields unless fields.nil?
232
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
233
+ execute_or_queue_command(command, &block)
234
+ end
235
+
236
+ # Removes an AD trust.
237
+ # @param [String] name
238
+ # Required. The resource domain name, project name, and location using the form:
239
+ # `projects/`project_id`/locations/global/domains/`domain_name``
240
+ # @param [Google::Apis::ManagedidentitiesV1::DetachTrustRequest] detach_trust_request_object
241
+ # @param [String] fields
242
+ # Selector specifying which fields to include in a partial response.
243
+ # @param [String] quota_user
244
+ # Available to use for quota purposes for server-side applications. Can be any
245
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
246
+ # @param [Google::Apis::RequestOptions] options
247
+ # Request-specific options
248
+ #
249
+ # @yield [result, err] Result & error if block supplied
250
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Operation] parsed result object
251
+ # @yieldparam err [StandardError] error object if request failed
252
+ #
253
+ # @return [Google::Apis::ManagedidentitiesV1::Operation]
254
+ #
255
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
256
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
257
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
258
+ def detach_domain_trust(name, detach_trust_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
259
+ command = make_simple_command(:post, 'v1/{+name}:detachTrust', options)
260
+ command.request_representation = Google::Apis::ManagedidentitiesV1::DetachTrustRequest::Representation
261
+ command.request_object = detach_trust_request_object
262
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Operation::Representation
263
+ command.response_class = Google::Apis::ManagedidentitiesV1::Operation
264
+ command.params['name'] = name unless name.nil?
265
+ command.query['fields'] = fields unless fields.nil?
266
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
267
+ execute_or_queue_command(command, &block)
268
+ end
269
+
270
+ # Gets information about a domain.
271
+ # @param [String] name
272
+ # Required. The domain resource name using the form:
273
+ # `projects/`project_id`/locations/global/domains/`domain_name``
274
+ # @param [String] fields
275
+ # Selector specifying which fields to include in a partial response.
276
+ # @param [String] quota_user
277
+ # Available to use for quota purposes for server-side applications. Can be any
278
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
279
+ # @param [Google::Apis::RequestOptions] options
280
+ # Request-specific options
281
+ #
282
+ # @yield [result, err] Result & error if block supplied
283
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Domain] parsed result object
284
+ # @yieldparam err [StandardError] error object if request failed
285
+ #
286
+ # @return [Google::Apis::ManagedidentitiesV1::Domain]
287
+ #
288
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
289
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
290
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
291
+ def get_project_location_global_domain(name, fields: nil, quota_user: nil, options: nil, &block)
292
+ command = make_simple_command(:get, 'v1/{+name}', options)
293
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Domain::Representation
294
+ command.response_class = Google::Apis::ManagedidentitiesV1::Domain
295
+ command.params['name'] = name unless name.nil?
296
+ command.query['fields'] = fields unless fields.nil?
297
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
298
+ execute_or_queue_command(command, &block)
299
+ end
300
+
301
+ # Gets the access control policy for a resource.
302
+ # Returns an empty policy if the resource exists and does not have a policy
303
+ # set.
304
+ # @param [String] resource
305
+ # REQUIRED: The resource for which the policy is being requested.
306
+ # See the operation documentation for the appropriate value for this field.
307
+ # @param [Fixnum] options_requested_policy_version
308
+ # Optional. The policy format version to be returned.
309
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
310
+ # rejected.
311
+ # Requests for policies with any conditional bindings must specify version 3.
312
+ # Policies without any conditional bindings may specify any valid value or
313
+ # leave the field unset.
314
+ # @param [String] fields
315
+ # Selector specifying which fields to include in a partial response.
316
+ # @param [String] quota_user
317
+ # Available to use for quota purposes for server-side applications. Can be any
318
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
319
+ # @param [Google::Apis::RequestOptions] options
320
+ # Request-specific options
321
+ #
322
+ # @yield [result, err] Result & error if block supplied
323
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Policy] parsed result object
324
+ # @yieldparam err [StandardError] error object if request failed
325
+ #
326
+ # @return [Google::Apis::ManagedidentitiesV1::Policy]
327
+ #
328
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
329
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
330
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
331
+ def get_project_location_global_domain_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
332
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
333
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Policy::Representation
334
+ command.response_class = Google::Apis::ManagedidentitiesV1::Policy
335
+ command.params['resource'] = resource unless resource.nil?
336
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
337
+ command.query['fields'] = fields unless fields.nil?
338
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
339
+ execute_or_queue_command(command, &block)
340
+ end
341
+
342
+ # Lists domains in a project.
343
+ # @param [String] parent
344
+ # Required. The resource name of the domain location using the form:
345
+ # `projects/`project_id`/locations/global`
346
+ # @param [String] filter
347
+ # Optional. A filter specifying constraints of a list operation.
348
+ # For example, `Domain.fqdn="mydomain.myorginization"`.
349
+ # @param [String] order_by
350
+ # Optional. Specifies the ordering of results. See
351
+ # [Sorting
352
+ # order](https://cloud.google.com/apis/design/design_patterns#sorting_order)
353
+ # for more information.
354
+ # @param [Fixnum] page_size
355
+ # Optional. The maximum number of items to return.
356
+ # If not specified, a default value of 1000 will be used.
357
+ # Regardless of the page_size value, the response may include a partial list.
358
+ # Callers should rely on a response's
359
+ # next_page_token
360
+ # to determine if there are additional results to list.
361
+ # @param [String] page_token
362
+ # Optional. The `next_page_token` value returned from a previous
363
+ # ListDomainsRequest
364
+ # request, if any.
365
+ # @param [String] fields
366
+ # Selector specifying which fields to include in a partial response.
367
+ # @param [String] quota_user
368
+ # Available to use for quota purposes for server-side applications. Can be any
369
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
370
+ # @param [Google::Apis::RequestOptions] options
371
+ # Request-specific options
372
+ #
373
+ # @yield [result, err] Result & error if block supplied
374
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::ListDomainsResponse] parsed result object
375
+ # @yieldparam err [StandardError] error object if request failed
376
+ #
377
+ # @return [Google::Apis::ManagedidentitiesV1::ListDomainsResponse]
378
+ #
379
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
380
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
381
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
382
+ def list_project_location_global_domains(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
383
+ command = make_simple_command(:get, 'v1/{+parent}/domains', options)
384
+ command.response_representation = Google::Apis::ManagedidentitiesV1::ListDomainsResponse::Representation
385
+ command.response_class = Google::Apis::ManagedidentitiesV1::ListDomainsResponse
386
+ command.params['parent'] = parent unless parent.nil?
387
+ command.query['filter'] = filter unless filter.nil?
388
+ command.query['orderBy'] = order_by unless order_by.nil?
389
+ command.query['pageSize'] = page_size unless page_size.nil?
390
+ command.query['pageToken'] = page_token unless page_token.nil?
391
+ command.query['fields'] = fields unless fields.nil?
392
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
393
+ execute_or_queue_command(command, &block)
394
+ end
395
+
396
+ # Updates the metadata and configuration of a domain.
397
+ # @param [String] name
398
+ # Required. The unique name of the domain using the form:
399
+ # `projects/`project_id`/locations/global/domains/`domain_name``.
400
+ # @param [Google::Apis::ManagedidentitiesV1::Domain] domain_object
401
+ # @param [String] update_mask
402
+ # Required. Mask of fields to update. At least one path must be supplied in this
403
+ # field. The elements of the repeated paths field may only include
404
+ # fields from Domain:
405
+ # * `labels`
406
+ # * `locations`
407
+ # * `authorized_networks`
408
+ # @param [String] fields
409
+ # Selector specifying which fields to include in a partial response.
410
+ # @param [String] quota_user
411
+ # Available to use for quota purposes for server-side applications. Can be any
412
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
413
+ # @param [Google::Apis::RequestOptions] options
414
+ # Request-specific options
415
+ #
416
+ # @yield [result, err] Result & error if block supplied
417
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Operation] parsed result object
418
+ # @yieldparam err [StandardError] error object if request failed
419
+ #
420
+ # @return [Google::Apis::ManagedidentitiesV1::Operation]
421
+ #
422
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
423
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
424
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
425
+ def patch_project_location_global_domain(name, domain_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
426
+ command = make_simple_command(:patch, 'v1/{+name}', options)
427
+ command.request_representation = Google::Apis::ManagedidentitiesV1::Domain::Representation
428
+ command.request_object = domain_object
429
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Operation::Representation
430
+ command.response_class = Google::Apis::ManagedidentitiesV1::Operation
431
+ command.params['name'] = name unless name.nil?
432
+ command.query['updateMask'] = update_mask unless update_mask.nil?
433
+ command.query['fields'] = fields unless fields.nil?
434
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
435
+ execute_or_queue_command(command, &block)
436
+ end
437
+
438
+ # Updates the DNS conditional forwarder.
439
+ # @param [String] name
440
+ # Required. The resource domain name, project name and location using the form:
441
+ # `projects/`project_id`/locations/global/domains/`domain_name``
442
+ # @param [Google::Apis::ManagedidentitiesV1::ReconfigureTrustRequest] reconfigure_trust_request_object
443
+ # @param [String] fields
444
+ # Selector specifying which fields to include in a partial response.
445
+ # @param [String] quota_user
446
+ # Available to use for quota purposes for server-side applications. Can be any
447
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
448
+ # @param [Google::Apis::RequestOptions] options
449
+ # Request-specific options
450
+ #
451
+ # @yield [result, err] Result & error if block supplied
452
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Operation] parsed result object
453
+ # @yieldparam err [StandardError] error object if request failed
454
+ #
455
+ # @return [Google::Apis::ManagedidentitiesV1::Operation]
456
+ #
457
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
458
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
459
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
460
+ def reconfigure_domain_trust(name, reconfigure_trust_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
461
+ command = make_simple_command(:post, 'v1/{+name}:reconfigureTrust', options)
462
+ command.request_representation = Google::Apis::ManagedidentitiesV1::ReconfigureTrustRequest::Representation
463
+ command.request_object = reconfigure_trust_request_object
464
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Operation::Representation
465
+ command.response_class = Google::Apis::ManagedidentitiesV1::Operation
466
+ command.params['name'] = name unless name.nil?
467
+ command.query['fields'] = fields unless fields.nil?
468
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
469
+ execute_or_queue_command(command, &block)
470
+ end
471
+
472
+ # Resets a domain's administrator password.
473
+ # @param [String] name
474
+ # Required. The domain resource name using the form:
475
+ # `projects/`project_id`/locations/global/domains/`domain_name``
476
+ # @param [Google::Apis::ManagedidentitiesV1::ResetAdminPasswordRequest] reset_admin_password_request_object
477
+ # @param [String] fields
478
+ # Selector specifying which fields to include in a partial response.
479
+ # @param [String] quota_user
480
+ # Available to use for quota purposes for server-side applications. Can be any
481
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
482
+ # @param [Google::Apis::RequestOptions] options
483
+ # Request-specific options
484
+ #
485
+ # @yield [result, err] Result & error if block supplied
486
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::ResetAdminPasswordResponse] parsed result object
487
+ # @yieldparam err [StandardError] error object if request failed
488
+ #
489
+ # @return [Google::Apis::ManagedidentitiesV1::ResetAdminPasswordResponse]
490
+ #
491
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
492
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
493
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
494
+ def reset_domain_admin_password(name, reset_admin_password_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
495
+ command = make_simple_command(:post, 'v1/{+name}:resetAdminPassword', options)
496
+ command.request_representation = Google::Apis::ManagedidentitiesV1::ResetAdminPasswordRequest::Representation
497
+ command.request_object = reset_admin_password_request_object
498
+ command.response_representation = Google::Apis::ManagedidentitiesV1::ResetAdminPasswordResponse::Representation
499
+ command.response_class = Google::Apis::ManagedidentitiesV1::ResetAdminPasswordResponse
500
+ command.params['name'] = name unless name.nil?
501
+ command.query['fields'] = fields unless fields.nil?
502
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
503
+ execute_or_queue_command(command, &block)
504
+ end
505
+
506
+ # Sets the access control policy on the specified resource. Replaces any
507
+ # existing policy.
508
+ # Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
509
+ # @param [String] resource
510
+ # REQUIRED: The resource for which the policy is being specified.
511
+ # See the operation documentation for the appropriate value for this field.
512
+ # @param [Google::Apis::ManagedidentitiesV1::SetIamPolicyRequest] set_iam_policy_request_object
513
+ # @param [String] fields
514
+ # Selector specifying which fields to include in a partial response.
515
+ # @param [String] quota_user
516
+ # Available to use for quota purposes for server-side applications. Can be any
517
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
518
+ # @param [Google::Apis::RequestOptions] options
519
+ # Request-specific options
520
+ #
521
+ # @yield [result, err] Result & error if block supplied
522
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Policy] parsed result object
523
+ # @yieldparam err [StandardError] error object if request failed
524
+ #
525
+ # @return [Google::Apis::ManagedidentitiesV1::Policy]
526
+ #
527
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
528
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
529
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
530
+ def set_domain_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
531
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
532
+ command.request_representation = Google::Apis::ManagedidentitiesV1::SetIamPolicyRequest::Representation
533
+ command.request_object = set_iam_policy_request_object
534
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Policy::Representation
535
+ command.response_class = Google::Apis::ManagedidentitiesV1::Policy
536
+ command.params['resource'] = resource unless resource.nil?
537
+ command.query['fields'] = fields unless fields.nil?
538
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
539
+ execute_or_queue_command(command, &block)
540
+ end
541
+
542
+ # Returns permissions that a caller has on the specified resource.
543
+ # If the resource does not exist, this will return an empty set of
544
+ # permissions, not a NOT_FOUND error.
545
+ # Note: This operation is designed to be used for building permission-aware
546
+ # UIs and command-line tools, not for authorization checking. This operation
547
+ # may "fail open" without warning.
548
+ # @param [String] resource
549
+ # REQUIRED: The resource for which the policy detail is being requested.
550
+ # See the operation documentation for the appropriate value for this field.
551
+ # @param [Google::Apis::ManagedidentitiesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
552
+ # @param [String] fields
553
+ # Selector specifying which fields to include in a partial response.
554
+ # @param [String] quota_user
555
+ # Available to use for quota purposes for server-side applications. Can be any
556
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
557
+ # @param [Google::Apis::RequestOptions] options
558
+ # Request-specific options
559
+ #
560
+ # @yield [result, err] Result & error if block supplied
561
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::TestIamPermissionsResponse] parsed result object
562
+ # @yieldparam err [StandardError] error object if request failed
563
+ #
564
+ # @return [Google::Apis::ManagedidentitiesV1::TestIamPermissionsResponse]
565
+ #
566
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
567
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
568
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
569
+ def test_domain_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
570
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
571
+ command.request_representation = Google::Apis::ManagedidentitiesV1::TestIamPermissionsRequest::Representation
572
+ command.request_object = test_iam_permissions_request_object
573
+ command.response_representation = Google::Apis::ManagedidentitiesV1::TestIamPermissionsResponse::Representation
574
+ command.response_class = Google::Apis::ManagedidentitiesV1::TestIamPermissionsResponse
575
+ command.params['resource'] = resource unless resource.nil?
576
+ command.query['fields'] = fields unless fields.nil?
577
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
578
+ execute_or_queue_command(command, &block)
579
+ end
580
+
581
+ # Validates a trust state, that the target domain is reachable, and that the
582
+ # target domain is able to accept incoming trust requests.
583
+ # @param [String] name
584
+ # Required. The resource domain name, project name, and location using the form:
585
+ # `projects/`project_id`/locations/global/domains/`domain_name``
586
+ # @param [Google::Apis::ManagedidentitiesV1::ValidateTrustRequest] validate_trust_request_object
587
+ # @param [String] fields
588
+ # Selector specifying which fields to include in a partial response.
589
+ # @param [String] quota_user
590
+ # Available to use for quota purposes for server-side applications. Can be any
591
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
592
+ # @param [Google::Apis::RequestOptions] options
593
+ # Request-specific options
594
+ #
595
+ # @yield [result, err] Result & error if block supplied
596
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Operation] parsed result object
597
+ # @yieldparam err [StandardError] error object if request failed
598
+ #
599
+ # @return [Google::Apis::ManagedidentitiesV1::Operation]
600
+ #
601
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
602
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
603
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
604
+ def validate_domain_trust(name, validate_trust_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
605
+ command = make_simple_command(:post, 'v1/{+name}:validateTrust', options)
606
+ command.request_representation = Google::Apis::ManagedidentitiesV1::ValidateTrustRequest::Representation
607
+ command.request_object = validate_trust_request_object
608
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Operation::Representation
609
+ command.response_class = Google::Apis::ManagedidentitiesV1::Operation
610
+ command.params['name'] = name unless name.nil?
611
+ command.query['fields'] = fields unless fields.nil?
612
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
613
+ execute_or_queue_command(command, &block)
614
+ end
615
+
616
+ # Starts asynchronous cancellation on a long-running operation. The server
617
+ # makes a best effort to cancel the operation, but success is not
618
+ # guaranteed. If the server doesn't support this method, it returns
619
+ # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
620
+ # Operations.GetOperation or
621
+ # other methods to check whether the cancellation succeeded or whether the
622
+ # operation completed despite cancellation. On successful cancellation,
623
+ # the operation is not deleted; instead, it becomes an operation with
624
+ # an Operation.error value with a google.rpc.Status.code of 1,
625
+ # corresponding to `Code.CANCELLED`.
626
+ # @param [String] name
627
+ # The name of the operation resource to be cancelled.
628
+ # @param [Google::Apis::ManagedidentitiesV1::CancelOperationRequest] cancel_operation_request_object
629
+ # @param [String] fields
630
+ # Selector specifying which fields to include in a partial response.
631
+ # @param [String] quota_user
632
+ # Available to use for quota purposes for server-side applications. Can be any
633
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
634
+ # @param [Google::Apis::RequestOptions] options
635
+ # Request-specific options
636
+ #
637
+ # @yield [result, err] Result & error if block supplied
638
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Empty] parsed result object
639
+ # @yieldparam err [StandardError] error object if request failed
640
+ #
641
+ # @return [Google::Apis::ManagedidentitiesV1::Empty]
642
+ #
643
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
644
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
645
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
646
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
647
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
648
+ command.request_representation = Google::Apis::ManagedidentitiesV1::CancelOperationRequest::Representation
649
+ command.request_object = cancel_operation_request_object
650
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Empty::Representation
651
+ command.response_class = Google::Apis::ManagedidentitiesV1::Empty
652
+ command.params['name'] = name unless name.nil?
653
+ command.query['fields'] = fields unless fields.nil?
654
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
655
+ execute_or_queue_command(command, &block)
656
+ end
657
+
658
+ # Deletes a long-running operation. This method indicates that the client is
659
+ # no longer interested in the operation result. It does not cancel the
660
+ # operation. If the server doesn't support this method, it returns
661
+ # `google.rpc.Code.UNIMPLEMENTED`.
662
+ # @param [String] name
663
+ # The name of the operation resource to be deleted.
664
+ # @param [String] fields
665
+ # Selector specifying which fields to include in a partial response.
666
+ # @param [String] quota_user
667
+ # Available to use for quota purposes for server-side applications. Can be any
668
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
669
+ # @param [Google::Apis::RequestOptions] options
670
+ # Request-specific options
671
+ #
672
+ # @yield [result, err] Result & error if block supplied
673
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Empty] parsed result object
674
+ # @yieldparam err [StandardError] error object if request failed
675
+ #
676
+ # @return [Google::Apis::ManagedidentitiesV1::Empty]
677
+ #
678
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
679
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
680
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
681
+ def delete_project_location_global_operation(name, fields: nil, quota_user: nil, options: nil, &block)
682
+ command = make_simple_command(:delete, 'v1/{+name}', options)
683
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Empty::Representation
684
+ command.response_class = Google::Apis::ManagedidentitiesV1::Empty
685
+ command.params['name'] = name unless name.nil?
686
+ command.query['fields'] = fields unless fields.nil?
687
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
688
+ execute_or_queue_command(command, &block)
689
+ end
690
+
691
+ # Gets the latest state of a long-running operation. Clients can use this
692
+ # method to poll the operation result at intervals as recommended by the API
693
+ # service.
694
+ # @param [String] name
695
+ # The name of the operation resource.
696
+ # @param [String] fields
697
+ # Selector specifying which fields to include in a partial response.
698
+ # @param [String] quota_user
699
+ # Available to use for quota purposes for server-side applications. Can be any
700
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
701
+ # @param [Google::Apis::RequestOptions] options
702
+ # Request-specific options
703
+ #
704
+ # @yield [result, err] Result & error if block supplied
705
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Operation] parsed result object
706
+ # @yieldparam err [StandardError] error object if request failed
707
+ #
708
+ # @return [Google::Apis::ManagedidentitiesV1::Operation]
709
+ #
710
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
711
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
712
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
713
+ def get_project_location_global_operation(name, fields: nil, quota_user: nil, options: nil, &block)
714
+ command = make_simple_command(:get, 'v1/{+name}', options)
715
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Operation::Representation
716
+ command.response_class = Google::Apis::ManagedidentitiesV1::Operation
717
+ command.params['name'] = name unless name.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
+ # Lists operations that match the specified filter in the request. If the
724
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
725
+ # NOTE: the `name` binding allows API services to override the binding
726
+ # to use different resource name schemes, such as `users/*/operations`. To
727
+ # override the binding, API services can add a binding such as
728
+ # `"/v1/`name=users/*`/operations"` to their service configuration.
729
+ # For backwards compatibility, the default name includes the operations
730
+ # collection id, however overriding users must ensure the name binding
731
+ # is the parent resource, without the operations collection id.
732
+ # @param [String] name
733
+ # The name of the operation's parent resource.
734
+ # @param [String] filter
735
+ # The standard list filter.
736
+ # @param [Fixnum] page_size
737
+ # The standard list page size.
738
+ # @param [String] page_token
739
+ # The standard list page token.
740
+ # @param [String] fields
741
+ # Selector specifying which fields to include in a partial response.
742
+ # @param [String] quota_user
743
+ # Available to use for quota purposes for server-side applications. Can be any
744
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
745
+ # @param [Google::Apis::RequestOptions] options
746
+ # Request-specific options
747
+ #
748
+ # @yield [result, err] Result & error if block supplied
749
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::ListOperationsResponse] parsed result object
750
+ # @yieldparam err [StandardError] error object if request failed
751
+ #
752
+ # @return [Google::Apis::ManagedidentitiesV1::ListOperationsResponse]
753
+ #
754
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
755
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
756
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
757
+ def list_project_location_global_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
758
+ command = make_simple_command(:get, 'v1/{+name}', options)
759
+ command.response_representation = Google::Apis::ManagedidentitiesV1::ListOperationsResponse::Representation
760
+ command.response_class = Google::Apis::ManagedidentitiesV1::ListOperationsResponse
761
+ command.params['name'] = name unless name.nil?
762
+ command.query['filter'] = filter unless filter.nil?
763
+ command.query['pageSize'] = page_size unless page_size.nil?
764
+ command.query['pageToken'] = page_token unless page_token.nil?
765
+ command.query['fields'] = fields unless fields.nil?
766
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
767
+ execute_or_queue_command(command, &block)
768
+ end
769
+
770
+ protected
771
+
772
+ def apply_command_defaults(command)
773
+ command.query['key'] = key unless key.nil?
774
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
775
+ end
776
+ end
777
+ end
778
+ end
779
+ end