/usr/lib/python2.7/dist-packages/googlecloudapis/autoscaler/v1beta2/autoscaler_v1beta2_messages.py is in python-googlecloudapis 0.9.30+debian1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 | """Generated message classes for autoscaler version v1beta2.
The Google Compute Engine Autoscaler API provides autoscaling for groups of
Cloud VMs.
"""
from protorpc import messages
package = 'autoscaler'
class Autoscaler(messages.Message):
"""Cloud Autoscaler resource.
Fields:
autoscalingPolicy: Configuration parameters for autoscaling algorithm.
creationTimestamp: [Output Only] Creation timestamp in RFC3339 text
format.
description: An optional textual description of the resource provided by
the client.
id: [Output Only] Unique identifier for the resource; defined by the
server.
name: Name of the Autoscaler resource. Must be unique per project and
zone.
selfLink: [Output Only] A self-link to the Autoscaler configuration
resource.
target: URL to the entity which will be autoscaled. Currently the only
supported value is ReplicaPool?s URL. Note: it is illegal to specify
multiple Autoscalers for the same target.
"""
autoscalingPolicy = messages.MessageField('AutoscalingPolicy', 1)
creationTimestamp = messages.StringField(2)
description = messages.StringField(3)
id = messages.IntegerField(4, variant=messages.Variant.UINT64)
name = messages.StringField(5)
selfLink = messages.StringField(6)
target = messages.StringField(7)
class AutoscalerAutoscalersDeleteRequest(messages.Message):
"""A AutoscalerAutoscalersDeleteRequest object.
Fields:
autoscaler: Name of the Autoscaler resource.
project: Project ID of Autoscaler resource.
zone: Zone name of Autoscaler resource.
"""
autoscaler = messages.StringField(1, required=True)
project = messages.StringField(2, required=True)
zone = messages.StringField(3, required=True)
class AutoscalerAutoscalersGetRequest(messages.Message):
"""A AutoscalerAutoscalersGetRequest object.
Fields:
autoscaler: Name of the Autoscaler resource.
project: Project ID of Autoscaler resource.
zone: Zone name of Autoscaler resource.
"""
autoscaler = messages.StringField(1, required=True)
project = messages.StringField(2, required=True)
zone = messages.StringField(3, required=True)
class AutoscalerAutoscalersInsertRequest(messages.Message):
"""A AutoscalerAutoscalersInsertRequest object.
Fields:
autoscaler: A Autoscaler resource to be passed as the request body.
project: Project ID of Autoscaler resource.
zone: Zone name of Autoscaler resource.
"""
autoscaler = messages.MessageField('Autoscaler', 1)
project = messages.StringField(2, required=True)
zone = messages.StringField(3, required=True)
class AutoscalerAutoscalersListRequest(messages.Message):
"""A AutoscalerAutoscalersListRequest object.
Fields:
filter: A string attribute.
maxResults: A integer attribute.
pageToken: A string attribute.
project: Project ID of Autoscaler resource.
zone: Zone name of Autoscaler resource.
"""
filter = messages.StringField(1)
maxResults = messages.IntegerField(2, variant=messages.Variant.UINT32, default=500)
pageToken = messages.StringField(3)
project = messages.StringField(4, required=True)
zone = messages.StringField(5, required=True)
class AutoscalerAutoscalersPatchRequest(messages.Message):
"""A AutoscalerAutoscalersPatchRequest object.
Fields:
autoscaler: Name of the Autoscaler resource.
autoscalerResource: A Autoscaler resource to be passed as the request
body.
project: Project ID of Autoscaler resource.
zone: Zone name of Autoscaler resource.
"""
autoscaler = messages.StringField(1, required=True)
autoscalerResource = messages.MessageField('Autoscaler', 2)
project = messages.StringField(3, required=True)
zone = messages.StringField(4, required=True)
class AutoscalerAutoscalersUpdateRequest(messages.Message):
"""A AutoscalerAutoscalersUpdateRequest object.
Fields:
autoscaler: Name of the Autoscaler resource.
autoscalerResource: A Autoscaler resource to be passed as the request
body.
project: Project ID of Autoscaler resource.
zone: Zone name of Autoscaler resource.
"""
autoscaler = messages.StringField(1, required=True)
autoscalerResource = messages.MessageField('Autoscaler', 2)
project = messages.StringField(3, required=True)
zone = messages.StringField(4, required=True)
class AutoscalerListResponse(messages.Message):
"""A AutoscalerListResponse object.
Fields:
items: Autoscaler resources.
nextPageToken: [Output only] A token used to continue a truncated list
request.
"""
items = messages.MessageField('Autoscaler', 1, repeated=True)
nextPageToken = messages.StringField(2)
class AutoscalerZoneOperationsDeleteRequest(messages.Message):
"""A AutoscalerZoneOperationsDeleteRequest object.
Fields:
operation: A string attribute.
project: A string attribute.
zone: A string attribute.
"""
operation = messages.StringField(1, required=True)
project = messages.StringField(2, required=True)
zone = messages.StringField(3, required=True)
class AutoscalerZoneOperationsDeleteResponse(messages.Message):
"""An empty AutoscalerZoneOperationsDelete response."""
class AutoscalerZoneOperationsGetRequest(messages.Message):
"""A AutoscalerZoneOperationsGetRequest object.
Fields:
operation: A string attribute.
project: A string attribute.
zone: A string attribute.
"""
operation = messages.StringField(1, required=True)
project = messages.StringField(2, required=True)
zone = messages.StringField(3, required=True)
class AutoscalerZoneOperationsListRequest(messages.Message):
"""A AutoscalerZoneOperationsListRequest object.
Fields:
filter: A string attribute.
maxResults: A integer attribute.
pageToken: A string attribute.
project: A string attribute.
zone: A string attribute.
"""
filter = messages.StringField(1)
maxResults = messages.IntegerField(2, variant=messages.Variant.UINT32, default=500)
pageToken = messages.StringField(3)
project = messages.StringField(4, required=True)
zone = messages.StringField(5, required=True)
class AutoscalingPolicy(messages.Message):
"""Cloud Autoscaler policy.
Fields:
coolDownPeriodSec: The number of seconds that the Autoscaler should wait
between two succeeding changes to the number of virtual machines. You
should define an interval that is at least as long as the initialization
time of a virtual machine and the time it may take for replica pool to
create the virtual machine. The default is 60 seconds.
cpuUtilization: Exactly one utilization policy should be provided.
Configuration parameters of CPU based autoscaling policy.
customMetricUtilizations: Configuration parameters of autoscaling based on
custom metric.
loadBalancingUtilization: Configuration parameters of autoscaling based on
load balancer.
maxNumReplicas: The maximum number of replicas that the Autoscaler can
scale up to.
minNumReplicas: The minimum number of replicas that the Autoscaler can
scale down to.
"""
coolDownPeriodSec = messages.IntegerField(1, variant=messages.Variant.INT32)
cpuUtilization = messages.MessageField('AutoscalingPolicyCpuUtilization', 2)
customMetricUtilizations = messages.MessageField('AutoscalingPolicyCustomMetricUtilization', 3, repeated=True)
loadBalancingUtilization = messages.MessageField('AutoscalingPolicyLoadBalancingUtilization', 4)
maxNumReplicas = messages.IntegerField(5, variant=messages.Variant.INT32)
minNumReplicas = messages.IntegerField(6, variant=messages.Variant.INT32)
class AutoscalingPolicyCpuUtilization(messages.Message):
"""CPU utilization policy.
Fields:
utilizationTarget: The target utilization that the Autoscaler should
maintain. It is represented as a fraction of used cores. For example: 6
cores used in 8-core VM are represented here as 0.75. Must be a float
value between (0, 1]. If not defined, the default is 0.8.
"""
utilizationTarget = messages.FloatField(1)
class AutoscalingPolicyCustomMetricUtilization(messages.Message):
"""Custom utilization metric policy.
Fields:
metric: Identifier of the metric. It should be a Cloud Monitoring metric.
The metric can not have negative values. The metric should be an
utilization metric (increasing number of VMs handling requests x times
should reduce average value of the metric roughly x times). For example
you could use:
compute.googleapis.com/instance/network/received_bytes_count.
utilizationTarget: Target value of the metric which Autoscaler should
maintain. Must be a positive value.
"""
metric = messages.StringField(1)
utilizationTarget = messages.FloatField(2)
class AutoscalingPolicyLoadBalancingUtilization(messages.Message):
"""Load balancing utilization policy.
Fields:
utilizationTarget: Fraction of backend capacity utilization (set in HTTP
load balancing configuration) that Autoscaler should maintain. Must be a
positive float value. If not defined, the default is 0.8. For example if
your maxRatePerInstance capacity (in HTTP Load Balancing configuration)
is set at 10 and you would like to keep number of instances such that
each instance receives 7 QPS on average, set this to 0.7.
"""
utilizationTarget = messages.FloatField(1)
class Operation(messages.Message):
"""A Operation object.
Messages:
ErrorValue: A ErrorValue object.
WarningsValueListEntry: A WarningsValueListEntry object.
Fields:
clientOperationId: A string attribute.
creationTimestamp: A string attribute.
endTime: A string attribute.
error: A ErrorValue attribute.
httpErrorMessage: A string attribute.
httpErrorStatusCode: A integer attribute.
id: A string attribute.
insertTime: A string attribute.
kind: Type of the resource.
name: A string attribute.
operationType: A string attribute.
progress: A integer attribute.
region: A string attribute.
selfLink: A string attribute.
startTime: A string attribute.
status: A string attribute.
statusMessage: A string attribute.
targetId: A string attribute.
targetLink: A string attribute.
user: A string attribute.
warnings: A WarningsValueListEntry attribute.
zone: A string attribute.
"""
class ErrorValue(messages.Message):
"""A ErrorValue object.
Messages:
ErrorsValueListEntry: A ErrorsValueListEntry object.
Fields:
errors: A ErrorsValueListEntry attribute.
"""
class ErrorsValueListEntry(messages.Message):
"""A ErrorsValueListEntry object.
Fields:
code: A string attribute.
location: A string attribute.
message: A string attribute.
"""
code = messages.StringField(1)
location = messages.StringField(2)
message = messages.StringField(3)
errors = messages.MessageField('ErrorsValueListEntry', 1, repeated=True)
class WarningsValueListEntry(messages.Message):
"""A WarningsValueListEntry object.
Messages:
DataValueListEntry: A DataValueListEntry object.
Fields:
code: A string attribute.
data: A DataValueListEntry attribute.
message: A string attribute.
"""
class DataValueListEntry(messages.Message):
"""A DataValueListEntry object.
Fields:
key: A string attribute.
value: A string attribute.
"""
key = messages.StringField(1)
value = messages.StringField(2)
code = messages.StringField(1)
data = messages.MessageField('DataValueListEntry', 2, repeated=True)
message = messages.StringField(3)
clientOperationId = messages.StringField(1)
creationTimestamp = messages.StringField(2)
endTime = messages.StringField(3)
error = messages.MessageField('ErrorValue', 4)
httpErrorMessage = messages.StringField(5)
httpErrorStatusCode = messages.IntegerField(6, variant=messages.Variant.INT32)
id = messages.IntegerField(7, variant=messages.Variant.UINT64)
insertTime = messages.StringField(8)
kind = messages.StringField(9, default=u'autoscaler#operation')
name = messages.StringField(10)
operationType = messages.StringField(11)
progress = messages.IntegerField(12, variant=messages.Variant.INT32)
region = messages.StringField(13)
selfLink = messages.StringField(14)
startTime = messages.StringField(15)
status = messages.StringField(16)
statusMessage = messages.StringField(17)
targetId = messages.IntegerField(18, variant=messages.Variant.UINT64)
targetLink = messages.StringField(19)
user = messages.StringField(20)
warnings = messages.MessageField('WarningsValueListEntry', 21, repeated=True)
zone = messages.StringField(22)
class OperationList(messages.Message):
"""A OperationList object.
Fields:
id: A string attribute.
items: A Operation attribute.
kind: Type of resource.
nextPageToken: A string attribute.
selfLink: A string attribute.
"""
id = messages.StringField(1)
items = messages.MessageField('Operation', 2, repeated=True)
kind = messages.StringField(3, default=u'autoscaler#operationList')
nextPageToken = messages.StringField(4)
selfLink = messages.StringField(5)
class StandardQueryParameters(messages.Message):
"""Query parameters accepted by all methods.
Enums:
AltValueValuesEnum: Data format for the response.
Fields:
alt: Data format for the response.
fields: Selector specifying which fields to include in a partial response.
key: API key. Your API key identifies your project and provides you with
API access, quota, and reports. Required unless you provide an OAuth 2.0
token.
oauth_token: OAuth 2.0 token for the current user.
prettyPrint: Returns response with indentations and line breaks.
quotaUser: Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should
not exceed 40 characters. Overrides userIp if both are provided.
trace: A tracing token of the form "token:<tokenid>" or "email:<ldap>" to
include in api requests.
userIp: IP address of the site where the request originates. Use this if
you want to enforce per-user limits.
"""
class AltValueValuesEnum(messages.Enum):
"""Data format for the response.
Values:
json: Responses with Content-Type of application/json
"""
json = 0
alt = messages.EnumField('AltValueValuesEnum', 1, default=u'json')
fields = messages.StringField(2)
key = messages.StringField(3)
oauth_token = messages.StringField(4)
prettyPrint = messages.BooleanField(5, default=True)
quotaUser = messages.StringField(6)
trace = messages.StringField(7)
userIp = messages.StringField(8)
|