1<html><body> 2<style> 3 4body, 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 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, 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="deploymentmanager_v2.html">Google Cloud Deployment Manager API</a> . <a href="deploymentmanager_v2.resources.html">resources</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#get">get(project, deployment, resource)</a></code></p> 79<p class="firstline">Gets information about a single resource.</p> 80<p class="toc_element"> 81 <code><a href="#list">list(project, deployment, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p> 82<p class="firstline">Lists all resources in a given deployment.</p> 83<p class="toc_element"> 84 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 85<p class="firstline">Retrieves the next page of results.</p> 86<h3>Method Details</h3> 87<div class="method"> 88 <code class="details" id="get">get(project, deployment, resource)</code> 89 <pre>Gets information about a single resource. 90 91Args: 92 project: string, The project ID for this request. (required) 93 deployment: string, The name of the deployment for this request. (required) 94 resource: string, The name of the resource for this request. (required) 95 96Returns: 97 An object of the form: 98 99 { 100 "accessControl": { # The access controls set on the resource. # The Access Control Policy set on this resource. 101 "gcpIamPolicy": "A String", # The GCP IAM Policy to set on the resource. 102 }, 103 "finalProperties": "A String", # [Output Only] The evaluated properties of the resource with references expanded. Returned as serialized YAML. 104 "properties": "A String", # [Output Only] The current properties of the resource before any references have been filled in. Returned as serialized YAML. 105 "name": "A String", # [Output Only] The name of the resource as it appears in the YAML config. 106 "warnings": [ # [Output Only] If warning messages are generated during processing of this resource, this field will be populated. 107 { 108 "message": "A String", # [Output Only] A human-readable description of the warning code. 109 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 110 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 111 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 112 { 113 "value": "A String", # [Output Only] A warning data value corresponding to the key. 114 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 115 }, 116 ], 117 }, 118 ], 119 "url": "A String", # [Output Only] The URL of the actual resource. 120 "update": { # [Output Only] If Deployment Manager is currently updating or previewing an update to this resource, the updated configuration appears here. 121 "accessControl": { # The access controls set on the resource. # The Access Control Policy to set on this resource after updating the resource itself. 122 "gcpIamPolicy": "A String", # The GCP IAM Policy to set on the resource. 123 }, 124 "finalProperties": "A String", # [Output Only] The expanded properties of the resource with reference values expanded. Returned as serialized YAML. 125 "warnings": [ # [Output Only] If warning messages are generated during processing of this resource, this field will be populated. 126 { 127 "message": "A String", # [Output Only] A human-readable description of the warning code. 128 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 129 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 130 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 131 { 132 "value": "A String", # [Output Only] A warning data value corresponding to the key. 133 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 134 }, 135 ], 136 }, 137 ], 138 "manifest": "A String", # [Output Only] URL of the manifest representing the update configuration of this resource. 139 "state": "A String", # [Output Only] The state of the resource. 140 "intent": "A String", # [Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL. 141 "error": { # [Output Only] If errors are generated during update of the resource, this field will be populated. 142 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 143 { 144 "message": "A String", # [Output Only] An optional, human-readable error message. 145 "code": "A String", # [Output Only] The error type identifier for this error. 146 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 147 }, 148 ], 149 }, 150 "properties": "A String", # [Output Only] The set of updated properties for this resource, before references are expanded. Returned as serialized YAML. 151 }, 152 "updateTime": "A String", # [Output Only] Timestamp when the resource was updated, in RFC3339 text format . 153 "manifest": "A String", # [Output Only] URL of the manifest representing the current configuration of this resource. 154 "insertTime": "A String", # [Output Only] Timestamp when the resource was created or acquired, in RFC3339 text format . 155 "type": "A String", # [Output Only] The type of the resource, for example compute.v1.instance, or cloudfunctions.v1beta1.function. 156 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 157 }</pre> 158</div> 159 160<div class="method"> 161 <code class="details" id="list">list(project, deployment, orderBy=None, maxResults=None, pageToken=None, filter=None)</code> 162 <pre>Lists all resources in a given deployment. 163 164Args: 165 project: string, The project ID for this request. (required) 166 deployment: string, The name of the deployment for this request. (required) 167 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 168 169You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. 170 171Currently, only sorting by name or creationTimestamp desc is supported. 172 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) 173 pageToken: string, Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. 174 filter: string, Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string. 175 176The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. 177 178For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance. 179 180You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. 181 182To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 183 184Returns: 185 An object of the form: 186 187 { # A response containing a partial list of resources and a page token used to build the next request if the request has been truncated. 188 "nextPageToken": "A String", # A token used to continue a truncated list request. 189 "resources": [ # Resources contained in this list response. 190 { 191 "accessControl": { # The access controls set on the resource. # The Access Control Policy set on this resource. 192 "gcpIamPolicy": "A String", # The GCP IAM Policy to set on the resource. 193 }, 194 "finalProperties": "A String", # [Output Only] The evaluated properties of the resource with references expanded. Returned as serialized YAML. 195 "properties": "A String", # [Output Only] The current properties of the resource before any references have been filled in. Returned as serialized YAML. 196 "name": "A String", # [Output Only] The name of the resource as it appears in the YAML config. 197 "warnings": [ # [Output Only] If warning messages are generated during processing of this resource, this field will be populated. 198 { 199 "message": "A String", # [Output Only] A human-readable description of the warning code. 200 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 201 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 202 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 203 { 204 "value": "A String", # [Output Only] A warning data value corresponding to the key. 205 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 206 }, 207 ], 208 }, 209 ], 210 "url": "A String", # [Output Only] The URL of the actual resource. 211 "update": { # [Output Only] If Deployment Manager is currently updating or previewing an update to this resource, the updated configuration appears here. 212 "accessControl": { # The access controls set on the resource. # The Access Control Policy to set on this resource after updating the resource itself. 213 "gcpIamPolicy": "A String", # The GCP IAM Policy to set on the resource. 214 }, 215 "finalProperties": "A String", # [Output Only] The expanded properties of the resource with reference values expanded. Returned as serialized YAML. 216 "warnings": [ # [Output Only] If warning messages are generated during processing of this resource, this field will be populated. 217 { 218 "message": "A String", # [Output Only] A human-readable description of the warning code. 219 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 220 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 221 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 222 { 223 "value": "A String", # [Output Only] A warning data value corresponding to the key. 224 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 225 }, 226 ], 227 }, 228 ], 229 "manifest": "A String", # [Output Only] URL of the manifest representing the update configuration of this resource. 230 "state": "A String", # [Output Only] The state of the resource. 231 "intent": "A String", # [Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL. 232 "error": { # [Output Only] If errors are generated during update of the resource, this field will be populated. 233 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 234 { 235 "message": "A String", # [Output Only] An optional, human-readable error message. 236 "code": "A String", # [Output Only] The error type identifier for this error. 237 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 238 }, 239 ], 240 }, 241 "properties": "A String", # [Output Only] The set of updated properties for this resource, before references are expanded. Returned as serialized YAML. 242 }, 243 "updateTime": "A String", # [Output Only] Timestamp when the resource was updated, in RFC3339 text format . 244 "manifest": "A String", # [Output Only] URL of the manifest representing the current configuration of this resource. 245 "insertTime": "A String", # [Output Only] Timestamp when the resource was created or acquired, in RFC3339 text format . 246 "type": "A String", # [Output Only] The type of the resource, for example compute.v1.instance, or cloudfunctions.v1beta1.function. 247 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 248 }, 249 ], 250 }</pre> 251</div> 252 253<div class="method"> 254 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 255 <pre>Retrieves the next page of results. 256 257Args: 258 previous_request: The request for the previous page. (required) 259 previous_response: The response from the request for the previous page. (required) 260 261Returns: 262 A request object that you can call 'execute()' on to request the next 263 page. Returns None if there are no more items in the collection. 264 </pre> 265</div> 266 267</body></html>