Debian Codegraph @

docs/dyn/migrationcenter_v1.projects.locations.preferenceSets.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="migrationcenter_v1.html">Migration Center API</a> . <a href="migrationcenter_v1.projects.html">projects</a> . <a href="migrationcenter_v1.projects.locations.html">locations</a> . <a href="migrationcenter_v1.projects.locations.preferenceSets.html">preferenceSets</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, preferenceSetId=None, requestId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new preference set in a given project and location.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, requestId=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a preference set.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets the details of a preference set.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists all the preference sets in a given project and location.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates the parameters of a preference set.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, body=None, preferenceSetId=None, requestId=None, x__xgafv=None)</code>
106 <pre>Creates a new preference set in a given project and location.
107
108 Args:
109 parent: string, Required. Value for parent. (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # The preferences that apply to all assets in a given context.
114 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the preference set was created.
115 &quot;description&quot;: &quot;A String&quot;, # A description of the preference set.
116 &quot;displayName&quot;: &quot;A String&quot;, # User-friendly display name. Maximum length is 63 characters.
117 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the preference set.
118 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the preference set was last updated.
119 &quot;virtualMachinePreferences&quot;: { # VirtualMachinePreferences enables you to create sets of assumptions, for example, a geographical location and pricing track, for your migrated virtual machines. The set of preferences influence recommendations for migrating virtual machine assets. # Optional. A set of preferences that applies to all virtual machines in the context.
120 &quot;commitmentPlan&quot;: &quot;A String&quot;, # Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.
121 &quot;computeEnginePreferences&quot;: { # The user preferences relating to Compute Engine target platform. # Compute Engine preferences concern insights and recommendations for Compute Engine target.
122 &quot;licenseType&quot;: &quot;A String&quot;, # License type to consider when calculating costs for virtual machine insights and recommendations. If unspecified, costs are calculated based on the default licensing plan.
123 &quot;machinePreferences&quot;: { # The type of machines to consider when calculating virtual machine migration insights and recommendations. Not all machine types are available in all zones and regions. # Preferences concerning the machine types to consider on Compute Engine.
124 &quot;allowedMachineSeries&quot;: [ # Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.
125 { # A machine series, for a target product (e.g. Compute Engine, Google Cloud VMware Engine).
126 &quot;code&quot;: &quot;A String&quot;, # Code to identify a machine series. Consult this for more details on the available series for Compute Engine: https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison Consult this for more details on the available series for Google Cloud VMware Engine: https://cloud.google.com/vmware-engine/pricing
127 },
128 ],
129 },
130 &quot;persistentDiskType&quot;: &quot;A String&quot;, # Persistent disk type to use. If unspecified (default), all types are considered, based on available usage data.
131 },
132 &quot;regionPreferences&quot;: { # The user preferences relating to target regions. # Region preferences for assets using this preference set. If you are unsure which value to set, the migration service API region is often a good value to start with.
133 &quot;preferredRegions&quot;: [ # A list of preferred regions, ordered by the most preferred region first. Set only valid Google Cloud region names. See https://cloud.google.com/compute/docs/regions-zones for available regions.
134 &quot;A String&quot;,
135 ],
136 },
137 &quot;sizingOptimizationStrategy&quot;: &quot;A String&quot;, # Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine. If you are unsure which value to set, a moderate sizing optimization strategy is often a good value to start with.
138 &quot;soleTenancyPreferences&quot;: { # Preferences concerning Sole Tenancy nodes and VMs. # Preferences concerning Sole Tenant nodes and virtual machines.
139 &quot;commitmentPlan&quot;: &quot;A String&quot;, # Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.
140 &quot;cpuOvercommitRatio&quot;: 3.14, # CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive.
141 &quot;hostMaintenancePolicy&quot;: &quot;A String&quot;, # Sole Tenancy nodes maintenance policy.
142 &quot;nodeTypes&quot;: [ # A list of sole tenant node types. An empty list means that all possible node types will be considered.
143 { # A Sole Tenant node type.
144 &quot;nodeName&quot;: &quot;A String&quot;, # Name of the Sole Tenant node. Consult https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes
145 },
146 ],
147 },
148 &quot;targetProduct&quot;: &quot;A String&quot;, # Target product for assets using this preference set. Specify either target product or business goal, but not both.
149 &quot;vmwareEnginePreferences&quot;: { # The user preferences relating to Google Cloud VMware Engine target platform. # Preferences concerning insights and recommendations for Google Cloud VMware Engine.
150 &quot;commitmentPlan&quot;: &quot;A String&quot;, # Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.
151 &quot;cpuOvercommitRatio&quot;: 3.14, # CPU overcommit ratio. Acceptable values are between 1.0 and 8.0, with 0.1 increment.
152 &quot;memoryOvercommitRatio&quot;: 3.14, # Memory overcommit ratio. Acceptable values are 1.0, 1.25, 1.5, 1.75 and 2.0.
153 &quot;storageDeduplicationCompressionRatio&quot;: 3.14, # The Deduplication and Compression ratio is based on the logical (Used Before) space required to store data before applying deduplication and compression, in relation to the physical (Used After) space required after applying deduplication and compression. Specifically, the ratio is the Used Before space divided by the Used After space. For example, if the Used Before space is 3 GB, but the physical Used After space is 1 GB, the deduplication and compression ratio is 3x. Acceptable values are between 1.0 and 4.0.
154 },
155 },
156 }
157
158 preferenceSetId: string, Required. User specified ID for the preference set. It will become the last component of the preference set name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
159 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
160 x__xgafv: string, V1 error format.
161 Allowed values
162 1 - v1 error format
163 2 - v2 error format
164
165 Returns:
166 An object of the form:
167
168 { # This resource represents a long-running operation that is the result of a network API call.
169 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
170 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
171 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
172 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
173 {
174 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
175 },
176 ],
177 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
178 },
179 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
180 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
181 },
182 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
183 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
184 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
185 },
186 }</pre>
187 </div>
188
189 <div class="method">
190 <code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code>
191 <pre>Deletes a preference set.
192
193 Args:
194 name: string, Required. Name of the group resource. (required)
195 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
196 x__xgafv: string, V1 error format.
197 Allowed values
198 1 - v1 error format
199 2 - v2 error format
200
201 Returns:
202 An object of the form:
203
204 { # This resource represents a long-running operation that is the result of a network API call.
205 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
206 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
207 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
208 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
209 {
210 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
211 },
212 ],
213 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
214 },
215 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
216 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
217 },
218 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
219 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
220 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
221 },
222 }</pre>
223 </div>
224
225 <div class="method">
226 <code class="details" id="get">get(name, x__xgafv=None)</code>
227 <pre>Gets the details of a preference set.
228
229 Args:
230 name: string, Required. Name of the resource. (required)
231 x__xgafv: string, V1 error format.
232 Allowed values
233 1 - v1 error format
234 2 - v2 error format
235
236 Returns:
237 An object of the form:
238
239 { # The preferences that apply to all assets in a given context.
240 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the preference set was created.
241 &quot;description&quot;: &quot;A String&quot;, # A description of the preference set.
242 &quot;displayName&quot;: &quot;A String&quot;, # User-friendly display name. Maximum length is 63 characters.
243 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the preference set.
244 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the preference set was last updated.
245 &quot;virtualMachinePreferences&quot;: { # VirtualMachinePreferences enables you to create sets of assumptions, for example, a geographical location and pricing track, for your migrated virtual machines. The set of preferences influence recommendations for migrating virtual machine assets. # Optional. A set of preferences that applies to all virtual machines in the context.
246 &quot;commitmentPlan&quot;: &quot;A String&quot;, # Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.
247 &quot;computeEnginePreferences&quot;: { # The user preferences relating to Compute Engine target platform. # Compute Engine preferences concern insights and recommendations for Compute Engine target.
248 &quot;licenseType&quot;: &quot;A String&quot;, # License type to consider when calculating costs for virtual machine insights and recommendations. If unspecified, costs are calculated based on the default licensing plan.
249 &quot;machinePreferences&quot;: { # The type of machines to consider when calculating virtual machine migration insights and recommendations. Not all machine types are available in all zones and regions. # Preferences concerning the machine types to consider on Compute Engine.
250 &quot;allowedMachineSeries&quot;: [ # Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.
251 { # A machine series, for a target product (e.g. Compute Engine, Google Cloud VMware Engine).
252 &quot;code&quot;: &quot;A String&quot;, # Code to identify a machine series. Consult this for more details on the available series for Compute Engine: https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison Consult this for more details on the available series for Google Cloud VMware Engine: https://cloud.google.com/vmware-engine/pricing
253 },
254 ],
255 },
256 &quot;persistentDiskType&quot;: &quot;A String&quot;, # Persistent disk type to use. If unspecified (default), all types are considered, based on available usage data.
257 },
258 &quot;regionPreferences&quot;: { # The user preferences relating to target regions. # Region preferences for assets using this preference set. If you are unsure which value to set, the migration service API region is often a good value to start with.
259 &quot;preferredRegions&quot;: [ # A list of preferred regions, ordered by the most preferred region first. Set only valid Google Cloud region names. See https://cloud.google.com/compute/docs/regions-zones for available regions.
260 &quot;A String&quot;,
261 ],
262 },
263 &quot;sizingOptimizationStrategy&quot;: &quot;A String&quot;, # Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine. If you are unsure which value to set, a moderate sizing optimization strategy is often a good value to start with.
264 &quot;soleTenancyPreferences&quot;: { # Preferences concerning Sole Tenancy nodes and VMs. # Preferences concerning Sole Tenant nodes and virtual machines.
265 &quot;commitmentPlan&quot;: &quot;A String&quot;, # Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.
266 &quot;cpuOvercommitRatio&quot;: 3.14, # CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive.
267 &quot;hostMaintenancePolicy&quot;: &quot;A String&quot;, # Sole Tenancy nodes maintenance policy.
268 &quot;nodeTypes&quot;: [ # A list of sole tenant node types. An empty list means that all possible node types will be considered.
269 { # A Sole Tenant node type.
270 &quot;nodeName&quot;: &quot;A String&quot;, # Name of the Sole Tenant node. Consult https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes
271 },
272 ],
273 },
274 &quot;targetProduct&quot;: &quot;A String&quot;, # Target product for assets using this preference set. Specify either target product or business goal, but not both.
275 &quot;vmwareEnginePreferences&quot;: { # The user preferences relating to Google Cloud VMware Engine target platform. # Preferences concerning insights and recommendations for Google Cloud VMware Engine.
276 &quot;commitmentPlan&quot;: &quot;A String&quot;, # Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.
277 &quot;cpuOvercommitRatio&quot;: 3.14, # CPU overcommit ratio. Acceptable values are between 1.0 and 8.0, with 0.1 increment.
278 &quot;memoryOvercommitRatio&quot;: 3.14, # Memory overcommit ratio. Acceptable values are 1.0, 1.25, 1.5, 1.75 and 2.0.
279 &quot;storageDeduplicationCompressionRatio&quot;: 3.14, # The Deduplication and Compression ratio is based on the logical (Used Before) space required to store data before applying deduplication and compression, in relation to the physical (Used After) space required after applying deduplication and compression. Specifically, the ratio is the Used Before space divided by the Used After space. For example, if the Used Before space is 3 GB, but the physical Used After space is 1 GB, the deduplication and compression ratio is 3x. Acceptable values are between 1.0 and 4.0.
280 },
281 },
282 }</pre>
283 </div>
284
285 <div class="method">
286 <code class="details" id="list">list(parent, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
287 <pre>Lists all the preference sets in a given project and location.
288
289 Args:
290 parent: string, Required. Parent value for `ListPreferenceSetsRequest`. (required)
291 orderBy: string, Field to sort by. See https://google.aip.dev/132#ordering for more details.
292 pageSize: integer, Requested page size. Server may return fewer items than requested. If unspecified, at most 500 preference sets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
293 pageToken: string, A token identifying a page of results the server should return.
294 x__xgafv: string, V1 error format.
295 Allowed values
296 1 - v1 error format
297 2 - v2 error format
298
299 Returns:
300 An object of the form:
301
302 { # Response message for listing preference sets.
303 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying a page of results the server should return.
304 &quot;preferenceSets&quot;: [ # The list of PreferenceSets
305 { # The preferences that apply to all assets in a given context.
306 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the preference set was created.
307 &quot;description&quot;: &quot;A String&quot;, # A description of the preference set.
308 &quot;displayName&quot;: &quot;A String&quot;, # User-friendly display name. Maximum length is 63 characters.
309 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the preference set.
310 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the preference set was last updated.
311 &quot;virtualMachinePreferences&quot;: { # VirtualMachinePreferences enables you to create sets of assumptions, for example, a geographical location and pricing track, for your migrated virtual machines. The set of preferences influence recommendations for migrating virtual machine assets. # Optional. A set of preferences that applies to all virtual machines in the context.
312 &quot;commitmentPlan&quot;: &quot;A String&quot;, # Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.
313 &quot;computeEnginePreferences&quot;: { # The user preferences relating to Compute Engine target platform. # Compute Engine preferences concern insights and recommendations for Compute Engine target.
314 &quot;licenseType&quot;: &quot;A String&quot;, # License type to consider when calculating costs for virtual machine insights and recommendations. If unspecified, costs are calculated based on the default licensing plan.
315 &quot;machinePreferences&quot;: { # The type of machines to consider when calculating virtual machine migration insights and recommendations. Not all machine types are available in all zones and regions. # Preferences concerning the machine types to consider on Compute Engine.
316 &quot;allowedMachineSeries&quot;: [ # Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.
317 { # A machine series, for a target product (e.g. Compute Engine, Google Cloud VMware Engine).
318 &quot;code&quot;: &quot;A String&quot;, # Code to identify a machine series. Consult this for more details on the available series for Compute Engine: https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison Consult this for more details on the available series for Google Cloud VMware Engine: https://cloud.google.com/vmware-engine/pricing
319 },
320 ],
321 },
322 &quot;persistentDiskType&quot;: &quot;A String&quot;, # Persistent disk type to use. If unspecified (default), all types are considered, based on available usage data.
323 },
324 &quot;regionPreferences&quot;: { # The user preferences relating to target regions. # Region preferences for assets using this preference set. If you are unsure which value to set, the migration service API region is often a good value to start with.
325 &quot;preferredRegions&quot;: [ # A list of preferred regions, ordered by the most preferred region first. Set only valid Google Cloud region names. See https://cloud.google.com/compute/docs/regions-zones for available regions.
326 &quot;A String&quot;,
327 ],
328 },
329 &quot;sizingOptimizationStrategy&quot;: &quot;A String&quot;, # Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine. If you are unsure which value to set, a moderate sizing optimization strategy is often a good value to start with.
330 &quot;soleTenancyPreferences&quot;: { # Preferences concerning Sole Tenancy nodes and VMs. # Preferences concerning Sole Tenant nodes and virtual machines.
331 &quot;commitmentPlan&quot;: &quot;A String&quot;, # Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.
332 &quot;cpuOvercommitRatio&quot;: 3.14, # CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive.
333 &quot;hostMaintenancePolicy&quot;: &quot;A String&quot;, # Sole Tenancy nodes maintenance policy.
334 &quot;nodeTypes&quot;: [ # A list of sole tenant node types. An empty list means that all possible node types will be considered.
335 { # A Sole Tenant node type.
336 &quot;nodeName&quot;: &quot;A String&quot;, # Name of the Sole Tenant node. Consult https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes
337 },
338 ],
339 },
340 &quot;targetProduct&quot;: &quot;A String&quot;, # Target product for assets using this preference set. Specify either target product or business goal, but not both.
341 &quot;vmwareEnginePreferences&quot;: { # The user preferences relating to Google Cloud VMware Engine target platform. # Preferences concerning insights and recommendations for Google Cloud VMware Engine.
342 &quot;commitmentPlan&quot;: &quot;A String&quot;, # Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.
343 &quot;cpuOvercommitRatio&quot;: 3.14, # CPU overcommit ratio. Acceptable values are between 1.0 and 8.0, with 0.1 increment.
344 &quot;memoryOvercommitRatio&quot;: 3.14, # Memory overcommit ratio. Acceptable values are 1.0, 1.25, 1.5, 1.75 and 2.0.
345 &quot;storageDeduplicationCompressionRatio&quot;: 3.14, # The Deduplication and Compression ratio is based on the logical (Used Before) space required to store data before applying deduplication and compression, in relation to the physical (Used After) space required after applying deduplication and compression. Specifically, the ratio is the Used Before space divided by the Used After space. For example, if the Used Before space is 3 GB, but the physical Used After space is 1 GB, the deduplication and compression ratio is 3x. Acceptable values are between 1.0 and 4.0.
346 },
347 },
348 },
349 ],
350 &quot;unreachable&quot;: [ # Locations that could not be reached.
351 &quot;A String&quot;,
352 ],
353 }</pre>
354 </div>
355
356 <div class="method">
357 <code class="details" id="list_next">list_next()</code>
358 <pre>Retrieves the next page of results.
359
360 Args:
361 previous_request: The request for the previous page. (required)
362 previous_response: The response from the request for the previous page. (required)
363
364 Returns:
365 A request object that you can call &#x27;execute()&#x27; on to request the next
366 page. Returns None if there are no more items in the collection.
367 </pre>
368 </div>
369
370 <div class="method">
371 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
372 <pre>Updates the parameters of a preference set.
373
374 Args:
375 name: string, Output only. Name of the preference set. (required)
376 body: object, The request body.
377 The object takes the form of:
378
379 { # The preferences that apply to all assets in a given context.
380 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the preference set was created.
381 &quot;description&quot;: &quot;A String&quot;, # A description of the preference set.
382 &quot;displayName&quot;: &quot;A String&quot;, # User-friendly display name. Maximum length is 63 characters.
383 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the preference set.
384 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the preference set was last updated.
385 &quot;virtualMachinePreferences&quot;: { # VirtualMachinePreferences enables you to create sets of assumptions, for example, a geographical location and pricing track, for your migrated virtual machines. The set of preferences influence recommendations for migrating virtual machine assets. # Optional. A set of preferences that applies to all virtual machines in the context.
386 &quot;commitmentPlan&quot;: &quot;A String&quot;, # Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.
387 &quot;computeEnginePreferences&quot;: { # The user preferences relating to Compute Engine target platform. # Compute Engine preferences concern insights and recommendations for Compute Engine target.
388 &quot;licenseType&quot;: &quot;A String&quot;, # License type to consider when calculating costs for virtual machine insights and recommendations. If unspecified, costs are calculated based on the default licensing plan.
389 &quot;machinePreferences&quot;: { # The type of machines to consider when calculating virtual machine migration insights and recommendations. Not all machine types are available in all zones and regions. # Preferences concerning the machine types to consider on Compute Engine.
390 &quot;allowedMachineSeries&quot;: [ # Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.
391 { # A machine series, for a target product (e.g. Compute Engine, Google Cloud VMware Engine).
392 &quot;code&quot;: &quot;A String&quot;, # Code to identify a machine series. Consult this for more details on the available series for Compute Engine: https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison Consult this for more details on the available series for Google Cloud VMware Engine: https://cloud.google.com/vmware-engine/pricing
393 },
394 ],
395 },
396 &quot;persistentDiskType&quot;: &quot;A String&quot;, # Persistent disk type to use. If unspecified (default), all types are considered, based on available usage data.
397 },
398 &quot;regionPreferences&quot;: { # The user preferences relating to target regions. # Region preferences for assets using this preference set. If you are unsure which value to set, the migration service API region is often a good value to start with.
399 &quot;preferredRegions&quot;: [ # A list of preferred regions, ordered by the most preferred region first. Set only valid Google Cloud region names. See https://cloud.google.com/compute/docs/regions-zones for available regions.
400 &quot;A String&quot;,
401 ],
402 },
403 &quot;sizingOptimizationStrategy&quot;: &quot;A String&quot;, # Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine. If you are unsure which value to set, a moderate sizing optimization strategy is often a good value to start with.
404 &quot;soleTenancyPreferences&quot;: { # Preferences concerning Sole Tenancy nodes and VMs. # Preferences concerning Sole Tenant nodes and virtual machines.
405 &quot;commitmentPlan&quot;: &quot;A String&quot;, # Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.
406 &quot;cpuOvercommitRatio&quot;: 3.14, # CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive.
407 &quot;hostMaintenancePolicy&quot;: &quot;A String&quot;, # Sole Tenancy nodes maintenance policy.
408 &quot;nodeTypes&quot;: [ # A list of sole tenant node types. An empty list means that all possible node types will be considered.
409 { # A Sole Tenant node type.
410 &quot;nodeName&quot;: &quot;A String&quot;, # Name of the Sole Tenant node. Consult https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes
411 },
412 ],
413 },
414 &quot;targetProduct&quot;: &quot;A String&quot;, # Target product for assets using this preference set. Specify either target product or business goal, but not both.
415 &quot;vmwareEnginePreferences&quot;: { # The user preferences relating to Google Cloud VMware Engine target platform. # Preferences concerning insights and recommendations for Google Cloud VMware Engine.
416 &quot;commitmentPlan&quot;: &quot;A String&quot;, # Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.
417 &quot;cpuOvercommitRatio&quot;: 3.14, # CPU overcommit ratio. Acceptable values are between 1.0 and 8.0, with 0.1 increment.
418 &quot;memoryOvercommitRatio&quot;: 3.14, # Memory overcommit ratio. Acceptable values are 1.0, 1.25, 1.5, 1.75 and 2.0.
419 &quot;storageDeduplicationCompressionRatio&quot;: 3.14, # The Deduplication and Compression ratio is based on the logical (Used Before) space required to store data before applying deduplication and compression, in relation to the physical (Used After) space required after applying deduplication and compression. Specifically, the ratio is the Used Before space divided by the Used After space. For example, if the Used Before space is 3 GB, but the physical Used After space is 1 GB, the deduplication and compression ratio is 3x. Acceptable values are between 1.0 and 4.0.
420 },
421 },
422 }
423
424 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
425 updateMask: string, Required. Field mask is used to specify the fields to be overwritten in the `PreferenceSet` resource by the update. The values specified in the `update_mask` field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.
426 x__xgafv: string, V1 error format.
427 Allowed values
428 1 - v1 error format
429 2 - v2 error format
430
431 Returns:
432 An object of the form:
433
434 { # This resource represents a long-running operation that is the result of a network API call.
435 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
436 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
437 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
438 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
439 {
440 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
441 },
442 ],
443 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
444 },
445 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
446 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
447 },
448 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
449 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
450 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
451 },
452 }</pre>
453 </div>
454
455 </body></html>