| 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="run_v2.html">Cloud Run Admin API</a> . <a href="run_v2.projects.html">projects</a> . <a href="run_v2.projects.locations.html">locations</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="run_v2.projects.locations.builds.html">builds()</a></code> |
| 79 |
</p> |
| 80 |
<p class="firstline">Returns the builds Resource.</p> |
| 81 |
|
| 82 |
<p class="toc_element"> |
| 83 |
<code><a href="run_v2.projects.locations.instances.html">instances()</a></code> |
| 84 |
</p> |
| 85 |
<p class="firstline">Returns the instances Resource.</p> |
| 86 |
|
| 87 |
<p class="toc_element"> |
| 88 |
<code><a href="run_v2.projects.locations.jobs.html">jobs()</a></code> |
| 89 |
</p> |
| 90 |
<p class="firstline">Returns the jobs Resource.</p> |
| 91 |
|
| 92 |
<p class="toc_element"> |
| 93 |
<code><a href="run_v2.projects.locations.operations.html">operations()</a></code> |
| 94 |
</p> |
| 95 |
<p class="firstline">Returns the operations Resource.</p> |
| 96 |
|
| 97 |
<p class="toc_element"> |
| 98 |
<code><a href="run_v2.projects.locations.services.html">services()</a></code> |
| 99 |
</p> |
| 100 |
<p class="firstline">Returns the services Resource.</p> |
| 101 |
|
| 102 |
<p class="toc_element"> |
| 103 |
<code><a href="run_v2.projects.locations.workerPools.html">workerPools()</a></code> |
| 104 |
</p> |
| 105 |
<p class="firstline">Returns the workerPools Resource.</p> |
| 106 |
|
| 107 |
<p class="toc_element"> |
| 108 |
<code><a href="#close">close()</a></code></p> |
| 109 |
<p class="firstline">Close httplib2 connections.</p> |
| 110 |
<p class="toc_element"> |
| 111 |
<code><a href="#exportImage">exportImage(name, body=None, x__xgafv=None)</a></code></p> |
| 112 |
<p class="firstline">Export image for a given resource.</p> |
| 113 |
<p class="toc_element"> |
| 114 |
<code><a href="#exportImageMetadata">exportImageMetadata(name, x__xgafv=None)</a></code></p> |
| 115 |
<p class="firstline">Export image metadata for a given resource.</p> |
| 116 |
<p class="toc_element"> |
| 117 |
<code><a href="#exportMetadata">exportMetadata(name, x__xgafv=None)</a></code></p> |
| 118 |
<p class="firstline">Export generated customer metadata for a given resource.</p> |
| 119 |
<p class="toc_element"> |
| 120 |
<code><a href="#exportProjectMetadata">exportProjectMetadata(name, x__xgafv=None)</a></code></p> |
| 121 |
<p class="firstline">Export generated customer metadata for a given project.</p> |
| 122 |
<h3>Method Details</h3> |
| 123 |
<div class="method"> |
| 124 |
<code class="details" id="close">close()</code> |
| 125 |
<pre>Close httplib2 connections.</pre> |
| 126 |
</div> |
| 127 |
|
| 128 |
<div class="method"> |
| 129 |
<code class="details" id="exportImage">exportImage(name, body=None, x__xgafv=None)</code> |
| 130 |
<pre>Export image for a given resource. |
| 131 |
|
| 132 |
Args: |
| 133 |
name: string, Required. The name of the resource of which image metadata should be exported. Format: `projects/{project_id_or_number}/locations/{location}/services/{service}/revisions/{revision}` for Revision `projects/{project_id_or_number}/locations/{location}/jobs/{job}/executions/{execution}` for Execution (required) |
| 134 |
body: object, The request body. |
| 135 |
The object takes the form of: |
| 136 |
|
| 137 |
{ # Request message for exporting Cloud Run image. |
| 138 |
"destinationRepo": "A String", # Required. The export destination url (the Artifact Registry repo). |
| 139 |
} |
| 140 |
|
| 141 |
x__xgafv: string, V1 error format. |
| 142 |
Allowed values |
| 143 |
1 - v1 error format |
| 144 |
2 - v2 error format |
| 145 |
|
| 146 |
Returns: |
| 147 |
An object of the form: |
| 148 |
|
| 149 |
{ # ExportImageResponse contains an operation Id to track the image export operation. |
| 150 |
"operationId": "A String", # An operation ID used to track the status of image exports tied to the original pod ID in the request. |
| 151 |
}</pre> |
| 152 |
</div> |
| 153 |
|
| 154 |
<div class="method"> |
| 155 |
<code class="details" id="exportImageMetadata">exportImageMetadata(name, x__xgafv=None)</code> |
| 156 |
<pre>Export image metadata for a given resource. |
| 157 |
|
| 158 |
Args: |
| 159 |
name: string, Required. The name of the resource of which image metadata should be exported. Format: `projects/{project_id_or_number}/locations/{location}/services/{service}/revisions/{revision}` for Revision `projects/{project_id_or_number}/locations/{location}/jobs/{job}/executions/{execution}` for Execution (required) |
| 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 |
{ # Metadata represents the JSON encoded generated customer metadata. |
| 169 |
"metadata": "A String", # JSON encoded Google-generated Customer Metadata for a given resource/project. |
| 170 |
}</pre> |
| 171 |
</div> |
| 172 |
|
| 173 |
<div class="method"> |
| 174 |
<code class="details" id="exportMetadata">exportMetadata(name, x__xgafv=None)</code> |
| 175 |
<pre>Export generated customer metadata for a given resource. |
| 176 |
|
| 177 |
Args: |
| 178 |
name: string, Required. The name of the resource of which metadata should be exported. Format: `projects/{project_id_or_number}/locations/{location}/services/{service}` for Service `projects/{project_id_or_number}/locations/{location}/services/{service}/revisions/{revision}` for Revision `projects/{project_id_or_number}/locations/{location}/jobs/{job}/executions/{execution}` for Execution {project_id_or_number} may contains domain-scoped project IDs (required) |
| 179 |
x__xgafv: string, V1 error format. |
| 180 |
Allowed values |
| 181 |
1 - v1 error format |
| 182 |
2 - v2 error format |
| 183 |
|
| 184 |
Returns: |
| 185 |
An object of the form: |
| 186 |
|
| 187 |
{ # Metadata represents the JSON encoded generated customer metadata. |
| 188 |
"metadata": "A String", # JSON encoded Google-generated Customer Metadata for a given resource/project. |
| 189 |
}</pre> |
| 190 |
</div> |
| 191 |
|
| 192 |
<div class="method"> |
| 193 |
<code class="details" id="exportProjectMetadata">exportProjectMetadata(name, x__xgafv=None)</code> |
| 194 |
<pre>Export generated customer metadata for a given project. |
| 195 |
|
| 196 |
Args: |
| 197 |
name: string, Required. The name of the project of which metadata should be exported. Format: `projects/{project_id_or_number}/locations/{location}` for Project in a given location. (required) |
| 198 |
x__xgafv: string, V1 error format. |
| 199 |
Allowed values |
| 200 |
1 - v1 error format |
| 201 |
2 - v2 error format |
| 202 |
|
| 203 |
Returns: |
| 204 |
An object of the form: |
| 205 |
|
| 206 |
{ # Metadata represents the JSON encoded generated customer metadata. |
| 207 |
"metadata": "A String", # JSON encoded Google-generated Customer Metadata for a given resource/project. |
| 208 |
}</pre> |
| 209 |
</div> |
| 210 |
|
| 211 |
</body></html> |