google-api-client 0.49.0 → 0.50.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (200) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +81 -0
  3. data/generated/google/apis/accessapproval_v1.rb +1 -1
  4. data/generated/google/apis/accessapproval_v1/service.rb +12 -9
  5. data/generated/google/apis/admob_v1.rb +4 -1
  6. data/generated/google/apis/admob_v1/service.rb +4 -0
  7. data/generated/google/apis/admob_v1beta.rb +38 -0
  8. data/generated/google/apis/admob_v1beta/classes.rb +1035 -0
  9. data/generated/google/apis/admob_v1beta/representations.rb +472 -0
  10. data/generated/google/apis/admob_v1beta/service.rb +279 -0
  11. data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
  12. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +8 -32
  13. data/generated/google/apis/analyticsdata_v1alpha/representations.rb +0 -16
  14. data/generated/google/apis/analyticsdata_v1alpha/service.rb +3 -32
  15. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  16. data/generated/google/apis/androidenterprise_v1/classes.rb +6 -0
  17. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  18. data/generated/google/apis/apigee_v1.rb +1 -1
  19. data/generated/google/apis/apigee_v1/classes.rb +114 -11
  20. data/generated/google/apis/apigee_v1/representations.rb +39 -1
  21. data/generated/google/apis/apigee_v1/service.rb +370 -2
  22. data/generated/google/apis/area120tables_v1alpha1.rb +1 -1
  23. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  24. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +0 -6
  25. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +0 -1
  26. data/generated/google/apis/assuredworkloads_v1beta1.rb +1 -1
  27. data/generated/google/apis/assuredworkloads_v1beta1/classes.rb +22 -10
  28. data/generated/google/apis/assuredworkloads_v1beta1/representations.rb +2 -0
  29. data/generated/google/apis/assuredworkloads_v1beta1/service.rb +1 -5
  30. data/generated/google/apis/billingbudgets_v1.rb +1 -1
  31. data/generated/google/apis/billingbudgets_v1/classes.rb +6 -6
  32. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  33. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +6 -6
  34. data/generated/google/apis/cloudasset_v1.rb +1 -1
  35. data/generated/google/apis/cloudasset_v1/classes.rb +425 -6
  36. data/generated/google/apis/cloudasset_v1/representations.rb +170 -1
  37. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  38. data/generated/google/apis/cloudasset_v1beta1/classes.rb +0 -6
  39. data/generated/google/apis/cloudasset_v1beta1/representations.rb +0 -1
  40. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  41. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +0 -6
  42. data/generated/google/apis/cloudasset_v1p1beta1/representations.rb +0 -1
  43. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  44. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +0 -6
  45. data/generated/google/apis/cloudasset_v1p4beta1/representations.rb +0 -1
  46. data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
  47. data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +0 -6
  48. data/generated/google/apis/cloudasset_v1p5beta1/representations.rb +0 -1
  49. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  50. data/generated/google/apis/cloudfunctions_v1/classes.rb +0 -6
  51. data/generated/google/apis/cloudfunctions_v1/representations.rb +0 -1
  52. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  53. data/generated/google/apis/cloudidentity_v1/service.rb +7 -3
  54. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  55. data/generated/google/apis/cloudidentity_v1beta1/service.rb +7 -3
  56. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  57. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +323 -6
  58. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +248 -1
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +323 -6
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +248 -1
  62. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  63. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +323 -6
  64. data/generated/google/apis/cloudresourcemanager_v2/representations.rb +248 -1
  65. data/generated/google/apis/cloudresourcemanager_v2/service.rb +5 -5
  66. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  67. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +323 -6
  68. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +248 -1
  69. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +5 -5
  70. data/generated/google/apis/compute_v1.rb +1 -1
  71. data/generated/google/apis/compute_v1/classes.rb +35 -13
  72. data/generated/google/apis/compute_v1/representations.rb +2 -0
  73. data/generated/google/apis/compute_v1/service.rb +2 -1
  74. data/generated/google/apis/content_v2.rb +1 -1
  75. data/generated/google/apis/content_v2/service.rb +3 -1
  76. data/generated/google/apis/content_v2_1.rb +1 -1
  77. data/generated/google/apis/content_v2_1/classes.rb +446 -4
  78. data/generated/google/apis/content_v2_1/representations.rb +136 -0
  79. data/generated/google/apis/content_v2_1/service.rb +36 -1
  80. data/generated/google/apis/deploymentmanager_v2.rb +2 -2
  81. data/generated/google/apis/deploymentmanager_v2/service.rb +1 -1
  82. data/generated/google/apis/deploymentmanager_v2beta.rb +2 -2
  83. data/generated/google/apis/deploymentmanager_v2beta/service.rb +1 -1
  84. data/generated/google/apis/dialogflow_v2.rb +1 -1
  85. data/generated/google/apis/dialogflow_v2/classes.rb +0 -31
  86. data/generated/google/apis/dialogflow_v2/representations.rb +0 -15
  87. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  88. data/generated/google/apis/dialogflow_v2beta1/classes.rb +0 -31
  89. data/generated/google/apis/dialogflow_v2beta1/representations.rb +0 -15
  90. data/generated/google/apis/dialogflow_v2beta1/service.rb +12 -6
  91. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  92. data/generated/google/apis/dialogflow_v3beta1/classes.rb +0 -31
  93. data/generated/google/apis/dialogflow_v3beta1/representations.rb +0 -15
  94. data/generated/google/apis/displayvideo_v1.rb +1 -1
  95. data/generated/google/apis/displayvideo_v1/classes.rb +5 -5
  96. data/generated/google/apis/displayvideo_v1/service.rb +1 -1
  97. data/generated/google/apis/dlp_v2.rb +1 -1
  98. data/generated/google/apis/dlp_v2/classes.rb +6 -0
  99. data/generated/google/apis/dlp_v2/representations.rb +1 -0
  100. data/generated/google/apis/domains_v1alpha2.rb +1 -1
  101. data/generated/google/apis/domains_v1alpha2/classes.rb +0 -6
  102. data/generated/google/apis/domains_v1alpha2/representations.rb +0 -1
  103. data/generated/google/apis/domains_v1beta1.rb +1 -1
  104. data/generated/google/apis/domains_v1beta1/classes.rb +0 -6
  105. data/generated/google/apis/domains_v1beta1/representations.rb +0 -1
  106. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  107. data/generated/google/apis/drive_v2.rb +1 -1
  108. data/generated/google/apis/drive_v2/classes.rb +2 -2
  109. data/generated/google/apis/drive_v3.rb +1 -1
  110. data/generated/google/apis/drive_v3/classes.rb +2 -2
  111. data/generated/google/apis/healthcare_v1.rb +1 -1
  112. data/generated/google/apis/healthcare_v1/classes.rb +6 -0
  113. data/generated/google/apis/healthcare_v1/representations.rb +1 -0
  114. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  115. data/generated/google/apis/healthcare_v1beta1/classes.rb +12 -54
  116. data/generated/google/apis/healthcare_v1beta1/representations.rb +3 -29
  117. data/generated/google/apis/logging_v2.rb +1 -1
  118. data/generated/google/apis/logging_v2/classes.rb +4 -2
  119. data/generated/google/apis/logging_v2/service.rb +20 -20
  120. data/generated/google/apis/managedidentities_v1.rb +1 -1
  121. data/generated/google/apis/managedidentities_v1/classes.rb +345 -4
  122. data/generated/google/apis/managedidentities_v1/representations.rb +149 -0
  123. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  124. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +345 -4
  125. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +149 -0
  126. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  127. data/generated/google/apis/managedidentities_v1beta1/classes.rb +345 -4
  128. data/generated/google/apis/managedidentities_v1beta1/representations.rb +149 -0
  129. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  130. data/generated/google/apis/memcache_v1beta2/classes.rb +345 -4
  131. data/generated/google/apis/memcache_v1beta2/representations.rb +149 -0
  132. data/generated/google/apis/notebooks_v1.rb +34 -0
  133. data/generated/google/apis/notebooks_v1/classes.rb +1461 -0
  134. data/generated/google/apis/notebooks_v1/representations.rb +581 -0
  135. data/generated/google/apis/notebooks_v1/service.rb +1042 -0
  136. data/generated/google/apis/people_v1.rb +1 -1
  137. data/generated/google/apis/people_v1/service.rb +9 -6
  138. data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
  139. data/generated/google/apis/policytroubleshooter_v1/classes.rb +0 -6
  140. data/generated/google/apis/policytroubleshooter_v1/representations.rb +0 -1
  141. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  142. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +0 -6
  143. data/generated/google/apis/policytroubleshooter_v1beta/representations.rb +0 -1
  144. data/generated/google/apis/privateca_v1beta1.rb +1 -1
  145. data/generated/google/apis/privateca_v1beta1/classes.rb +0 -6
  146. data/generated/google/apis/privateca_v1beta1/representations.rb +0 -1
  147. data/generated/google/apis/privateca_v1beta1/service.rb +0 -52
  148. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  149. data/generated/google/apis/realtimebidding_v1/classes.rb +545 -0
  150. data/generated/google/apis/realtimebidding_v1/representations.rb +232 -0
  151. data/generated/google/apis/realtimebidding_v1/service.rb +450 -0
  152. data/generated/google/apis/redis_v1.rb +1 -1
  153. data/generated/google/apis/redis_v1/classes.rb +58 -0
  154. data/generated/google/apis/redis_v1/representations.rb +20 -0
  155. data/generated/google/apis/redis_v1beta1.rb +1 -1
  156. data/generated/google/apis/redis_v1beta1/classes.rb +58 -0
  157. data/generated/google/apis/redis_v1beta1/representations.rb +20 -0
  158. data/generated/google/apis/run_v1.rb +1 -1
  159. data/generated/google/apis/run_v1/classes.rb +0 -6
  160. data/generated/google/apis/run_v1/representations.rb +0 -1
  161. data/generated/google/apis/run_v1alpha1.rb +1 -1
  162. data/generated/google/apis/run_v1alpha1/classes.rb +0 -6
  163. data/generated/google/apis/run_v1alpha1/representations.rb +0 -1
  164. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  165. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +0 -6
  166. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +0 -1
  167. data/generated/google/apis/secretmanager_v1.rb +1 -1
  168. data/generated/google/apis/secretmanager_v1/classes.rb +0 -6
  169. data/generated/google/apis/secretmanager_v1/representations.rb +0 -1
  170. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  171. data/generated/google/apis/secretmanager_v1beta1/classes.rb +0 -6
  172. data/generated/google/apis/secretmanager_v1beta1/representations.rb +0 -1
  173. data/generated/google/apis/securitycenter_v1.rb +1 -1
  174. data/generated/google/apis/securitycenter_v1/classes.rb +0 -6
  175. data/generated/google/apis/securitycenter_v1/representations.rb +0 -1
  176. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  177. data/generated/google/apis/securitycenter_v1beta1/classes.rb +0 -6
  178. data/generated/google/apis/securitycenter_v1beta1/representations.rb +0 -1
  179. data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
  180. data/generated/google/apis/servicedirectory_v1beta1/classes.rb +26 -6
  181. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  182. data/generated/google/apis/servicemanagement_v1/classes.rb +1 -7
  183. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
  184. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  185. data/generated/google/apis/servicenetworking_v1/service.rb +38 -0
  186. data/generated/google/apis/storage_v1.rb +1 -1
  187. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  188. data/generated/google/apis/storagetransfer_v1/classes.rb +31 -16
  189. data/generated/google/apis/storagetransfer_v1/representations.rb +3 -0
  190. data/generated/google/apis/storagetransfer_v1/service.rb +3 -3
  191. data/generated/google/apis/transcoder_v1beta1.rb +34 -0
  192. data/generated/google/apis/transcoder_v1beta1/classes.rb +1684 -0
  193. data/generated/google/apis/transcoder_v1beta1/representations.rb +756 -0
  194. data/generated/google/apis/transcoder_v1beta1/service.rb +329 -0
  195. data/generated/google/apis/translate_v3.rb +1 -1
  196. data/generated/google/apis/translate_v3beta1.rb +1 -1
  197. data/generated/google/apis/youtube_v3.rb +1 -1
  198. data/generated/google/apis/youtube_v3/service.rb +6 -6
  199. data/lib/google/apis/version.rb +1 -1
  200. metadata +15 -3
