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_alpha.html">Google Cloud Deployment Manager Alpha API</a> . <a href="deploymentmanager_alpha.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 "runtimePolicies": [ # Output only. In case this is an action, it will show the runtimePolicies on which this action will run in the deployment 121 "A String", 122 ], 123 "update": { # Output only. If Deployment Manager is currently updating or previewing an update to this resource, the updated configuration appears here. 124 "accessControl": { # The access controls set on the resource. # The Access Control Policy to set on this resource after updating the resource itself. 125 "gcpIamPolicy": "A String", # The GCP IAM Policy to set on the resource. 126 }, 127 "credential": { # The credential used by Deployment Manager and TypeProvider. Only one of the options is permitted. # Output only. The credential that will be used creating/updating this resource. 128 "serviceAccount": { # Service Account used as a credential. # Service Account Credential, only used by Deployment. 129 "email": "A String", # The IAM service account email address like test@myproject.iam.gserviceaccount.com 130 }, 131 "basicAuth": { # Basic Auth used as a credential. # Basic Auth Credential, only used by TypeProvider. 132 "password": "A String", 133 "user": "A String", 134 }, 135 "useProjectDefault": True or False, # Specify to use the project default credential, only supported by Deployment. 136 }, 137 "finalProperties": "A String", # Output only. The expanded properties of the resource with reference values expanded. Returned as serialized YAML. 138 "warnings": [ # Output only. If warning messages are generated during processing of this resource, this field will be populated. 139 { 140 "message": "A String", # [Output Only] A human-readable description of the warning code. 141 "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. 142 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 143 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 144 { 145 "value": "A String", # [Output Only] A warning data value corresponding to the key. 146 "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). 147 }, 148 ], 149 }, 150 ], 151 "manifest": "A String", # Output only. URL of the manifest representing the update configuration of this resource. 152 "state": "A String", # Output only. The state of the resource. 153 "intent": "A String", # Output only. The intent of the resource: PREVIEW, UPDATE, or CANCEL. 154 "error": { # Output only. If errors are generated during update of the resource, this field will be populated. 155 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 156 { 157 "message": "A String", # [Output Only] An optional, human-readable error message. 158 "code": "A String", # [Output Only] The error type identifier for this error. 159 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 160 }, 161 ], 162 }, 163 "runtimePolicies": [ # Output only. In case this is an action, it will show the runtimePolicies that this action will have after updating the deployment. 164 "A String", 165 ], 166 "properties": "A String", # Output only. The set of updated properties for this resource, before references are expanded. Returned as serialized YAML. 167 }, 168 "updateTime": "A String", # Output only. Update timestamp in RFC3339 text format. 169 "manifest": "A String", # Output only. URL of the manifest representing the current configuration of this resource. 170 "insertTime": "A String", # Output only. Creation timestamp in RFC3339 text format. 171 "lastUsedCredential": { # The credential used by Deployment Manager and TypeProvider. Only one of the options is permitted. # Output only. The last used credential that successfully created/updated the resource. 172 "serviceAccount": { # Service Account used as a credential. # Service Account Credential, only used by Deployment. 173 "email": "A String", # The IAM service account email address like test@myproject.iam.gserviceaccount.com 174 }, 175 "basicAuth": { # Basic Auth used as a credential. # Basic Auth Credential, only used by TypeProvider. 176 "password": "A String", 177 "user": "A String", 178 }, 179 "useProjectDefault": True or False, # Specify to use the project default credential, only supported by Deployment. 180 }, 181 "type": "A String", # Output only. The type of the resource, for example compute.v1.instance, or cloudfunctions.v1beta1.function. 182 "id": "A String", 183 }</pre> 184</div> 185 186<div class="method"> 187 <code class="details" id="list">list(project, deployment, orderBy=None, maxResults=None, pageToken=None, filter=None)</code> 188 <pre>Lists all resources in a given deployment. 189 190Args: 191 project: string, The project ID for this request. (required) 192 deployment: string, The name of the deployment for this request. (required) 193 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 194 195You 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. 196 197Currently, only sorting by name or creationTimestamp desc is supported. 198 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) 199 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. 200 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. 201 202For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. 203 204You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. 205 206To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). 207 208Returns: 209 An object of the form: 210 211 { # A response containing a partial list of resources and a page token used to build the next request if the request has been truncated. 212 "nextPageToken": "A String", # A token used to continue a truncated list request. 213 "resources": [ # Resources contained in this list response. 214 { 215 "accessControl": { # The access controls set on the resource. # The Access Control Policy set on this resource. 216 "gcpIamPolicy": "A String", # The GCP IAM Policy to set on the resource. 217 }, 218 "finalProperties": "A String", # Output only. The evaluated properties of the resource with references expanded. Returned as serialized YAML. 219 "properties": "A String", # Output only. The current properties of the resource before any references have been filled in. Returned as serialized YAML. 220 "name": "A String", # Output only. The name of the resource as it appears in the YAML config. 221 "warnings": [ # Output only. If warning messages are generated during processing of this resource, this field will be populated. 222 { 223 "message": "A String", # [Output Only] A human-readable description of the warning code. 224 "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. 225 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 226 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 227 { 228 "value": "A String", # [Output Only] A warning data value corresponding to the key. 229 "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). 230 }, 231 ], 232 }, 233 ], 234 "url": "A String", # Output only. The URL of the actual resource. 235 "runtimePolicies": [ # Output only. In case this is an action, it will show the runtimePolicies on which this action will run in the deployment 236 "A String", 237 ], 238 "update": { # Output only. If Deployment Manager is currently updating or previewing an update to this resource, the updated configuration appears here. 239 "accessControl": { # The access controls set on the resource. # The Access Control Policy to set on this resource after updating the resource itself. 240 "gcpIamPolicy": "A String", # The GCP IAM Policy to set on the resource. 241 }, 242 "credential": { # The credential used by Deployment Manager and TypeProvider. Only one of the options is permitted. # Output only. The credential that will be used creating/updating this resource. 243 "serviceAccount": { # Service Account used as a credential. # Service Account Credential, only used by Deployment. 244 "email": "A String", # The IAM service account email address like test@myproject.iam.gserviceaccount.com 245 }, 246 "basicAuth": { # Basic Auth used as a credential. # Basic Auth Credential, only used by TypeProvider. 247 "password": "A String", 248 "user": "A String", 249 }, 250 "useProjectDefault": True or False, # Specify to use the project default credential, only supported by Deployment. 251 }, 252 "finalProperties": "A String", # Output only. The expanded properties of the resource with reference values expanded. Returned as serialized YAML. 253 "warnings": [ # Output only. If warning messages are generated during processing of this resource, this field will be populated. 254 { 255 "message": "A String", # [Output Only] A human-readable description of the warning code. 256 "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. 257 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 258 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 259 { 260 "value": "A String", # [Output Only] A warning data value corresponding to the key. 261 "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). 262 }, 263 ], 264 }, 265 ], 266 "manifest": "A String", # Output only. URL of the manifest representing the update configuration of this resource. 267 "state": "A String", # Output only. The state of the resource. 268 "intent": "A String", # Output only. The intent of the resource: PREVIEW, UPDATE, or CANCEL. 269 "error": { # Output only. If errors are generated during update of the resource, this field will be populated. 270 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 271 { 272 "message": "A String", # [Output Only] An optional, human-readable error message. 273 "code": "A String", # [Output Only] The error type identifier for this error. 274 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 275 }, 276 ], 277 }, 278 "runtimePolicies": [ # Output only. In case this is an action, it will show the runtimePolicies that this action will have after updating the deployment. 279 "A String", 280 ], 281 "properties": "A String", # Output only. The set of updated properties for this resource, before references are expanded. Returned as serialized YAML. 282 }, 283 "updateTime": "A String", # Output only. Update timestamp in RFC3339 text format. 284 "manifest": "A String", # Output only. URL of the manifest representing the current configuration of this resource. 285 "insertTime": "A String", # Output only. Creation timestamp in RFC3339 text format. 286 "lastUsedCredential": { # The credential used by Deployment Manager and TypeProvider. Only one of the options is permitted. # Output only. The last used credential that successfully created/updated the resource. 287 "serviceAccount": { # Service Account used as a credential. # Service Account Credential, only used by Deployment. 288 "email": "A String", # The IAM service account email address like test@myproject.iam.gserviceaccount.com 289 }, 290 "basicAuth": { # Basic Auth used as a credential. # Basic Auth Credential, only used by TypeProvider. 291 "password": "A String", 292 "user": "A String", 293 }, 294 "useProjectDefault": True or False, # Specify to use the project default credential, only supported by Deployment. 295 }, 296 "type": "A String", # Output only. The type of the resource, for example compute.v1.instance, or cloudfunctions.v1beta1.function. 297 "id": "A String", 298 }, 299 ], 300 }</pre> 301</div> 302 303<div class="method"> 304 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 305 <pre>Retrieves the next page of results. 306 307Args: 308 previous_request: The request for the previous page. (required) 309 previous_response: The response from the request for the previous page. (required) 310 311Returns: 312 A request object that you can call 'execute()' on to request the next 313 page. Returns None if there are no more items in the collection. 314 </pre> 315</div> 316 317</body></html>