| 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="aiplatform_v1.html">Agent Platform API</a> . <a href="aiplatform_v1.projects.html">projects</a> . <a href="aiplatform_v1.projects.locations.html">locations</a> . <a href="aiplatform_v1.projects.locations.migratableResources.html">migratableResources</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="aiplatform_v1.projects.locations.migratableResources.operations.html">operations()</a></code> |
| 79 |
</p> |
| 80 |
<p class="firstline">Returns the operations Resource.</p> |
| 81 |
|
| 82 |
<p class="toc_element"> |
| 83 |
<code><a href="#batchMigrate">batchMigrate(parent, body=None, x__xgafv=None)</a></code></p> |
| 84 |
<p class="firstline">Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and datalabeling.googleapis.com to Vertex AI.</p> |
| 85 |
<p class="toc_element"> |
| 86 |
<code><a href="#close">close()</a></code></p> |
| 87 |
<p class="firstline">Close httplib2 connections.</p> |
| 88 |
<p class="toc_element"> |
| 89 |
<code><a href="#search">search(parent, body=None, x__xgafv=None)</a></code></p> |
| 90 |
<p class="firstline">Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and ml.googleapis.com that can be migrated to Vertex AI's given location.</p> |
| 91 |
<p class="toc_element"> |
| 92 |
<code><a href="#search_next">search_next()</a></code></p> |
| 93 |
<p class="firstline">Retrieves the next page of results.</p> |
| 94 |
<h3>Method Details</h3> |
| 95 |
<div class="method"> |
| 96 |
<code class="details" id="batchMigrate">batchMigrate(parent, body=None, x__xgafv=None)</code> |
| 97 |
<pre>Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and datalabeling.googleapis.com to Vertex AI. |
| 98 |
|
| 99 |
Args: |
| 100 |
parent: string, Required. The location of the migrated resource will live in. Format: `projects/{project}/locations/{location}` (required) |
| 101 |
body: object, The request body. |
| 102 |
The object takes the form of: |
| 103 |
|
| 104 |
{ # Request message for MigrationService.BatchMigrateResources. |
| 105 |
"migrateResourceRequests": [ # Required. The request messages specifying the resources to migrate. They must be in the same location as the destination. Up to 50 resources can be migrated in one batch. |
| 106 |
{ # Config of migrating one resource from automl.googleapis.com, datalabeling.googleapis.com and ml.googleapis.com to Vertex AI. |
| 107 |
"migrateAutomlDatasetConfig": { # Config for migrating Dataset in automl.googleapis.com to Vertex AI's Dataset. # Config for migrating Dataset in automl.googleapis.com to Vertex AI's Dataset. |
| 108 |
"dataset": "A String", # Required. Full resource name of automl Dataset. Format: `projects/{project}/locations/{location}/datasets/{dataset}`. |
| 109 |
"datasetDisplayName": "A String", # Required. Display name of the Dataset in Vertex AI. System will pick a display name if unspecified. |
| 110 |
}, |
| 111 |
"migrateAutomlModelConfig": { # Config for migrating Model in automl.googleapis.com to Vertex AI's Model. # Config for migrating Model in automl.googleapis.com to Vertex AI's Model. |
| 112 |
"model": "A String", # Required. Full resource name of automl Model. Format: `projects/{project}/locations/{location}/models/{model}`. |
| 113 |
"modelDisplayName": "A String", # Optional. Display name of the model in Vertex AI. System will pick a display name if unspecified. |
| 114 |
}, |
| 115 |
"migrateDataLabelingDatasetConfig": { # Config for migrating Dataset in datalabeling.googleapis.com to Vertex AI's Dataset. # Deprecated: Data labeling service is shut down. Config for migrating Dataset in datalabeling.googleapis.com to Vertex AI's Dataset. |
| 116 |
"dataset": "A String", # Required. Full resource name of data labeling Dataset. Format: `projects/{project}/datasets/{dataset}`. |
| 117 |
"datasetDisplayName": "A String", # Optional. Display name of the Dataset in Vertex AI. System will pick a display name if unspecified. |
| 118 |
"migrateDataLabelingAnnotatedDatasetConfigs": [ # Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong to the datalabeling Dataset. |
| 119 |
{ # Config for migrating AnnotatedDataset in datalabeling.googleapis.com to Vertex AI's SavedQuery. |
| 120 |
"annotatedDataset": "A String", # Required. Full resource name of data labeling AnnotatedDataset. Format: `projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}`. |
| 121 |
}, |
| 122 |
], |
| 123 |
}, |
| 124 |
"migrateMlEngineModelVersionConfig": { # Config for migrating version in ml.googleapis.com to Vertex AI's Model. # Config for migrating Version in ml.googleapis.com to Vertex AI's Model. |
| 125 |
"endpoint": "A String", # Required. The ml.googleapis.com endpoint that this model version should be migrated from. Example values: * ml.googleapis.com * us-centrall-ml.googleapis.com * europe-west4-ml.googleapis.com * asia-east1-ml.googleapis.com |
| 126 |
"modelDisplayName": "A String", # Required. Display name of the model in Vertex AI. System will pick a display name if unspecified. |
| 127 |
"modelVersion": "A String", # Required. Full resource name of ml engine model version. Format: `projects/{project}/models/{model}/versions/{version}`. |
| 128 |
}, |
| 129 |
}, |
| 130 |
], |
| 131 |
} |
| 132 |
|
| 133 |
x__xgafv: string, V1 error format. |
| 134 |
Allowed values |
| 135 |
1 - v1 error format |
| 136 |
2 - v2 error format |
| 137 |
|
| 138 |
Returns: |
| 139 |
An object of the form: |
| 140 |
|
| 141 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 142 |
"done": 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. |
| 143 |
"error": { # 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. |
| 144 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 145 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 146 |
{ |
| 147 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 148 |
}, |
| 149 |
], |
| 150 |
"message": "A String", # 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. |
| 151 |
}, |
| 152 |
"metadata": { # 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. |
| 153 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 154 |
}, |
| 155 |
"name": "A String", # 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}`. |
| 156 |
"response": { # 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`. |
| 157 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 158 |
}, |
| 159 |
}</pre> |
| 160 |
</div> |
| 161 |
|
| 162 |
<div class="method"> |
| 163 |
<code class="details" id="close">close()</code> |
| 164 |
<pre>Close httplib2 connections.</pre> |
| 165 |
</div> |
| 166 |
|
| 167 |
<div class="method"> |
| 168 |
<code class="details" id="search">search(parent, body=None, x__xgafv=None)</code> |
| 169 |
<pre>Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and ml.googleapis.com that can be migrated to Vertex AI's given location. |
| 170 |
|
| 171 |
Args: |
| 172 |
parent: string, Required. The location that the migratable resources should be searched from. It's the Vertex AI location that the resources can be migrated to, not the resources' original location. Format: `projects/{project}/locations/{location}` (required) |
| 173 |
body: object, The request body. |
| 174 |
The object takes the form of: |
| 175 |
|
| 176 |
{ # Request message for MigrationService.SearchMigratableResources. |
| 177 |
"filter": "A String", # A filter for your search. You can use the following types of filters: * Resource type filters. The following strings filter for a specific type of MigratableResource: * `ml_engine_model_version:*` * `automl_model:*` * `automl_dataset:*` * `data_labeling_dataset:*` * "Migrated or not" filters. The following strings filter for resources that either have or have not already been migrated: * `last_migrate_time:*` filters for migrated resources. * `NOT last_migrate_time:*` filters for not yet migrated resources. |
| 178 |
"pageSize": 42, # The standard page size. The default and maximum value is 100. |
| 179 |
"pageToken": "A String", # The standard page token. |
| 180 |
} |
| 181 |
|
| 182 |
x__xgafv: string, V1 error format. |
| 183 |
Allowed values |
| 184 |
1 - v1 error format |
| 185 |
2 - v2 error format |
| 186 |
|
| 187 |
Returns: |
| 188 |
An object of the form: |
| 189 |
|
| 190 |
{ # Response message for MigrationService.SearchMigratableResources. |
| 191 |
"migratableResources": [ # All migratable resources that can be migrated to the location specified in the request. |
| 192 |
{ # Represents one resource that exists in automl.googleapis.com, datalabeling.googleapis.com or ml.googleapis.com. |
| 193 |
"automlDataset": { # Represents one Dataset in automl.googleapis.com. # Output only. Represents one Dataset in automl.googleapis.com. |
| 194 |
"dataset": "A String", # Full resource name of automl Dataset. Format: `projects/{project}/locations/{location}/datasets/{dataset}`. |
| 195 |
"datasetDisplayName": "A String", # The Dataset's display name in automl.googleapis.com. |
| 196 |
}, |
| 197 |
"automlModel": { # Represents one Model in automl.googleapis.com. # Output only. Represents one Model in automl.googleapis.com. |
| 198 |
"model": "A String", # Full resource name of automl Model. Format: `projects/{project}/locations/{location}/models/{model}`. |
| 199 |
"modelDisplayName": "A String", # The Model's display name in automl.googleapis.com. |
| 200 |
}, |
| 201 |
"dataLabelingDataset": { # Represents one Dataset in datalabeling.googleapis.com. # Output only. Deprecated: Data Labeling Dataset migration is no longer supported. Represents one Dataset in datalabeling.googleapis.com. |
| 202 |
"dataLabelingAnnotatedDatasets": [ # The migratable AnnotatedDataset in datalabeling.googleapis.com belongs to the data labeling Dataset. |
| 203 |
{ # Represents one AnnotatedDataset in datalabeling.googleapis.com. |
| 204 |
"annotatedDataset": "A String", # Full resource name of data labeling AnnotatedDataset. Format: `projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}`. |
| 205 |
"annotatedDatasetDisplayName": "A String", # The AnnotatedDataset's display name in datalabeling.googleapis.com. |
| 206 |
}, |
| 207 |
], |
| 208 |
"dataset": "A String", # Full resource name of data labeling Dataset. Format: `projects/{project}/datasets/{dataset}`. |
| 209 |
"datasetDisplayName": "A String", # The Dataset's display name in datalabeling.googleapis.com. |
| 210 |
}, |
| 211 |
"lastMigrateTime": "A String", # Output only. Timestamp when the last migration attempt on this MigratableResource started. Will not be set if there's no migration attempt on this MigratableResource. |
| 212 |
"lastUpdateTime": "A String", # Output only. Timestamp when this MigratableResource was last updated. |
| 213 |
"mlEngineModelVersion": { # Represents one model Version in ml.googleapis.com. # Output only. Represents one Version in ml.googleapis.com. |
| 214 |
"endpoint": "A String", # The ml.googleapis.com endpoint that this model Version currently lives in. Example values: * ml.googleapis.com * us-centrall-ml.googleapis.com * europe-west4-ml.googleapis.com * asia-east1-ml.googleapis.com |
| 215 |
"version": "A String", # Full resource name of ml engine model Version. Format: `projects/{project}/models/{model}/versions/{version}`. |
| 216 |
}, |
| 217 |
}, |
| 218 |
], |
| 219 |
"nextPageToken": "A String", # The standard next-page token. The migratable_resources may not fill page_size in SearchMigratableResourcesRequest even when there are subsequent pages. |
| 220 |
}</pre> |
| 221 |
</div> |
| 222 |
|
| 223 |
<div class="method"> |
| 224 |
<code class="details" id="search_next">search_next()</code> |
| 225 |
<pre>Retrieves the next page of results. |
| 226 |
|
| 227 |
Args: |
| 228 |
previous_request: The request for the previous page. (required) |
| 229 |
previous_response: The response from the request for the previous page. (required) |
| 230 |
|
| 231 |
Returns: |
| 232 |
A request object that you can call 'execute()' on to request the next |
| 233 |
page. Returns None if there are no more items in the collection. |
| 234 |
</pre> |
| 235 |
</div> |
| 236 |
|
| 237 |
</body></html> |