@@ -0,0 +1,1042 @@
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 NotebooksV1
23
+ # Notebooks API
24
+ #
25
+ # AI Platform Notebooks API is used to manage notebook resources in Google Cloud.
26
+ #
27
+ # @example
28
+ # require 'google/apis/notebooks_v1'
29
+ #
30
+ # Notebooks = Google::Apis::NotebooksV1 # Alias the module
31
+ # service = Notebooks::AIPlatformNotebooksService.new
32
+ #
33
+ # @see https://cloud.google.com/ai-platform/notebooks/docs/
34
+ class AIPlatformNotebooksService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://notebooks.googleapis.com/', '')
47
+ @batch_path = 'batch'
48
+ end
49
+
50
+ # Gets information about a location.
51
+ # @param [String] name
52
+ # Resource name for the location.
53
+ # @param [String] fields
54
+ # Selector specifying which fields to include in a partial response.
55
+ # @param [String] quota_user
56
+ # Available to use for quota purposes for server-side applications. Can be any
57
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
58
+ # @param [Google::Apis::RequestOptions] options
59
+ # Request-specific options
60
+ #
61
+ # @yield [result, err] Result & error if block supplied
62
+ # @yieldparam result [Google::Apis::NotebooksV1::Location] parsed result object
63
+ # @yieldparam err [StandardError] error object if request failed
64
+ #
65
+ # @return [Google::Apis::NotebooksV1::Location]
66
+ #
67
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
68
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
69
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
70
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
71
+ command = make_simple_command(:get, 'v1/{+name}', options)
72
+ command.response_representation = Google::Apis::NotebooksV1::Location::Representation
73
+ command.response_class = Google::Apis::NotebooksV1::Location
74
+ command.params['name'] = name unless name.nil?
75
+ command.query['fields'] = fields unless fields.nil?
76
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
77
+ execute_or_queue_command(command, &block)
78
+ end
79
+
80
+ # Lists information about the supported locations for this service.
81
+ # @param [String] name
82
+ # The resource that owns the locations collection, if applicable.
83
+ # @param [String] filter
84
+ # The standard list filter.
85
+ # @param [Fixnum] page_size
86
+ # The standard list page size.
87
+ # @param [String] page_token
88
+ # The standard list page token.
89
+ # @param [String] fields
90
+ # Selector specifying which fields to include in a partial response.
91
+ # @param [String] quota_user
92
+ # Available to use for quota purposes for server-side applications. Can be any
93
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
94
+ # @param [Google::Apis::RequestOptions] options
95
+ # Request-specific options
96
+ #
97
+ # @yield [result, err] Result & error if block supplied
98
+ # @yieldparam result [Google::Apis::NotebooksV1::ListLocationsResponse] parsed result object
99
+ # @yieldparam err [StandardError] error object if request failed
100
+ #
101
+ # @return [Google::Apis::NotebooksV1::ListLocationsResponse]
102
+ #
103
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
104
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
105
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
106
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
107
+ command = make_simple_command(:get, 'v1/{+name}/locations', options)
108
+ command.response_representation = Google::Apis::NotebooksV1::ListLocationsResponse::Representation
109
+ command.response_class = Google::Apis::NotebooksV1::ListLocationsResponse
110
+ command.params['name'] = name unless name.nil?
111
+ command.query['filter'] = filter unless filter.nil?
112
+ command.query['pageSize'] = page_size unless page_size.nil?
113
+ command.query['pageToken'] = page_token unless page_token.nil?
114
+ command.query['fields'] = fields unless fields.nil?
115
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
116
+ execute_or_queue_command(command, &block)
117
+ end
118
+
119
+ # Creates a new Environment.
120
+ # @param [String] parent
121
+ # Required. Format: `projects/`project_id`/locations/`location``
122
+ # @param [Google::Apis::NotebooksV1::Environment] environment_object
123
+ # @param [String] environment_id
124
+ # Required. User-defined unique ID of this environment. The `environment_id`
125
+ # must be 1 to 63 characters long and contain only lowercase letters, numeric
126
+ # characters, and dashes. The first character must be a lowercase letter and the
127
+ # last character cannot be a dash.
128
+ # @param [String] fields
129
+ # Selector specifying which fields to include in a partial response.
130
+ # @param [String] quota_user
131
+ # Available to use for quota purposes for server-side applications. Can be any
132
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
133
+ # @param [Google::Apis::RequestOptions] options
134
+ # Request-specific options
135
+ #
136
+ # @yield [result, err] Result & error if block supplied
137
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
138
+ # @yieldparam err [StandardError] error object if request failed
139
+ #
140
+ # @return [Google::Apis::NotebooksV1::Operation]
141
+ #
142
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
143
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
144
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
145
+ def create_project_location_environment(parent, environment_object = nil, environment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
146
+ command = make_simple_command(:post, 'v1/{+parent}/environments', options)
147
+ command.request_representation = Google::Apis::NotebooksV1::Environment::Representation
148
+ command.request_object = environment_object
149
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
150
+ command.response_class = Google::Apis::NotebooksV1::Operation
151
+ command.params['parent'] = parent unless parent.nil?
152
+ command.query['environmentId'] = environment_id unless environment_id.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
+ # Deletes a single Environment.
159
+ # @param [String] name
160
+ # Required. Format: `projects/`project_id`/locations/`location`/environments/`
161
+ # environment_id``
162
+ # @param [String] fields
163
+ # Selector specifying which fields to include in a partial response.
164
+ # @param [String] quota_user
165
+ # Available to use for quota purposes for server-side applications. Can be any
166
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
167
+ # @param [Google::Apis::RequestOptions] options
168
+ # Request-specific options
169
+ #
170
+ # @yield [result, err] Result & error if block supplied
171
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
172
+ # @yieldparam err [StandardError] error object if request failed
173
+ #
174
+ # @return [Google::Apis::NotebooksV1::Operation]
175
+ #
176
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
177
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
178
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
179
+ def delete_project_location_environment(name, fields: nil, quota_user: nil, options: nil, &block)
180
+ command = make_simple_command(:delete, 'v1/{+name}', options)
181
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
182
+ command.response_class = Google::Apis::NotebooksV1::Operation
183
+ command.params['name'] = name unless name.nil?
184
+ command.query['fields'] = fields unless fields.nil?
185
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
186
+ execute_or_queue_command(command, &block)
187
+ end
188
+
189
+ # Gets details of a single Environment.
190
+ # @param [String] name
191
+ # Required. Format: `projects/`project_id`/locations/`location`/environments/`
192
+ # environment_id``
193
+ # @param [String] fields
194
+ # Selector specifying which fields to include in a partial response.
195
+ # @param [String] quota_user
196
+ # Available to use for quota purposes for server-side applications. Can be any
197
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
198
+ # @param [Google::Apis::RequestOptions] options
199
+ # Request-specific options
200
+ #
201
+ # @yield [result, err] Result & error if block supplied
202
+ # @yieldparam result [Google::Apis::NotebooksV1::Environment] parsed result object
203
+ # @yieldparam err [StandardError] error object if request failed
204
+ #
205
+ # @return [Google::Apis::NotebooksV1::Environment]
206
+ #
207
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
208
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
209
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
210
+ def get_project_location_environment(name, fields: nil, quota_user: nil, options: nil, &block)
211
+ command = make_simple_command(:get, 'v1/{+name}', options)
212
+ command.response_representation = Google::Apis::NotebooksV1::Environment::Representation
213
+ command.response_class = Google::Apis::NotebooksV1::Environment
214
+ command.params['name'] = name unless name.nil?
215
+ command.query['fields'] = fields unless fields.nil?
216
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
217
+ execute_or_queue_command(command, &block)
218
+ end
219
+
220
+ # Lists environments in a project.
221
+ # @param [String] parent
222
+ # Required. Format: `projects/`project_id`/locations/`location``
223
+ # @param [Fixnum] page_size
224
+ # Maximum return size of the list call.
225
+ # @param [String] page_token
226
+ # A previous returned page token that can be used to continue listing from the
227
+ # last result.
228
+ # @param [String] fields
229
+ # Selector specifying which fields to include in a partial response.
230
+ # @param [String] quota_user
231
+ # Available to use for quota purposes for server-side applications. Can be any
232
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
233
+ # @param [Google::Apis::RequestOptions] options
234
+ # Request-specific options
235
+ #
236
+ # @yield [result, err] Result & error if block supplied
237
+ # @yieldparam result [Google::Apis::NotebooksV1::ListEnvironmentsResponse] parsed result object
238
+ # @yieldparam err [StandardError] error object if request failed
239
+ #
240
+ # @return [Google::Apis::NotebooksV1::ListEnvironmentsResponse]
241
+ #
242
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
243
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
244
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
245
+ def list_project_location_environments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
246
+ command = make_simple_command(:get, 'v1/{+parent}/environments', options)
247
+ command.response_representation = Google::Apis::NotebooksV1::ListEnvironmentsResponse::Representation
248
+ command.response_class = Google::Apis::NotebooksV1::ListEnvironmentsResponse
249
+ command.params['parent'] = parent unless parent.nil?
250
+ command.query['pageSize'] = page_size unless page_size.nil?
251
+ command.query['pageToken'] = page_token unless page_token.nil?
252
+ command.query['fields'] = fields unless fields.nil?
253
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
254
+ execute_or_queue_command(command, &block)
255
+ end
256
+
257
+ # Creates a new Instance in a given project and location.
258
+ # @param [String] parent
259
+ # Required. Format: `parent=projects/`project_id`/locations/`location``
260
+ # @param [Google::Apis::NotebooksV1::Instance] instance_object
261
+ # @param [String] instance_id
262
+ # Required. User-defined unique ID of this instance.
263
+ # @param [String] fields
264
+ # Selector specifying which fields to include in a partial response.
265
+ # @param [String] quota_user
266
+ # Available to use for quota purposes for server-side applications. Can be any
267
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
268
+ # @param [Google::Apis::RequestOptions] options
269
+ # Request-specific options
270
+ #
271
+ # @yield [result, err] Result & error if block supplied
272
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
273
+ # @yieldparam err [StandardError] error object if request failed
274
+ #
275
+ # @return [Google::Apis::NotebooksV1::Operation]
276
+ #
277
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
278
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
279
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
280
+ def create_project_location_instance(parent, instance_object = nil, instance_id: nil, fields: nil, quota_user: nil, options: nil, &block)
281
+ command = make_simple_command(:post, 'v1/{+parent}/instances', options)
282
+ command.request_representation = Google::Apis::NotebooksV1::Instance::Representation
283
+ command.request_object = instance_object
284
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
285
+ command.response_class = Google::Apis::NotebooksV1::Operation
286
+ command.params['parent'] = parent unless parent.nil?
287
+ command.query['instanceId'] = instance_id unless instance_id.nil?
288
+ command.query['fields'] = fields unless fields.nil?
289
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
290
+ execute_or_queue_command(command, &block)
291
+ end
292
+
293
+ # Deletes a single Instance.
294
+ # @param [String] name
295
+ # Required. Format: `projects/`project_id`/locations/`location`/instances/`
296
+ # instance_id``
297
+ # @param [String] fields
298
+ # Selector specifying which fields to include in a partial response.
299
+ # @param [String] quota_user
300
+ # Available to use for quota purposes for server-side applications. Can be any
301
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
302
+ # @param [Google::Apis::RequestOptions] options
303
+ # Request-specific options
304
+ #
305
+ # @yield [result, err] Result & error if block supplied
306
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
307
+ # @yieldparam err [StandardError] error object if request failed
308
+ #
309
+ # @return [Google::Apis::NotebooksV1::Operation]
310
+ #
311
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
312
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
313
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
314
+ def delete_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
315
+ command = make_simple_command(:delete, 'v1/{+name}', options)
316
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
317
+ command.response_class = Google::Apis::NotebooksV1::Operation
318
+ command.params['name'] = name unless name.nil?
319
+ command.query['fields'] = fields unless fields.nil?
320
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
321
+ execute_or_queue_command(command, &block)
322
+ end
323
+
324
+ # Gets details of a single Instance.
325
+ # @param [String] name
326
+ # Required. Format: `projects/`project_id`/locations/`location`/instances/`
327
+ # instance_id``
328
+ # @param [String] fields
329
+ # Selector specifying which fields to include in a partial response.
330
+ # @param [String] quota_user
331
+ # Available to use for quota purposes for server-side applications. Can be any
332
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
333
+ # @param [Google::Apis::RequestOptions] options
334
+ # Request-specific options
335
+ #
336
+ # @yield [result, err] Result & error if block supplied
337
+ # @yieldparam result [Google::Apis::NotebooksV1::Instance] parsed result object
338
+ # @yieldparam err [StandardError] error object if request failed
339
+ #
340
+ # @return [Google::Apis::NotebooksV1::Instance]
341
+ #
342
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
343
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
344
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
345
+ def get_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
346
+ command = make_simple_command(:get, 'v1/{+name}', options)
347
+ command.response_representation = Google::Apis::NotebooksV1::Instance::Representation
348
+ command.response_class = Google::Apis::NotebooksV1::Instance
349
+ command.params['name'] = name unless name.nil?
350
+ command.query['fields'] = fields unless fields.nil?
351
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
352
+ execute_or_queue_command(command, &block)
353
+ end
354
+
355
+ # Gets the access control policy for a resource. Returns an empty policy if the
356
+ # resource exists and does not have a policy set.
357
+ # @param [String] resource
358
+ # REQUIRED: The resource for which the policy is being requested. See the
359
+ # operation documentation for the appropriate value for this field.
360
+ # @param [Fixnum] options_requested_policy_version
361
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
362
+ # 3. Requests specifying an invalid value will be rejected. Requests for
363
+ # policies with any conditional bindings must specify version 3. Policies
364
+ # without any conditional bindings may specify any valid value or leave the
365
+ # field unset. To learn which resources support conditions in their IAM policies,
366
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
367
+ # resource-policies).
368
+ # @param [String] fields
369
+ # Selector specifying which fields to include in a partial response.
370
+ # @param [String] quota_user
371
+ # Available to use for quota purposes for server-side applications. Can be any
372
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
373
+ # @param [Google::Apis::RequestOptions] options
374
+ # Request-specific options
375
+ #
376
+ # @yield [result, err] Result & error if block supplied
377
+ # @yieldparam result [Google::Apis::NotebooksV1::Policy] parsed result object
378
+ # @yieldparam err [StandardError] error object if request failed
379
+ #
380
+ # @return [Google::Apis::NotebooksV1::Policy]
381
+ #
382
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
383
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
384
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
385
+ def get_project_location_instance_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
386
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
387
+ command.response_representation = Google::Apis::NotebooksV1::Policy::Representation
388
+ command.response_class = Google::Apis::NotebooksV1::Policy
389
+ command.params['resource'] = resource unless resource.nil?
390
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.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
+ # Check if a notebook instance is upgradable.
397
+ # @param [String] notebook_instance
398
+ # Required. Format: `projects/`project_id`/locations/`location`/instances/`
399
+ # instance_id``
400
+ # @param [String] fields
401
+ # Selector specifying which fields to include in a partial response.
402
+ # @param [String] quota_user
403
+ # Available to use for quota purposes for server-side applications. Can be any
404
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
405
+ # @param [Google::Apis::RequestOptions] options
406
+ # Request-specific options
407
+ #
408
+ # @yield [result, err] Result & error if block supplied
409
+ # @yieldparam result [Google::Apis::NotebooksV1::IsInstanceUpgradeableResponse] parsed result object
410
+ # @yieldparam err [StandardError] error object if request failed
411
+ #
412
+ # @return [Google::Apis::NotebooksV1::IsInstanceUpgradeableResponse]
413
+ #
414
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
415
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
416
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
417
+ def is_project_location_instance_upgradeable(notebook_instance, fields: nil, quota_user: nil, options: nil, &block)
418
+ command = make_simple_command(:get, 'v1/{+notebookInstance}:isUpgradeable', options)
419
+ command.response_representation = Google::Apis::NotebooksV1::IsInstanceUpgradeableResponse::Representation
420
+ command.response_class = Google::Apis::NotebooksV1::IsInstanceUpgradeableResponse
421
+ command.params['notebookInstance'] = notebook_instance unless notebook_instance.nil?
422
+ command.query['fields'] = fields unless fields.nil?
423
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
424
+ execute_or_queue_command(command, &block)
425
+ end
426
+
427
+ # Lists instances in a given project and location.
428
+ # @param [String] parent
429
+ # Required. Format: `parent=projects/`project_id`/locations/`location``
430
+ # @param [Fixnum] page_size
431
+ # Maximum return size of the list call.
432
+ # @param [String] page_token
433
+ # A previous returned page token that can be used to continue listing from the
434
+ # last result.
435
+ # @param [String] fields
436
+ # Selector specifying which fields to include in a partial response.
437
+ # @param [String] quota_user
438
+ # Available to use for quota purposes for server-side applications. Can be any
439
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
440
+ # @param [Google::Apis::RequestOptions] options
441
+ # Request-specific options
442
+ #
443
+ # @yield [result, err] Result & error if block supplied
444
+ # @yieldparam result [Google::Apis::NotebooksV1::ListInstancesResponse] parsed result object
445
+ # @yieldparam err [StandardError] error object if request failed
446
+ #
447
+ # @return [Google::Apis::NotebooksV1::ListInstancesResponse]
448
+ #
449
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
450
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
451
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
452
+ def list_project_location_instances(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
453
+ command = make_simple_command(:get, 'v1/{+parent}/instances', options)
454
+ command.response_representation = Google::Apis::NotebooksV1::ListInstancesResponse::Representation
455
+ command.response_class = Google::Apis::NotebooksV1::ListInstancesResponse
456
+ command.params['parent'] = parent unless parent.nil?
457
+ command.query['pageSize'] = page_size unless page_size.nil?
458
+ command.query['pageToken'] = page_token unless page_token.nil?
459
+ command.query['fields'] = fields unless fields.nil?
460
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
461
+ execute_or_queue_command(command, &block)
462
+ end
463
+
464
+ # Registers an existing legacy notebook instance to the Notebooks API server.
465
+ # Legacy instances are instances created with the legacy Compute Engine calls.
466
+ # They are not manageable by the Notebooks API out of the box. This call makes
467
+ # these instances manageable by the Notebooks API.
468
+ # @param [String] parent
469
+ # Required. Format: `parent=projects/`project_id`/locations/`location``
470
+ # @param [Google::Apis::NotebooksV1::RegisterInstanceRequest] register_instance_request_object
471
+ # @param [String] fields
472
+ # Selector specifying which fields to include in a partial response.
473
+ # @param [String] quota_user
474
+ # Available to use for quota purposes for server-side applications. Can be any
475
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
476
+ # @param [Google::Apis::RequestOptions] options
477
+ # Request-specific options
478
+ #
479
+ # @yield [result, err] Result & error if block supplied
480
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
481
+ # @yieldparam err [StandardError] error object if request failed
482
+ #
483
+ # @return [Google::Apis::NotebooksV1::Operation]
484
+ #
485
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
486
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
487
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
488
+ def register_instance(parent, register_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
489
+ command = make_simple_command(:post, 'v1/{+parent}/instances:register', options)
490
+ command.request_representation = Google::Apis::NotebooksV1::RegisterInstanceRequest::Representation
491
+ command.request_object = register_instance_request_object
492
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
493
+ command.response_class = Google::Apis::NotebooksV1::Operation
494
+ command.params['parent'] = parent unless parent.nil?
495
+ command.query['fields'] = fields unless fields.nil?
496
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
497
+ execute_or_queue_command(command, &block)
498
+ end
499
+
500
+ # Allows notebook instances to report their latest instance information to the
501
+ # Notebooks API server. The server will merge the reported information to the
502
+ # instance metadata store. Do not use this method directly.
503
+ # @param [String] name
504
+ # Required. Format: `projects/`project_id`/locations/`location`/instances/`
505
+ # instance_id``
506
+ # @param [Google::Apis::NotebooksV1::ReportInstanceInfoRequest] report_instance_info_request_object
507
+ # @param [String] fields
508
+ # Selector specifying which fields to include in a partial response.
509
+ # @param [String] quota_user
510
+ # Available to use for quota purposes for server-side applications. Can be any
511
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
512
+ # @param [Google::Apis::RequestOptions] options
513
+ # Request-specific options
514
+ #
515
+ # @yield [result, err] Result & error if block supplied
516
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
517
+ # @yieldparam err [StandardError] error object if request failed
518
+ #
519
+ # @return [Google::Apis::NotebooksV1::Operation]
520
+ #
521
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
522
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
523
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
524
+ def report_instance_info(name, report_instance_info_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
525
+ command = make_simple_command(:post, 'v1/{+name}:report', options)
526
+ command.request_representation = Google::Apis::NotebooksV1::ReportInstanceInfoRequest::Representation
527
+ command.request_object = report_instance_info_request_object
528
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
529
+ command.response_class = Google::Apis::NotebooksV1::Operation
530
+ command.params['name'] = name unless name.nil?
531
+ command.query['fields'] = fields unless fields.nil?
532
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
533
+ execute_or_queue_command(command, &block)
534
+ end
535
+
536
+ # Resets a notebook instance.
537
+ # @param [String] name
538
+ # Required. Format: `projects/`project_id`/locations/`location`/instances/`
539
+ # instance_id``
540
+ # @param [Google::Apis::NotebooksV1::ResetInstanceRequest] reset_instance_request_object
541
+ # @param [String] fields
542
+ # Selector specifying which fields to include in a partial response.
543
+ # @param [String] quota_user
544
+ # Available to use for quota purposes for server-side applications. Can be any
545
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
546
+ # @param [Google::Apis::RequestOptions] options
547
+ # Request-specific options
548
+ #
549
+ # @yield [result, err] Result & error if block supplied
550
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
551
+ # @yieldparam err [StandardError] error object if request failed
552
+ #
553
+ # @return [Google::Apis::NotebooksV1::Operation]
554
+ #
555
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
556
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
557
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
558
+ def reset_instance(name, reset_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
559
+ command = make_simple_command(:post, 'v1/{+name}:reset', options)
560
+ command.request_representation = Google::Apis::NotebooksV1::ResetInstanceRequest::Representation
561
+ command.request_object = reset_instance_request_object
562
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
563
+ command.response_class = Google::Apis::NotebooksV1::Operation
564
+ command.params['name'] = name unless name.nil?
565
+ command.query['fields'] = fields unless fields.nil?
566
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
567
+ execute_or_queue_command(command, &block)
568
+ end
569
+
570
+ # Updates the guest accelerators of a single Instance.
571
+ # @param [String] name
572
+ # Required. Format: `projects/`project_id`/locations/`location`/instances/`
573
+ # instance_id``
574
+ # @param [Google::Apis::NotebooksV1::SetInstanceAcceleratorRequest] set_instance_accelerator_request_object
575
+ # @param [String] fields
576
+ # Selector specifying which fields to include in a partial response.
577
+ # @param [String] quota_user
578
+ # Available to use for quota purposes for server-side applications. Can be any
579
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
580
+ # @param [Google::Apis::RequestOptions] options
581
+ # Request-specific options
582
+ #
583
+ # @yield [result, err] Result & error if block supplied
584
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
585
+ # @yieldparam err [StandardError] error object if request failed
586
+ #
587
+ # @return [Google::Apis::NotebooksV1::Operation]
588
+ #
589
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
590
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
591
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
592
+ def set_project_location_instance_accelerator(name, set_instance_accelerator_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
593
+ command = make_simple_command(:patch, 'v1/{+name}:setAccelerator', options)
594
+ command.request_representation = Google::Apis::NotebooksV1::SetInstanceAcceleratorRequest::Representation
595
+ command.request_object = set_instance_accelerator_request_object
596
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
597
+ command.response_class = Google::Apis::NotebooksV1::Operation
598
+ command.params['name'] = name unless name.nil?
599
+ command.query['fields'] = fields unless fields.nil?
600
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
601
+ execute_or_queue_command(command, &block)
602
+ end
603
+
604
+ # Sets the access control policy on the specified resource. Replaces any
605
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
606
+ # PERMISSION_DENIED` errors.
607
+ # @param [String] resource
608
+ # REQUIRED: The resource for which the policy is being specified. See the
609
+ # operation documentation for the appropriate value for this field.
610
+ # @param [Google::Apis::NotebooksV1::SetIamPolicyRequest] set_iam_policy_request_object
611
+ # @param [String] fields
612
+ # Selector specifying which fields to include in a partial response.
613
+ # @param [String] quota_user
614
+ # Available to use for quota purposes for server-side applications. Can be any
615
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
616
+ # @param [Google::Apis::RequestOptions] options
617
+ # Request-specific options
618
+ #
619
+ # @yield [result, err] Result & error if block supplied
620
+ # @yieldparam result [Google::Apis::NotebooksV1::Policy] parsed result object
621
+ # @yieldparam err [StandardError] error object if request failed
622
+ #
623
+ # @return [Google::Apis::NotebooksV1::Policy]
624
+ #
625
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
626
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
627
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
628
+ def set_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
629
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
630
+ command.request_representation = Google::Apis::NotebooksV1::SetIamPolicyRequest::Representation
631
+ command.request_object = set_iam_policy_request_object
632
+ command.response_representation = Google::Apis::NotebooksV1::Policy::Representation
633
+ command.response_class = Google::Apis::NotebooksV1::Policy
634
+ command.params['resource'] = resource unless resource.nil?
635
+ command.query['fields'] = fields unless fields.nil?
636
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
637
+ execute_or_queue_command(command, &block)
638
+ end
639
+
640
+ # Replaces all the labels of an Instance.
641
+ # @param [String] name
642
+ # Required. Format: `projects/`project_id`/locations/`location`/instances/`
643
+ # instance_id``
644
+ # @param [Google::Apis::NotebooksV1::SetInstanceLabelsRequest] set_instance_labels_request_object
645
+ # @param [String] fields
646
+ # Selector specifying which fields to include in a partial response.
647
+ # @param [String] quota_user
648
+ # Available to use for quota purposes for server-side applications. Can be any
649
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
650
+ # @param [Google::Apis::RequestOptions] options
651
+ # Request-specific options
652
+ #
653
+ # @yield [result, err] Result & error if block supplied
654
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
655
+ # @yieldparam err [StandardError] error object if request failed
656
+ #
657
+ # @return [Google::Apis::NotebooksV1::Operation]
658
+ #
659
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
660
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
661
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
662
+ def set_project_location_instance_labels(name, set_instance_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
663
+ command = make_simple_command(:patch, 'v1/{+name}:setLabels', options)
664
+ command.request_representation = Google::Apis::NotebooksV1::SetInstanceLabelsRequest::Representation
665
+ command.request_object = set_instance_labels_request_object
666
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
667
+ command.response_class = Google::Apis::NotebooksV1::Operation
668
+ command.params['name'] = name unless name.nil?
669
+ command.query['fields'] = fields unless fields.nil?
670
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
671
+ execute_or_queue_command(command, &block)
672
+ end
673
+
674
+ # Updates the machine type of a single Instance.
675
+ # @param [String] name
676
+ # Required. Format: `projects/`project_id`/locations/`location`/instances/`
677
+ # instance_id``
678
+ # @param [Google::Apis::NotebooksV1::SetInstanceMachineTypeRequest] set_instance_machine_type_request_object
679
+ # @param [String] fields
680
+ # Selector specifying which fields to include in a partial response.
681
+ # @param [String] quota_user
682
+ # Available to use for quota purposes for server-side applications. Can be any
683
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
684
+ # @param [Google::Apis::RequestOptions] options
685
+ # Request-specific options
686
+ #
687
+ # @yield [result, err] Result & error if block supplied
688
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
689
+ # @yieldparam err [StandardError] error object if request failed
690
+ #
691
+ # @return [Google::Apis::NotebooksV1::Operation]
692
+ #
693
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
694
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
695
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
696
+ def set_project_location_instance_machine_type(name, set_instance_machine_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
697
+ command = make_simple_command(:patch, 'v1/{+name}:setMachineType', options)
698
+ command.request_representation = Google::Apis::NotebooksV1::SetInstanceMachineTypeRequest::Representation
699
+ command.request_object = set_instance_machine_type_request_object
700
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
701
+ command.response_class = Google::Apis::NotebooksV1::Operation
702
+ command.params['name'] = name unless name.nil?
703
+ command.query['fields'] = fields unless fields.nil?
704
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
705
+ execute_or_queue_command(command, &block)
706
+ end
707
+
708
+ # Starts a notebook instance.
709
+ # @param [String] name
710
+ # Required. Format: `projects/`project_id`/locations/`location`/instances/`
711
+ # instance_id``
712
+ # @param [Google::Apis::NotebooksV1::StartInstanceRequest] start_instance_request_object
713
+ # @param [String] fields
714
+ # Selector specifying which fields to include in a partial response.
715
+ # @param [String] quota_user
716
+ # Available to use for quota purposes for server-side applications. Can be any
717
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
718
+ # @param [Google::Apis::RequestOptions] options
719
+ # Request-specific options
720
+ #
721
+ # @yield [result, err] Result & error if block supplied
722
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
723
+ # @yieldparam err [StandardError] error object if request failed
724
+ #
725
+ # @return [Google::Apis::NotebooksV1::Operation]
726
+ #
727
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
728
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
729
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
730
+ def start_instance(name, start_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
731
+ command = make_simple_command(:post, 'v1/{+name}:start', options)
732
+ command.request_representation = Google::Apis::NotebooksV1::StartInstanceRequest::Representation
733
+ command.request_object = start_instance_request_object
734
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
735
+ command.response_class = Google::Apis::NotebooksV1::Operation
736
+ command.params['name'] = name unless name.nil?
737
+ command.query['fields'] = fields unless fields.nil?
738
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
739
+ execute_or_queue_command(command, &block)
740
+ end
741
+
742
+ # Stops a notebook instance.
743
+ # @param [String] name
744
+ # Required. Format: `projects/`project_id`/locations/`location`/instances/`
745
+ # instance_id``
746
+ # @param [Google::Apis::NotebooksV1::StopInstanceRequest] stop_instance_request_object
747
+ # @param [String] fields
748
+ # Selector specifying which fields to include in a partial response.
749
+ # @param [String] quota_user
750
+ # Available to use for quota purposes for server-side applications. Can be any
751
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
752
+ # @param [Google::Apis::RequestOptions] options
753
+ # Request-specific options
754
+ #
755
+ # @yield [result, err] Result & error if block supplied
756
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
757
+ # @yieldparam err [StandardError] error object if request failed
758
+ #
759
+ # @return [Google::Apis::NotebooksV1::Operation]
760
+ #
761
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
762
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
763
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
764
+ def stop_instance(name, stop_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
765
+ command = make_simple_command(:post, 'v1/{+name}:stop', options)
766
+ command.request_representation = Google::Apis::NotebooksV1::StopInstanceRequest::Representation
767
+ command.request_object = stop_instance_request_object
768
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
769
+ command.response_class = Google::Apis::NotebooksV1::Operation
770
+ command.params['name'] = name unless name.nil?
771
+ command.query['fields'] = fields unless fields.nil?
772
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
773
+ execute_or_queue_command(command, &block)
774
+ end
775
+
776
+ # Returns permissions that a caller has on the specified resource. If the
777
+ # resource does not exist, this will return an empty set of permissions, not a `
778
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
779
+ # permission-aware UIs and command-line tools, not for authorization checking.
780
+ # This operation may "fail open" without warning.
781
+ # @param [String] resource
782
+ # REQUIRED: The resource for which the policy detail is being requested. See the
783
+ # operation documentation for the appropriate value for this field.
784
+ # @param [Google::Apis::NotebooksV1::TestIamPermissionsRequest] test_iam_permissions_request_object
785
+ # @param [String] fields
786
+ # Selector specifying which fields to include in a partial response.
787
+ # @param [String] quota_user
788
+ # Available to use for quota purposes for server-side applications. Can be any
789
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
790
+ # @param [Google::Apis::RequestOptions] options
791
+ # Request-specific options
792
+ #
793
+ # @yield [result, err] Result & error if block supplied
794
+ # @yieldparam result [Google::Apis::NotebooksV1::TestIamPermissionsResponse] parsed result object
795
+ # @yieldparam err [StandardError] error object if request failed
796
+ #
797
+ # @return [Google::Apis::NotebooksV1::TestIamPermissionsResponse]
798
+ #
799
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
800
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
801
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
802
+ def test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
803
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
804
+ command.request_representation = Google::Apis::NotebooksV1::TestIamPermissionsRequest::Representation
805
+ command.request_object = test_iam_permissions_request_object
806
+ command.response_representation = Google::Apis::NotebooksV1::TestIamPermissionsResponse::Representation
807
+ command.response_class = Google::Apis::NotebooksV1::TestIamPermissionsResponse
808
+ command.params['resource'] = resource unless resource.nil?
809
+ command.query['fields'] = fields unless fields.nil?
810
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
811
+ execute_or_queue_command(command, &block)
812
+ end
813
+
814
+ # Upgrades a notebook instance to the latest version.
815
+ # @param [String] name
816
+ # Required. Format: `projects/`project_id`/locations/`location`/instances/`
817
+ # instance_id``
818
+ # @param [Google::Apis::NotebooksV1::UpgradeInstanceRequest] upgrade_instance_request_object
819
+ # @param [String] fields
820
+ # Selector specifying which fields to include in a partial response.
821
+ # @param [String] quota_user
822
+ # Available to use for quota purposes for server-side applications. Can be any
823
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
824
+ # @param [Google::Apis::RequestOptions] options
825
+ # Request-specific options
826
+ #
827
+ # @yield [result, err] Result & error if block supplied
828
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
829
+ # @yieldparam err [StandardError] error object if request failed
830
+ #
831
+ # @return [Google::Apis::NotebooksV1::Operation]
832
+ #
833
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
834
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
835
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
836
+ def upgrade_instance(name, upgrade_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
837
+ command = make_simple_command(:post, 'v1/{+name}:upgrade', options)
838
+ command.request_representation = Google::Apis::NotebooksV1::UpgradeInstanceRequest::Representation
839
+ command.request_object = upgrade_instance_request_object
840
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
841
+ command.response_class = Google::Apis::NotebooksV1::Operation
842
+ command.params['name'] = name unless name.nil?
843
+ command.query['fields'] = fields unless fields.nil?
844
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
845
+ execute_or_queue_command(command, &block)
846
+ end
847
+
848
+ # Allows notebook instances to call this endpoint to upgrade themselves. Do not
849
+ # use this method directly.
850
+ # @param [String] name
851
+ # Required. Format: `projects/`project_id`/locations/`location`/instances/`
852
+ # instance_id``
853
+ # @param [Google::Apis::NotebooksV1::UpgradeInstanceInternalRequest] upgrade_instance_internal_request_object
854
+ # @param [String] fields
855
+ # Selector specifying which fields to include in a partial response.
856
+ # @param [String] quota_user
857
+ # Available to use for quota purposes for server-side applications. Can be any
858
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
859
+ # @param [Google::Apis::RequestOptions] options
860
+ # Request-specific options
861
+ #
862
+ # @yield [result, err] Result & error if block supplied
863
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
864
+ # @yieldparam err [StandardError] error object if request failed
865
+ #
866
+ # @return [Google::Apis::NotebooksV1::Operation]
867
+ #
868
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
869
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
870
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
871
+ def upgrade_project_location_instance_internal(name, upgrade_instance_internal_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
872
+ command = make_simple_command(:post, 'v1/{+name}:upgradeInternal', options)
873
+ command.request_representation = Google::Apis::NotebooksV1::UpgradeInstanceInternalRequest::Representation
874
+ command.request_object = upgrade_instance_internal_request_object
875
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
876
+ command.response_class = Google::Apis::NotebooksV1::Operation
877
+ command.params['name'] = name unless name.nil?
878
+ command.query['fields'] = fields unless fields.nil?
879
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
880
+ execute_or_queue_command(command, &block)
881
+ end
882
+
883
+ # Starts asynchronous cancellation on a long-running operation. The server makes
884
+ # a best effort to cancel the operation, but success is not guaranteed. If the
885
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
886
+ # Clients can use Operations.GetOperation or other methods to check whether the
887
+ # cancellation succeeded or whether the operation completed despite cancellation.
888
+ # On successful cancellation, the operation is not deleted; instead, it becomes
889
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
890
+ # corresponding to `Code.CANCELLED`.
891
+ # @param [String] name
892
+ # The name of the operation resource to be cancelled.
893
+ # @param [Google::Apis::NotebooksV1::CancelOperationRequest] cancel_operation_request_object
894
+ # @param [String] fields
895
+ # Selector specifying which fields to include in a partial response.
896
+ # @param [String] quota_user
897
+ # Available to use for quota purposes for server-side applications. Can be any
898
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
899
+ # @param [Google::Apis::RequestOptions] options
900
+ # Request-specific options
901
+ #
902
+ # @yield [result, err] Result & error if block supplied
903
+ # @yieldparam result [Google::Apis::NotebooksV1::Empty] parsed result object
904
+ # @yieldparam err [StandardError] error object if request failed
905
+ #
906
+ # @return [Google::Apis::NotebooksV1::Empty]
907
+ #
908
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
909
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
910
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
911
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
912
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
913
+ command.request_representation = Google::Apis::NotebooksV1::CancelOperationRequest::Representation
914
+ command.request_object = cancel_operation_request_object
915
+ command.response_representation = Google::Apis::NotebooksV1::Empty::Representation
916
+ command.response_class = Google::Apis::NotebooksV1::Empty
917
+ command.params['name'] = name unless name.nil?
918
+ command.query['fields'] = fields unless fields.nil?
919
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
920
+ execute_or_queue_command(command, &block)
921
+ end
922
+
923
+ # Deletes a long-running operation. This method indicates that the client is no
924
+ # longer interested in the operation result. It does not cancel the operation.
925
+ # If the server doesn't support this method, it returns `google.rpc.Code.
926
+ # UNIMPLEMENTED`.
927
+ # @param [String] name
928
+ # The name of the operation resource to be deleted.
929
+ # @param [String] fields
930
+ # Selector specifying which fields to include in a partial response.
931
+ # @param [String] quota_user
932
+ # Available to use for quota purposes for server-side applications. Can be any
933
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
934
+ # @param [Google::Apis::RequestOptions] options
935
+ # Request-specific options
936
+ #
937
+ # @yield [result, err] Result & error if block supplied
938
+ # @yieldparam result [Google::Apis::NotebooksV1::Empty] parsed result object
939
+ # @yieldparam err [StandardError] error object if request failed
940
+ #
941
+ # @return [Google::Apis::NotebooksV1::Empty]
942
+ #
943
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
944
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
945
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
946
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
947
+ command = make_simple_command(:delete, 'v1/{+name}', options)
948
+ command.response_representation = Google::Apis::NotebooksV1::Empty::Representation
949
+ command.response_class = Google::Apis::NotebooksV1::Empty
950
+ command.params['name'] = name unless name.nil?
951
+ command.query['fields'] = fields unless fields.nil?
952
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
953
+ execute_or_queue_command(command, &block)
954
+ end
955
+
956
+ # Gets the latest state of a long-running operation. Clients can use this method
957
+ # to poll the operation result at intervals as recommended by the API service.
958
+ # @param [String] name
959
+ # The name of the operation resource.
960
+ # @param [String] fields
961
+ # Selector specifying which fields to include in a partial response.
962
+ # @param [String] quota_user
963
+ # Available to use for quota purposes for server-side applications. Can be any
964
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
965
+ # @param [Google::Apis::RequestOptions] options
966
+ # Request-specific options
967
+ #
968
+ # @yield [result, err] Result & error if block supplied
969
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
970
+ # @yieldparam err [StandardError] error object if request failed
971
+ #
972
+ # @return [Google::Apis::NotebooksV1::Operation]
973
+ #
974
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
975
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
976
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
977
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
978
+ command = make_simple_command(:get, 'v1/{+name}', options)
979
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
980
+ command.response_class = Google::Apis::NotebooksV1::Operation
981
+ command.params['name'] = name unless name.nil?
982
+ command.query['fields'] = fields unless fields.nil?
983
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
984
+ execute_or_queue_command(command, &block)
985
+ end
986
+
987
+ # Lists operations that match the specified filter in the request. If the server
988
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
989
+ # binding allows API services to override the binding to use different resource
990
+ # name schemes, such as `users/*/operations`. To override the binding, API
991
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
992
+ # service configuration. For backwards compatibility, the default name includes
993
+ # the operations collection id, however overriding users must ensure the name
994
+ # binding is the parent resource, without the operations collection id.
995
+ # @param [String] name
996
+ # The name of the operation's parent resource.
997
+ # @param [String] filter
998
+ # The standard list filter.
999
+ # @param [Fixnum] page_size
1000
+ # The standard list page size.
1001
+ # @param [String] page_token
1002
+ # The standard list page token.
1003
+ # @param [String] fields
1004
+ # Selector specifying which fields to include in a partial response.
1005
+ # @param [String] quota_user
1006
+ # Available to use for quota purposes for server-side applications. Can be any
1007
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1008
+ # @param [Google::Apis::RequestOptions] options
1009
+ # Request-specific options
1010
+ #
1011
+ # @yield [result, err] Result & error if block supplied
1012
+ # @yieldparam result [Google::Apis::NotebooksV1::ListOperationsResponse] parsed result object
1013
+ # @yieldparam err [StandardError] error object if request failed
1014
+ #
1015
+ # @return [Google::Apis::NotebooksV1::ListOperationsResponse]
1016
+ #
1017
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1018
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1019
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1020
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1021
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
1022
+ command.response_representation = Google::Apis::NotebooksV1::ListOperationsResponse::Representation
1023
+ command.response_class = Google::Apis::NotebooksV1::ListOperationsResponse
1024
+ command.params['name'] = name unless name.nil?
1025
+ command.query['filter'] = filter unless filter.nil?
1026
+ command.query['pageSize'] = page_size unless page_size.nil?
1027
+ command.query['pageToken'] = page_token unless page_token.nil?
1028
+ command.query['fields'] = fields unless fields.nil?
1029
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1030
+ execute_or_queue_command(command, &block)
1031
+ end
1032
+
1033
+ protected
1034
+
1035
+ def apply_command_defaults(command)
1036
+ command.query['key'] = key unless key.nil?
1037
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1038
+ end
1039
+ end
1040
+ end
1041
+ end
1042
+ end