blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
24b0d94b1351c0914bc927de94b884458de108d5
b82057c77dd4d00ff9bca9a979a1a3075f0528c4
/Exicom_gateway/checks/ec500_dc_battcumdischarge_ah_status
753f682ed293b267a705e11b7e3da516b6af3913
[]
no_license
subhash-007/photography-blog
7ee0c4f930fee29d76106c45b09e6b76cb19cf56
b1ae66794b48bfe3862cb6e727a3a15a6ef79024
refs/heads/master
2020-03-31T04:33:00.276628
2019-07-12T06:00:39
2019-07-12T06:00:39
151,910,256
0
0
null
null
null
null
UTF-8
Python
false
false
2,982
#!/usr/bin/python """ dc_battcumdischarge_ah_status of poller device. This is part of device application. Poller script determines the dc_battcumdischarge_ah_status of device. poller script takes the snmp value of OID .1.3.6.1.4.1.38016.14.2.10.3 from snmp agent of device at specific interval. Device dc_battcumdischarge_ah_status is sent to device application """ # ###################################################################### # Function: check_ec500_dc_battcumdischarge_ah_status # # Parameters: info (SNMP Ouput) params (No Parameters) # # Output: device dc_battcumdischarge_ah # ###################################################################### ec500_dc_battcumdischarge_ah_default_levels = () def check_ec500_dc_battcumdischarge_ah_status(item, params, info): """ check_ec500_dc_battcumdischarge_ah_status function fetches the dc_battcumdischarge_ah_status Args: item (str) Specific item on SNMP output on which we want to filter results Kwargs: params (tuple) Check parameters for critical and warning state of service Returns: state (int) : 0 : OK 1 : Warning 2: Critical 3: unknown infotext(string): plugin output Example : OK - ;;;; Raises: Exception """ state = 3 infotext = "unknown_value" perf_data = [''] if info: try: state = 0 try : ec500_dc_battcumdischarge_ah = float(info[0][0]) except Exception,e: ec500_dc_battcumdischarge_ah = str(info[0][0].replace(" ","@")) perf_data = [("ec500_dc_battcumdischarge_ah", ec500_dc_battcumdischarge_ah)] return (state, "ec500_dc_battcumdischarge_ah=%s" % ec500_dc_battcumdischarge_ah, perf_data) except Exception,e: return (3, "ec500_dc_battcumdischarge_ah=%s" % infotext.replace(" ","@"), perf_data) else: return (state, "ec500_dc_battcumdischarge_ah=%s" %"No data retrieved".replace(" ","@"), perf_data) # This check works on all SNMP hosts """ Dictionary-based declaration of all check types """ check_info["ec500_dc_battcumdischarge_ah_status"] = { 'check_function': check_ec500_dc_battcumdischarge_ah_status, 'service_description': 'ec500_dc_battcumdischarge_ah_status', 'has_perfdata': True, } ######################################################################### # SNMP OID for the device dc_battcumdischarge_ah_status ######################################################################### snmp_info["ec500_dc_battcumdischarge_ah_status"] = ('.1.3.6.1.4.1.38016.14.2', ['10.3'])
a301ac41f038fcd5f6e9a30ed172cd363ee6a0e7
d4b344780e893a19d44aed51ebfe514c91e920c2
/aliyun-python-sdk-dds/aliyunsdkdds/__init__.py
ad584ffac768287ea92f9390b2fece32fc60ce65
[ "Apache-2.0" ]
permissive
WenONGs/aliyun-openapi-python-sdk
6d164160eac7a8020e3b8d1960d170e08d2c8f23
b6de95a32030b421665c0833c9d64d92fcaf81c8
refs/heads/master
2023-04-28T06:36:51.740098
2021-05-17T09:37:00
2021-05-17T09:37:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
21
py
__version__ = '3.5.2'
21fe2f6b03ac56dd43ae3a5e3577404f05819754
11cd362cdd78c2fc48042ed203614b201ac94aa6
/desktop/core/ext-py3/boto-2.49.0/tests/devpay/test_s3.py
86665702dcb3bef91d879e2c7171a5c6e2e32913
[ "CC-BY-3.0", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "ZPL-2.0", "Unlicense", "LGPL-3.0-only", "CC0-1.0", "LicenseRef-scancode-other-permissive", "CNRI-Python", "LicenseRef-scancode-warranty-disclaimer", "GPL-2.0-or-later", "Python-2.0", "GPL-3.0-only", "CC-BY-4.0", "LicenseRef-scancode-jpython-1.1", "AFL-2.1", "JSON", "WTFPL", "MIT", "LicenseRef-scancode-generic-exception", "LicenseRef-scancode-jython", "GPL-3.0-or-later", "LicenseRef-scancode-python-cwi", "BSD-3-Clause", "LGPL-3.0-or-later", "Zlib", "LicenseRef-scancode-free-unknown", "Classpath-exception-2.0", "LicenseRef-scancode-proprietary-license", "GPL-1.0-or-later", "LGPL-2.0-or-later", "MPL-2.0", "ISC", "GPL-2.0-only", "ZPL-2.1", "BSL-1.0", "Apache-2.0", "LGPL-2.0-only", "LicenseRef-scancode-public-domain", "Xnet", "BSD-2-Clause" ]
permissive
cloudera/hue
b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908
dccb9467675c67b9c3399fc76c5de6d31bfb8255
refs/heads/master
2023-08-31T06:49:25.724501
2023-08-28T20:45:00
2023-08-28T20:45:00
732,593
5,655
2,244
Apache-2.0
2023-09-14T03:05:41
2010-06-21T19:46:51
JavaScript
UTF-8
Python
false
false
7,410
py
#!/usr/bin/env python # Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/ # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, dis- # tribute, sublicense, and/or sell copies of the Software, and to permit # persons to whom the Software is furnished to do so, subject to the fol- # lowing conditions: # # The above copyright notice and this permission notice shall be included # in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. """ Some unit tests for the S3Connection """ import time import os import urllib from boto.s3.connection import S3Connection from boto.exception import S3PermissionsError # this test requires a devpay product and user token to run: AMAZON_USER_TOKEN = '{UserToken}...your token here...' DEVPAY_HEADERS = { 'x-amz-security-token': AMAZON_USER_TOKEN } def test(): print '--- running S3Connection tests (DevPay) ---' c = S3Connection() # create a new, empty bucket bucket_name = 'test-%d' % int(time.time()) bucket = c.create_bucket(bucket_name, headers=DEVPAY_HEADERS) # now try a get_bucket call and see if it's really there bucket = c.get_bucket(bucket_name, headers=DEVPAY_HEADERS) # test logging logging_bucket = c.create_bucket(bucket_name + '-log', headers=DEVPAY_HEADERS) logging_bucket.set_as_logging_target(headers=DEVPAY_HEADERS) bucket.enable_logging(target_bucket=logging_bucket, target_prefix=bucket.name, headers=DEVPAY_HEADERS) bucket.disable_logging(headers=DEVPAY_HEADERS) c.delete_bucket(logging_bucket, headers=DEVPAY_HEADERS) # create a new key and store it's content from a string k = bucket.new_key() k.name = 'foobar' s1 = 'This is a test of file upload and download' s2 = 'This is a second string to test file upload and download' k.set_contents_from_string(s1, headers=DEVPAY_HEADERS) fp = open('foobar', 'wb') # now get the contents from s3 to a local file k.get_contents_to_file(fp, headers=DEVPAY_HEADERS) fp.close() fp = open('foobar') # check to make sure content read from s3 is identical to original assert s1 == fp.read(), 'corrupted file' fp.close() # test generated URLs url = k.generate_url(3600, headers=DEVPAY_HEADERS) file = urllib.urlopen(url) assert s1 == file.read(), 'invalid URL %s' % url url = k.generate_url(3600, force_http=True, headers=DEVPAY_HEADERS) file = urllib.urlopen(url) assert s1 == file.read(), 'invalid URL %s' % url bucket.delete_key(k, headers=DEVPAY_HEADERS) # test a few variations on get_all_keys - first load some data # for the first one, let's override the content type phony_mimetype = 'application/x-boto-test' headers = {'Content-Type': phony_mimetype} headers.update(DEVPAY_HEADERS) k.name = 'foo/bar' k.set_contents_from_string(s1, headers) k.name = 'foo/bas' k.set_contents_from_filename('foobar', headers=DEVPAY_HEADERS) k.name = 'foo/bat' k.set_contents_from_string(s1, headers=DEVPAY_HEADERS) k.name = 'fie/bar' k.set_contents_from_string(s1, headers=DEVPAY_HEADERS) k.name = 'fie/bas' k.set_contents_from_string(s1, headers=DEVPAY_HEADERS) k.name = 'fie/bat' k.set_contents_from_string(s1, headers=DEVPAY_HEADERS) # try resetting the contents to another value md5 = k.md5 k.set_contents_from_string(s2, headers=DEVPAY_HEADERS) assert k.md5 != md5 os.unlink('foobar') all = bucket.get_all_keys(headers=DEVPAY_HEADERS) assert len(all) == 6 rs = bucket.get_all_keys(prefix='foo', headers=DEVPAY_HEADERS) assert len(rs) == 3 rs = bucket.get_all_keys(prefix='', delimiter='/', headers=DEVPAY_HEADERS) assert len(rs) == 2 rs = bucket.get_all_keys(maxkeys=5, headers=DEVPAY_HEADERS) assert len(rs) == 5 # test the lookup method k = bucket.lookup('foo/bar', headers=DEVPAY_HEADERS) assert isinstance(k, bucket.key_class) assert k.content_type == phony_mimetype k = bucket.lookup('notthere', headers=DEVPAY_HEADERS) assert k == None # try some metadata stuff k = bucket.new_key() k.name = 'has_metadata' mdkey1 = 'meta1' mdval1 = 'This is the first metadata value' k.set_metadata(mdkey1, mdval1) mdkey2 = 'meta2' mdval2 = 'This is the second metadata value' k.set_metadata(mdkey2, mdval2) k.set_contents_from_string(s1, headers=DEVPAY_HEADERS) k = bucket.lookup('has_metadata', headers=DEVPAY_HEADERS) assert k.get_metadata(mdkey1) == mdval1 assert k.get_metadata(mdkey2) == mdval2 k = bucket.new_key() k.name = 'has_metadata' k.get_contents_as_string(headers=DEVPAY_HEADERS) assert k.get_metadata(mdkey1) == mdval1 assert k.get_metadata(mdkey2) == mdval2 bucket.delete_key(k, headers=DEVPAY_HEADERS) # test list and iterator rs1 = bucket.list(headers=DEVPAY_HEADERS) num_iter = 0 for r in rs1: num_iter = num_iter + 1 rs = bucket.get_all_keys(headers=DEVPAY_HEADERS) num_keys = len(rs) assert num_iter == num_keys # try a key with a funny character k = bucket.new_key() k.name = 'testnewline\n' k.set_contents_from_string('This is a test', headers=DEVPAY_HEADERS) rs = bucket.get_all_keys(headers=DEVPAY_HEADERS) assert len(rs) == num_keys + 1 bucket.delete_key(k, headers=DEVPAY_HEADERS) rs = bucket.get_all_keys(headers=DEVPAY_HEADERS) assert len(rs) == num_keys # try some acl stuff bucket.set_acl('public-read', headers=DEVPAY_HEADERS) policy = bucket.get_acl(headers=DEVPAY_HEADERS) assert len(policy.acl.grants) == 2 bucket.set_acl('private', headers=DEVPAY_HEADERS) policy = bucket.get_acl(headers=DEVPAY_HEADERS) assert len(policy.acl.grants) == 1 k = bucket.lookup('foo/bar', headers=DEVPAY_HEADERS) k.set_acl('public-read', headers=DEVPAY_HEADERS) policy = k.get_acl(headers=DEVPAY_HEADERS) assert len(policy.acl.grants) == 2 k.set_acl('private', headers=DEVPAY_HEADERS) policy = k.get_acl(headers=DEVPAY_HEADERS) assert len(policy.acl.grants) == 1 # try the convenience methods for grants # this doesn't work with devpay #bucket.add_user_grant('FULL_CONTROL', # 'c1e724fbfa0979a4448393c59a8c055011f739b6d102fb37a65f26414653cd67', # headers=DEVPAY_HEADERS) try: bucket.add_email_grant('foobar', '[email protected]', headers=DEVPAY_HEADERS) except S3PermissionsError: pass # now delete all keys in bucket for k in all: bucket.delete_key(k, headers=DEVPAY_HEADERS) # now delete bucket c.delete_bucket(bucket, headers=DEVPAY_HEADERS) print '--- tests completed ---' if __name__ == '__main__': test()
7e9bc624c393e992e18b67e221b977c09ff141f9
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_245/ch19_2020_03_04_18_17_22_799262.py
8b22222de5aff9dc08c38d569b8da5a45aa29742
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
319
py
l1 = int(input("Insira o primeiro lado: ")) l2 = int(input("Insira o segundo lado: ")) l3 = int(input("Insira o terceiro lado: ")) if l1 == l2 and l2 == l3: print("o triângulo é equilátero") elif l1 == l2 or l1 == l2 or l2 == l3: print("o triângulo é isóceles") else: print("o triângulo é escaleno")
7afa2e261bc06fbe2b86157c44db2697afb12753
d3e2f5b8c9505301bfc782cd3f152630565ccfdd
/djangoecommerce/catalog/apps.py
44e8d6051b4ba24e67229587b176dbefc4b24c95
[]
no_license
ingafter60/django3-ecom-portugis
81b5b862b01a8bc7ce9a5a2ccd1a306bf7268c56
ddf0b68836f54629d830e08a9831d7ad42514d45
refs/heads/master
2022-01-25T05:19:51.225435
2020-02-04T15:39:21
2020-02-04T15:39:21
238,185,317
0
0
null
2022-01-21T19:56:23
2020-02-04T10:59:51
Python
UTF-8
Python
false
false
230
py
# from django.apps import AppConfig # class CatalogConfig(AppConfig): # name = 'catalog' from django.apps import AppConfig class CatalogConfig(AppConfig): name = 'djangoecommerce.catalog' verbose_name = 'Catalog'
063f00b5a48ae92362e6306ce6da50adda629431
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_211/128.py
e12ff8364323062a8ce942d6507e417d019c70c9
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,849
py
""" http://networkx.readthedocs.io/en/networkx-1.11/tutorial/index.html https://docs.python.org/3/library/re.html https://docs.python.org/3/library/math.html https://docs.python.org/3/library/collections.html https://docs.python.org/3/library/itertools.html https://docs.python.org/3/library/functools.html#functools.lru_cache """ # import numpy as np # import networkx as nx # import re # import math # import time # start_time = time.time(); elapsed_time = time.time() - start_time # from collections import Counter # from collections import OrderedDict # from collections import deque # from queue import PriorityQueue # q = PriorityQueue(); q.put((pr1, pr2, ...)); item = q.get() # from itertools import combinations # from itertools import permutations # from functools import lru_cache # @lru_cache(maxsize=None) # from copy import copy, deepcopy # from sys import stdin, stdout # from sys import maxsize # 9 * 10**18 # inf = float('inf') def main(): caseCount = int(input()) for caseIdx in range(1, caseCount + 1): # read an integer N, K = map(int, input().strip().split(' ')) U = float(input()) P = list(map(float, input().strip().split(' '))) ans = solve(N, K, U, P) print("Case #{}: {}".format(caseIdx, ans)) def solve(N, K, U, P): # print(N, K, U, P) P.sort() P.append(1) # print(P) for i in range(len(P)-1): if U <= 0: break diff = P[i+1] - P[i] need = diff * (i + 1) if need <= U: for j in range(i+1): P[j] += diff U -= need continue else: for j in range(i+1): P[j] += U / (i+1) U = 0 # print(P) prob = 1 for p in P: prob *= p return prob if __name__ == '__main__': main()
1c6ae8af04aac7f1c2b8ece017e09f30b3cbe5e8
c92398a728817578850ecf508ec4197afe91a88f
/DemopatterninForloop1.py
129e82619895026a6e97d482bf04495e827222b5
[]
no_license
HitanshuSoni/Python_practice
4d0ec0378124da85e364a15a7b94ddbbfe2fc929
7a3d0977b218ef76f91517d88518b1c0b68b9528
refs/heads/main
2023-04-18T21:55:12.709161
2021-05-08T15:39:08
2021-05-08T15:39:08
365,550,407
1
0
null
null
null
null
UTF-8
Python
false
false
139
py
n=int(input("Enter the number of rows ")) for i in range (1,n+1): for j in range (1,i+1): print(j,end="") print()
6a6bc70088b6de904514277d36b20f63057be680
c9ad09f01a431f7f44d35ffd5a580caf91d67fc0
/Lib/fontbakery/specifications/general.py
214414565d7a643c1eabaff3274ba05fa7118c9f
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jenskutilek/fontbakery
59e44ef102953e41fbdc94aaf04f8274dd195e4f
1aa1091dd87b5edfb62e7697535dbb104f3d01df
refs/heads/master
2020-03-15T06:03:43.281929
2018-04-30T15:54:35
2018-04-30T15:57:43
131,999,383
0
0
null
2018-05-03T13:29:56
2018-05-03T13:29:55
null
UTF-8
Python
false
false
23,337
py
from __future__ import (absolute_import, division, print_function, unicode_literals) import os from fontbakery.callable import check, condition, disable from fontbakery.checkrunner import ERROR, FAIL, INFO, PASS, SKIP, WARN from fontbakery.constants import CRITICAL from fontbakery.message import Message # used to inform get_module_specification whether and how to create a specification from fontbakery.fonts_spec import spec_factory # NOQA pylint: disable=unused-import from .shared_conditions import is_variable_font spec_imports = [ ('.shared_conditions', ('missing_whitespace_chars', )) ] @condition def fontforge_check_results(font): if "adobeblank" in font: return SKIP, ("Skipping AdobeBlank since" " this font is a very peculiar hack.") import subprocess cmd = ( 'import fontforge, sys;' 'status = fontforge.open("{0}").validate();' 'sys.stdout.write(status.__str__());'.format ) p = subprocess.Popen(['python', '-c', cmd(font)], stderr=subprocess.PIPE, stdout=subprocess.PIPE ) ret_val, ff_err_messages = p.communicate() try: return { "validation_state": int(ret_val), "ff_err_messages": ff_err_messages } except: return None @check( id = 'com.google.fonts/check/002', misc_metadata = { 'priority': CRITICAL } ) def com_google_fonts_check_002(fonts): """Checking all files are in the same directory. If the set of font files passed in the command line is not all in the same directory, then we warn the user since the tool will interpret the set of files as belonging to a single family (and it is unlikely that the user would store the files from a single family spreaded in several separate directories). """ directories = [] for target_file in fonts: directory = os.path.dirname(target_file) if directory not in directories: directories.append(directory) if len(directories) == 1: yield PASS, "All files are in the same directory." else: yield FAIL, ("Not all fonts passed in the command line" " are in the same directory. This may lead to" " bad results as the tool will interpret all" " font files as belonging to a single" " font family. The detected directories are:" " {}".format(directories)) @check( id = 'com.google.fonts/check/035' ) def com_google_fonts_check_035(font): """Checking with ftxvalidator.""" import plistlib try: import subprocess ftx_cmd = [ "ftxvalidator", "-t", "all", # execute all checks font ] ftx_output = subprocess.check_output(ftx_cmd, stderr=subprocess.STDOUT) ftx_data = plistlib.readPlistFromString(ftx_output) # we accept kATSFontTestSeverityInformation # and kATSFontTestSeverityMinorError if 'kATSFontTestSeverityFatalError' \ not in ftx_data['kATSFontTestResultKey']: yield PASS, "ftxvalidator passed this file" else: ftx_cmd = [ "ftxvalidator", "-T", # Human-readable output "-r", # Generate a full report "-t", "all", # execute all checks font ] ftx_output = subprocess.check_output(ftx_cmd, stderr=subprocess.STDOUT) yield FAIL, "ftxvalidator output follows:\n\n{}\n".format(ftx_output) except subprocess.CalledProcessError as e: yield WARN, ("ftxvalidator returned an error code. Output follows :" "\n\n{}\n").format(e.output) except OSError: yield ERROR, "ftxvalidator is not available!" @check( id = 'com.google.fonts/check/036' ) def com_google_fonts_check_036(font): """Checking with ots-sanitize.""" try: import subprocess ots_output = subprocess.check_output( ["ots-sanitize", font], stderr=subprocess.STDOUT).decode() if ots_output != "" and "File sanitized successfully" not in ots_output: yield FAIL, "ots-sanitize output follows:\n\n{}".format(ots_output) else: yield PASS, "ots-sanitize passed this file" except subprocess.CalledProcessError as e: yield FAIL, ("ots-sanitize returned an error code. Output follows :" "\n\n{}").format(e.output) except OSError as e: yield ERROR, ("ots-sanitize is not available!" " You really MUST check the fonts with this tool." " To install it, see" " https://github.com/googlefonts" "/gf-docs/blob/master/ProjectChecklist.md#ots" " Actual error message was: " "'{}'").format(e) @check( id = 'com.google.fonts/check/037' ) def com_google_fonts_check_037(font): """Checking with Microsoft Font Validator.""" try: import subprocess fval_cmd = [ "FontValidator.exe", "-file", font, "-all-tables", "-report-in-font-dir", "+raster-tests" ] subprocess.check_output(fval_cmd, stderr=subprocess.STDOUT) except subprocess.CalledProcessError as e: filtered_msgs = "" for line in e.output.decode().split("\n"): if "Validating glyph with index" in line: continue if "Table Test:" in line: continue filtered_msgs += line + "\n" yield INFO, ("Microsoft Font Validator returned an error code." " Output follows :\n\n{}\n").format(filtered_msgs) except (OSError, IOError) as error: yield ERROR, ("Mono runtime and/or " "Microsoft Font Validator are not available!") raise error def report_message(msg, details): if details: return "MS-FonVal: {} DETAILS: {}".format(msg, details) else: return "MS-FonVal: {}".format(msg) xml_report_file = "{}.report.xml".format(font) html_report_file = "{}.report.html".format(font) fval_file = os.path.join(os.path.dirname(font), 'fval.xsl') with open(xml_report_file, "rb") as xml_report: import defusedxml.lxml doc = defusedxml.lxml.parse(xml_report) already_reported = [] for report in doc.iter('Report'): msg = report.get("Message") details = report.get("Details") if [msg, details] not in already_reported: # avoid cluttering the output with tons of identical reports already_reported.append([msg, details]) if report.get("ErrorType") == "P": yield PASS, report_message(msg, details) elif report.get("ErrorType") == "E": yield FAIL, report_message(msg, details) elif report.get("ErrorType") == "W": yield WARN, report_message(msg, details) else: yield INFO, report_message(msg, details) os.remove(xml_report_file) # FontVal internal detail: HTML report generated only on non-Windows due to # Mono or the used HTML renderer not being able to render XML with a # stylesheet directly. https://github.com/googlefonts/fontbakery/issues/1747 if os.path.exists(html_report_file): os.remove(html_report_file) os.remove(fval_file) @check( id = 'com.google.fonts/check/038', conditions = ['fontforge_check_results'] ) def com_google_fonts_check_038(font, fontforge_check_results): """FontForge validation outputs error messages?""" filtered_err_msgs = "" for line in fontforge_check_results["ff_err_messages"].split('\n'): if ('The following table(s) in the font' ' have been ignored by FontForge') in line: continue if "Ignoring 'DSIG' digital signature table" in line: continue filtered_err_msgs += line + '\n' if len(filtered_err_msgs.strip()) > 0: yield FAIL, ("fontforge did print these messages to stderr:\n" "{}").format(filtered_err_msgs) else: yield PASS, "fontforge validation did not output any error message." @condition def fontforge_skip_checks(): """ return a bitmask of the checks to skip E.g. to skip: 0x2: Contours are closed? 0x40: Glyph names referred to from glyphs present in the font 0x200: Font doesn't have invalid glyph names do: return 0x2 + 0x40 + 0x200 override with @condition(force=True) to customize this """ return None @check( id = 'com.google.fonts/check/039', conditions = ['fontforge_check_results'] ) def com_google_fonts_check_039(fontforge_check_results, fontforge_skip_checks): """FontForge checks.""" validation_state = fontforge_check_results["validation_state"] fontforge_checks = ( ("Contours are closed?", 0x2, "Contours are not closed!", "Contours are closed.") , ("Contours do not intersect", 0x4, "There are countour intersections!", "Contours do not intersect.") , ("Contours have correct directions", 0x8, "Contours have incorrect directions!", "Contours have correct directions.") , ("References in the glyph haven't been flipped", 0x10, "References in the glyph have been flipped!", "References in the glyph haven't been flipped.") , ("Glyphs have points at extremas", 0x20, "Glyphs do not have points at extremas!", "Glyphs have points at extremas.") , ("Glyph names referred to from glyphs present in the font", 0x40, "Glyph names referred to from glyphs" " not present in the font!", "Glyph names referred to from glyphs" " present in the font.") , ("Points (or control points) are not too far apart", 0x40000, "Points (or control points) are too far apart!", "Points (or control points) are not too far apart.") , ("Not more than 1,500 points in any glyph" " (a PostScript limit)", 0x80, "There are glyphs with more than 1,500 points!" "Exceeds a PostScript limit.", "Not more than 1,500 points in any glyph" " (a PostScript limit).") , ("PostScript has a limit of 96 hints in glyphs", 0x100, "Exceeds PostScript limit of 96 hints per glyph", "Font respects PostScript limit of 96 hints per glyph") , ("Font doesn't have invalid glyph names", 0x200, "Font has invalid glyph names!", "Font doesn't have invalid glyph names.") , ("Glyphs have allowed numbers of points defined in maxp", 0x400, "Glyphs exceed allowed numbers of points defined in maxp", "Glyphs have allowed numbers of points defined in maxp.") , ("Glyphs have allowed numbers of paths defined in maxp", 0x800, "Glyphs exceed allowed numbers of paths defined in maxp!", "Glyphs have allowed numbers of paths defined in maxp.") , ("Composite glyphs have allowed numbers" " of points defined in maxp?", 0x1000, "Composite glyphs exceed allowed numbers" " of points defined in maxp!", "Composite glyphs have allowed numbers" " of points defined in maxp.") , ("Composite glyphs have allowed numbers" " of paths defined in maxp", 0x2000, "Composite glyphs exceed" " allowed numbers of paths defined in maxp!", "Composite glyphs have" " allowed numbers of paths defined in maxp.") , ("Glyphs instructions have valid lengths", 0x4000, "Glyphs instructions have invalid lengths!", "Glyphs instructions have valid lengths.") , ("Points in glyphs are integer aligned", 0x80000, "Points in glyphs are not integer aligned!", "Points in glyphs are integer aligned.") # According to the opentype spec, if a glyph contains an anchor point # for one anchor class in a subtable, it must contain anchor points # for all anchor classes in the subtable. Even it, logically, # they do not apply and are unnecessary. , ("Glyphs have all required anchors.", 0x100000, "Glyphs do not have all required anchors!", "Glyphs have all required anchors.") , ("Glyph names are unique?", 0x200000, "Glyph names are not unique!", "Glyph names are unique.") , ("Unicode code points are unique?", 0x400000, "Unicode code points are not unique!", "Unicode code points are unique.") , ("Do hints overlap?", 0x800000, "Hints should NOT overlap!", "Hints do not overlap.") ) for description, bit, err_msg, ok_msg in fontforge_checks: if fontforge_skip_checks is not None and \ bool(fontforge_skip_checks & bit) is not False: yield SKIP, description elif bool(validation_state & bit) is not False: yield FAIL, "fontforge-check: {}".format(err_msg) else: yield PASS, "fontforge-check: {}".format(ok_msg) @check( id = 'com.google.fonts/check/046' ) def com_google_fonts_check_046(ttFont): """Font contains the first few mandatory glyphs (.null or NULL, CR and space)?""" from fontbakery.utils import get_glyph_name # It would be good to also check # for .notdef (codepoint = unspecified) null = get_glyph_name(ttFont, 0x0000) CR = get_glyph_name(ttFont, 0x000D) space = get_glyph_name(ttFont, 0x0020) missing = [] if null is None: missing.append("0x0000") if CR is None: missing.append("0x000D") if space is None: missing.append("0x0020") if missing != []: yield WARN, ("Font is missing glyphs for" " the following mandatory codepoints:" " {}.").format(", ".join(missing)) else: yield PASS, ("Font contains the first few mandatory glyphs" " (.null or NULL, CR and space).") @check( id = 'com.google.fonts/check/047' ) def com_google_fonts_check_047(ttFont, missing_whitespace_chars): """Font contains glyphs for whitespace characters?""" if missing_whitespace_chars != []: yield FAIL, ("Whitespace glyphs missing for" " the following codepoints:" " {}.").format(", ".join(missing_whitespace_chars)) else: yield PASS, "Font contains glyphs for whitespace characters." @check( id = 'com.google.fonts/check/048', conditions = ['not missing_whitespace_chars'] ) def com_google_fonts_check_048(ttFont): """Font has **proper** whitespace glyph names?""" from fontbakery.utils import get_glyph_name def getGlyphEncodings(font, names): result = set() for subtable in font['cmap'].tables: if subtable.isUnicode(): for codepoint, name in subtable.cmap.items(): if name in names: result.add(codepoint) return result if ttFont['post'].formatType == 3.0: yield SKIP, "Font has version 3 post table." else: failed = False space_enc = getGlyphEncodings(ttFont, ["uni0020", "space"]) nbsp_enc = getGlyphEncodings( ttFont, ["uni00A0", "nonbreakingspace", "nbspace", "nbsp"]) space = get_glyph_name(ttFont, 0x0020) if 0x0020 not in space_enc: failed = True yield FAIL, Message("bad20", ("Glyph 0x0020 is called \"{}\":" " Change to \"space\"" " or \"uni0020\"").format(space)) nbsp = get_glyph_name(ttFont, 0x00A0) if 0x00A0 not in nbsp_enc: if 0x00A0 in space_enc: # This is OK. # Some fonts use the same glyph for both space and nbsp. pass else: failed = True yield FAIL, Message("badA0", ("Glyph 0x00A0 is called \"{}\":" " Change to \"nbsp\"" " or \"uni00A0\"").format(nbsp)) if failed is False: yield PASS, "Font has **proper** whitespace glyph names." @check( id = 'com.google.fonts/check/049', conditions = ['is_ttf'] ) def com_google_fonts_check_049(ttFont): """Whitespace glyphs have ink?""" from fontbakery.utils import get_glyph_name def glyphHasInk(font, name): """Checks if specified glyph has any ink. That is, that it has at least one defined contour associated. Composites are considered to have ink if any of their components have ink. Args: font: the font glyph_name: The name of the glyph to check for ink. Returns: True if the font has at least one contour associated with it. """ glyph = font['glyf'].glyphs[name] glyph.expand(font['glyf']) if not glyph.isComposite(): if glyph.numberOfContours == 0: return False (coords, _, _) = glyph.getCoordinates(font['glyf']) # you need at least 3 points to draw return len(coords) > 2 # composite is blank if composed of blanks # if you setup a font with cycles you are just a bad person # Dave: lol, bad people exist, so put a recursion in this recursion for glyph_name in glyph.getComponentNames(glyph.components): if glyphHasInk(font, glyph_name): return True return False # code-points for all "whitespace" chars: WHITESPACE_CHARACTERS = [ 0x0009, 0x000A, 0x000B, 0x000C, 0x000D, 0x0020, 0x0085, 0x00A0, 0x1680, 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A, 0x2028, 0x2029, 0x202F, 0x205F, 0x3000, 0x180E, 0x200B, 0x2060, 0xFEFF ] failed = False for codepoint in WHITESPACE_CHARACTERS: g = get_glyph_name(ttFont, codepoint) if g is not None and glyphHasInk(ttFont, g): failed = True yield FAIL, ("Glyph \"{}\" has ink." " It needs to be replaced by" " an empty glyph.").format(g) if not failed: yield PASS, "There is no whitespace glyph with ink." @check( id = 'com.google.fonts/check/052' ) def com_google_fonts_check_052(ttFont): """Font contains all required tables?""" REQUIRED_TABLES = set( ["cmap", "head", "hhea", "hmtx", "maxp", "name", "OS/2", "post"]) OPTIONAL_TABLES = set([ "cvt ", "fpgm", "loca", "prep", "VORG", "EBDT", "EBLC", "EBSC", "BASE", "GPOS", "GSUB", "JSTF", "DSIG", "gasp", "hdmx", "LTSH", "PCLT", "VDMX", "vhea", "vmtx", "kern" ]) # See https://github.com/googlefonts/fontbakery/issues/617 # # We should collect the rationale behind the need for each of the # required tables above. Perhaps split it into individual checks # with the correspondent rationales for each subset of required tables. # # check/066 (kern table) is a good example of a separate check for # a specific table providing a detailed description of the rationale # behind it. optional_tables = [opt for opt in OPTIONAL_TABLES if opt in ttFont.keys()] if optional_tables: yield INFO, ("This font contains the following" " optional tables [{}]").format(", ".join(optional_tables)) if is_variable_font(ttFont): # According to https://github.com/googlefonts/fontbakery/issues/1671 # STAT table is required on WebKit on MacOS 10.12 for variable fonts. REQUIRED_TABLES.add("STAT") missing_tables = [req for req in REQUIRED_TABLES if req not in ttFont.keys()] if "glyf" not in ttFont.keys() and "CFF " not in ttFont.keys(): missing_tables.append("CFF ' or 'glyf") if missing_tables: yield FAIL, ("This font is missing the following required tables:" " ['{}']").format("', '".join(missing_tables)) else: yield PASS, "Font contains all required tables." @check( id = 'com.google.fonts/check/053' ) def com_google_fonts_check_053(ttFont): """Are there unwanted tables?""" UNWANTED_TABLES = set( ['FFTM', 'TTFA', 'prop', 'TSI0', 'TSI1', 'TSI2', 'TSI3']) unwanted_tables_found = [] for table in ttFont.keys(): if table in UNWANTED_TABLES: unwanted_tables_found.append(table) if len(unwanted_tables_found) > 0: yield FAIL, ("Unwanted tables were found" " in the font and should be removed:" " {}").format(", ".join(unwanted_tables_found)) else: yield PASS, "There are no unwanted tables." @check( id = 'com.google.fonts/check/058' ) def com_google_fonts_check_058(ttFont): """Glyph names are all valid?""" if ttFont.sfntVersion == b'\x00\x01\x00\x00' and ttFont.get( "post") and ttFont["post"].formatType == 3.0: yield SKIP, ("TrueType fonts with a format 3.0 post table contain no" " glyph names.") else: import re bad_names = [] for _, glyphName in enumerate(ttFont.getGlyphOrder()): if glyphName in [".null", ".notdef"]: # These 2 names are explicit exceptions # in the glyph naming rules continue if not re.match(r'^(?![.0-9])[a-zA-Z._0-9]{1,31}$', glyphName): bad_names.append(glyphName) if len(bad_names) == 0: yield PASS, "Glyph names are all valid." else: yield FAIL, ("The following glyph names do not comply" " with naming conventions: {}" " A glyph name may be up to 31 characters in length," " must be entirely comprised of characters from" " the following set:" " A-Z a-z 0-9 .(period) _(underscore). and must not" " start with a digit or period." " There are a few exceptions" " such as the special character \".notdef\"." " The glyph names \"twocents\", \"a1\", and \"_\"" " are all valid, while \"2cents\"" " and \".twocents\" are not.").format(bad_names) @check( id = 'com.google.fonts/check/059', rationale = """ Duplicate glyph names prevent font installation on Mac OS X. """, misc_metadata={ 'affects': [('Mac', 'unspecified')] } ) def com_google_fonts_check_059(ttFont): """Font contains unique glyph names?""" if ttFont.sfntVersion == b'\x00\x01\x00\x00' and ttFont.get( "post") and ttFont["post"].formatType == 3.0: yield SKIP, ("TrueType fonts with a format 3.0 post table contain no" " glyph names.") else: import re glyphs = [] duplicated_glyphIDs = [] for _, g in enumerate(ttFont.getGlyphOrder()): glyphID = re.sub(r'#\w+', '', g) if glyphID in glyphs: duplicated_glyphIDs.append(glyphID) else: glyphs.append(glyphID) if len(duplicated_glyphIDs) == 0: yield PASS, "Font contains unique glyph names." else: yield FAIL, ("The following glyph names" " occur twice: {}").format(duplicated_glyphIDs) # This check was originally ported from # Mekkablue Preflight Checks available at: # https://github.com/mekkablue/Glyphs-Scripts/blob/master/Test/Preflight%20Font.py # Disabled until we know the rationale. @disable @check( id = 'com.google.fonts/check/078', misc_metadata = { 'request': 'https://github.com/googlefonts/fontbakery/issues/735' } ) def com_google_fonts_check_078(ttFont): """Check that glyph names do not exceed max length.""" if ttFont.sfntVersion == b'\x00\x01\x00\x00' and ttFont.get( "post") and ttFont["post"].formatType == 3.0: yield PASS, ("TrueType fonts with a format 3.0 post table contain no " "glyph names.") else: failed = False for name in ttFont.getGlyphOrder(): if len(name) > 109: failed = True yield FAIL, ("Glyph name is too long:" " '{}'").format(name) if not failed: yield PASS, "No glyph names exceed max allowed length."
afc1960b9e604fdb66a3939bdb40fa1fd79f9cc7
090a4e026addc9e78ed6118f09fd0d7d4d517857
/graph_objs/scattermapbox/_marker.py
5bece0565289746dd7c67705ab0f857215310d98
[ "MIT" ]
permissive
wwwidonja/new_plotly
0777365e53ea7d4b661880f1aa7859de19ed9b9a
1bda35a438539a97c84a3ab3952e95e8848467bd
refs/heads/master
2023-06-04T19:09:18.993538
2021-06-10T18:33:28
2021-06-10T18:33:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
48,618
py
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "scattermapbox" _path_str = "scattermapbox.marker" _valid_props = { "allowoverlap", "angle", "anglesrc", "autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorbar", "colorscale", "colorsrc", "opacity", "opacitysrc", "reversescale", "showscale", "size", "sizemin", "sizemode", "sizeref", "sizesrc", "symbol", "symbolsrc", } # allowoverlap # ------------ @property def allowoverlap(self): """ Flag to draw all symbols, even if they overlap. The 'allowoverlap' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["allowoverlap"] @allowoverlap.setter def allowoverlap(self, val): self["allowoverlap"] = val # angle # ----- @property def angle(self): """ Sets the marker orientation from true North, in degrees clockwise. When using the "auto" default, no rotation would be applied in perspective views which is different from using a zero angle. The 'angle' property is a number and may be specified as: - An int or float - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray """ return self["angle"] @angle.setter def angle(self, val): self["angle"] = val # anglesrc # -------- @property def anglesrc(self): """ Sets the source reference on Chart Studio Cloud for angle . The 'anglesrc' property must be specified as a string or as a new_plotly.grid_objs.Column object Returns ------- str """ return self["anglesrc"] @anglesrc.setter def anglesrc(self, val): self["anglesrc"] = val # autocolorscale # -------------- @property def autocolorscale(self): """ Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed. The 'autocolorscale' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): self["autocolorscale"] = val # cauto # ----- @property def cauto(self): """ Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user. The 'cauto' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["cauto"] @cauto.setter def cauto(self, val): self["cauto"] = val # cmax # ---- @property def cmax(self): """ Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well. The 'cmax' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["cmax"] @cmax.setter def cmax(self, val): self["cmax"] = val # cmid # ---- @property def cmid(self): """ Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`. The 'cmid' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["cmid"] @cmid.setter def cmid(self, val): self["cmid"] = val # cmin # ---- @property def cmin(self): """ Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well. The 'cmin' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["cmin"] @cmin.setter def cmin(self, val): self["cmin"] = val # color # ----- @property def color(self): """ Sets themarkercolor. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: aliceblue, antiquewhite, aqua, aquamarine, azure, beige, bisque, black, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan, darkblue, darkcyan, darkgoldenrod, darkgray, darkgrey, darkgreen, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darkred, darksalmon, darkseagreen, darkslateblue, darkslategray, darkslategrey, darkturquoise, darkviolet, deeppink, deepskyblue, dimgray, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen, fuchsia, gainsboro, ghostwhite, gold, goldenrod, gray, grey, green, greenyellow, honeydew, hotpink, indianred, indigo, ivory, khaki, lavender, lavenderblush, lawngreen, lemonchiffon, lightblue, lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgrey, lightgreen, lightpink, lightsalmon, lightseagreen, lightskyblue, lightslategray, lightslategrey, lightsteelblue, lightyellow, lime, limegreen, linen, magenta, maroon, mediumaquamarine, mediumblue, mediumorchid, mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred, midnightblue, mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive, olivedrab, orange, orangered, orchid, palegoldenrod, palegreen, paleturquoise, palevioletred, papayawhip, peachpuff, peru, pink, plum, powderblue, purple, red, rosybrown, royalblue, rebeccapurple, saddlebrown, salmon, sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue, slategray, slategrey, snow, springgreen, steelblue, tan, teal, thistle, tomato, turquoise, violet, wheat, white, whitesmoke, yellow, yellowgreen - A number that will be interpreted as a color according to scattermapbox.marker.colorscale - A list or array of any of the above Returns ------- str|numpy.ndarray """ return self["color"] @color.setter def color(self, val): self["color"] = val # coloraxis # --------- @property def coloraxis(self): """ Sets a reference to a shared color axis. References to these shared color axes are "coloraxis", "coloraxis2", "coloraxis3", etc. Settings for these shared color axes are set in the layout, under `layout.coloraxis`, `layout.coloraxis2`, etc. Note that multiple color scales can be linked to the same color axis. The 'coloraxis' property is an identifier of a particular subplot, of type 'coloraxis', that may be specified as the string 'coloraxis' optionally followed by an integer >= 1 (e.g. 'coloraxis', 'coloraxis1', 'coloraxis2', 'coloraxis3', etc.) Returns ------- str """ return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): self["coloraxis"] = val # colorbar # -------- @property def colorbar(self): """ The 'colorbar' property is an instance of ColorBar that may be specified as: - An instance of :class:`new_plotly.graph_objs.scattermapbox.marker.ColorBar` - A dict of string/value properties that will be passed to the ColorBar constructor Supported dict properties: bgcolor Sets the color of padded area. bordercolor Sets the axis line color. borderwidth Sets the width (in px) or the border enclosing this color bar. dtick Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1. To set tick marks at 1, 100, 10000, ... set dtick to 2. To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433. "log" has several special values; "L<f>", where `f` is a positive number, gives ticks linearly spaced in value (but not position). For example `tick0` = 0.1, `dtick` = "L0.5" will put ticks at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 plus small digits between, use "D1" (all digits) or "D2" (only 2 and 5). `tick0` is ignored for "D1" and "D2". If the axis `type` is "date", then you must convert the time to milliseconds. For example, to set the interval between ticks to one day, set `dtick` to 86400000.0. "date" also has special values "M<n>" gives ticks spaced by a number of months. `n` must be a positive integer. To set ticks on the 15th of every third month, set `tick0` to "2000-01-15" and `dtick` to "M3". To set ticks every 4 years, set `dtick` to "M48" exponentformat Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. len Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. lenmode Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. minexponent Hide SI prefix for 10^n if |n| is below this number. This only has an effect when `tickformat` is "SI" or "B". nticks Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". outlinecolor Sets the axis line color. outlinewidth Sets the width (in px) of the axis line. separatethousands If "true", even 4-digit integers are separated showexponent If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. showticklabels Determines whether or not the tick labels are drawn. showtickprefix If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. showticksuffix Same as `showtickprefix` but for tick suffixes. thickness Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. thicknessmode Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. tick0 Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for more info). If the axis `type` is "date", it should be a date string, like date data. If the axis `type` is "category", it should be a number, using the scale where each category is assigned a serial number from zero in the order it appears. tickangle Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. tickcolor Sets the tick color. tickfont Sets the color bar's tick label font tickformat Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time- format#locale_format We add one item to d3's date formatter: "%{n}f" for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat "%H~%M~%S.%2f" would display "09~15~23.46" tickformatstops A tuple of :class:`new_plotly.graph_objects.scatter mapbox.marker.colorbar.Tickformatstop` instances or dicts with compatible properties tickformatstopdefaults When used in a template (as layout.template.dat a.scattermapbox.marker.colorbar.tickformatstopd efaults), sets the default property values to use for elements of scattermapbox.marker.colorbar.tickformatstops ticklabeloverflow Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. ticklabelposition Determines where tick labels are drawn. ticklen Sets the tick length (in px). tickmode Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick` are provided). If "array", the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. ("array" is the default value if `tickvals` is provided). tickprefix Sets a tick label prefix. ticks Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. ticksuffix Sets a tick label suffix. ticktext Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. ticktextsrc Sets the source reference on Chart Studio Cloud for ticktext . tickvals Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. tickvalssrc Sets the source reference on Chart Studio Cloud for tickvals . tickwidth Sets the tick width (in px). title :class:`new_plotly.graph_objects.scattermapbox.mark er.colorbar.Title` instance or dict with compatible properties titlefont Deprecated: Please use scattermapbox.marker.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. titleside Deprecated: Please use scattermapbox.marker.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. x Sets the x position of the color bar (in plot fraction). xanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. xpad Sets the amount of padding (in px) along the x direction. y Sets the y position of the color bar (in plot fraction). yanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. ypad Sets the amount of padding (in px) along the y direction. Returns ------- new_plotly.graph_objs.scattermapbox.marker.ColorBar """ return self["colorbar"] @colorbar.setter def colorbar(self, val): self["colorbar"] = val # colorscale # ---------- @property def colorscale(self): """ Sets the colorscale. Has an effect only if in `marker.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnB u,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland ,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis. The 'colorscale' property is a colorscale and may be specified as: - A list of colors that will be spaced evenly to create the colorscale. Many predefined colorscale lists are included in the sequential, diverging, and cyclical modules in the new_plotly.colors package. - A list of 2-element lists where the first element is the normalized color level value (starting at 0 and ending at 1), and the second item is a valid color string. (e.g. [[0, 'green'], [0.5, 'red'], [1.0, 'rgb(0, 0, 255)']]) - One of the following named colorscales: ['aggrnyl', 'agsunset', 'algae', 'amp', 'armyrose', 'balance', 'blackbody', 'bluered', 'blues', 'blugrn', 'bluyl', 'brbg', 'brwnyl', 'bugn', 'bupu', 'burg', 'burgyl', 'cividis', 'curl', 'darkmint', 'deep', 'delta', 'dense', 'earth', 'edge', 'electric', 'emrld', 'fall', 'geyser', 'gnbu', 'gray', 'greens', 'greys', 'haline', 'hot', 'hsv', 'ice', 'icefire', 'inferno', 'jet', 'magenta', 'magma', 'matter', 'mint', 'mrybm', 'mygbm', 'oranges', 'orrd', 'oryel', 'oxy', 'peach', 'phase', 'picnic', 'pinkyl', 'piyg', 'plasma', 'plotly3', 'portland', 'prgn', 'pubu', 'pubugn', 'puor', 'purd', 'purp', 'purples', 'purpor', 'rainbow', 'rdbu', 'rdgy', 'rdpu', 'rdylbu', 'rdylgn', 'redor', 'reds', 'solar', 'spectral', 'speed', 'sunset', 'sunsetdark', 'teal', 'tealgrn', 'tealrose', 'tempo', 'temps', 'thermal', 'tropic', 'turbid', 'turbo', 'twilight', 'viridis', 'ylgn', 'ylgnbu', 'ylorbr', 'ylorrd']. Appending '_r' to a named colorscale reverses it. Returns ------- str """ return self["colorscale"] @colorscale.setter def colorscale(self, val): self["colorscale"] = val # colorsrc # -------- @property def colorsrc(self): """ Sets the source reference on Chart Studio Cloud for color . The 'colorsrc' property must be specified as a string or as a new_plotly.grid_objs.Column object Returns ------- str """ return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): self["colorsrc"] = val # opacity # ------- @property def opacity(self): """ Sets the marker opacity. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray """ return self["opacity"] @opacity.setter def opacity(self, val): self["opacity"] = val # opacitysrc # ---------- @property def opacitysrc(self): """ Sets the source reference on Chart Studio Cloud for opacity . The 'opacitysrc' property must be specified as a string or as a new_plotly.grid_objs.Column object Returns ------- str """ return self["opacitysrc"] @opacitysrc.setter def opacitysrc(self, val): self["opacitysrc"] = val # reversescale # ------------ @property def reversescale(self): """ Reverses the color mapping if true. Has an effect only if in `marker.color`is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color. The 'reversescale' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["reversescale"] @reversescale.setter def reversescale(self, val): self["reversescale"] = val # showscale # --------- @property def showscale(self): """ Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array. The 'showscale' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showscale"] @showscale.setter def showscale(self, val): self["showscale"] = val # size # ---- @property def size(self): """ Sets the marker size (in px). The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray """ return self["size"] @size.setter def size(self, val): self["size"] = val # sizemin # ------- @property def sizemin(self): """ Has an effect only if `marker.size` is set to a numerical array. Sets the minimum size (in px) of the rendered marker points. The 'sizemin' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["sizemin"] @sizemin.setter def sizemin(self, val): self["sizemin"] = val # sizemode # -------- @property def sizemode(self): """ Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. The 'sizemode' property is an enumeration that may be specified as: - One of the following enumeration values: ['diameter', 'area'] Returns ------- Any """ return self["sizemode"] @sizemode.setter def sizemode(self, val): self["sizemode"] = val # sizeref # ------- @property def sizeref(self): """ Has an effect only if `marker.size` is set to a numerical array. Sets the scale factor used to determine the rendered size of marker points. Use with `sizemin` and `sizemode`. The 'sizeref' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["sizeref"] @sizeref.setter def sizeref(self, val): self["sizeref"] = val # sizesrc # ------- @property def sizesrc(self): """ Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a new_plotly.grid_objs.Column object Returns ------- str """ return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): self["sizesrc"] = val # symbol # ------ @property def symbol(self): """ Sets the marker symbol. Full list: https://www.mapbox.com/maki- icons/ Note that the array `marker.color` and `marker.size` are only available for "circle" symbols. The 'symbol' property is a string and must be specified as: - A string - A number that will be converted to a string - A tuple, list, or one-dimensional numpy array of the above Returns ------- str|numpy.ndarray """ return self["symbol"] @symbol.setter def symbol(self, val): self["symbol"] = val # symbolsrc # --------- @property def symbolsrc(self): """ Sets the source reference on Chart Studio Cloud for symbol . The 'symbolsrc' property must be specified as a string or as a new_plotly.grid_objs.Column object Returns ------- str """ return self["symbolsrc"] @symbolsrc.setter def symbolsrc(self, val): self["symbolsrc"] = val # Self properties description # --------------------------- @property def _prop_descriptions(self): return """\ allowoverlap Flag to draw all symbols, even if they overlap. angle Sets the marker orientation from true North, in degrees clockwise. When using the "auto" default, no rotation would be applied in perspective views which is different from using a zero angle. anglesrc Sets the source reference on Chart Studio Cloud for angle . autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed. cauto Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user. cmax Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well. cmid Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`. cmin Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well. color Sets themarkercolor. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. coloraxis Sets a reference to a shared color axis. References to these shared color axes are "coloraxis", "coloraxis2", "coloraxis3", etc. Settings for these shared color axes are set in the layout, under `layout.coloraxis`, `layout.coloraxis2`, etc. Note that multiple color scales can be linked to the same color axis. colorbar :class:`new_plotly.graph_objects.scattermapbox.marker.Color Bar` instance or dict with compatible properties colorscale Sets the colorscale. Has an effect only if in `marker.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu ,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,E arth,Electric,Viridis,Cividis. colorsrc Sets the source reference on Chart Studio Cloud for color . opacity Sets the marker opacity. opacitysrc Sets the source reference on Chart Studio Cloud for opacity . reversescale Reverses the color mapping if true. Has an effect only if in `marker.color`is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color. showscale Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array. size Sets the marker size (in px). sizemin Has an effect only if `marker.size` is set to a numerical array. Sets the minimum size (in px) of the rendered marker points. sizemode Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. sizeref Has an effect only if `marker.size` is set to a numerical array. Sets the scale factor used to determine the rendered size of marker points. Use with `sizemin` and `sizemode`. sizesrc Sets the source reference on Chart Studio Cloud for size . symbol Sets the marker symbol. Full list: https://www.mapbox.com/maki-icons/ Note that the array `marker.color` and `marker.size` are only available for "circle" symbols. symbolsrc Sets the source reference on Chart Studio Cloud for symbol . """ def __init__( self, arg=None, allowoverlap=None, angle=None, anglesrc=None, autocolorscale=None, cauto=None, cmax=None, cmid=None, cmin=None, color=None, coloraxis=None, colorbar=None, colorscale=None, colorsrc=None, opacity=None, opacitysrc=None, reversescale=None, showscale=None, size=None, sizemin=None, sizemode=None, sizeref=None, sizesrc=None, symbol=None, symbolsrc=None, **kwargs ): """ Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`new_plotly.graph_objs.scattermapbox.Marker` allowoverlap Flag to draw all symbols, even if they overlap. angle Sets the marker orientation from true North, in degrees clockwise. When using the "auto" default, no rotation would be applied in perspective views which is different from using a zero angle. anglesrc Sets the source reference on Chart Studio Cloud for angle . autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed. cauto Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user. cmax Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well. cmid Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`. cmin Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well. color Sets themarkercolor. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. coloraxis Sets a reference to a shared color axis. References to these shared color axes are "coloraxis", "coloraxis2", "coloraxis3", etc. Settings for these shared color axes are set in the layout, under `layout.coloraxis`, `layout.coloraxis2`, etc. Note that multiple color scales can be linked to the same color axis. colorbar :class:`new_plotly.graph_objects.scattermapbox.marker.Color Bar` instance or dict with compatible properties colorscale Sets the colorscale. Has an effect only if in `marker.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu ,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,E arth,Electric,Viridis,Cividis. colorsrc Sets the source reference on Chart Studio Cloud for color . opacity Sets the marker opacity. opacitysrc Sets the source reference on Chart Studio Cloud for opacity . reversescale Reverses the color mapping if true. Has an effect only if in `marker.color`is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color. showscale Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array. size Sets the marker size (in px). sizemin Has an effect only if `marker.size` is set to a numerical array. Sets the minimum size (in px) of the rendered marker points. sizemode Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. sizeref Has an effect only if `marker.size` is set to a numerical array. Sets the scale factor used to determine the rendered size of marker points. Use with `sizemin` and `sizemode`. sizesrc Sets the source reference on Chart Studio Cloud for size . symbol Sets the marker symbol. Full list: https://www.mapbox.com/maki-icons/ Note that the array `marker.color` and `marker.size` are only available for "circle" symbols. symbolsrc Sets the source reference on Chart Studio Cloud for symbol . Returns ------- Marker """ super(Marker, self).__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return # Validate arg # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): arg = arg.to_plotly_json() elif isinstance(arg, dict): arg = _copy.copy(arg) else: raise ValueError( """\ The first argument to the new_plotly.graph_objs.scattermapbox.Marker constructor must be a dict or an instance of :class:`new_plotly.graph_objs.scattermapbox.Marker`""" ) # Handle skip_invalid # ------------------- self._skip_invalid = kwargs.pop("skip_invalid", False) self._validate = kwargs.pop("_validate", True) # Populate data dict with properties # ---------------------------------- _v = arg.pop("allowoverlap", None) _v = allowoverlap if allowoverlap is not None else _v if _v is not None: self["allowoverlap"] = _v _v = arg.pop("angle", None) _v = angle if angle is not None else _v if _v is not None: self["angle"] = _v _v = arg.pop("anglesrc", None) _v = anglesrc if anglesrc is not None else _v if _v is not None: self["anglesrc"] = _v _v = arg.pop("autocolorscale", None) _v = autocolorscale if autocolorscale is not None else _v if _v is not None: self["autocolorscale"] = _v _v = arg.pop("cauto", None) _v = cauto if cauto is not None else _v if _v is not None: self["cauto"] = _v _v = arg.pop("cmax", None) _v = cmax if cmax is not None else _v if _v is not None: self["cmax"] = _v _v = arg.pop("cmid", None) _v = cmid if cmid is not None else _v if _v is not None: self["cmid"] = _v _v = arg.pop("cmin", None) _v = cmin if cmin is not None else _v if _v is not None: self["cmin"] = _v _v = arg.pop("color", None) _v = color if color is not None else _v if _v is not None: self["color"] = _v _v = arg.pop("coloraxis", None) _v = coloraxis if coloraxis is not None else _v if _v is not None: self["coloraxis"] = _v _v = arg.pop("colorbar", None) _v = colorbar if colorbar is not None else _v if _v is not None: self["colorbar"] = _v _v = arg.pop("colorscale", None) _v = colorscale if colorscale is not None else _v if _v is not None: self["colorscale"] = _v _v = arg.pop("colorsrc", None) _v = colorsrc if colorsrc is not None else _v if _v is not None: self["colorsrc"] = _v _v = arg.pop("opacity", None) _v = opacity if opacity is not None else _v if _v is not None: self["opacity"] = _v _v = arg.pop("opacitysrc", None) _v = opacitysrc if opacitysrc is not None else _v if _v is not None: self["opacitysrc"] = _v _v = arg.pop("reversescale", None) _v = reversescale if reversescale is not None else _v if _v is not None: self["reversescale"] = _v _v = arg.pop("showscale", None) _v = showscale if showscale is not None else _v if _v is not None: self["showscale"] = _v _v = arg.pop("size", None) _v = size if size is not None else _v if _v is not None: self["size"] = _v _v = arg.pop("sizemin", None) _v = sizemin if sizemin is not None else _v if _v is not None: self["sizemin"] = _v _v = arg.pop("sizemode", None) _v = sizemode if sizemode is not None else _v if _v is not None: self["sizemode"] = _v _v = arg.pop("sizeref", None) _v = sizeref if sizeref is not None else _v if _v is not None: self["sizeref"] = _v _v = arg.pop("sizesrc", None) _v = sizesrc if sizesrc is not None else _v if _v is not None: self["sizesrc"] = _v _v = arg.pop("symbol", None) _v = symbol if symbol is not None else _v if _v is not None: self["symbol"] = _v _v = arg.pop("symbolsrc", None) _v = symbolsrc if symbolsrc is not None else _v if _v is not None: self["symbolsrc"] = _v # Process unknown kwargs # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) # Reset skip_invalid # ------------------ self._skip_invalid = False
f218147dd10fb666b03b90331069ea33e88098df
2940f5416082dadd9c646cd9a46d2d0a99883efb
/venv/Lib/site-packages/pandas/tests/series/test_subclass.py
86330b7cc69937ddca6b4a69d3796dfe6f93618c
[ "MIT" ]
permissive
tpike3/SugarScape
4813e4fefbfb0a701f5913d74f045fd0eaed1942
39efe4007fba2b12b75c72f7795827a1f74d640b
refs/heads/main
2021-06-20T03:55:46.288721
2021-01-20T17:06:35
2021-01-20T17:06:35
168,583,530
11
3
MIT
2021-01-20T17:19:53
2019-01-31T19:29:40
Jupyter Notebook
UTF-8
Python
false
false
2,084
py
import numpy as np import pandas as pd import pandas._testing as tm class TestSeriesSubclassing: def test_indexing_sliced(self): s = tm.SubclassedSeries([1, 2, 3, 4], index=list("abcd")) res = s.loc[["a", "b"]] exp = tm.SubclassedSeries([1, 2], index=list("ab")) tm.assert_series_equal(res, exp) res = s.iloc[[2, 3]] exp = tm.SubclassedSeries([3, 4], index=list("cd")) tm.assert_series_equal(res, exp) res = s.loc[["a", "b"]] exp = tm.SubclassedSeries([1, 2], index=list("ab")) tm.assert_series_equal(res, exp) def test_to_frame(self): s = tm.SubclassedSeries([1, 2, 3, 4], index=list("abcd"), name="xxx") res = s.to_frame() exp = tm.SubclassedDataFrame({"xxx": [1, 2, 3, 4]}, index=list("abcd")) tm.assert_frame_equal(res, exp) def test_subclass_unstack(self): # GH 15564 s = tm.SubclassedSeries([1, 2, 3, 4], index=[list("aabb"), list("xyxy")]) res = s.unstack() exp = tm.SubclassedDataFrame({"x": [1, 3], "y": [2, 4]}, index=["a", "b"]) tm.assert_frame_equal(res, exp) def test_subclass_empty_repr(self): with tm.assert_produces_warning(DeprecationWarning, check_stacklevel=False): sub_series = tm.SubclassedSeries() assert "SubclassedSeries" in repr(sub_series) def test_asof(self): N = 3 rng = pd.date_range("1/1/1990", periods=N, freq="53s") s = tm.SubclassedSeries({"A": [np.nan, np.nan, np.nan]}, index=rng) result = s.asof(rng[-2:]) assert isinstance(result, tm.SubclassedSeries) def test_explode(self): s = tm.SubclassedSeries([[1, 2, 3], "foo", [], [3, 4]]) result = s.explode() assert isinstance(result, tm.SubclassedSeries) def test_equals(self): # https://github.com/pandas-dev/pandas/pull/34402 # allow subclass in both directions s1 = pd.Series([1, 2, 3]) s2 = tm.SubclassedSeries([1, 2, 3]) assert s1.equals(s2) assert s2.equals(s1)
a9c3328717b43707b2bf21b0c04fd68897484d1a
53ab530408135b31dce247ec76d5c70d143cae69
/commands/deviot_languages.py
7bf2dd70fa1de9434f58aff7c744c2adc80d5242
[ "Apache-2.0" ]
permissive
hoat23/Deviot
d3ede1b5884cb421fa17832cc7fe56dcc598ce44
77a9e08059f9226ebf23a216b00c6ebb5b1cd054
refs/heads/master
2021-07-22T20:25:07.840839
2017-10-07T19:53:21
2017-10-07T19:53:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
from sublime_plugin import WindowCommand from ..libraries.quick_menu import QuickMenu class DeviotLanguagesCommand(WindowCommand): def run(self): QuickMenu().quick_language()
a794cd368971ddd7da52ea42ef11f525d6acfa03
4ebfb207661bafcebb9b75936318c7dc84db3d80
/myvenv/Scripts/rst2s5.py
8f3e1f9599c87a7c8383bf0cf545291231482abe
[]
no_license
YooInKeun/ToDo-App
2c72a91488cb376ff6c380ccbe5106dfdae09ecb
c231e5b13936a33bf60e42268c1ad856495aa432
refs/heads/master
2022-12-11T18:41:06.856657
2019-09-12T07:39:25
2019-09-12T07:39:25
200,203,474
0
0
null
2022-11-22T04:13:58
2019-08-02T09:07:51
Python
UTF-8
Python
false
false
718
py
#!c:\users\keun0\onedrive\바탕 화면\창업 경진대회\todo\todo-app\myvenv\scripts\python.exe # $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: Chris Liechti <[email protected]> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing HTML slides using the S5 template system. """ try: import locale locale.setlocale(locale.LC_ALL, '') except: pass from docutils.core import publish_cmdline, default_description description = ('Generates S5 (X)HTML slideshow documents from standalone ' 'reStructuredText sources. ' + default_description) publish_cmdline(writer_name='s5', description=description)
62de0d4b13ffe8a54f556b37db6ba423e609c33e
9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb
/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_get.py
09de9918ef91a8f9e53d95e483bca18b08f524f3
[ "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-generic-cla" ]
permissive
openapi-env-test/azure-sdk-for-python
b334a2b65eeabcf9b7673879a621abb9be43b0f6
f61090e96094cfd4f43650be1a53425736bd8985
refs/heads/main
2023-08-30T14:22:14.300080
2023-06-08T02:53:04
2023-06-08T02:53:04
222,384,897
1
0
MIT
2023-09-08T08:38:48
2019-11-18T07:09:24
Python
UTF-8
Python
false
false
1,614
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential from azure.mgmt.netapp import NetAppManagementClient """ # PREREQUISITES pip install azure-identity pip install azure-mgmt-netapp # USAGE python snapshots_get.py Before run the sample, please set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET. For more info about how to get the value, please see: https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal """ def main(): client = NetAppManagementClient( credential=DefaultAzureCredential(), subscription_id="D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", ) response = client.snapshots.get( resource_group_name="myRG", account_name="account1", pool_name="pool1", volume_name="volume1", snapshot_name="snapshot1", ) print(response) # x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Snapshots_Get.json if __name__ == "__main__": main()
a9f79e7b48f9cf3f29dd1c182f1d9c2383e76811
1977dfcd971bb80fd5926f00a86d37c21cf80520
/y/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/compute/v1/compute_v1_messages.py
4118a818714f4254ba137d38203a47c482413f3b
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
camidagreat/music_game_poc
fd39cd1bbcddaee6ccac2601b95ec81d0358dbf8
be3c69c026a254078e1dbcee936b368766092a5e
refs/heads/master
2023-01-08T22:12:05.372029
2020-04-22T19:40:31
2020-04-22T19:40:31
204,744,171
0
1
null
2022-12-10T07:53:06
2019-08-27T16:27:00
Python
UTF-8
Python
false
false
1,773,776
py
"""Generated message classes for compute version v1. Creates and runs virtual machines on Google Cloud Platform. """ # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.protorpclite import messages as _messages from apitools.base.py import encoding package = 'compute' class AcceleratorConfig(_messages.Message): r"""A specification of the type and number of accelerator cards attached to the instance. Fields: acceleratorCount: The number of the guest accelerator cards exposed to this instance. acceleratorType: Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us- central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types. """ acceleratorCount = _messages.IntegerField(1, variant=_messages.Variant.INT32) acceleratorType = _messages.StringField(2) class AcceleratorType(_messages.Message): r"""Represents an Accelerator Type resource. Google Cloud Platform provides graphics processing units (accelerators) that you can add to VM instances to improve or accelerate performance when working with intensive workloads. For more information, read GPUs on Compute Engine. (== resource_for beta.acceleratorTypes ==) (== resource_for v1.acceleratorTypes ==) Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. deprecated: [Output Only] The deprecation status associated with this accelerator type. description: [Output Only] An optional textual description of the resource. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] The type of the resource. Always compute#acceleratorType for accelerator types. maximumCardsPerInstance: [Output Only] Maximum accelerator cards allowed per instance. name: [Output Only] Name of the resource. selfLink: [Output Only] Server-defined fully-qualified URL for this resource. zone: [Output Only] The name of the zone where the accelerator type resides, such as us-central1-a. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. """ creationTimestamp = _messages.StringField(1) deprecated = _messages.MessageField('DeprecationStatus', 2) description = _messages.StringField(3) id = _messages.IntegerField(4, variant=_messages.Variant.UINT64) kind = _messages.StringField(5, default=u'compute#acceleratorType') maximumCardsPerInstance = _messages.IntegerField(6, variant=_messages.Variant.INT32) name = _messages.StringField(7) selfLink = _messages.StringField(8) zone = _messages.StringField(9) class AcceleratorTypeAggregatedList(_messages.Message): r"""A AcceleratorTypeAggregatedList object. Messages: ItemsValue: A list of AcceleratorTypesScopedList resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of AcceleratorTypesScopedList resources. kind: [Output Only] Type of resource. Always compute#acceleratorTypeAggregatedList for aggregated lists of accelerator types. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of AcceleratorTypesScopedList resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: [Output Only] Name of the scope containing this set of accelerator types. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A AcceleratorTypesScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('AcceleratorTypesScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#acceleratorTypeAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class AcceleratorTypeList(_messages.Message): r"""Contains a list of accelerator types. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of AcceleratorType resources. kind: [Output Only] Type of resource. Always compute#acceleratorTypeList for lists of accelerator types. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('AcceleratorType', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#acceleratorTypeList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class AcceleratorTypesScopedList(_messages.Message): r"""A AcceleratorTypesScopedList object. Messages: WarningValue: [Output Only] An informational warning that appears when the accelerator types list is empty. Fields: acceleratorTypes: [Output Only] A list of accelerator types contained in this scope. warning: [Output Only] An informational warning that appears when the accelerator types list is empty. """ class WarningValue(_messages.Message): r"""[Output Only] An informational warning that appears when the accelerator types list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) acceleratorTypes = _messages.MessageField('AcceleratorType', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class AccessConfig(_messages.Message): r"""An access configuration attached to an instance's network interface. Only one access config per instance is supported. Enums: NetworkTierValueValuesEnum: This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP. TypeValueValuesEnum: The type of configuration. The default and only option is ONE_TO_ONE_NAT. Fields: kind: [Output Only] Type of the resource. Always compute#accessConfig for access configs. name: The name of this access configuration. The default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access. natIP: An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance. networkTier: This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP. publicPtrDomainName: The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled. setPublicPtr: Specifies whether a public DNS 'PTR' record should be created to map the external IP address of the instance to a DNS domain name. type: The type of configuration. The default and only option is ONE_TO_ONE_NAT. """ class NetworkTierValueValuesEnum(_messages.Enum): r"""This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP. Values: PREMIUM: <no description> STANDARD: <no description> """ PREMIUM = 0 STANDARD = 1 class TypeValueValuesEnum(_messages.Enum): r"""The type of configuration. The default and only option is ONE_TO_ONE_NAT. Values: ONE_TO_ONE_NAT: <no description> """ ONE_TO_ONE_NAT = 0 kind = _messages.StringField(1, default=u'compute#accessConfig') name = _messages.StringField(2) natIP = _messages.StringField(3) networkTier = _messages.EnumField('NetworkTierValueValuesEnum', 4) publicPtrDomainName = _messages.StringField(5) setPublicPtr = _messages.BooleanField(6) type = _messages.EnumField('TypeValueValuesEnum', 7, default=u'ONE_TO_ONE_NAT') class Address(_messages.Message): r"""Represents an IP Address resource. An address resource represents a regional internal IP address. Regional internal IP addresses are RFC 1918 addresses that come from either a primary or secondary IP range of a subnet in a VPC network. Regional external IP addresses can be assigned to GCP VM instances, Cloud VPN gateways, regional external forwarding rules for network load balancers (in either Standard or Premium Tier), and regional external forwarding rules for HTTP(S), SSL Proxy, and TCP Proxy load balancers in Standard Tier. For more information, read IP addresses. A globalAddresses resource represent a global external IP address. Global external IP addresses are IPv4 or IPv6 addresses. They can only be assigned to global forwarding rules for HTTP(S), SSL Proxy, or TCP Proxy load balancers in Premium Tier. For more information, read Global resources. (== resource_for beta.addresses ==) (== resource_for v1.addresses ==) (== resource_for beta.globalAddresses ==) (== resource_for v1.globalAddresses ==) Enums: AddressTypeValueValuesEnum: The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL. IpVersionValueValuesEnum: The IP version that will be used by this address. Valid options are IPV4 or IPV6. This can only be specified for a global address. NetworkTierValueValuesEnum: This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD. Global forwarding rules can only be Premium Tier. Regional forwarding rules can be either Premium or Standard Tier. Standard Tier addresses applied to regional forwarding rules can be used with any external load balancer. Regional forwarding rules in Premium Tier can only be used with a network load balancer. If this field is not specified, it is assumed to be PREMIUM. PurposeValueValuesEnum: The purpose of this resource, which can be one of the following values: - `GCE_ENDPOINT` for addresses that are used by VM instances, alias IP ranges, internal load balancers, and similar resources. - `DNS_RESOLVER` for a DNS resolver address in a subnetwork - `VPC_PEERING` for addresses that are reserved for VPC peer networks. - `NAT_AUTO` for addresses that are external IP addresses automatically reserved for Cloud NAT. StatusValueValuesEnum: [Output Only] The status of the address, which can be one of RESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available. Fields: address: The static IP address represented by this resource. addressType: The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this field when you create the resource. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. ipVersion: The IP version that will be used by this address. Valid options are IPV4 or IPV6. This can only be specified for a global address. kind: [Output Only] Type of the resource. Always compute#address for addresses. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. network: The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with the VPC_PEERING purpose. networkTier: This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD. Global forwarding rules can only be Premium Tier. Regional forwarding rules can be either Premium or Standard Tier. Standard Tier addresses applied to regional forwarding rules can be used with any external load balancer. Regional forwarding rules in Premium Tier can only be used with a network load balancer. If this field is not specified, it is assumed to be PREMIUM. prefixLength: The prefix length if the resource reprensents an IP range. purpose: The purpose of this resource, which can be one of the following values: - `GCE_ENDPOINT` for addresses that are used by VM instances, alias IP ranges, internal load balancers, and similar resources. - `DNS_RESOLVER` for a DNS resolver address in a subnetwork - `VPC_PEERING` for addresses that are reserved for VPC peer networks. - `NAT_AUTO` for addresses that are external IP addresses automatically reserved for Cloud NAT. region: [Output Only] The URL of the region where the regional address resides. This field is not applicable to global addresses. You must specify this field as part of the HTTP request URL. selfLink: [Output Only] Server-defined URL for the resource. status: [Output Only] The status of the address, which can be one of RESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available. subnetwork: The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork's IP range. This field can only be used with INTERNAL type with a GCE_ENDPOINT or DNS_RESOLVER purpose. users: [Output Only] The URLs of the resources that are using this address. """ class AddressTypeValueValuesEnum(_messages.Enum): r"""The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL. Values: EXTERNAL: <no description> INTERNAL: <no description> UNSPECIFIED_TYPE: <no description> """ EXTERNAL = 0 INTERNAL = 1 UNSPECIFIED_TYPE = 2 class IpVersionValueValuesEnum(_messages.Enum): r"""The IP version that will be used by this address. Valid options are IPV4 or IPV6. This can only be specified for a global address. Values: IPV4: <no description> IPV6: <no description> UNSPECIFIED_VERSION: <no description> """ IPV4 = 0 IPV6 = 1 UNSPECIFIED_VERSION = 2 class NetworkTierValueValuesEnum(_messages.Enum): r"""This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD. Global forwarding rules can only be Premium Tier. Regional forwarding rules can be either Premium or Standard Tier. Standard Tier addresses applied to regional forwarding rules can be used with any external load balancer. Regional forwarding rules in Premium Tier can only be used with a network load balancer. If this field is not specified, it is assumed to be PREMIUM. Values: PREMIUM: <no description> STANDARD: <no description> """ PREMIUM = 0 STANDARD = 1 class PurposeValueValuesEnum(_messages.Enum): r"""The purpose of this resource, which can be one of the following values: - `GCE_ENDPOINT` for addresses that are used by VM instances, alias IP ranges, internal load balancers, and similar resources. - `DNS_RESOLVER` for a DNS resolver address in a subnetwork - `VPC_PEERING` for addresses that are reserved for VPC peer networks. - `NAT_AUTO` for addresses that are external IP addresses automatically reserved for Cloud NAT. Values: DNS_RESOLVER: <no description> GCE_ENDPOINT: <no description> NAT_AUTO: <no description> VPC_PEERING: <no description> """ DNS_RESOLVER = 0 GCE_ENDPOINT = 1 NAT_AUTO = 2 VPC_PEERING = 3 class StatusValueValuesEnum(_messages.Enum): r"""[Output Only] The status of the address, which can be one of RESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available. Values: IN_USE: <no description> RESERVED: <no description> RESERVING: <no description> """ IN_USE = 0 RESERVED = 1 RESERVING = 2 address = _messages.StringField(1) addressType = _messages.EnumField('AddressTypeValueValuesEnum', 2) creationTimestamp = _messages.StringField(3) description = _messages.StringField(4) id = _messages.IntegerField(5, variant=_messages.Variant.UINT64) ipVersion = _messages.EnumField('IpVersionValueValuesEnum', 6) kind = _messages.StringField(7, default=u'compute#address') name = _messages.StringField(8) network = _messages.StringField(9) networkTier = _messages.EnumField('NetworkTierValueValuesEnum', 10) prefixLength = _messages.IntegerField(11, variant=_messages.Variant.INT32) purpose = _messages.EnumField('PurposeValueValuesEnum', 12) region = _messages.StringField(13) selfLink = _messages.StringField(14) status = _messages.EnumField('StatusValueValuesEnum', 15) subnetwork = _messages.StringField(16) users = _messages.StringField(17, repeated=True) class AddressAggregatedList(_messages.Message): r"""A AddressAggregatedList object. Messages: ItemsValue: A list of AddressesScopedList resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of AddressesScopedList resources. kind: [Output Only] Type of resource. Always compute#addressAggregatedList for aggregated lists of addresses. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of AddressesScopedList resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: [Output Only] Name of the scope containing this set of addresses. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A AddressesScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('AddressesScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#addressAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class AddressList(_messages.Message): r"""Contains a list of addresses. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of Address resources. kind: [Output Only] Type of resource. Always compute#addressList for lists of addresses. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('Address', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#addressList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class AddressesScopedList(_messages.Message): r"""A AddressesScopedList object. Messages: WarningValue: [Output Only] Informational warning which replaces the list of addresses when the list is empty. Fields: addresses: [Output Only] A list of addresses contained in this scope. warning: [Output Only] Informational warning which replaces the list of addresses when the list is empty. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning which replaces the list of addresses when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) addresses = _messages.MessageField('Address', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class AliasIpRange(_messages.Message): r"""An alias IP range attached to an instance's network interface. Fields: ipCidrRange: The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string (such as 10.1.2.0/24). subnetworkRangeName: The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used. """ ipCidrRange = _messages.StringField(1) subnetworkRangeName = _messages.StringField(2) class AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk(_messages.Message): r"""A AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk object. Enums: InterfaceValueValuesEnum: Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Fields: diskSizeGb: Specifies the size of the disk in base-2 GB. interface: Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. """ class InterfaceValueValuesEnum(_messages.Enum): r"""Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Values: NVME: <no description> SCSI: <no description> """ NVME = 0 SCSI = 1 diskSizeGb = _messages.IntegerField(1) interface = _messages.EnumField('InterfaceValueValuesEnum', 2) class AllocationSpecificSKUAllocationReservedInstanceProperties(_messages.Message): r"""Properties of the SKU instances being reserved. Fields: guestAccelerators: Specifies accelerator type and count. localSsds: Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. machineType: Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern. minCpuPlatform: Minimum cpu platform the reservation. """ guestAccelerators = _messages.MessageField('AcceleratorConfig', 1, repeated=True) localSsds = _messages.MessageField('AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk', 2, repeated=True) machineType = _messages.StringField(3) minCpuPlatform = _messages.StringField(4) class AllocationSpecificSKUReservation(_messages.Message): r"""This reservation type allows to pre allocate specific instance configuration. Fields: count: Specifies the number of resources that are allocated. inUseCount: [OutputOnly] Indicates how many instances are in use. instanceProperties: The instance properties for the reservation. """ count = _messages.IntegerField(1) inUseCount = _messages.IntegerField(2) instanceProperties = _messages.MessageField('AllocationSpecificSKUAllocationReservedInstanceProperties', 3) class AttachedDisk(_messages.Message): r"""An instance-attached disk resource. Enums: InterfaceValueValuesEnum: Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. TODO(b/131765817): Update documentation when NVME is supported. ModeValueValuesEnum: The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. TypeValueValuesEnum: Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. Fields: autoDelete: Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). boot: Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem. deviceName: Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks. diskEncryptionKey: Encrypts or decrypts a disk using a customer-supplied encryption key. If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key. If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance. If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group. guestOsFeatures: A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. index: [Output Only] A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number. initializeParams: [Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both. interface: Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. TODO(b/131765817): Update documentation when NVME is supported. kind: [Output Only] Type of the resource. Always compute#attachedDisk for attached disks. licenses: [Output Only] Any valid publicly visible licenses. mode: The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. source: Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, one of initializeParams.sourceImage or disks.source is required except for local SSD. If desired, you can also attach existing non-root persistent disks using this property. This field is only applicable for persistent disks. Note that for InstanceTemplate, specify the disk name, not the URL for the disk. type: Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. """ class InterfaceValueValuesEnum(_messages.Enum): r"""Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. TODO(b/131765817): Update documentation when NVME is supported. Values: NVME: <no description> SCSI: <no description> """ NVME = 0 SCSI = 1 class ModeValueValuesEnum(_messages.Enum): r"""The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Values: READ_ONLY: <no description> READ_WRITE: <no description> """ READ_ONLY = 0 READ_WRITE = 1 class TypeValueValuesEnum(_messages.Enum): r"""Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. Values: PERSISTENT: <no description> SCRATCH: <no description> """ PERSISTENT = 0 SCRATCH = 1 autoDelete = _messages.BooleanField(1) boot = _messages.BooleanField(2) deviceName = _messages.StringField(3) diskEncryptionKey = _messages.MessageField('CustomerEncryptionKey', 4) guestOsFeatures = _messages.MessageField('GuestOsFeature', 5, repeated=True) index = _messages.IntegerField(6, variant=_messages.Variant.INT32) initializeParams = _messages.MessageField('AttachedDiskInitializeParams', 7) interface = _messages.EnumField('InterfaceValueValuesEnum', 8) kind = _messages.StringField(9, default=u'compute#attachedDisk') licenses = _messages.StringField(10, repeated=True) mode = _messages.EnumField('ModeValueValuesEnum', 11) source = _messages.StringField(12) type = _messages.EnumField('TypeValueValuesEnum', 13) class AttachedDiskInitializeParams(_messages.Message): r"""[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both. Messages: LabelsValue: Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks. Fields: description: An optional description. Provide this property when creating the disk. diskName: Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated. diskSizeGb: Specifies the size of the disk in base-2 GB. If not specified, the disk will be the same size as the image (usually 10GB). If specified, the size must be equal to or larger than 10GB. diskType: Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zo ne/diskTypes/pd-standard Other values include pd-ssd and local-ssd. If you define this field, you can provide either the full or partial URL. For example, the following are valid values: - https://www.googleapis. com/compute/v1/projects/project/zones/zone/diskTypes/diskType - projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType Note that for InstanceTemplate, this is the name of the disk type, not URL. labels: Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks. resourcePolicies: Resource policies applied to this disk for automatic snapshot creations. Specified using the full or partial URL. For instance template, specify only the resource policy name. sourceImage: The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or disks.source is required except for local SSD. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian- cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family If the source image is deleted later, this field will not be set. sourceImageEncryptionKey: The customer-supplied encryption key of the source image. Required if the source image is protected by a customer- supplied encryption key. Instance templates do not store customer- supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys. sourceSnapshot: The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot or disks.source is required except for local SSD. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set. sourceSnapshotEncryptionKey: The customer-supplied encryption key of the source snapshot. """ @encoding.MapUnrecognizedFields('additionalProperties') class LabelsValue(_messages.Message): r"""Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks. Messages: AdditionalProperty: An additional property for a LabelsValue object. Fields: additionalProperties: Additional properties of type LabelsValue """ class AdditionalProperty(_messages.Message): r"""An additional property for a LabelsValue object. Fields: key: Name of the additional property. value: A string attribute. """ key = _messages.StringField(1) value = _messages.StringField(2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) description = _messages.StringField(1) diskName = _messages.StringField(2) diskSizeGb = _messages.IntegerField(3) diskType = _messages.StringField(4) labels = _messages.MessageField('LabelsValue', 5) resourcePolicies = _messages.StringField(6, repeated=True) sourceImage = _messages.StringField(7) sourceImageEncryptionKey = _messages.MessageField('CustomerEncryptionKey', 8) sourceSnapshot = _messages.StringField(9) sourceSnapshotEncryptionKey = _messages.MessageField('CustomerEncryptionKey', 10) class AuditConfig(_messages.Message): r"""Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "sampleservice.googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:[email protected]" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts [email protected] from DATA_READ logging, and [email protected] from DATA_WRITE logging. Fields: auditLogConfigs: The configuration for logging of each type of permission. exemptedMembers: service: Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services. """ auditLogConfigs = _messages.MessageField('AuditLogConfig', 1, repeated=True) exemptedMembers = _messages.StringField(2, repeated=True) service = _messages.StringField(3) class AuditLogConfig(_messages.Message): r"""Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE", } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting [email protected] from DATA_READ logging. Enums: LogTypeValueValuesEnum: The log type that this config enables. Fields: exemptedMembers: Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][]. ignoreChildExemptions: Specifies whether principals can be exempted for the same LogType in lower-level resource policies. If true, any lower- level exemptions will be ignored. logType: The log type that this config enables. """ class LogTypeValueValuesEnum(_messages.Enum): r"""The log type that this config enables. Values: ADMIN_READ: <no description> DATA_READ: <no description> DATA_WRITE: <no description> LOG_TYPE_UNSPECIFIED: <no description> """ ADMIN_READ = 0 DATA_READ = 1 DATA_WRITE = 2 LOG_TYPE_UNSPECIFIED = 3 exemptedMembers = _messages.StringField(1, repeated=True) ignoreChildExemptions = _messages.BooleanField(2) logType = _messages.EnumField('LogTypeValueValuesEnum', 3) class AuthorizationLoggingOptions(_messages.Message): r"""Authorization-related information used by Cloud Audit Logging. Enums: PermissionTypeValueValuesEnum: The type of the permission that was checked. Fields: permissionType: The type of the permission that was checked. """ class PermissionTypeValueValuesEnum(_messages.Enum): r"""The type of the permission that was checked. Values: ADMIN_READ: <no description> ADMIN_WRITE: <no description> DATA_READ: <no description> DATA_WRITE: <no description> PERMISSION_TYPE_UNSPECIFIED: <no description> """ ADMIN_READ = 0 ADMIN_WRITE = 1 DATA_READ = 2 DATA_WRITE = 3 PERMISSION_TYPE_UNSPECIFIED = 4 permissionType = _messages.EnumField('PermissionTypeValueValuesEnum', 1) class Autoscaler(_messages.Message): r"""Represents an Autoscaler resource. Use autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances. For zonal managed instance groups resource, use the autoscaler resource. For regional managed instance groups, use the regionAutoscalers resource. (== resource_for beta.autoscalers ==) (== resource_for v1.autoscalers ==) (== resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==) Enums: StatusValueValuesEnum: [Output Only] The status of the autoscaler configuration. Fields: autoscalingPolicy: The configuration parameters for the autoscaling algorithm. You can define one or more of the policies for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization. If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. region: [Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope). selfLink: [Output Only] Server-defined URL for the resource. status: [Output Only] The status of the autoscaler configuration. statusDetails: [Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter. target: URL of the managed instance group that this autoscaler will scale. zone: [Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope). """ class StatusValueValuesEnum(_messages.Enum): r"""[Output Only] The status of the autoscaler configuration. Values: ACTIVE: <no description> DELETING: <no description> ERROR: <no description> PENDING: <no description> """ ACTIVE = 0 DELETING = 1 ERROR = 2 PENDING = 3 autoscalingPolicy = _messages.MessageField('AutoscalingPolicy', 1) creationTimestamp = _messages.StringField(2) description = _messages.StringField(3) id = _messages.IntegerField(4, variant=_messages.Variant.UINT64) kind = _messages.StringField(5, default=u'compute#autoscaler') name = _messages.StringField(6) region = _messages.StringField(7) selfLink = _messages.StringField(8) status = _messages.EnumField('StatusValueValuesEnum', 9) statusDetails = _messages.MessageField('AutoscalerStatusDetails', 10, repeated=True) target = _messages.StringField(11) zone = _messages.StringField(12) class AutoscalerAggregatedList(_messages.Message): r"""A AutoscalerAggregatedList object. Messages: ItemsValue: A list of AutoscalersScopedList resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of AutoscalersScopedList resources. kind: [Output Only] Type of resource. Always compute#autoscalerAggregatedList for aggregated lists of autoscalers. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of AutoscalersScopedList resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: [Output Only] Name of the scope containing this set of autoscalers. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A AutoscalersScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('AutoscalersScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#autoscalerAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class AutoscalerList(_messages.Message): r"""Contains a list of Autoscaler resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of Autoscaler resources. kind: [Output Only] Type of resource. Always compute#autoscalerList for lists of autoscalers. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('Autoscaler', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#autoscalerList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class AutoscalerStatusDetails(_messages.Message): r"""A AutoscalerStatusDetails object. Enums: TypeValueValuesEnum: The type of error returned. Fields: message: The status message. type: The type of error returned. """ class TypeValueValuesEnum(_messages.Enum): r"""The type of error returned. Values: ALL_INSTANCES_UNHEALTHY: <no description> BACKEND_SERVICE_DOES_NOT_EXIST: <no description> CAPPED_AT_MAX_NUM_REPLICAS: <no description> CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE: <no description> CUSTOM_METRIC_INVALID: <no description> MIN_EQUALS_MAX: <no description> MISSING_CUSTOM_METRIC_DATA_POINTS: <no description> MISSING_LOAD_BALANCING_DATA_POINTS: <no description> MORE_THAN_ONE_BACKEND_SERVICE: <no description> NOT_ENOUGH_QUOTA_AVAILABLE: <no description> REGION_RESOURCE_STOCKOUT: <no description> SCALING_TARGET_DOES_NOT_EXIST: <no description> UNKNOWN: <no description> UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION: <no description> ZONE_RESOURCE_STOCKOUT: <no description> """ ALL_INSTANCES_UNHEALTHY = 0 BACKEND_SERVICE_DOES_NOT_EXIST = 1 CAPPED_AT_MAX_NUM_REPLICAS = 2 CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE = 3 CUSTOM_METRIC_INVALID = 4 MIN_EQUALS_MAX = 5 MISSING_CUSTOM_METRIC_DATA_POINTS = 6 MISSING_LOAD_BALANCING_DATA_POINTS = 7 MORE_THAN_ONE_BACKEND_SERVICE = 8 NOT_ENOUGH_QUOTA_AVAILABLE = 9 REGION_RESOURCE_STOCKOUT = 10 SCALING_TARGET_DOES_NOT_EXIST = 11 UNKNOWN = 12 UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION = 13 ZONE_RESOURCE_STOCKOUT = 14 message = _messages.StringField(1) type = _messages.EnumField('TypeValueValuesEnum', 2) class AutoscalersScopedList(_messages.Message): r"""A AutoscalersScopedList object. Messages: WarningValue: [Output Only] Informational warning which replaces the list of autoscalers when the list is empty. Fields: autoscalers: [Output Only] A list of autoscalers contained in this scope. warning: [Output Only] Informational warning which replaces the list of autoscalers when the list is empty. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning which replaces the list of autoscalers when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) autoscalers = _messages.MessageField('Autoscaler', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class AutoscalingPolicy(_messages.Message): r"""Cloud Autoscaler policy. Fields: coolDownPeriodSec: The number of seconds that the autoscaler should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. The default time autoscaler waits is 60 seconds. Virtual machine initialization times might vary because of numerous factors. We recommend that you test how long an instance may take to initialize. To do this, create an instance and time the startup process. cpuUtilization: Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group. customMetricUtilizations: Configuration parameters of autoscaling based on a custom metric. loadBalancingUtilization: Configuration parameters of autoscaling based on load balancer. maxNumReplicas: The maximum number of instances that the autoscaler can scale up to. This is required when creating or updating an autoscaler. The maximum number of replicas should not be lower than minimal number of replicas. minNumReplicas: The minimum number of replicas that the autoscaler can scale down to. This cannot be less than 0. If not provided, autoscaler will choose a default value depending on maximum number of instances allowed. """ 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): r"""CPU utilization policy. Fields: utilizationTarget: The target CPU utilization that the autoscaler should maintain. Must be a float value in the range (0, 1]. If not specified, the default is 0.6. If the CPU level is below the target utilization, the autoscaler scales down the number of instances until it reaches the minimum number of instances you specified or until the average CPU of your instances reaches the target utilization. If the average CPU is above the target utilization, the autoscaler scales up until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization. """ utilizationTarget = _messages.FloatField(1) class AutoscalingPolicyCustomMetricUtilization(_messages.Message): r"""Custom utilization metric policy. Enums: UtilizationTargetTypeValueValuesEnum: Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. Fields: metric: The identifier (type) of the Stackdriver Monitoring metric. The metric cannot have negative values. The metric must have a value type of INT64 or DOUBLE. utilizationTarget: The target value of the metric that autoscaler should maintain. This must be a positive value. A utilization metric scales number of virtual machines handling requests to increase or decrease proportionally to the metric. For example, a good metric to use as a utilization_target is compute.googleapis.com/instance/network/received_bytes_count. The autoscaler will work to keep this value constant for each of the instances. utilizationTargetType: Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. """ class UtilizationTargetTypeValueValuesEnum(_messages.Enum): r"""Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. Values: DELTA_PER_MINUTE: <no description> DELTA_PER_SECOND: <no description> GAUGE: <no description> """ DELTA_PER_MINUTE = 0 DELTA_PER_SECOND = 1 GAUGE = 2 metric = _messages.StringField(1) utilizationTarget = _messages.FloatField(2) utilizationTargetType = _messages.EnumField('UtilizationTargetTypeValueValuesEnum', 3) class AutoscalingPolicyLoadBalancingUtilization(_messages.Message): r"""Configuration parameters of autoscaling based on load balancing. Fields: utilizationTarget: Fraction of backend capacity utilization (set in HTTP(S) load balancing configuration) that autoscaler should maintain. Must be a positive float value. If not defined, the default is 0.8. """ utilizationTarget = _messages.FloatField(1) class Backend(_messages.Message): r"""Message containing information of one individual backend. Enums: BalancingModeValueValuesEnum: Specifies the balancing mode for the backend. When choosing a balancing mode, you need to consider the loadBalancingScheme, and protocol for the backend service, as well as the type of backend (instance group or NEG). - If the load balancing mode is CONNECTION, then the load is spread based on how many concurrent connections the backend can handle. You can use the CONNECTION balancing mode if the protocol for the backend service is SSL, TCP, or UDP. If the loadBalancingScheme for the backend service is EXTERNAL (SSL Proxy and TCP Proxy load balancers), you must also specify exactly one of the following parameters: maxConnections, maxConnectionsPerInstance, or maxConnectionsPerEndpoint. If the loadBalancingScheme for the backend service is INTERNAL (internal TCP/UDP load balancers), you cannot specify any additional parameters. - If the load balancing mode is RATE, the load is spread based on the rate of HTTP requests per second (RPS). You can use the RATE balancing mode if the protocol for the backend service is HTTP or HTTPS. You must specify exactly one of the following parameters: maxRate, maxRatePerInstance, or maxRatePerEndpoint. - If the load balancing mode is UTILIZATION, the load is spread based on the CPU utilization of instances in an instance group. You can use the UTILIZATION balancing mode if the loadBalancingScheme of the backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED and the backends are instance groups. There are no restrictions on the backend service protocol. Fields: balancingMode: Specifies the balancing mode for the backend. When choosing a balancing mode, you need to consider the loadBalancingScheme, and protocol for the backend service, as well as the type of backend (instance group or NEG). - If the load balancing mode is CONNECTION, then the load is spread based on how many concurrent connections the backend can handle. You can use the CONNECTION balancing mode if the protocol for the backend service is SSL, TCP, or UDP. If the loadBalancingScheme for the backend service is EXTERNAL (SSL Proxy and TCP Proxy load balancers), you must also specify exactly one of the following parameters: maxConnections, maxConnectionsPerInstance, or maxConnectionsPerEndpoint. If the loadBalancingScheme for the backend service is INTERNAL (internal TCP/UDP load balancers), you cannot specify any additional parameters. - If the load balancing mode is RATE, the load is spread based on the rate of HTTP requests per second (RPS). You can use the RATE balancing mode if the protocol for the backend service is HTTP or HTTPS. You must specify exactly one of the following parameters: maxRate, maxRatePerInstance, or maxRatePerEndpoint. - If the load balancing mode is UTILIZATION, the load is spread based on the CPU utilization of instances in an instance group. You can use the UTILIZATION balancing mode if the loadBalancingScheme of the backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED and the backends are instance groups. There are no restrictions on the backend service protocol. capacityScaler: A multiplier applied to the group's maximum servicing capacity (based on UTILIZATION, RATE or CONNECTION). Default value is 1, which means the group will serve up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available Capacity. Valid range is [0.0,1.0]. This cannot be used for internal load balancing. description: An optional description of this resource. Provide this property when you create the resource. group: The fully-qualified URL of an instance group or network endpoint group (NEG) resource. The type of backend that a backend service supports depends on the backend service's loadBalancingScheme. - When the loadBalancingScheme for the backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED, the backend can be either an instance group or a NEG. The backends on the backend service must be either all instance groups or all NEGs. You cannot mix instance group and NEG backends on the same backend service. - When the loadBalancingScheme for the backend service is INTERNAL, the backend must be an instance group in the same region as the backend service. NEGs are not supported. You must use the fully-qualified URL (starting with https://www.googleapis.com/) to specify the instance group or NEG. Partial URLs are not supported. maxConnections: Defines a maximum target for simultaneous connections for the entire backend (instance group or NEG). If the backend's balancingMode is UTILIZATION, this is an optional parameter. If the backend's balancingMode is CONNECTION, and backend is attached to a backend service whose loadBalancingScheme is EXTERNAL, you must specify either this parameter, maxConnectionsPerInstance, or maxConnectionsPerEndpoint. Not available if the backend's balancingMode is RATE. If the loadBalancingScheme is INTERNAL, then maxConnections is not supported, even though the backend requires a balancing mode of CONNECTION. maxConnectionsPerEndpoint: Defines a maximum target for simultaneous connections for an endpoint of a NEG. This is multiplied by the number of endpoints in the NEG to implicitly calculate a maximum number of target maximum simultaneous connections for the NEG. If the backend's balancingMode is CONNECTION, and the backend is attached to a backend service whose loadBalancingScheme is EXTERNAL, you must specify either this parameter, maxConnections, or maxConnectionsPerInstance. Not available if the backend's balancingMode is RATE. Internal TCP/UDP load balancing does not support setting maxConnectionsPerEndpoint even though its backends require a balancing mode of CONNECTION. maxConnectionsPerInstance: Defines a maximum target for simultaneous connections for a single VM in a backend instance group. This is multiplied by the number of instances in the instance group to implicitly calculate a target maximum number of simultaneous connections for the whole instance group. If the backend's balancingMode is UTILIZATION, this is an optional parameter. If the backend's balancingMode is CONNECTION, and backend is attached to a backend service whose loadBalancingScheme is EXTERNAL, you must specify either this parameter, maxConnections, or maxConnectionsPerEndpoint. Not available if the backend's balancingMode is RATE. Internal TCP/UDP load balancing does not support setting maxConnectionsPerInstance even though its backends require a balancing mode of CONNECTION. maxRate: The max requests per second (RPS) of the group. Can be used with either RATE or UTILIZATION balancing modes, but required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance must be set. This cannot be used for internal load balancing. maxRatePerEndpoint: Defines a maximum target for requests per second (RPS) for an endpoint of a NEG. This is multiplied by the number of endpoints in the NEG to implicitly calculate a target maximum rate for the NEG. If the backend's balancingMode is RATE, you must specify either this parameter, maxRate, or maxRatePerInstance. Not available if the backend's balancingMode is CONNECTION. maxRatePerInstance: Defines a maximum target for requests per second (RPS) for a single VM in a backend instance group. This is multiplied by the number of instances in the instance group to implicitly calculate a target maximum rate for the whole instance group. If the backend's balancingMode is UTILIZATION, this is an optional parameter. If the backend's balancingMode is RATE, you must specify either this parameter, maxRate, or maxRatePerEndpoint. Not available if the backend's balancingMode is CONNECTION. maxUtilization: Defines the maximum average CPU utilization of a backend VM in an instance group. The valid range is [0.0, 1.0]. This is an optional parameter if the backend's balancingMode is UTILIZATION. This parameter can be used in conjunction with maxRate, maxRatePerInstance, maxConnections, or maxConnectionsPerInstance. """ class BalancingModeValueValuesEnum(_messages.Enum): r"""Specifies the balancing mode for the backend. When choosing a balancing mode, you need to consider the loadBalancingScheme, and protocol for the backend service, as well as the type of backend (instance group or NEG). - If the load balancing mode is CONNECTION, then the load is spread based on how many concurrent connections the backend can handle. You can use the CONNECTION balancing mode if the protocol for the backend service is SSL, TCP, or UDP. If the loadBalancingScheme for the backend service is EXTERNAL (SSL Proxy and TCP Proxy load balancers), you must also specify exactly one of the following parameters: maxConnections, maxConnectionsPerInstance, or maxConnectionsPerEndpoint. If the loadBalancingScheme for the backend service is INTERNAL (internal TCP/UDP load balancers), you cannot specify any additional parameters. - If the load balancing mode is RATE, the load is spread based on the rate of HTTP requests per second (RPS). You can use the RATE balancing mode if the protocol for the backend service is HTTP or HTTPS. You must specify exactly one of the following parameters: maxRate, maxRatePerInstance, or maxRatePerEndpoint. - If the load balancing mode is UTILIZATION, the load is spread based on the CPU utilization of instances in an instance group. You can use the UTILIZATION balancing mode if the loadBalancingScheme of the backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED and the backends are instance groups. There are no restrictions on the backend service protocol. Values: CONNECTION: <no description> RATE: <no description> UTILIZATION: <no description> """ CONNECTION = 0 RATE = 1 UTILIZATION = 2 balancingMode = _messages.EnumField('BalancingModeValueValuesEnum', 1) capacityScaler = _messages.FloatField(2, variant=_messages.Variant.FLOAT) description = _messages.StringField(3) group = _messages.StringField(4) maxConnections = _messages.IntegerField(5, variant=_messages.Variant.INT32) maxConnectionsPerEndpoint = _messages.IntegerField(6, variant=_messages.Variant.INT32) maxConnectionsPerInstance = _messages.IntegerField(7, variant=_messages.Variant.INT32) maxRate = _messages.IntegerField(8, variant=_messages.Variant.INT32) maxRatePerEndpoint = _messages.FloatField(9, variant=_messages.Variant.FLOAT) maxRatePerInstance = _messages.FloatField(10, variant=_messages.Variant.FLOAT) maxUtilization = _messages.FloatField(11, variant=_messages.Variant.FLOAT) class BackendBucket(_messages.Message): r"""Represents a Cloud Storage Bucket resource. This Cloud Storage bucket resource is referenced by a URL map of a load balancer. For more information, read Backend Buckets. Fields: bucketName: Cloud Storage bucket name. cdnPolicy: Cloud CDN configuration for this BackendBucket. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional textual description of the resource; provided by the client when the resource is created. enableCdn: If true, enable Cloud CDN for this BackendBucket. id: [Output Only] Unique identifier for the resource; defined by the server. kind: Type of the resource. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. selfLink: [Output Only] Server-defined URL for the resource. """ bucketName = _messages.StringField(1) cdnPolicy = _messages.MessageField('BackendBucketCdnPolicy', 2) creationTimestamp = _messages.StringField(3) description = _messages.StringField(4) enableCdn = _messages.BooleanField(5) id = _messages.IntegerField(6, variant=_messages.Variant.UINT64) kind = _messages.StringField(7, default=u'compute#backendBucket') name = _messages.StringField(8) selfLink = _messages.StringField(9) class BackendBucketCdnPolicy(_messages.Message): r"""Message containing Cloud CDN configuration for a backend bucket. Fields: signedUrlCacheMaxAgeSec: Maximum number of seconds the response to a signed URL request will be considered fresh. After this time period, the response will be revalidated before being served. Defaults to 1hr (3600s). When serving responses to signed URL requests, Cloud CDN will internally behave as though all responses from this backend had a "Cache-Control: public, max-age=[TTL]" header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered. signedUrlKeyNames: [Output Only] Names of the keys for signing request URLs. """ signedUrlCacheMaxAgeSec = _messages.IntegerField(1) signedUrlKeyNames = _messages.StringField(2, repeated=True) class BackendBucketList(_messages.Message): r"""Contains a list of BackendBucket resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of BackendBucket resources. kind: Type of resource. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('BackendBucket', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#backendBucketList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class BackendService(_messages.Message): r"""Represents a Backend Service resource. Backend services must have an associated health check. Backend services also store information about session affinity. For more information, read Backend Services. A backendServices resource represents a global backend service. Global backend services are used for HTTP(S), SSL Proxy, TCP Proxy load balancing and Traffic Director. A regionBackendServices resource represents a regional backend service. Regional backend services are used for internal TCP/UDP load balancing. For more information, read Internal TCP/UDP Load balancing. (== resource_for v1.backendService ==) (== resource_for beta.backendService ==) Enums: LoadBalancingSchemeValueValuesEnum: Indicates whether the backend service will be used with internal or external load balancing. A backend service created for one type of load balancing cannot be used with the other. Possible values are INTERNAL and EXTERNAL. ProtocolValueValuesEnum: The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, TCP, SSL, or UDP, depending on the chosen load balancer or Traffic Director configuration. Refer to the documentation for the load balancer or for Traffic director for more information. SessionAffinityValueValuesEnum: Type of session affinity to use. The default is NONE. Session affinity is not applicable if the --protocol is UDP. When the loadBalancingScheme is EXTERNAL, possible values are NONE, CLIENT_IP, or GENERATED_COOKIE. You can use GENERATED_COOKIE if the protocol is HTTP or HTTPS. When the loadBalancingScheme is INTERNAL, possible values are NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. When the loadBalancingScheme is INTERNAL_SELF_MANAGED, possible values are NONE, CLIENT_IP, GENERATED_COOKIE, HEADER_FIELD, or HTTP_COOKIE. Fields: affinityCookieTtlSec: If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value is one day (86,400). backends: The list of backends that serve this BackendService. cdnPolicy: Cloud CDN configuration for this BackendService. connectionDraining: A ConnectionDraining attribute. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. customRequestHeaders: Headers that the HTTP/S load balancer should add to proxied requests. description: An optional description of this resource. Provide this property when you create the resource. enableCDN: If true, enables Cloud CDN for the backend service. Only applicable if the loadBalancingScheme is EXTERNAL and the protocol is HTTP or HTTPS. fingerprint: Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a BackendService. An up-to-date fingerprint must be provided in order to update the BackendService, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a BackendService. healthChecks: The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this BackendService. Currently at most one health check can be specified, and a health check is required for Compute Engine backend services. A health check must not be specified for App Engine backend and Cloud Function backend. For internal load balancing, a URL to a HealthCheck resource must be specified instead. iap: A BackendServiceIAP attribute. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of resource. Always compute#backendService for backend services. loadBalancingScheme: Indicates whether the backend service will be used with internal or external load balancing. A backend service created for one type of load balancing cannot be used with the other. Possible values are INTERNAL and EXTERNAL. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. port: Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80. This cannot be used if the loadBalancingScheme is INTERNAL (Internal TCP/UDP Load Balancing). portName: A named port on a backend instance group representing the port for communication to the backend VMs in that group. Required when the loadBalancingScheme is EXTERNAL and the backends are instance groups. The named port must be defined on each backend instance group. This parameter has no meaning if the backends are NEGs. Must be omitted when the loadBalancingScheme is INTERNAL (Internal TCP/UDP Load Blaancing). protocol: The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, TCP, SSL, or UDP, depending on the chosen load balancer or Traffic Director configuration. Refer to the documentation for the load balancer or for Traffic director for more information. region: [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. securityPolicy: [Output Only] The resource URL for the security policy associated with this backend service. selfLink: [Output Only] Server-defined URL for the resource. sessionAffinity: Type of session affinity to use. The default is NONE. Session affinity is not applicable if the --protocol is UDP. When the loadBalancingScheme is EXTERNAL, possible values are NONE, CLIENT_IP, or GENERATED_COOKIE. You can use GENERATED_COOKIE if the protocol is HTTP or HTTPS. When the loadBalancingScheme is INTERNAL, possible values are NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. When the loadBalancingScheme is INTERNAL_SELF_MANAGED, possible values are NONE, CLIENT_IP, GENERATED_COOKIE, HEADER_FIELD, or HTTP_COOKIE. timeoutSec: The backend service timeout has a different meaning depending on the type of load balancer. For more information read, Backend service settings The default is 30 seconds. """ class LoadBalancingSchemeValueValuesEnum(_messages.Enum): r"""Indicates whether the backend service will be used with internal or external load balancing. A backend service created for one type of load balancing cannot be used with the other. Possible values are INTERNAL and EXTERNAL. Values: EXTERNAL: <no description> INTERNAL: <no description> INTERNAL_SELF_MANAGED: <no description> INVALID_LOAD_BALANCING_SCHEME: <no description> """ EXTERNAL = 0 INTERNAL = 1 INTERNAL_SELF_MANAGED = 2 INVALID_LOAD_BALANCING_SCHEME = 3 class ProtocolValueValuesEnum(_messages.Enum): r"""The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, TCP, SSL, or UDP, depending on the chosen load balancer or Traffic Director configuration. Refer to the documentation for the load balancer or for Traffic director for more information. Values: HTTP: <no description> HTTP2: <no description> HTTPS: <no description> SSL: <no description> TCP: <no description> UDP: <no description> """ HTTP = 0 HTTP2 = 1 HTTPS = 2 SSL = 3 TCP = 4 UDP = 5 class SessionAffinityValueValuesEnum(_messages.Enum): r"""Type of session affinity to use. The default is NONE. Session affinity is not applicable if the --protocol is UDP. When the loadBalancingScheme is EXTERNAL, possible values are NONE, CLIENT_IP, or GENERATED_COOKIE. You can use GENERATED_COOKIE if the protocol is HTTP or HTTPS. When the loadBalancingScheme is INTERNAL, possible values are NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. When the loadBalancingScheme is INTERNAL_SELF_MANAGED, possible values are NONE, CLIENT_IP, GENERATED_COOKIE, HEADER_FIELD, or HTTP_COOKIE. Values: CLIENT_IP: <no description> CLIENT_IP_PORT_PROTO: <no description> CLIENT_IP_PROTO: <no description> GENERATED_COOKIE: <no description> NONE: <no description> """ CLIENT_IP = 0 CLIENT_IP_PORT_PROTO = 1 CLIENT_IP_PROTO = 2 GENERATED_COOKIE = 3 NONE = 4 affinityCookieTtlSec = _messages.IntegerField(1, variant=_messages.Variant.INT32) backends = _messages.MessageField('Backend', 2, repeated=True) cdnPolicy = _messages.MessageField('BackendServiceCdnPolicy', 3) connectionDraining = _messages.MessageField('ConnectionDraining', 4) creationTimestamp = _messages.StringField(5) customRequestHeaders = _messages.StringField(6, repeated=True) description = _messages.StringField(7) enableCDN = _messages.BooleanField(8) fingerprint = _messages.BytesField(9) healthChecks = _messages.StringField(10, repeated=True) iap = _messages.MessageField('BackendServiceIAP', 11) id = _messages.IntegerField(12, variant=_messages.Variant.UINT64) kind = _messages.StringField(13, default=u'compute#backendService') loadBalancingScheme = _messages.EnumField('LoadBalancingSchemeValueValuesEnum', 14) name = _messages.StringField(15) port = _messages.IntegerField(16, variant=_messages.Variant.INT32) portName = _messages.StringField(17) protocol = _messages.EnumField('ProtocolValueValuesEnum', 18) region = _messages.StringField(19) securityPolicy = _messages.StringField(20) selfLink = _messages.StringField(21) sessionAffinity = _messages.EnumField('SessionAffinityValueValuesEnum', 22) timeoutSec = _messages.IntegerField(23, variant=_messages.Variant.INT32) class BackendServiceAggregatedList(_messages.Message): r"""Contains a list of BackendServicesScopedList. Messages: ItemsValue: A list of BackendServicesScopedList resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of BackendServicesScopedList resources. kind: Type of resource. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of BackendServicesScopedList resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: Name of the scope containing this set of BackendServices. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A BackendServicesScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('BackendServicesScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#backendServiceAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class BackendServiceCdnPolicy(_messages.Message): r"""Message containing Cloud CDN configuration for a backend service. Fields: cacheKeyPolicy: The CacheKeyPolicy for this CdnPolicy. signedUrlCacheMaxAgeSec: Maximum number of seconds the response to a signed URL request will be considered fresh. After this time period, the response will be revalidated before being served. Defaults to 1hr (3600s). When serving responses to signed URL requests, Cloud CDN will internally behave as though all responses from this backend had a "Cache-Control: public, max-age=[TTL]" header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered. signedUrlKeyNames: [Output Only] Names of the keys for signing request URLs. """ cacheKeyPolicy = _messages.MessageField('CacheKeyPolicy', 1) signedUrlCacheMaxAgeSec = _messages.IntegerField(2) signedUrlKeyNames = _messages.StringField(3, repeated=True) class BackendServiceGroupHealth(_messages.Message): r"""A BackendServiceGroupHealth object. Fields: healthStatus: Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks. kind: [Output Only] Type of resource. Always compute#backendServiceGroupHealth for the health of backend services. """ healthStatus = _messages.MessageField('HealthStatus', 1, repeated=True) kind = _messages.StringField(2, default=u'compute#backendServiceGroupHealth') class BackendServiceIAP(_messages.Message): r"""Identity-Aware Proxy Fields: enabled: A boolean attribute. oauth2ClientId: A string attribute. oauth2ClientSecret: A string attribute. oauth2ClientSecretSha256: [Output Only] SHA256 hash value for the field oauth2_client_secret above. """ enabled = _messages.BooleanField(1) oauth2ClientId = _messages.StringField(2) oauth2ClientSecret = _messages.StringField(3) oauth2ClientSecretSha256 = _messages.StringField(4) class BackendServiceList(_messages.Message): r"""Contains a list of BackendService resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of BackendService resources. kind: [Output Only] Type of resource. Always compute#backendServiceList for lists of backend services. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('BackendService', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#backendServiceList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class BackendServiceReference(_messages.Message): r"""A BackendServiceReference object. Fields: backendService: A string attribute. """ backendService = _messages.StringField(1) class BackendServicesScopedList(_messages.Message): r"""A BackendServicesScopedList object. Messages: WarningValue: Informational warning which replaces the list of backend services when the list is empty. Fields: backendServices: A list of BackendServices contained in this scope. warning: Informational warning which replaces the list of backend services when the list is empty. """ class WarningValue(_messages.Message): r"""Informational warning which replaces the list of backend services when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) backendServices = _messages.MessageField('BackendService', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class Binding(_messages.Message): r"""Associates `members` with a `role`. Fields: condition: The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently. members: Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. role: Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. """ condition = _messages.MessageField('Expr', 1) members = _messages.StringField(2, repeated=True) role = _messages.StringField(3) class CacheInvalidationRule(_messages.Message): r"""A CacheInvalidationRule object. Fields: host: If set, this invalidation rule will only apply to requests with a Host header matching host. path: A string attribute. """ host = _messages.StringField(1) path = _messages.StringField(2) class CacheKeyPolicy(_messages.Message): r"""Message containing what to include in the cache key for a request for Cloud CDN. Fields: includeHost: If true, requests to different hosts will be cached separately. includeProtocol: If true, http and https requests will be cached separately. includeQueryString: If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely. queryStringBlacklist: Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters. queryStringWhitelist: Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters. """ includeHost = _messages.BooleanField(1) includeProtocol = _messages.BooleanField(2) includeQueryString = _messages.BooleanField(3) queryStringBlacklist = _messages.StringField(4, repeated=True) queryStringWhitelist = _messages.StringField(5, repeated=True) class Commitment(_messages.Message): r"""Represents a regional Commitment resource. Creating a commitment resource means that you are purchasing a committed use contract with an explicit start and end time. You can create commitments based on vCPUs and memory usage and receive discounted rates. For full details, read Signing Up for Committed Use Discounts. (== resource_for beta.regionCommitments ==) (== resource_for v1.regionCommitments ==) Enums: PlanValueValuesEnum: The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years). StatusValueValuesEnum: [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED. Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. endTimestamp: [Output Only] Commitment end time in RFC3339 text format. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of the resource. Always compute#commitment for commitments. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. plan: The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years). region: [Output Only] URL of the region where this commitment may be used. reservations: List of reservations in this commitment. resources: A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together. selfLink: [Output Only] Server-defined URL for the resource. startTimestamp: [Output Only] Commitment start time in RFC3339 text format. status: [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED. statusMessage: [Output Only] An optional, human-readable explanation of the status. """ class PlanValueValuesEnum(_messages.Enum): r"""The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years). Values: INVALID: <no description> THIRTY_SIX_MONTH: <no description> TWELVE_MONTH: <no description> """ INVALID = 0 THIRTY_SIX_MONTH = 1 TWELVE_MONTH = 2 class StatusValueValuesEnum(_messages.Enum): r"""[Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED. Values: ACTIVE: <no description> CREATING: <no description> EXPIRED: <no description> NOT_YET_ACTIVE: <no description> """ ACTIVE = 0 CREATING = 1 EXPIRED = 2 NOT_YET_ACTIVE = 3 creationTimestamp = _messages.StringField(1) description = _messages.StringField(2) endTimestamp = _messages.StringField(3) id = _messages.IntegerField(4, variant=_messages.Variant.UINT64) kind = _messages.StringField(5, default=u'compute#commitment') name = _messages.StringField(6) plan = _messages.EnumField('PlanValueValuesEnum', 7) region = _messages.StringField(8) reservations = _messages.MessageField('Reservation', 9, repeated=True) resources = _messages.MessageField('ResourceCommitment', 10, repeated=True) selfLink = _messages.StringField(11) startTimestamp = _messages.StringField(12) status = _messages.EnumField('StatusValueValuesEnum', 13) statusMessage = _messages.StringField(14) class CommitmentAggregatedList(_messages.Message): r"""A CommitmentAggregatedList object. Messages: ItemsValue: A list of CommitmentsScopedList resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of CommitmentsScopedList resources. kind: [Output Only] Type of resource. Always compute#commitmentAggregatedList for aggregated lists of commitments. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of CommitmentsScopedList resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: [Output Only] Name of the scope containing this set of commitments. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A CommitmentsScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('CommitmentsScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#commitmentAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class CommitmentList(_messages.Message): r"""Contains a list of Commitment resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of Commitment resources. kind: [Output Only] Type of resource. Always compute#commitmentList for lists of commitments. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('Commitment', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#commitmentList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class CommitmentsScopedList(_messages.Message): r"""A CommitmentsScopedList object. Messages: WarningValue: [Output Only] Informational warning which replaces the list of commitments when the list is empty. Fields: commitments: [Output Only] A list of commitments contained in this scope. warning: [Output Only] Informational warning which replaces the list of commitments when the list is empty. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning which replaces the list of commitments when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) commitments = _messages.MessageField('Commitment', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class ComputeAcceleratorTypesAggregatedListRequest(_messages.Message): r"""A ComputeAcceleratorTypesAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeAcceleratorTypesGetRequest(_messages.Message): r"""A ComputeAcceleratorTypesGetRequest object. Fields: acceleratorType: Name of the accelerator type to return. project: Project ID for this request. zone: The name of the zone for this request. """ acceleratorType = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) class ComputeAcceleratorTypesListRequest(_messages.Message): r"""A ComputeAcceleratorTypesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. zone: The name of the zone for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) zone = _messages.StringField(6, required=True) class ComputeAddressesAggregatedListRequest(_messages.Message): r"""A ComputeAddressesAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeAddressesDeleteRequest(_messages.Message): r"""A ComputeAddressesDeleteRequest object. Fields: address: Name of the address resource to delete. project: Project ID for this request. region: Name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ address = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeAddressesGetRequest(_messages.Message): r"""A ComputeAddressesGetRequest object. Fields: address: Name of the address resource to return. project: Project ID for this request. region: Name of the region for this request. """ address = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) class ComputeAddressesInsertRequest(_messages.Message): r"""A ComputeAddressesInsertRequest object. Fields: address: A Address resource to be passed as the request body. project: Project ID for this request. region: Name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ address = _messages.MessageField('Address', 1) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeAddressesListRequest(_messages.Message): r"""A ComputeAddressesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: Name of the region for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) region = _messages.StringField(6, required=True) class ComputeAutoscalersAggregatedListRequest(_messages.Message): r"""A ComputeAutoscalersAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeAutoscalersDeleteRequest(_messages.Message): r"""A ComputeAutoscalersDeleteRequest object. Fields: autoscaler: Name of the autoscaler to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: Name of the zone for this request. """ autoscaler = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) zone = _messages.StringField(4, required=True) class ComputeAutoscalersGetRequest(_messages.Message): r"""A ComputeAutoscalersGetRequest object. Fields: autoscaler: Name of the autoscaler to return. project: Project ID for this request. zone: Name of the zone for this request. """ autoscaler = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) class ComputeAutoscalersInsertRequest(_messages.Message): r"""A ComputeAutoscalersInsertRequest object. Fields: autoscaler: A Autoscaler resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: Name of the zone for this request. """ autoscaler = _messages.MessageField('Autoscaler', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) zone = _messages.StringField(4, required=True) class ComputeAutoscalersListRequest(_messages.Message): r"""A ComputeAutoscalersListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. zone: Name of the zone for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) zone = _messages.StringField(6, required=True) class ComputeAutoscalersPatchRequest(_messages.Message): r"""A ComputeAutoscalersPatchRequest object. Fields: autoscaler: Name of the autoscaler to patch. autoscalerResource: A Autoscaler resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: Name of the zone for this request. """ autoscaler = _messages.StringField(1) autoscalerResource = _messages.MessageField('Autoscaler', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeAutoscalersUpdateRequest(_messages.Message): r"""A ComputeAutoscalersUpdateRequest object. Fields: autoscaler: Name of the autoscaler to update. autoscalerResource: A Autoscaler resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: Name of the zone for this request. """ autoscaler = _messages.StringField(1) autoscalerResource = _messages.MessageField('Autoscaler', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeBackendBucketsAddSignedUrlKeyRequest(_messages.Message): r"""A ComputeBackendBucketsAddSignedUrlKeyRequest object. Fields: backendBucket: Name of the BackendBucket resource to which the Signed URL Key should be added. The name should conform to RFC1035. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). signedUrlKey: A SignedUrlKey resource to be passed as the request body. """ backendBucket = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) signedUrlKey = _messages.MessageField('SignedUrlKey', 4) class ComputeBackendBucketsDeleteRequest(_messages.Message): r"""A ComputeBackendBucketsDeleteRequest object. Fields: backendBucket: Name of the BackendBucket resource to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ backendBucket = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeBackendBucketsDeleteSignedUrlKeyRequest(_messages.Message): r"""A ComputeBackendBucketsDeleteSignedUrlKeyRequest object. Fields: backendBucket: Name of the BackendBucket resource to which the Signed URL Key should be added. The name should conform to RFC1035. keyName: The name of the Signed URL Key to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ backendBucket = _messages.StringField(1, required=True) keyName = _messages.StringField(2, required=True) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeBackendBucketsGetRequest(_messages.Message): r"""A ComputeBackendBucketsGetRequest object. Fields: backendBucket: Name of the BackendBucket resource to return. project: Project ID for this request. """ backendBucket = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class ComputeBackendBucketsInsertRequest(_messages.Message): r"""A ComputeBackendBucketsInsertRequest object. Fields: backendBucket: A BackendBucket resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ backendBucket = _messages.MessageField('BackendBucket', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeBackendBucketsListRequest(_messages.Message): r"""A ComputeBackendBucketsListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeBackendBucketsPatchRequest(_messages.Message): r"""A ComputeBackendBucketsPatchRequest object. Fields: backendBucket: Name of the BackendBucket resource to patch. backendBucketResource: A BackendBucket resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ backendBucket = _messages.StringField(1, required=True) backendBucketResource = _messages.MessageField('BackendBucket', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeBackendBucketsUpdateRequest(_messages.Message): r"""A ComputeBackendBucketsUpdateRequest object. Fields: backendBucket: Name of the BackendBucket resource to update. backendBucketResource: A BackendBucket resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ backendBucket = _messages.StringField(1, required=True) backendBucketResource = _messages.MessageField('BackendBucket', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeBackendServicesAddSignedUrlKeyRequest(_messages.Message): r"""A ComputeBackendServicesAddSignedUrlKeyRequest object. Fields: backendService: Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). signedUrlKey: A SignedUrlKey resource to be passed as the request body. """ backendService = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) signedUrlKey = _messages.MessageField('SignedUrlKey', 4) class ComputeBackendServicesAggregatedListRequest(_messages.Message): r"""A ComputeBackendServicesAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Name of the project scoping this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeBackendServicesDeleteRequest(_messages.Message): r"""A ComputeBackendServicesDeleteRequest object. Fields: backendService: Name of the BackendService resource to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ backendService = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeBackendServicesDeleteSignedUrlKeyRequest(_messages.Message): r"""A ComputeBackendServicesDeleteSignedUrlKeyRequest object. Fields: backendService: Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035. keyName: The name of the Signed URL Key to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ backendService = _messages.StringField(1, required=True) keyName = _messages.StringField(2, required=True) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeBackendServicesGetHealthRequest(_messages.Message): r"""A ComputeBackendServicesGetHealthRequest object. Fields: backendService: Name of the BackendService resource to which the queried instance belongs. project: A string attribute. resourceGroupReference: A ResourceGroupReference resource to be passed as the request body. """ backendService = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) resourceGroupReference = _messages.MessageField('ResourceGroupReference', 3) class ComputeBackendServicesGetRequest(_messages.Message): r"""A ComputeBackendServicesGetRequest object. Fields: backendService: Name of the BackendService resource to return. project: Project ID for this request. """ backendService = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class ComputeBackendServicesInsertRequest(_messages.Message): r"""A ComputeBackendServicesInsertRequest object. Fields: backendService: A BackendService resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ backendService = _messages.MessageField('BackendService', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeBackendServicesListRequest(_messages.Message): r"""A ComputeBackendServicesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeBackendServicesPatchRequest(_messages.Message): r"""A ComputeBackendServicesPatchRequest object. Fields: backendService: Name of the BackendService resource to patch. backendServiceResource: A BackendService resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ backendService = _messages.StringField(1, required=True) backendServiceResource = _messages.MessageField('BackendService', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeBackendServicesSetSecurityPolicyRequest(_messages.Message): r"""A ComputeBackendServicesSetSecurityPolicyRequest object. Fields: backendService: Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). securityPolicyReference: A SecurityPolicyReference resource to be passed as the request body. """ backendService = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) securityPolicyReference = _messages.MessageField('SecurityPolicyReference', 4) class ComputeBackendServicesUpdateRequest(_messages.Message): r"""A ComputeBackendServicesUpdateRequest object. Fields: backendService: Name of the BackendService resource to update. backendServiceResource: A BackendService resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ backendService = _messages.StringField(1, required=True) backendServiceResource = _messages.MessageField('BackendService', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeDiskTypesAggregatedListRequest(_messages.Message): r"""A ComputeDiskTypesAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeDiskTypesGetRequest(_messages.Message): r"""A ComputeDiskTypesGetRequest object. Fields: diskType: Name of the disk type to return. project: Project ID for this request. zone: The name of the zone for this request. """ diskType = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) class ComputeDiskTypesListRequest(_messages.Message): r"""A ComputeDiskTypesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. zone: The name of the zone for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) zone = _messages.StringField(6, required=True) class ComputeDisksAddResourcePoliciesRequest(_messages.Message): r"""A ComputeDisksAddResourcePoliciesRequest object. Fields: disk: The disk name for this request. disksAddResourcePoliciesRequest: A DisksAddResourcePoliciesRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ disk = _messages.StringField(1, required=True) disksAddResourcePoliciesRequest = _messages.MessageField('DisksAddResourcePoliciesRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeDisksAggregatedListRequest(_messages.Message): r"""A ComputeDisksAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeDisksCreateSnapshotRequest(_messages.Message): r"""A ComputeDisksCreateSnapshotRequest object. Fields: disk: Name of the persistent disk to snapshot. guestFlush: [Input Only] Specifies to create an application consistent snapshot by informing the OS to prepare for the snapshot process. Currently only supported on Windows instances using the Volume Shadow Copy Service (VSS). project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). snapshot: A Snapshot resource to be passed as the request body. zone: The name of the zone for this request. """ disk = _messages.StringField(1, required=True) guestFlush = _messages.BooleanField(2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) snapshot = _messages.MessageField('Snapshot', 5) zone = _messages.StringField(6, required=True) class ComputeDisksDeleteRequest(_messages.Message): r"""A ComputeDisksDeleteRequest object. Fields: disk: Name of the persistent disk to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ disk = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) zone = _messages.StringField(4, required=True) class ComputeDisksGetIamPolicyRequest(_messages.Message): r"""A ComputeDisksGetIamPolicyRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. zone: The name of the zone for this request. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) class ComputeDisksGetRequest(_messages.Message): r"""A ComputeDisksGetRequest object. Fields: disk: Name of the persistent disk to return. project: Project ID for this request. zone: The name of the zone for this request. """ disk = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) class ComputeDisksInsertRequest(_messages.Message): r"""A ComputeDisksInsertRequest object. Fields: disk: A Disk resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). sourceImage: Optional. Source image to restore onto a disk. zone: The name of the zone for this request. """ disk = _messages.MessageField('Disk', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) sourceImage = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeDisksListRequest(_messages.Message): r"""A ComputeDisksListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. zone: The name of the zone for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) zone = _messages.StringField(6, required=True) class ComputeDisksRemoveResourcePoliciesRequest(_messages.Message): r"""A ComputeDisksRemoveResourcePoliciesRequest object. Fields: disk: The disk name for this request. disksRemoveResourcePoliciesRequest: A DisksRemoveResourcePoliciesRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ disk = _messages.StringField(1, required=True) disksRemoveResourcePoliciesRequest = _messages.MessageField('DisksRemoveResourcePoliciesRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeDisksResizeRequest(_messages.Message): r"""A ComputeDisksResizeRequest object. Fields: disk: The name of the persistent disk. disksResizeRequest: A DisksResizeRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ disk = _messages.StringField(1, required=True) disksResizeRequest = _messages.MessageField('DisksResizeRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeDisksSetIamPolicyRequest(_messages.Message): r"""A ComputeDisksSetIamPolicyRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. zone: The name of the zone for this request. zoneSetPolicyRequest: A ZoneSetPolicyRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) zoneSetPolicyRequest = _messages.MessageField('ZoneSetPolicyRequest', 4) class ComputeDisksSetLabelsRequest(_messages.Message): r"""A ComputeDisksSetLabelsRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). resource: Name or id of the resource for this request. zone: The name of the zone for this request. zoneSetLabelsRequest: A ZoneSetLabelsRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) resource = _messages.StringField(3, required=True) zone = _messages.StringField(4, required=True) zoneSetLabelsRequest = _messages.MessageField('ZoneSetLabelsRequest', 5) class ComputeDisksTestIamPermissionsRequest(_messages.Message): r"""A ComputeDisksTestIamPermissionsRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. testPermissionsRequest: A TestPermissionsRequest resource to be passed as the request body. zone: The name of the zone for this request. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) testPermissionsRequest = _messages.MessageField('TestPermissionsRequest', 3) zone = _messages.StringField(4, required=True) class ComputeExternalVpnGatewaysDeleteRequest(_messages.Message): r"""A ComputeExternalVpnGatewaysDeleteRequest object. Fields: externalVpnGateway: Name of the externalVpnGateways to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ externalVpnGateway = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeExternalVpnGatewaysGetRequest(_messages.Message): r"""A ComputeExternalVpnGatewaysGetRequest object. Fields: externalVpnGateway: Name of the externalVpnGateway to return. project: Project ID for this request. """ externalVpnGateway = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class ComputeExternalVpnGatewaysInsertRequest(_messages.Message): r"""A ComputeExternalVpnGatewaysInsertRequest object. Fields: externalVpnGateway: A ExternalVpnGateway resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ externalVpnGateway = _messages.MessageField('ExternalVpnGateway', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeExternalVpnGatewaysListRequest(_messages.Message): r"""A ComputeExternalVpnGatewaysListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeExternalVpnGatewaysSetLabelsRequest(_messages.Message): r"""A ComputeExternalVpnGatewaysSetLabelsRequest object. Fields: globalSetLabelsRequest: A GlobalSetLabelsRequest resource to be passed as the request body. project: Project ID for this request. resource: Name or id of the resource for this request. """ globalSetLabelsRequest = _messages.MessageField('GlobalSetLabelsRequest', 1) project = _messages.StringField(2, required=True) resource = _messages.StringField(3, required=True) class ComputeExternalVpnGatewaysTestIamPermissionsRequest(_messages.Message): r"""A ComputeExternalVpnGatewaysTestIamPermissionsRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. testPermissionsRequest: A TestPermissionsRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) testPermissionsRequest = _messages.MessageField('TestPermissionsRequest', 3) class ComputeFirewallsDeleteRequest(_messages.Message): r"""A ComputeFirewallsDeleteRequest object. Fields: firewall: Name of the firewall rule to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ firewall = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeFirewallsGetRequest(_messages.Message): r"""A ComputeFirewallsGetRequest object. Fields: firewall: Name of the firewall rule to return. project: Project ID for this request. """ firewall = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class ComputeFirewallsInsertRequest(_messages.Message): r"""A ComputeFirewallsInsertRequest object. Fields: firewall: A Firewall resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ firewall = _messages.MessageField('Firewall', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeFirewallsListRequest(_messages.Message): r"""A ComputeFirewallsListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeFirewallsPatchRequest(_messages.Message): r"""A ComputeFirewallsPatchRequest object. Fields: firewall: Name of the firewall rule to patch. firewallResource: A Firewall resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ firewall = _messages.StringField(1, required=True) firewallResource = _messages.MessageField('Firewall', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeFirewallsUpdateRequest(_messages.Message): r"""A ComputeFirewallsUpdateRequest object. Fields: firewall: Name of the firewall rule to update. firewallResource: A Firewall resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ firewall = _messages.StringField(1, required=True) firewallResource = _messages.MessageField('Firewall', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeForwardingRulesAggregatedListRequest(_messages.Message): r"""A ComputeForwardingRulesAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeForwardingRulesDeleteRequest(_messages.Message): r"""A ComputeForwardingRulesDeleteRequest object. Fields: forwardingRule: Name of the ForwardingRule resource to delete. project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ forwardingRule = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeForwardingRulesGetRequest(_messages.Message): r"""A ComputeForwardingRulesGetRequest object. Fields: forwardingRule: Name of the ForwardingRule resource to return. project: Project ID for this request. region: Name of the region scoping this request. """ forwardingRule = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) class ComputeForwardingRulesInsertRequest(_messages.Message): r"""A ComputeForwardingRulesInsertRequest object. Fields: forwardingRule: A ForwardingRule resource to be passed as the request body. project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ forwardingRule = _messages.MessageField('ForwardingRule', 1) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeForwardingRulesListRequest(_messages.Message): r"""A ComputeForwardingRulesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: Name of the region scoping this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) region = _messages.StringField(6, required=True) class ComputeForwardingRulesSetTargetRequest(_messages.Message): r"""A ComputeForwardingRulesSetTargetRequest object. Fields: forwardingRule: Name of the ForwardingRule resource in which target is to be set. project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetReference: A TargetReference resource to be passed as the request body. """ forwardingRule = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) requestId = _messages.StringField(4) targetReference = _messages.MessageField('TargetReference', 5) class ComputeGlobalAddressesDeleteRequest(_messages.Message): r"""A ComputeGlobalAddressesDeleteRequest object. Fields: address: Name of the address resource to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ address = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeGlobalAddressesGetRequest(_messages.Message): r"""A ComputeGlobalAddressesGetRequest object. Fields: address: Name of the address resource to return. project: Project ID for this request. """ address = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class ComputeGlobalAddressesInsertRequest(_messages.Message): r"""A ComputeGlobalAddressesInsertRequest object. Fields: address: A Address resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ address = _messages.MessageField('Address', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeGlobalAddressesListRequest(_messages.Message): r"""A ComputeGlobalAddressesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeGlobalForwardingRulesDeleteRequest(_messages.Message): r"""A ComputeGlobalForwardingRulesDeleteRequest object. Fields: forwardingRule: Name of the ForwardingRule resource to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ forwardingRule = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeGlobalForwardingRulesGetRequest(_messages.Message): r"""A ComputeGlobalForwardingRulesGetRequest object. Fields: forwardingRule: Name of the ForwardingRule resource to return. project: Project ID for this request. """ forwardingRule = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class ComputeGlobalForwardingRulesInsertRequest(_messages.Message): r"""A ComputeGlobalForwardingRulesInsertRequest object. Fields: forwardingRule: A ForwardingRule resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ forwardingRule = _messages.MessageField('ForwardingRule', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeGlobalForwardingRulesListRequest(_messages.Message): r"""A ComputeGlobalForwardingRulesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeGlobalForwardingRulesSetTargetRequest(_messages.Message): r"""A ComputeGlobalForwardingRulesSetTargetRequest object. Fields: forwardingRule: Name of the ForwardingRule resource in which target is to be set. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetReference: A TargetReference resource to be passed as the request body. """ forwardingRule = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) targetReference = _messages.MessageField('TargetReference', 4) class ComputeGlobalOperationsAggregatedListRequest(_messages.Message): r"""A ComputeGlobalOperationsAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeGlobalOperationsDeleteRequest(_messages.Message): r"""A ComputeGlobalOperationsDeleteRequest object. Fields: operation: Name of the Operations resource to delete. project: Project ID for this request. """ operation = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class ComputeGlobalOperationsDeleteResponse(_messages.Message): r"""An empty ComputeGlobalOperationsDelete response.""" class ComputeGlobalOperationsGetRequest(_messages.Message): r"""A ComputeGlobalOperationsGetRequest object. Fields: operation: Name of the Operations resource to return. project: Project ID for this request. """ operation = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class ComputeGlobalOperationsListRequest(_messages.Message): r"""A ComputeGlobalOperationsListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeHealthChecksDeleteRequest(_messages.Message): r"""A ComputeHealthChecksDeleteRequest object. Fields: healthCheck: Name of the HealthCheck resource to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ healthCheck = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeHealthChecksGetRequest(_messages.Message): r"""A ComputeHealthChecksGetRequest object. Fields: healthCheck: Name of the HealthCheck resource to return. project: Project ID for this request. """ healthCheck = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class ComputeHealthChecksInsertRequest(_messages.Message): r"""A ComputeHealthChecksInsertRequest object. Fields: healthCheck: A HealthCheck resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ healthCheck = _messages.MessageField('HealthCheck', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeHealthChecksListRequest(_messages.Message): r"""A ComputeHealthChecksListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeHealthChecksPatchRequest(_messages.Message): r"""A ComputeHealthChecksPatchRequest object. Fields: healthCheck: Name of the HealthCheck resource to patch. healthCheckResource: A HealthCheck resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ healthCheck = _messages.StringField(1, required=True) healthCheckResource = _messages.MessageField('HealthCheck', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeHealthChecksUpdateRequest(_messages.Message): r"""A ComputeHealthChecksUpdateRequest object. Fields: healthCheck: Name of the HealthCheck resource to update. healthCheckResource: A HealthCheck resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ healthCheck = _messages.StringField(1, required=True) healthCheckResource = _messages.MessageField('HealthCheck', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeHttpHealthChecksDeleteRequest(_messages.Message): r"""A ComputeHttpHealthChecksDeleteRequest object. Fields: httpHealthCheck: Name of the HttpHealthCheck resource to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ httpHealthCheck = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeHttpHealthChecksGetRequest(_messages.Message): r"""A ComputeHttpHealthChecksGetRequest object. Fields: httpHealthCheck: Name of the HttpHealthCheck resource to return. project: Project ID for this request. """ httpHealthCheck = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class ComputeHttpHealthChecksInsertRequest(_messages.Message): r"""A ComputeHttpHealthChecksInsertRequest object. Fields: httpHealthCheck: A HttpHealthCheck resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ httpHealthCheck = _messages.MessageField('HttpHealthCheck', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeHttpHealthChecksListRequest(_messages.Message): r"""A ComputeHttpHealthChecksListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeHttpHealthChecksPatchRequest(_messages.Message): r"""A ComputeHttpHealthChecksPatchRequest object. Fields: httpHealthCheck: Name of the HttpHealthCheck resource to patch. httpHealthCheckResource: A HttpHealthCheck resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ httpHealthCheck = _messages.StringField(1, required=True) httpHealthCheckResource = _messages.MessageField('HttpHealthCheck', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeHttpHealthChecksUpdateRequest(_messages.Message): r"""A ComputeHttpHealthChecksUpdateRequest object. Fields: httpHealthCheck: Name of the HttpHealthCheck resource to update. httpHealthCheckResource: A HttpHealthCheck resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ httpHealthCheck = _messages.StringField(1, required=True) httpHealthCheckResource = _messages.MessageField('HttpHealthCheck', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeHttpsHealthChecksDeleteRequest(_messages.Message): r"""A ComputeHttpsHealthChecksDeleteRequest object. Fields: httpsHealthCheck: Name of the HttpsHealthCheck resource to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ httpsHealthCheck = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeHttpsHealthChecksGetRequest(_messages.Message): r"""A ComputeHttpsHealthChecksGetRequest object. Fields: httpsHealthCheck: Name of the HttpsHealthCheck resource to return. project: Project ID for this request. """ httpsHealthCheck = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class ComputeHttpsHealthChecksInsertRequest(_messages.Message): r"""A ComputeHttpsHealthChecksInsertRequest object. Fields: httpsHealthCheck: A HttpsHealthCheck resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ httpsHealthCheck = _messages.MessageField('HttpsHealthCheck', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeHttpsHealthChecksListRequest(_messages.Message): r"""A ComputeHttpsHealthChecksListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeHttpsHealthChecksPatchRequest(_messages.Message): r"""A ComputeHttpsHealthChecksPatchRequest object. Fields: httpsHealthCheck: Name of the HttpsHealthCheck resource to patch. httpsHealthCheckResource: A HttpsHealthCheck resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ httpsHealthCheck = _messages.StringField(1, required=True) httpsHealthCheckResource = _messages.MessageField('HttpsHealthCheck', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeHttpsHealthChecksUpdateRequest(_messages.Message): r"""A ComputeHttpsHealthChecksUpdateRequest object. Fields: httpsHealthCheck: Name of the HttpsHealthCheck resource to update. httpsHealthCheckResource: A HttpsHealthCheck resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ httpsHealthCheck = _messages.StringField(1, required=True) httpsHealthCheckResource = _messages.MessageField('HttpsHealthCheck', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeImagesDeleteRequest(_messages.Message): r"""A ComputeImagesDeleteRequest object. Fields: image: Name of the image resource to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ image = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeImagesDeprecateRequest(_messages.Message): r"""A ComputeImagesDeprecateRequest object. Fields: deprecationStatus: A DeprecationStatus resource to be passed as the request body. image: Image name. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ deprecationStatus = _messages.MessageField('DeprecationStatus', 1) image = _messages.StringField(2, required=True) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeImagesGetFromFamilyRequest(_messages.Message): r"""A ComputeImagesGetFromFamilyRequest object. Fields: family: Name of the image family to search for. project: Project ID for this request. """ family = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class ComputeImagesGetIamPolicyRequest(_messages.Message): r"""A ComputeImagesGetIamPolicyRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) class ComputeImagesGetRequest(_messages.Message): r"""A ComputeImagesGetRequest object. Fields: image: Name of the image resource to return. project: Project ID for this request. """ image = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class ComputeImagesInsertRequest(_messages.Message): r"""A ComputeImagesInsertRequest object. Fields: forceCreate: Force image creation if true. image: A Image resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ forceCreate = _messages.BooleanField(1) image = _messages.MessageField('Image', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeImagesListRequest(_messages.Message): r"""A ComputeImagesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeImagesSetIamPolicyRequest(_messages.Message): r"""A ComputeImagesSetIamPolicyRequest object. Fields: globalSetPolicyRequest: A GlobalSetPolicyRequest resource to be passed as the request body. project: Project ID for this request. resource: Name or id of the resource for this request. """ globalSetPolicyRequest = _messages.MessageField('GlobalSetPolicyRequest', 1) project = _messages.StringField(2, required=True) resource = _messages.StringField(3, required=True) class ComputeImagesSetLabelsRequest(_messages.Message): r"""A ComputeImagesSetLabelsRequest object. Fields: globalSetLabelsRequest: A GlobalSetLabelsRequest resource to be passed as the request body. project: Project ID for this request. resource: Name or id of the resource for this request. """ globalSetLabelsRequest = _messages.MessageField('GlobalSetLabelsRequest', 1) project = _messages.StringField(2, required=True) resource = _messages.StringField(3, required=True) class ComputeImagesTestIamPermissionsRequest(_messages.Message): r"""A ComputeImagesTestIamPermissionsRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. testPermissionsRequest: A TestPermissionsRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) testPermissionsRequest = _messages.MessageField('TestPermissionsRequest', 3) class ComputeInstanceGroupManagersAbandonInstancesRequest(_messages.Message): r"""A ComputeInstanceGroupManagersAbandonInstancesRequest object. Fields: instanceGroupManager: The name of the managed instance group. instanceGroupManagersAbandonInstancesRequest: A InstanceGroupManagersAbandonInstancesRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone where the managed instance group is located. """ instanceGroupManager = _messages.StringField(1, required=True) instanceGroupManagersAbandonInstancesRequest = _messages.MessageField('InstanceGroupManagersAbandonInstancesRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeInstanceGroupManagersAggregatedListRequest(_messages.Message): r"""A ComputeInstanceGroupManagersAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeInstanceGroupManagersDeleteInstancesRequest(_messages.Message): r"""A ComputeInstanceGroupManagersDeleteInstancesRequest object. Fields: instanceGroupManager: The name of the managed instance group. instanceGroupManagersDeleteInstancesRequest: A InstanceGroupManagersDeleteInstancesRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone where the managed instance group is located. """ instanceGroupManager = _messages.StringField(1, required=True) instanceGroupManagersDeleteInstancesRequest = _messages.MessageField('InstanceGroupManagersDeleteInstancesRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeInstanceGroupManagersDeleteRequest(_messages.Message): r"""A ComputeInstanceGroupManagersDeleteRequest object. Fields: instanceGroupManager: The name of the managed instance group to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone where the managed instance group is located. """ instanceGroupManager = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) zone = _messages.StringField(4, required=True) class ComputeInstanceGroupManagersGetRequest(_messages.Message): r"""A ComputeInstanceGroupManagersGetRequest object. Fields: instanceGroupManager: The name of the managed instance group. project: Project ID for this request. zone: The name of the zone where the managed instance group is located. """ instanceGroupManager = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) class ComputeInstanceGroupManagersInsertRequest(_messages.Message): r"""A ComputeInstanceGroupManagersInsertRequest object. Fields: instanceGroupManager: A InstanceGroupManager resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone where you want to create the managed instance group. """ instanceGroupManager = _messages.MessageField('InstanceGroupManager', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) zone = _messages.StringField(4, required=True) class ComputeInstanceGroupManagersListManagedInstancesRequest(_messages.Message): r"""A ComputeInstanceGroupManagersListManagedInstancesRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). instanceGroupManager: The name of the managed instance group. maxResults: 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) order_by: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. zone: The name of the zone where the managed instance group is located. """ filter = _messages.StringField(1) instanceGroupManager = _messages.StringField(2, required=True) maxResults = _messages.IntegerField(3, variant=_messages.Variant.UINT32, default=500) order_by = _messages.StringField(4) pageToken = _messages.StringField(5) project = _messages.StringField(6, required=True) zone = _messages.StringField(7, required=True) class ComputeInstanceGroupManagersListRequest(_messages.Message): r"""A ComputeInstanceGroupManagersListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. zone: The name of the zone where the managed instance group is located. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) zone = _messages.StringField(6, required=True) class ComputeInstanceGroupManagersPatchRequest(_messages.Message): r"""A ComputeInstanceGroupManagersPatchRequest object. Fields: instanceGroupManager: The name of the instance group manager. instanceGroupManagerResource: A InstanceGroupManager resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone where you want to create the managed instance group. """ instanceGroupManager = _messages.StringField(1, required=True) instanceGroupManagerResource = _messages.MessageField('InstanceGroupManager', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeInstanceGroupManagersRecreateInstancesRequest(_messages.Message): r"""A ComputeInstanceGroupManagersRecreateInstancesRequest object. Fields: instanceGroupManager: The name of the managed instance group. instanceGroupManagersRecreateInstancesRequest: A InstanceGroupManagersRecreateInstancesRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone where the managed instance group is located. """ instanceGroupManager = _messages.StringField(1, required=True) instanceGroupManagersRecreateInstancesRequest = _messages.MessageField('InstanceGroupManagersRecreateInstancesRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeInstanceGroupManagersResizeRequest(_messages.Message): r"""A ComputeInstanceGroupManagersResizeRequest object. Fields: instanceGroupManager: The name of the managed instance group. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). size: The number of running instances that the managed instance group should maintain at any given time. The group automatically adds or removes instances to maintain the number of instances specified by this parameter. zone: The name of the zone where the managed instance group is located. """ instanceGroupManager = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) size = _messages.IntegerField(4, required=True, variant=_messages.Variant.INT32) zone = _messages.StringField(5, required=True) class ComputeInstanceGroupManagersSetInstanceTemplateRequest(_messages.Message): r"""A ComputeInstanceGroupManagersSetInstanceTemplateRequest object. Fields: instanceGroupManager: The name of the managed instance group. instanceGroupManagersSetInstanceTemplateRequest: A InstanceGroupManagersSetInstanceTemplateRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone where the managed instance group is located. """ instanceGroupManager = _messages.StringField(1, required=True) instanceGroupManagersSetInstanceTemplateRequest = _messages.MessageField('InstanceGroupManagersSetInstanceTemplateRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeInstanceGroupManagersSetTargetPoolsRequest(_messages.Message): r"""A ComputeInstanceGroupManagersSetTargetPoolsRequest object. Fields: instanceGroupManager: The name of the managed instance group. instanceGroupManagersSetTargetPoolsRequest: A InstanceGroupManagersSetTargetPoolsRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone where the managed instance group is located. """ instanceGroupManager = _messages.StringField(1, required=True) instanceGroupManagersSetTargetPoolsRequest = _messages.MessageField('InstanceGroupManagersSetTargetPoolsRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeInstanceGroupsAddInstancesRequest(_messages.Message): r"""A ComputeInstanceGroupsAddInstancesRequest object. Fields: instanceGroup: The name of the instance group where you are adding instances. instanceGroupsAddInstancesRequest: A InstanceGroupsAddInstancesRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone where the instance group is located. """ instanceGroup = _messages.StringField(1, required=True) instanceGroupsAddInstancesRequest = _messages.MessageField('InstanceGroupsAddInstancesRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeInstanceGroupsAggregatedListRequest(_messages.Message): r"""A ComputeInstanceGroupsAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeInstanceGroupsDeleteRequest(_messages.Message): r"""A ComputeInstanceGroupsDeleteRequest object. Fields: instanceGroup: The name of the instance group to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone where the instance group is located. """ instanceGroup = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) zone = _messages.StringField(4, required=True) class ComputeInstanceGroupsGetRequest(_messages.Message): r"""A ComputeInstanceGroupsGetRequest object. Fields: instanceGroup: The name of the instance group. project: Project ID for this request. zone: The name of the zone where the instance group is located. """ instanceGroup = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) class ComputeInstanceGroupsInsertRequest(_messages.Message): r"""A ComputeInstanceGroupsInsertRequest object. Fields: instanceGroup: A InstanceGroup resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone where you want to create the instance group. """ instanceGroup = _messages.MessageField('InstanceGroup', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) zone = _messages.StringField(4, required=True) class ComputeInstanceGroupsListInstancesRequest(_messages.Message): r"""A ComputeInstanceGroupsListInstancesRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). instanceGroup: The name of the instance group from which you want to generate a list of included instances. instanceGroupsListInstancesRequest: A InstanceGroupsListInstancesRequest resource to be passed as the request body. maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. zone: The name of the zone where the instance group is located. """ filter = _messages.StringField(1) instanceGroup = _messages.StringField(2, required=True) instanceGroupsListInstancesRequest = _messages.MessageField('InstanceGroupsListInstancesRequest', 3) maxResults = _messages.IntegerField(4, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(5) pageToken = _messages.StringField(6) project = _messages.StringField(7, required=True) zone = _messages.StringField(8, required=True) class ComputeInstanceGroupsListRequest(_messages.Message): r"""A ComputeInstanceGroupsListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. zone: The name of the zone where the instance group is located. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) zone = _messages.StringField(6, required=True) class ComputeInstanceGroupsRemoveInstancesRequest(_messages.Message): r"""A ComputeInstanceGroupsRemoveInstancesRequest object. Fields: instanceGroup: The name of the instance group where the specified instances will be removed. instanceGroupsRemoveInstancesRequest: A InstanceGroupsRemoveInstancesRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone where the instance group is located. """ instanceGroup = _messages.StringField(1, required=True) instanceGroupsRemoveInstancesRequest = _messages.MessageField('InstanceGroupsRemoveInstancesRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeInstanceGroupsSetNamedPortsRequest(_messages.Message): r"""A ComputeInstanceGroupsSetNamedPortsRequest object. Fields: instanceGroup: The name of the instance group where the named ports are updated. instanceGroupsSetNamedPortsRequest: A InstanceGroupsSetNamedPortsRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone where the instance group is located. """ instanceGroup = _messages.StringField(1, required=True) instanceGroupsSetNamedPortsRequest = _messages.MessageField('InstanceGroupsSetNamedPortsRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeInstanceTemplatesDeleteRequest(_messages.Message): r"""A ComputeInstanceTemplatesDeleteRequest object. Fields: instanceTemplate: The name of the instance template to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ instanceTemplate = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeInstanceTemplatesGetIamPolicyRequest(_messages.Message): r"""A ComputeInstanceTemplatesGetIamPolicyRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) class ComputeInstanceTemplatesGetRequest(_messages.Message): r"""A ComputeInstanceTemplatesGetRequest object. Fields: instanceTemplate: The name of the instance template. project: Project ID for this request. """ instanceTemplate = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class ComputeInstanceTemplatesInsertRequest(_messages.Message): r"""A ComputeInstanceTemplatesInsertRequest object. Fields: instanceTemplate: A InstanceTemplate resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ instanceTemplate = _messages.MessageField('InstanceTemplate', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeInstanceTemplatesListRequest(_messages.Message): r"""A ComputeInstanceTemplatesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeInstanceTemplatesSetIamPolicyRequest(_messages.Message): r"""A ComputeInstanceTemplatesSetIamPolicyRequest object. Fields: globalSetPolicyRequest: A GlobalSetPolicyRequest resource to be passed as the request body. project: Project ID for this request. resource: Name or id of the resource for this request. """ globalSetPolicyRequest = _messages.MessageField('GlobalSetPolicyRequest', 1) project = _messages.StringField(2, required=True) resource = _messages.StringField(3, required=True) class ComputeInstanceTemplatesTestIamPermissionsRequest(_messages.Message): r"""A ComputeInstanceTemplatesTestIamPermissionsRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. testPermissionsRequest: A TestPermissionsRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) testPermissionsRequest = _messages.MessageField('TestPermissionsRequest', 3) class ComputeInstancesAddAccessConfigRequest(_messages.Message): r"""A ComputeInstancesAddAccessConfigRequest object. Fields: accessConfig: A AccessConfig resource to be passed as the request body. instance: The instance name for this request. networkInterface: The name of the network interface to add to this instance. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ accessConfig = _messages.MessageField('AccessConfig', 1) instance = _messages.StringField(2, required=True) networkInterface = _messages.StringField(3, required=True) project = _messages.StringField(4, required=True) requestId = _messages.StringField(5) zone = _messages.StringField(6, required=True) class ComputeInstancesAggregatedListRequest(_messages.Message): r"""A ComputeInstancesAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeInstancesAttachDiskRequest(_messages.Message): r"""A ComputeInstancesAttachDiskRequest object. Fields: attachedDisk: A AttachedDisk resource to be passed as the request body. forceAttach: Whether to force attach the disk even if it's currently attached to another instance. instance: The instance name for this request. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ attachedDisk = _messages.MessageField('AttachedDisk', 1) forceAttach = _messages.BooleanField(2) instance = _messages.StringField(3, required=True) project = _messages.StringField(4, required=True) requestId = _messages.StringField(5) zone = _messages.StringField(6, required=True) class ComputeInstancesDeleteAccessConfigRequest(_messages.Message): r"""A ComputeInstancesDeleteAccessConfigRequest object. Fields: accessConfig: The name of the access config to delete. instance: The instance name for this request. networkInterface: The name of the network interface. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ accessConfig = _messages.StringField(1, required=True) instance = _messages.StringField(2, required=True) networkInterface = _messages.StringField(3, required=True) project = _messages.StringField(4, required=True) requestId = _messages.StringField(5) zone = _messages.StringField(6, required=True) class ComputeInstancesDeleteRequest(_messages.Message): r"""A ComputeInstancesDeleteRequest object. Fields: instance: Name of the instance resource to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ instance = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) zone = _messages.StringField(4, required=True) class ComputeInstancesDetachDiskRequest(_messages.Message): r"""A ComputeInstancesDetachDiskRequest object. Fields: deviceName: The device name of the disk to detach. Make a get() request on the instance to view currently attached disks and device names. instance: Instance name for this request. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ deviceName = _messages.StringField(1, required=True) instance = _messages.StringField(2, required=True) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeInstancesGetGuestAttributesRequest(_messages.Message): r"""A ComputeInstancesGetGuestAttributesRequest object. Fields: instance: Name of the instance scoping this request. project: Project ID for this request. queryPath: Specifies the guest attributes path to be queried. variableKey: Specifies the key for the guest attributes entry. zone: The name of the zone for this request. """ instance = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) queryPath = _messages.StringField(3) variableKey = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeInstancesGetIamPolicyRequest(_messages.Message): r"""A ComputeInstancesGetIamPolicyRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. zone: The name of the zone for this request. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) class ComputeInstancesGetRequest(_messages.Message): r"""A ComputeInstancesGetRequest object. Fields: instance: Name of the instance resource to return. project: Project ID for this request. zone: The name of the zone for this request. """ instance = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) class ComputeInstancesGetSerialPortOutputRequest(_messages.Message): r"""A ComputeInstancesGetSerialPortOutputRequest object. Fields: instance: Name of the instance scoping this request. port: Specifies which COM or serial port to retrieve data from. project: Project ID for this request. start: Returns output starting from a specific byte position. Use this to page through output when the output is too large to return in a single request. For the initial request, leave this field unspecified. For subsequent calls, this field should be set to the next value returned in the previous call. zone: The name of the zone for this request. """ instance = _messages.StringField(1, required=True) port = _messages.IntegerField(2, variant=_messages.Variant.INT32, default=1) project = _messages.StringField(3, required=True) start = _messages.IntegerField(4) zone = _messages.StringField(5, required=True) class ComputeInstancesGetShieldedInstanceIdentityRequest(_messages.Message): r"""A ComputeInstancesGetShieldedInstanceIdentityRequest object. Fields: instance: Name or id of the instance scoping this request. project: Project ID for this request. zone: The name of the zone for this request. """ instance = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) class ComputeInstancesInsertRequest(_messages.Message): r"""A ComputeInstancesInsertRequest object. Fields: instance: A Instance resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). sourceInstanceTemplate: Specifies instance template to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - h ttps://www.googleapis.com/compute/v1/projects/project/global/instanceTem plates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate zone: The name of the zone for this request. """ instance = _messages.MessageField('Instance', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) sourceInstanceTemplate = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeInstancesListReferrersRequest(_messages.Message): r"""A ComputeInstancesListReferrersRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). instance: Name of the target instance scoping this request, or '-' if the request should span over all instances in the container. maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. zone: The name of the zone for this request. """ filter = _messages.StringField(1) instance = _messages.StringField(2, required=True) maxResults = _messages.IntegerField(3, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(4) pageToken = _messages.StringField(5) project = _messages.StringField(6, required=True) zone = _messages.StringField(7, required=True) class ComputeInstancesListRequest(_messages.Message): r"""A ComputeInstancesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. zone: The name of the zone for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) zone = _messages.StringField(6, required=True) class ComputeInstancesResetRequest(_messages.Message): r"""A ComputeInstancesResetRequest object. Fields: instance: Name of the instance scoping this request. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ instance = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) zone = _messages.StringField(4, required=True) class ComputeInstancesSetDeletionProtectionRequest(_messages.Message): r"""A ComputeInstancesSetDeletionProtectionRequest object. Fields: deletionProtection: Whether the resource should be protected against deletion. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). resource: Name or id of the resource for this request. zone: The name of the zone for this request. """ deletionProtection = _messages.BooleanField(1, default=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) resource = _messages.StringField(4, required=True) zone = _messages.StringField(5, required=True) class ComputeInstancesSetDiskAutoDeleteRequest(_messages.Message): r"""A ComputeInstancesSetDiskAutoDeleteRequest object. Fields: autoDelete: Whether to auto-delete the disk when the instance is deleted. deviceName: The device name of the disk to modify. Make a get() request on the instance to view currently attached disks and device names. instance: The instance name for this request. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ autoDelete = _messages.BooleanField(1, required=True) deviceName = _messages.StringField(2, required=True) instance = _messages.StringField(3, required=True) project = _messages.StringField(4, required=True) requestId = _messages.StringField(5) zone = _messages.StringField(6, required=True) class ComputeInstancesSetIamPolicyRequest(_messages.Message): r"""A ComputeInstancesSetIamPolicyRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. zone: The name of the zone for this request. zoneSetPolicyRequest: A ZoneSetPolicyRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) zoneSetPolicyRequest = _messages.MessageField('ZoneSetPolicyRequest', 4) class ComputeInstancesSetLabelsRequest(_messages.Message): r"""A ComputeInstancesSetLabelsRequest object. Fields: instance: Name of the instance scoping this request. instancesSetLabelsRequest: A InstancesSetLabelsRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ instance = _messages.StringField(1, required=True) instancesSetLabelsRequest = _messages.MessageField('InstancesSetLabelsRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeInstancesSetMachineResourcesRequest(_messages.Message): r"""A ComputeInstancesSetMachineResourcesRequest object. Fields: instance: Name of the instance scoping this request. instancesSetMachineResourcesRequest: A InstancesSetMachineResourcesRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ instance = _messages.StringField(1, required=True) instancesSetMachineResourcesRequest = _messages.MessageField('InstancesSetMachineResourcesRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeInstancesSetMachineTypeRequest(_messages.Message): r"""A ComputeInstancesSetMachineTypeRequest object. Fields: instance: Name of the instance scoping this request. instancesSetMachineTypeRequest: A InstancesSetMachineTypeRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ instance = _messages.StringField(1, required=True) instancesSetMachineTypeRequest = _messages.MessageField('InstancesSetMachineTypeRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeInstancesSetMetadataRequest(_messages.Message): r"""A ComputeInstancesSetMetadataRequest object. Fields: instance: Name of the instance scoping this request. metadata: A Metadata resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ instance = _messages.StringField(1, required=True) metadata = _messages.MessageField('Metadata', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeInstancesSetMinCpuPlatformRequest(_messages.Message): r"""A ComputeInstancesSetMinCpuPlatformRequest object. Fields: instance: Name of the instance scoping this request. instancesSetMinCpuPlatformRequest: A InstancesSetMinCpuPlatformRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ instance = _messages.StringField(1, required=True) instancesSetMinCpuPlatformRequest = _messages.MessageField('InstancesSetMinCpuPlatformRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeInstancesSetSchedulingRequest(_messages.Message): r"""A ComputeInstancesSetSchedulingRequest object. Fields: instance: Instance name for this request. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). scheduling: A Scheduling resource to be passed as the request body. zone: The name of the zone for this request. """ instance = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) scheduling = _messages.MessageField('Scheduling', 4) zone = _messages.StringField(5, required=True) class ComputeInstancesSetServiceAccountRequest(_messages.Message): r"""A ComputeInstancesSetServiceAccountRequest object. Fields: instance: Name of the instance resource to start. instancesSetServiceAccountRequest: A InstancesSetServiceAccountRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ instance = _messages.StringField(1, required=True) instancesSetServiceAccountRequest = _messages.MessageField('InstancesSetServiceAccountRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeInstancesSetShieldedInstanceIntegrityPolicyRequest(_messages.Message): r"""A ComputeInstancesSetShieldedInstanceIntegrityPolicyRequest object. Fields: instance: Name or id of the instance scoping this request. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). shieldedInstanceIntegrityPolicy: A ShieldedInstanceIntegrityPolicy resource to be passed as the request body. zone: The name of the zone for this request. """ instance = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) shieldedInstanceIntegrityPolicy = _messages.MessageField('ShieldedInstanceIntegrityPolicy', 4) zone = _messages.StringField(5, required=True) class ComputeInstancesSetTagsRequest(_messages.Message): r"""A ComputeInstancesSetTagsRequest object. Fields: instance: Name of the instance scoping this request. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). tags: A Tags resource to be passed as the request body. zone: The name of the zone for this request. """ instance = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) tags = _messages.MessageField('Tags', 4) zone = _messages.StringField(5, required=True) class ComputeInstancesSimulateMaintenanceEventRequest(_messages.Message): r"""A ComputeInstancesSimulateMaintenanceEventRequest object. Fields: instance: Name of the instance scoping this request. project: Project ID for this request. zone: The name of the zone for this request. """ instance = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) class ComputeInstancesStartRequest(_messages.Message): r"""A ComputeInstancesStartRequest object. Fields: instance: Name of the instance resource to start. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ instance = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) zone = _messages.StringField(4, required=True) class ComputeInstancesStartWithEncryptionKeyRequest(_messages.Message): r"""A ComputeInstancesStartWithEncryptionKeyRequest object. Fields: instance: Name of the instance resource to start. instancesStartWithEncryptionKeyRequest: A InstancesStartWithEncryptionKeyRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ instance = _messages.StringField(1, required=True) instancesStartWithEncryptionKeyRequest = _messages.MessageField('InstancesStartWithEncryptionKeyRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeInstancesStopRequest(_messages.Message): r"""A ComputeInstancesStopRequest object. Fields: instance: Name of the instance resource to stop. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ instance = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) zone = _messages.StringField(4, required=True) class ComputeInstancesTestIamPermissionsRequest(_messages.Message): r"""A ComputeInstancesTestIamPermissionsRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. testPermissionsRequest: A TestPermissionsRequest resource to be passed as the request body. zone: The name of the zone for this request. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) testPermissionsRequest = _messages.MessageField('TestPermissionsRequest', 3) zone = _messages.StringField(4, required=True) class ComputeInstancesUpdateAccessConfigRequest(_messages.Message): r"""A ComputeInstancesUpdateAccessConfigRequest object. Fields: accessConfig: A AccessConfig resource to be passed as the request body. instance: The instance name for this request. networkInterface: The name of the network interface where the access config is attached. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ accessConfig = _messages.MessageField('AccessConfig', 1) instance = _messages.StringField(2, required=True) networkInterface = _messages.StringField(3, required=True) project = _messages.StringField(4, required=True) requestId = _messages.StringField(5) zone = _messages.StringField(6, required=True) class ComputeInstancesUpdateDisplayDeviceRequest(_messages.Message): r"""A ComputeInstancesUpdateDisplayDeviceRequest object. Fields: displayDevice: A DisplayDevice resource to be passed as the request body. instance: Name of the instance scoping this request. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ displayDevice = _messages.MessageField('DisplayDevice', 1) instance = _messages.StringField(2, required=True) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeInstancesUpdateNetworkInterfaceRequest(_messages.Message): r"""A ComputeInstancesUpdateNetworkInterfaceRequest object. Fields: instance: The instance name for this request. networkInterface: The name of the network interface to update. networkInterfaceResource: A NetworkInterface resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ instance = _messages.StringField(1, required=True) networkInterface = _messages.StringField(2, required=True) networkInterfaceResource = _messages.MessageField('NetworkInterface', 3) project = _messages.StringField(4, required=True) requestId = _messages.StringField(5) zone = _messages.StringField(6, required=True) class ComputeInstancesUpdateShieldedInstanceConfigRequest(_messages.Message): r"""A ComputeInstancesUpdateShieldedInstanceConfigRequest object. Fields: instance: Name or id of the instance scoping this request. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). shieldedInstanceConfig: A ShieldedInstanceConfig resource to be passed as the request body. zone: The name of the zone for this request. """ instance = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) shieldedInstanceConfig = _messages.MessageField('ShieldedInstanceConfig', 4) zone = _messages.StringField(5, required=True) class ComputeInterconnectAttachmentsAggregatedListRequest(_messages.Message): r"""A ComputeInterconnectAttachmentsAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeInterconnectAttachmentsDeleteRequest(_messages.Message): r"""A ComputeInterconnectAttachmentsDeleteRequest object. Fields: interconnectAttachment: Name of the interconnect attachment to delete. project: Project ID for this request. region: Name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ interconnectAttachment = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeInterconnectAttachmentsGetRequest(_messages.Message): r"""A ComputeInterconnectAttachmentsGetRequest object. Fields: interconnectAttachment: Name of the interconnect attachment to return. project: Project ID for this request. region: Name of the region for this request. """ interconnectAttachment = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) class ComputeInterconnectAttachmentsInsertRequest(_messages.Message): r"""A ComputeInterconnectAttachmentsInsertRequest object. Fields: interconnectAttachment: A InterconnectAttachment resource to be passed as the request body. project: Project ID for this request. region: Name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ interconnectAttachment = _messages.MessageField('InterconnectAttachment', 1) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeInterconnectAttachmentsListRequest(_messages.Message): r"""A ComputeInterconnectAttachmentsListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: Name of the region for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) region = _messages.StringField(6, required=True) class ComputeInterconnectAttachmentsPatchRequest(_messages.Message): r"""A ComputeInterconnectAttachmentsPatchRequest object. Fields: interconnectAttachment: Name of the interconnect attachment to patch. interconnectAttachmentResource: A InterconnectAttachment resource to be passed as the request body. project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ interconnectAttachment = _messages.StringField(1, required=True) interconnectAttachmentResource = _messages.MessageField('InterconnectAttachment', 2) project = _messages.StringField(3, required=True) region = _messages.StringField(4, required=True) requestId = _messages.StringField(5) class ComputeInterconnectLocationsGetRequest(_messages.Message): r"""A ComputeInterconnectLocationsGetRequest object. Fields: interconnectLocation: Name of the interconnect location to return. project: Project ID for this request. """ interconnectLocation = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class ComputeInterconnectLocationsListRequest(_messages.Message): r"""A ComputeInterconnectLocationsListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeInterconnectsDeleteRequest(_messages.Message): r"""A ComputeInterconnectsDeleteRequest object. Fields: interconnect: Name of the interconnect to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ interconnect = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeInterconnectsGetDiagnosticsRequest(_messages.Message): r"""A ComputeInterconnectsGetDiagnosticsRequest object. Fields: interconnect: Name of the interconnect resource to query. project: Project ID for this request. """ interconnect = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class ComputeInterconnectsGetRequest(_messages.Message): r"""A ComputeInterconnectsGetRequest object. Fields: interconnect: Name of the interconnect to return. project: Project ID for this request. """ interconnect = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class ComputeInterconnectsInsertRequest(_messages.Message): r"""A ComputeInterconnectsInsertRequest object. Fields: interconnect: A Interconnect resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ interconnect = _messages.MessageField('Interconnect', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeInterconnectsListRequest(_messages.Message): r"""A ComputeInterconnectsListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeInterconnectsPatchRequest(_messages.Message): r"""A ComputeInterconnectsPatchRequest object. Fields: interconnect: Name of the interconnect to update. interconnectResource: A Interconnect resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ interconnect = _messages.StringField(1, required=True) interconnectResource = _messages.MessageField('Interconnect', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeLicenseCodesGetRequest(_messages.Message): r"""A ComputeLicenseCodesGetRequest object. Fields: licenseCode: Number corresponding to the License code resource to return. project: Project ID for this request. """ licenseCode = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class ComputeLicenseCodesTestIamPermissionsRequest(_messages.Message): r"""A ComputeLicenseCodesTestIamPermissionsRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. testPermissionsRequest: A TestPermissionsRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) testPermissionsRequest = _messages.MessageField('TestPermissionsRequest', 3) class ComputeLicensesDeleteRequest(_messages.Message): r"""A ComputeLicensesDeleteRequest object. Fields: license: Name of the license resource to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ license = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeLicensesGetIamPolicyRequest(_messages.Message): r"""A ComputeLicensesGetIamPolicyRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) class ComputeLicensesGetRequest(_messages.Message): r"""A ComputeLicensesGetRequest object. Fields: license: Name of the License resource to return. project: Project ID for this request. """ license = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class ComputeLicensesInsertRequest(_messages.Message): r"""A ComputeLicensesInsertRequest object. Fields: license: A License resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ license = _messages.MessageField('License', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeLicensesListRequest(_messages.Message): r"""A ComputeLicensesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeLicensesSetIamPolicyRequest(_messages.Message): r"""A ComputeLicensesSetIamPolicyRequest object. Fields: globalSetPolicyRequest: A GlobalSetPolicyRequest resource to be passed as the request body. project: Project ID for this request. resource: Name or id of the resource for this request. """ globalSetPolicyRequest = _messages.MessageField('GlobalSetPolicyRequest', 1) project = _messages.StringField(2, required=True) resource = _messages.StringField(3, required=True) class ComputeLicensesTestIamPermissionsRequest(_messages.Message): r"""A ComputeLicensesTestIamPermissionsRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. testPermissionsRequest: A TestPermissionsRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) testPermissionsRequest = _messages.MessageField('TestPermissionsRequest', 3) class ComputeMachineTypesAggregatedListRequest(_messages.Message): r"""A ComputeMachineTypesAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeMachineTypesGetRequest(_messages.Message): r"""A ComputeMachineTypesGetRequest object. Fields: machineType: Name of the machine type to return. project: Project ID for this request. zone: The name of the zone for this request. """ machineType = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) class ComputeMachineTypesListRequest(_messages.Message): r"""A ComputeMachineTypesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. zone: The name of the zone for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) zone = _messages.StringField(6, required=True) class ComputeNetworkEndpointGroupsAggregatedListRequest(_messages.Message): r"""A ComputeNetworkEndpointGroupsAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeNetworkEndpointGroupsAttachNetworkEndpointsRequest(_messages.Message): r"""A ComputeNetworkEndpointGroupsAttachNetworkEndpointsRequest object. Fields: networkEndpointGroup: The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035. networkEndpointGroupsAttachEndpointsRequest: A NetworkEndpointGroupsAttachEndpointsRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone where the network endpoint group is located. It should comply with RFC1035. """ networkEndpointGroup = _messages.StringField(1, required=True) networkEndpointGroupsAttachEndpointsRequest = _messages.MessageField('NetworkEndpointGroupsAttachEndpointsRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeNetworkEndpointGroupsDeleteRequest(_messages.Message): r"""A ComputeNetworkEndpointGroupsDeleteRequest object. Fields: networkEndpointGroup: The name of the network endpoint group to delete. It should comply with RFC1035. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone where the network endpoint group is located. It should comply with RFC1035. """ networkEndpointGroup = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) zone = _messages.StringField(4, required=True) class ComputeNetworkEndpointGroupsDetachNetworkEndpointsRequest(_messages.Message): r"""A ComputeNetworkEndpointGroupsDetachNetworkEndpointsRequest object. Fields: networkEndpointGroup: The name of the network endpoint group where you are removing network endpoints. It should comply with RFC1035. networkEndpointGroupsDetachEndpointsRequest: A NetworkEndpointGroupsDetachEndpointsRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone where the network endpoint group is located. It should comply with RFC1035. """ networkEndpointGroup = _messages.StringField(1, required=True) networkEndpointGroupsDetachEndpointsRequest = _messages.MessageField('NetworkEndpointGroupsDetachEndpointsRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeNetworkEndpointGroupsGetRequest(_messages.Message): r"""A ComputeNetworkEndpointGroupsGetRequest object. Fields: networkEndpointGroup: The name of the network endpoint group. It should comply with RFC1035. project: Project ID for this request. zone: The name of the zone where the network endpoint group is located. It should comply with RFC1035. """ networkEndpointGroup = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) class ComputeNetworkEndpointGroupsInsertRequest(_messages.Message): r"""A ComputeNetworkEndpointGroupsInsertRequest object. Fields: networkEndpointGroup: A NetworkEndpointGroup resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone where you want to create the network endpoint group. It should comply with RFC1035. """ networkEndpointGroup = _messages.MessageField('NetworkEndpointGroup', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) zone = _messages.StringField(4, required=True) class ComputeNetworkEndpointGroupsListNetworkEndpointsRequest(_messages.Message): r"""A ComputeNetworkEndpointGroupsListNetworkEndpointsRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) networkEndpointGroup: The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035. networkEndpointGroupsListEndpointsRequest: A NetworkEndpointGroupsListEndpointsRequest resource to be passed as the request body. orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. zone: The name of the zone where the network endpoint group is located. It should comply with RFC1035. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) networkEndpointGroup = _messages.StringField(3, required=True) networkEndpointGroupsListEndpointsRequest = _messages.MessageField('NetworkEndpointGroupsListEndpointsRequest', 4) orderBy = _messages.StringField(5) pageToken = _messages.StringField(6) project = _messages.StringField(7, required=True) zone = _messages.StringField(8, required=True) class ComputeNetworkEndpointGroupsListRequest(_messages.Message): r"""A ComputeNetworkEndpointGroupsListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. zone: The name of the zone where the network endpoint group is located. It should comply with RFC1035. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) zone = _messages.StringField(6, required=True) class ComputeNetworkEndpointGroupsTestIamPermissionsRequest(_messages.Message): r"""A ComputeNetworkEndpointGroupsTestIamPermissionsRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. testPermissionsRequest: A TestPermissionsRequest resource to be passed as the request body. zone: The name of the zone for this request. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) testPermissionsRequest = _messages.MessageField('TestPermissionsRequest', 3) zone = _messages.StringField(4, required=True) class ComputeNetworksAddPeeringRequest(_messages.Message): r"""A ComputeNetworksAddPeeringRequest object. Fields: network: Name of the network resource to add peering to. networksAddPeeringRequest: A NetworksAddPeeringRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ network = _messages.StringField(1, required=True) networksAddPeeringRequest = _messages.MessageField('NetworksAddPeeringRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeNetworksDeleteRequest(_messages.Message): r"""A ComputeNetworksDeleteRequest object. Fields: network: Name of the network to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ network = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeNetworksGetRequest(_messages.Message): r"""A ComputeNetworksGetRequest object. Fields: network: Name of the network to return. project: Project ID for this request. """ network = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) class ComputeNetworksInsertRequest(_messages.Message): r"""A ComputeNetworksInsertRequest object. Fields: network: A Network resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ network = _messages.MessageField('Network', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeNetworksListRequest(_messages.Message): r"""A ComputeNetworksListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeNetworksPatchRequest(_messages.Message): r"""A ComputeNetworksPatchRequest object. Fields: network: Name of the network to update. networkResource: A Network resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ network = _messages.StringField(1, required=True) networkResource = _messages.MessageField('Network', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeNetworksRemovePeeringRequest(_messages.Message): r"""A ComputeNetworksRemovePeeringRequest object. Fields: network: Name of the network resource to remove peering from. networksRemovePeeringRequest: A NetworksRemovePeeringRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ network = _messages.StringField(1, required=True) networksRemovePeeringRequest = _messages.MessageField('NetworksRemovePeeringRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeNetworksSwitchToCustomModeRequest(_messages.Message): r"""A ComputeNetworksSwitchToCustomModeRequest object. Fields: network: Name of the network to be updated. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ network = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeNetworksUpdatePeeringRequest(_messages.Message): r"""A ComputeNetworksUpdatePeeringRequest object. Fields: network: Name of the network resource which the updated peering is belonging to. networksUpdatePeeringRequest: A NetworksUpdatePeeringRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ network = _messages.StringField(1, required=True) networksUpdatePeeringRequest = _messages.MessageField('NetworksUpdatePeeringRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeNodeGroupsAddNodesRequest(_messages.Message): r"""A ComputeNodeGroupsAddNodesRequest object. Fields: nodeGroup: Name of the NodeGroup resource. nodeGroupsAddNodesRequest: A NodeGroupsAddNodesRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ nodeGroup = _messages.StringField(1, required=True) nodeGroupsAddNodesRequest = _messages.MessageField('NodeGroupsAddNodesRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeNodeGroupsAggregatedListRequest(_messages.Message): r"""A ComputeNodeGroupsAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeNodeGroupsDeleteNodesRequest(_messages.Message): r"""A ComputeNodeGroupsDeleteNodesRequest object. Fields: nodeGroup: Name of the NodeGroup resource whose nodes will be deleted. nodeGroupsDeleteNodesRequest: A NodeGroupsDeleteNodesRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ nodeGroup = _messages.StringField(1, required=True) nodeGroupsDeleteNodesRequest = _messages.MessageField('NodeGroupsDeleteNodesRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeNodeGroupsDeleteRequest(_messages.Message): r"""A ComputeNodeGroupsDeleteRequest object. Fields: nodeGroup: Name of the NodeGroup resource to delete. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ nodeGroup = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) zone = _messages.StringField(4, required=True) class ComputeNodeGroupsGetIamPolicyRequest(_messages.Message): r"""A ComputeNodeGroupsGetIamPolicyRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. zone: The name of the zone for this request. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) class ComputeNodeGroupsGetRequest(_messages.Message): r"""A ComputeNodeGroupsGetRequest object. Fields: nodeGroup: Name of the node group to return. project: Project ID for this request. zone: The name of the zone for this request. """ nodeGroup = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) class ComputeNodeGroupsInsertRequest(_messages.Message): r"""A ComputeNodeGroupsInsertRequest object. Fields: initialNodeCount: Initial count of nodes in the node group. nodeGroup: A NodeGroup resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ initialNodeCount = _messages.IntegerField(1, required=True, variant=_messages.Variant.INT32) nodeGroup = _messages.MessageField('NodeGroup', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeNodeGroupsListNodesRequest(_messages.Message): r"""A ComputeNodeGroupsListNodesRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) nodeGroup: Name of the NodeGroup resource whose nodes you want to list. orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. zone: The name of the zone for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) nodeGroup = _messages.StringField(3, required=True) orderBy = _messages.StringField(4) pageToken = _messages.StringField(5) project = _messages.StringField(6, required=True) zone = _messages.StringField(7, required=True) class ComputeNodeGroupsListRequest(_messages.Message): r"""A ComputeNodeGroupsListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. zone: The name of the zone for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) zone = _messages.StringField(6, required=True) class ComputeNodeGroupsSetIamPolicyRequest(_messages.Message): r"""A ComputeNodeGroupsSetIamPolicyRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. zone: The name of the zone for this request. zoneSetPolicyRequest: A ZoneSetPolicyRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) zoneSetPolicyRequest = _messages.MessageField('ZoneSetPolicyRequest', 4) class ComputeNodeGroupsSetNodeTemplateRequest(_messages.Message): r"""A ComputeNodeGroupsSetNodeTemplateRequest object. Fields: nodeGroup: Name of the NodeGroup resource to update. nodeGroupsSetNodeTemplateRequest: A NodeGroupsSetNodeTemplateRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). zone: The name of the zone for this request. """ nodeGroup = _messages.StringField(1, required=True) nodeGroupsSetNodeTemplateRequest = _messages.MessageField('NodeGroupsSetNodeTemplateRequest', 2) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeNodeGroupsTestIamPermissionsRequest(_messages.Message): r"""A ComputeNodeGroupsTestIamPermissionsRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. testPermissionsRequest: A TestPermissionsRequest resource to be passed as the request body. zone: The name of the zone for this request. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) testPermissionsRequest = _messages.MessageField('TestPermissionsRequest', 3) zone = _messages.StringField(4, required=True) class ComputeNodeTemplatesAggregatedListRequest(_messages.Message): r"""A ComputeNodeTemplatesAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeNodeTemplatesDeleteRequest(_messages.Message): r"""A ComputeNodeTemplatesDeleteRequest object. Fields: nodeTemplate: Name of the NodeTemplate resource to delete. project: Project ID for this request. region: The name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ nodeTemplate = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeNodeTemplatesGetIamPolicyRequest(_messages.Message): r"""A ComputeNodeTemplatesGetIamPolicyRequest object. Fields: project: Project ID for this request. region: The name of the region for this request. resource: Name or id of the resource for this request. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) resource = _messages.StringField(3, required=True) class ComputeNodeTemplatesGetRequest(_messages.Message): r"""A ComputeNodeTemplatesGetRequest object. Fields: nodeTemplate: Name of the node template to return. project: Project ID for this request. region: The name of the region for this request. """ nodeTemplate = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) class ComputeNodeTemplatesInsertRequest(_messages.Message): r"""A ComputeNodeTemplatesInsertRequest object. Fields: nodeTemplate: A NodeTemplate resource to be passed as the request body. project: Project ID for this request. region: The name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ nodeTemplate = _messages.MessageField('NodeTemplate', 1) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeNodeTemplatesListRequest(_messages.Message): r"""A ComputeNodeTemplatesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: The name of the region for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) region = _messages.StringField(6, required=True) class ComputeNodeTemplatesSetIamPolicyRequest(_messages.Message): r"""A ComputeNodeTemplatesSetIamPolicyRequest object. Fields: project: Project ID for this request. region: The name of the region for this request. regionSetPolicyRequest: A RegionSetPolicyRequest resource to be passed as the request body. resource: Name or id of the resource for this request. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) regionSetPolicyRequest = _messages.MessageField('RegionSetPolicyRequest', 3) resource = _messages.StringField(4, required=True) class ComputeNodeTemplatesTestIamPermissionsRequest(_messages.Message): r"""A ComputeNodeTemplatesTestIamPermissionsRequest object. Fields: project: Project ID for this request. region: The name of the region for this request. resource: Name or id of the resource for this request. testPermissionsRequest: A TestPermissionsRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) resource = _messages.StringField(3, required=True) testPermissionsRequest = _messages.MessageField('TestPermissionsRequest', 4) class ComputeNodeTypesAggregatedListRequest(_messages.Message): r"""A ComputeNodeTypesAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeNodeTypesGetRequest(_messages.Message): r"""A ComputeNodeTypesGetRequest object. Fields: nodeType: Name of the node type to return. project: Project ID for this request. zone: The name of the zone for this request. """ nodeType = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) class ComputeNodeTypesListRequest(_messages.Message): r"""A ComputeNodeTypesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. zone: The name of the zone for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) zone = _messages.StringField(6, required=True) class ComputeProjectsDisableXpnHostRequest(_messages.Message): r"""A ComputeProjectsDisableXpnHostRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) class ComputeProjectsDisableXpnResourceRequest(_messages.Message): r"""A ComputeProjectsDisableXpnResourceRequest object. Fields: project: Project ID for this request. projectsDisableXpnResourceRequest: A ProjectsDisableXpnResourceRequest resource to be passed as the request body. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ project = _messages.StringField(1, required=True) projectsDisableXpnResourceRequest = _messages.MessageField('ProjectsDisableXpnResourceRequest', 2) requestId = _messages.StringField(3) class ComputeProjectsEnableXpnHostRequest(_messages.Message): r"""A ComputeProjectsEnableXpnHostRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) class ComputeProjectsEnableXpnResourceRequest(_messages.Message): r"""A ComputeProjectsEnableXpnResourceRequest object. Fields: project: Project ID for this request. projectsEnableXpnResourceRequest: A ProjectsEnableXpnResourceRequest resource to be passed as the request body. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ project = _messages.StringField(1, required=True) projectsEnableXpnResourceRequest = _messages.MessageField('ProjectsEnableXpnResourceRequest', 2) requestId = _messages.StringField(3) class ComputeProjectsGetRequest(_messages.Message): r"""A ComputeProjectsGetRequest object. Fields: project: Project ID for this request. """ project = _messages.StringField(1, required=True) class ComputeProjectsGetXpnHostRequest(_messages.Message): r"""A ComputeProjectsGetXpnHostRequest object. Fields: project: Project ID for this request. """ project = _messages.StringField(1, required=True) class ComputeProjectsGetXpnResourcesRequest(_messages.Message): r"""A ComputeProjectsGetXpnResourcesRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) order_by: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) order_by = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeProjectsListXpnHostsRequest(_messages.Message): r"""A ComputeProjectsListXpnHostsRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) order_by: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. projectsListXpnHostsRequest: A ProjectsListXpnHostsRequest resource to be passed as the request body. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) order_by = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) projectsListXpnHostsRequest = _messages.MessageField('ProjectsListXpnHostsRequest', 6) class ComputeProjectsMoveDiskRequest(_messages.Message): r"""A ComputeProjectsMoveDiskRequest object. Fields: diskMoveRequest: A DiskMoveRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ diskMoveRequest = _messages.MessageField('DiskMoveRequest', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeProjectsMoveInstanceRequest(_messages.Message): r"""A ComputeProjectsMoveInstanceRequest object. Fields: instanceMoveRequest: A InstanceMoveRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ instanceMoveRequest = _messages.MessageField('InstanceMoveRequest', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeProjectsSetCommonInstanceMetadataRequest(_messages.Message): r"""A ComputeProjectsSetCommonInstanceMetadataRequest object. Fields: metadata: A Metadata resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ metadata = _messages.MessageField('Metadata', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) class ComputeProjectsSetDefaultNetworkTierRequest(_messages.Message): r"""A ComputeProjectsSetDefaultNetworkTierRequest object. Fields: project: Project ID for this request. projectsSetDefaultNetworkTierRequest: A ProjectsSetDefaultNetworkTierRequest resource to be passed as the request body. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ project = _messages.StringField(1, required=True) projectsSetDefaultNetworkTierRequest = _messages.MessageField('ProjectsSetDefaultNetworkTierRequest', 2) requestId = _messages.StringField(3) class ComputeProjectsSetUsageExportBucketRequest(_messages.Message): r"""A ComputeProjectsSetUsageExportBucketRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). usageExportLocation: A UsageExportLocation resource to be passed as the request body. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) usageExportLocation = _messages.MessageField('UsageExportLocation', 3) class ComputeRegionAutoscalersDeleteRequest(_messages.Message): r"""A ComputeRegionAutoscalersDeleteRequest object. Fields: autoscaler: Name of the autoscaler to delete. project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ autoscaler = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeRegionAutoscalersGetRequest(_messages.Message): r"""A ComputeRegionAutoscalersGetRequest object. Fields: autoscaler: Name of the autoscaler to return. project: Project ID for this request. region: Name of the region scoping this request. """ autoscaler = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) class ComputeRegionAutoscalersInsertRequest(_messages.Message): r"""A ComputeRegionAutoscalersInsertRequest object. Fields: autoscaler: A Autoscaler resource to be passed as the request body. project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ autoscaler = _messages.MessageField('Autoscaler', 1) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeRegionAutoscalersListRequest(_messages.Message): r"""A ComputeRegionAutoscalersListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: Name of the region scoping this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) region = _messages.StringField(6, required=True) class ComputeRegionAutoscalersPatchRequest(_messages.Message): r"""A ComputeRegionAutoscalersPatchRequest object. Fields: autoscaler: Name of the autoscaler to patch. autoscalerResource: A Autoscaler resource to be passed as the request body. project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ autoscaler = _messages.StringField(1) autoscalerResource = _messages.MessageField('Autoscaler', 2) project = _messages.StringField(3, required=True) region = _messages.StringField(4, required=True) requestId = _messages.StringField(5) class ComputeRegionAutoscalersUpdateRequest(_messages.Message): r"""A ComputeRegionAutoscalersUpdateRequest object. Fields: autoscaler: Name of the autoscaler to update. autoscalerResource: A Autoscaler resource to be passed as the request body. project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ autoscaler = _messages.StringField(1) autoscalerResource = _messages.MessageField('Autoscaler', 2) project = _messages.StringField(3, required=True) region = _messages.StringField(4, required=True) requestId = _messages.StringField(5) class ComputeRegionBackendServicesDeleteRequest(_messages.Message): r"""A ComputeRegionBackendServicesDeleteRequest object. Fields: backendService: Name of the BackendService resource to delete. project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ backendService = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeRegionBackendServicesGetHealthRequest(_messages.Message): r"""A ComputeRegionBackendServicesGetHealthRequest object. Fields: backendService: Name of the BackendService resource for which to get health. project: A string attribute. region: Name of the region scoping this request. resourceGroupReference: A ResourceGroupReference resource to be passed as the request body. """ backendService = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) resourceGroupReference = _messages.MessageField('ResourceGroupReference', 4) class ComputeRegionBackendServicesGetRequest(_messages.Message): r"""A ComputeRegionBackendServicesGetRequest object. Fields: backendService: Name of the BackendService resource to return. project: Project ID for this request. region: Name of the region scoping this request. """ backendService = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) class ComputeRegionBackendServicesInsertRequest(_messages.Message): r"""A ComputeRegionBackendServicesInsertRequest object. Fields: backendService: A BackendService resource to be passed as the request body. project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ backendService = _messages.MessageField('BackendService', 1) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeRegionBackendServicesListRequest(_messages.Message): r"""A ComputeRegionBackendServicesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: Name of the region scoping this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) region = _messages.StringField(6, required=True) class ComputeRegionBackendServicesPatchRequest(_messages.Message): r"""A ComputeRegionBackendServicesPatchRequest object. Fields: backendService: Name of the BackendService resource to patch. backendServiceResource: A BackendService resource to be passed as the request body. project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ backendService = _messages.StringField(1, required=True) backendServiceResource = _messages.MessageField('BackendService', 2) project = _messages.StringField(3, required=True) region = _messages.StringField(4, required=True) requestId = _messages.StringField(5) class ComputeRegionBackendServicesUpdateRequest(_messages.Message): r"""A ComputeRegionBackendServicesUpdateRequest object. Fields: backendService: Name of the BackendService resource to update. backendServiceResource: A BackendService resource to be passed as the request body. project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ backendService = _messages.StringField(1, required=True) backendServiceResource = _messages.MessageField('BackendService', 2) project = _messages.StringField(3, required=True) region = _messages.StringField(4, required=True) requestId = _messages.StringField(5) class ComputeRegionCommitmentsAggregatedListRequest(_messages.Message): r"""A ComputeRegionCommitmentsAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeRegionCommitmentsGetRequest(_messages.Message): r"""A ComputeRegionCommitmentsGetRequest object. Fields: commitment: Name of the commitment to return. project: Project ID for this request. region: Name of the region for this request. """ commitment = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) class ComputeRegionCommitmentsInsertRequest(_messages.Message): r"""A ComputeRegionCommitmentsInsertRequest object. Fields: commitment: A Commitment resource to be passed as the request body. project: Project ID for this request. region: Name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ commitment = _messages.MessageField('Commitment', 1) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeRegionCommitmentsListRequest(_messages.Message): r"""A ComputeRegionCommitmentsListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: Name of the region for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) region = _messages.StringField(6, required=True) class ComputeRegionDiskTypesGetRequest(_messages.Message): r"""A ComputeRegionDiskTypesGetRequest object. Fields: diskType: Name of the disk type to return. project: Project ID for this request. region: The name of the region for this request. """ diskType = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) class ComputeRegionDiskTypesListRequest(_messages.Message): r"""A ComputeRegionDiskTypesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: The name of the region for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) region = _messages.StringField(6, required=True) class ComputeRegionDisksAddResourcePoliciesRequest(_messages.Message): r"""A ComputeRegionDisksAddResourcePoliciesRequest object. Fields: disk: The disk name for this request. project: Project ID for this request. region: The name of the region for this request. regionDisksAddResourcePoliciesRequest: A RegionDisksAddResourcePoliciesRequest resource to be passed as the request body. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ disk = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) regionDisksAddResourcePoliciesRequest = _messages.MessageField('RegionDisksAddResourcePoliciesRequest', 4) requestId = _messages.StringField(5) class ComputeRegionDisksCreateSnapshotRequest(_messages.Message): r"""A ComputeRegionDisksCreateSnapshotRequest object. Fields: disk: Name of the regional persistent disk to snapshot. project: Project ID for this request. region: Name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). snapshot: A Snapshot resource to be passed as the request body. """ disk = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) requestId = _messages.StringField(4) snapshot = _messages.MessageField('Snapshot', 5) class ComputeRegionDisksDeleteRequest(_messages.Message): r"""A ComputeRegionDisksDeleteRequest object. Fields: disk: Name of the regional persistent disk to delete. project: Project ID for this request. region: Name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ disk = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeRegionDisksGetRequest(_messages.Message): r"""A ComputeRegionDisksGetRequest object. Fields: disk: Name of the regional persistent disk to return. project: Project ID for this request. region: Name of the region for this request. """ disk = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) class ComputeRegionDisksInsertRequest(_messages.Message): r"""A ComputeRegionDisksInsertRequest object. Fields: disk: A Disk resource to be passed as the request body. project: Project ID for this request. region: Name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). sourceImage: Optional. Source image to restore onto a disk. """ disk = _messages.MessageField('Disk', 1) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) requestId = _messages.StringField(4) sourceImage = _messages.StringField(5) class ComputeRegionDisksListRequest(_messages.Message): r"""A ComputeRegionDisksListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: Name of the region for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) region = _messages.StringField(6, required=True) class ComputeRegionDisksRemoveResourcePoliciesRequest(_messages.Message): r"""A ComputeRegionDisksRemoveResourcePoliciesRequest object. Fields: disk: The disk name for this request. project: Project ID for this request. region: The name of the region for this request. regionDisksRemoveResourcePoliciesRequest: A RegionDisksRemoveResourcePoliciesRequest resource to be passed as the request body. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ disk = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) regionDisksRemoveResourcePoliciesRequest = _messages.MessageField('RegionDisksRemoveResourcePoliciesRequest', 4) requestId = _messages.StringField(5) class ComputeRegionDisksResizeRequest(_messages.Message): r"""A ComputeRegionDisksResizeRequest object. Fields: disk: Name of the regional persistent disk. project: The project ID for this request. region: Name of the region for this request. regionDisksResizeRequest: A RegionDisksResizeRequest resource to be passed as the request body. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ disk = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) regionDisksResizeRequest = _messages.MessageField('RegionDisksResizeRequest', 4) requestId = _messages.StringField(5) class ComputeRegionDisksSetLabelsRequest(_messages.Message): r"""A ComputeRegionDisksSetLabelsRequest object. Fields: project: Project ID for this request. region: The region for this request. regionSetLabelsRequest: A RegionSetLabelsRequest resource to be passed as the request body. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). resource: Name or id of the resource for this request. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) regionSetLabelsRequest = _messages.MessageField('RegionSetLabelsRequest', 3) requestId = _messages.StringField(4) resource = _messages.StringField(5, required=True) class ComputeRegionDisksTestIamPermissionsRequest(_messages.Message): r"""A ComputeRegionDisksTestIamPermissionsRequest object. Fields: project: Project ID for this request. region: The name of the region for this request. resource: Name or id of the resource for this request. testPermissionsRequest: A TestPermissionsRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) resource = _messages.StringField(3, required=True) testPermissionsRequest = _messages.MessageField('TestPermissionsRequest', 4) class ComputeRegionInstanceGroupManagersAbandonInstancesRequest(_messages.Message): r"""A ComputeRegionInstanceGroupManagersAbandonInstancesRequest object. Fields: instanceGroupManager: Name of the managed instance group. project: Project ID for this request. region: Name of the region scoping this request. regionInstanceGroupManagersAbandonInstancesRequest: A RegionInstanceGroupManagersAbandonInstancesRequest resource to be passed as the request body. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ instanceGroupManager = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) regionInstanceGroupManagersAbandonInstancesRequest = _messages.MessageField('RegionInstanceGroupManagersAbandonInstancesRequest', 4) requestId = _messages.StringField(5) class ComputeRegionInstanceGroupManagersDeleteInstancesRequest(_messages.Message): r"""A ComputeRegionInstanceGroupManagersDeleteInstancesRequest object. Fields: instanceGroupManager: Name of the managed instance group. project: Project ID for this request. region: Name of the region scoping this request. regionInstanceGroupManagersDeleteInstancesRequest: A RegionInstanceGroupManagersDeleteInstancesRequest resource to be passed as the request body. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ instanceGroupManager = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) regionInstanceGroupManagersDeleteInstancesRequest = _messages.MessageField('RegionInstanceGroupManagersDeleteInstancesRequest', 4) requestId = _messages.StringField(5) class ComputeRegionInstanceGroupManagersDeleteRequest(_messages.Message): r"""A ComputeRegionInstanceGroupManagersDeleteRequest object. Fields: instanceGroupManager: Name of the managed instance group to delete. project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ instanceGroupManager = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeRegionInstanceGroupManagersGetRequest(_messages.Message): r"""A ComputeRegionInstanceGroupManagersGetRequest object. Fields: instanceGroupManager: Name of the managed instance group to return. project: Project ID for this request. region: Name of the region scoping this request. """ instanceGroupManager = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) class ComputeRegionInstanceGroupManagersInsertRequest(_messages.Message): r"""A ComputeRegionInstanceGroupManagersInsertRequest object. Fields: instanceGroupManager: A InstanceGroupManager resource to be passed as the request body. project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ instanceGroupManager = _messages.MessageField('InstanceGroupManager', 1) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) requestId = _messages.StringField(4) class ComputeRegionInstanceGroupManagersListManagedInstancesRequest(_messages.Message): r"""A ComputeRegionInstanceGroupManagersListManagedInstancesRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). instanceGroupManager: The name of the managed instance group. maxResults: 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) order_by: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: Name of the region scoping this request. """ filter = _messages.StringField(1) instanceGroupManager = _messages.StringField(2, required=True) maxResults = _messages.IntegerField(3, variant=_messages.Variant.UINT32, default=500) order_by = _messages.StringField(4) pageToken = _messages.StringField(5) project = _messages.StringField(6, required=True) region = _messages.StringField(7, required=True) class ComputeRegionInstanceGroupManagersListRequest(_messages.Message): r"""A ComputeRegionInstanceGroupManagersListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: Name of the region scoping this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) region = _messages.StringField(6, required=True) class ComputeRegionInstanceGroupManagersPatchRequest(_messages.Message): r"""A ComputeRegionInstanceGroupManagersPatchRequest object. Fields: instanceGroupManager: The name of the instance group manager. instanceGroupManagerResource: A InstanceGroupManager resource to be passed as the request body. project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ instanceGroupManager = _messages.StringField(1, required=True) instanceGroupManagerResource = _messages.MessageField('InstanceGroupManager', 2) project = _messages.StringField(3, required=True) region = _messages.StringField(4, required=True) requestId = _messages.StringField(5) class ComputeRegionInstanceGroupManagersRecreateInstancesRequest(_messages.Message): r"""A ComputeRegionInstanceGroupManagersRecreateInstancesRequest object. Fields: instanceGroupManager: Name of the managed instance group. project: Project ID for this request. region: Name of the region scoping this request. regionInstanceGroupManagersRecreateRequest: A RegionInstanceGroupManagersRecreateRequest resource to be passed as the request body. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ instanceGroupManager = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) regionInstanceGroupManagersRecreateRequest = _messages.MessageField('RegionInstanceGroupManagersRecreateRequest', 4) requestId = _messages.StringField(5) class ComputeRegionInstanceGroupManagersResizeRequest(_messages.Message): r"""A ComputeRegionInstanceGroupManagersResizeRequest object. Fields: instanceGroupManager: Name of the managed instance group. project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). size: Number of instances that should exist in this instance group manager. """ instanceGroupManager = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) requestId = _messages.StringField(4) size = _messages.IntegerField(5, required=True, variant=_messages.Variant.INT32) class ComputeRegionInstanceGroupManagersSetInstanceTemplateRequest(_messages.Message): r"""A ComputeRegionInstanceGroupManagersSetInstanceTemplateRequest object. Fields: instanceGroupManager: The name of the managed instance group. project: Project ID for this request. region: Name of the region scoping this request. regionInstanceGroupManagersSetTemplateRequest: A RegionInstanceGroupManagersSetTemplateRequest resource to be passed as the request body. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ instanceGroupManager = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) regionInstanceGroupManagersSetTemplateRequest = _messages.MessageField('RegionInstanceGroupManagersSetTemplateRequest', 4) requestId = _messages.StringField(5) class ComputeRegionInstanceGroupManagersSetTargetPoolsRequest(_messages.Message): r"""A ComputeRegionInstanceGroupManagersSetTargetPoolsRequest object. Fields: instanceGroupManager: Name of the managed instance group. project: Project ID for this request. region: Name of the region scoping this request. regionInstanceGroupManagersSetTargetPoolsRequest: A RegionInstanceGroupManagersSetTargetPoolsRequest resource to be passed as the request body. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ instanceGroupManager = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) regionInstanceGroupManagersSetTargetPoolsRequest = _messages.MessageField('RegionInstanceGroupManagersSetTargetPoolsRequest', 4) requestId = _messages.StringField(5) class ComputeRegionInstanceGroupsGetRequest(_messages.Message): r"""A ComputeRegionInstanceGroupsGetRequest object. Fields: instanceGroup: Name of the instance group resource to return. project: Project ID for this request. region: Name of the region scoping this request. """ instanceGroup = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) class ComputeRegionInstanceGroupsListInstancesRequest(_messages.Message): r"""A ComputeRegionInstanceGroupsListInstancesRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). instanceGroup: Name of the regional instance group for which we want to list the instances. maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: Name of the region scoping this request. regionInstanceGroupsListInstancesRequest: A RegionInstanceGroupsListInstancesRequest resource to be passed as the request body. """ filter = _messages.StringField(1) instanceGroup = _messages.StringField(2, required=True) maxResults = _messages.IntegerField(3, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(4) pageToken = _messages.StringField(5) project = _messages.StringField(6, required=True) region = _messages.StringField(7, required=True) regionInstanceGroupsListInstancesRequest = _messages.MessageField('RegionInstanceGroupsListInstancesRequest', 8) class ComputeRegionInstanceGroupsListRequest(_messages.Message): r"""A ComputeRegionInstanceGroupsListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: Name of the region scoping this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) region = _messages.StringField(6, required=True) class ComputeRegionInstanceGroupsSetNamedPortsRequest(_messages.Message): r"""A ComputeRegionInstanceGroupsSetNamedPortsRequest object. Fields: instanceGroup: The name of the regional instance group where the named ports are updated. project: Project ID for this request. region: Name of the region scoping this request. regionInstanceGroupsSetNamedPortsRequest: A RegionInstanceGroupsSetNamedPortsRequest resource to be passed as the request body. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). """ instanceGroup = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) regionInstanceGroupsSetNamedPortsRequest = _messages.MessageField('RegionInstanceGroupsSetNamedPortsRequest', 4) requestId = _messages.StringField(5) class ComputeRegionOperationsDeleteRequest(_messages.Message): r"""A ComputeRegionOperationsDeleteRequest object. Fields: operation: Name of the Operations resource to delete. project: Project ID for this request. region: Name of the region for this request. """ operation = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) class ComputeRegionOperationsDeleteResponse(_messages.Message): r"""An empty ComputeRegionOperationsDelete response.""" class ComputeRegionOperationsGetRequest(_messages.Message): r"""A ComputeRegionOperationsGetRequest object. Fields: operation: Name of the Operations resource to return. project: Project ID for this request. region: Name of the region for this request. """ operation = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) class ComputeRegionOperationsListRequest(_messages.Message): r"""A ComputeRegionOperationsListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: Name of the region for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) region = _messages.StringField(6, required=True) class ComputeRegionsGetRequest(_messages.Message): r"""A ComputeRegionsGetRequest object. Fields: project: Project ID for this request. region: Name of the region resource to return. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) class ComputeRegionsListRequest(_messages.Message): r"""A ComputeRegionsListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeReservationsAggregatedListRequest(_messages.Message): r"""A ComputeReservationsAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeReservationsDeleteRequest(_messages.Message): r"""A ComputeReservationsDeleteRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). reservation: Name of the reservation to delete. zone: Name of the zone for this request. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) reservation = _messages.StringField(3, required=True) zone = _messages.StringField(4, required=True) class ComputeReservationsGetIamPolicyRequest(_messages.Message): r"""A ComputeReservationsGetIamPolicyRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. zone: The name of the zone for this request. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) class ComputeReservationsGetRequest(_messages.Message): r"""A ComputeReservationsGetRequest object. Fields: project: Project ID for this request. reservation: Name of the reservation to retrieve. zone: Name of the zone for this request. """ project = _messages.StringField(1, required=True) reservation = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) class ComputeReservationsInsertRequest(_messages.Message): r"""A ComputeReservationsInsertRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). reservation: A Reservation resource to be passed as the request body. zone: Name of the zone for this request. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) reservation = _messages.MessageField('Reservation', 3) zone = _messages.StringField(4, required=True) class ComputeReservationsListRequest(_messages.Message): r"""A ComputeReservationsListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. zone: Name of the zone for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) zone = _messages.StringField(6, required=True) class ComputeReservationsResizeRequest(_messages.Message): r"""A ComputeReservationsResizeRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). reservation: Name of the reservation to update. reservationsResizeRequest: A ReservationsResizeRequest resource to be passed as the request body. zone: Name of the zone for this request. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) reservation = _messages.StringField(3, required=True) reservationsResizeRequest = _messages.MessageField('ReservationsResizeRequest', 4) zone = _messages.StringField(5, required=True) class ComputeReservationsSetIamPolicyRequest(_messages.Message): r"""A ComputeReservationsSetIamPolicyRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. zone: The name of the zone for this request. zoneSetPolicyRequest: A ZoneSetPolicyRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) zoneSetPolicyRequest = _messages.MessageField('ZoneSetPolicyRequest', 4) class ComputeReservationsTestIamPermissionsRequest(_messages.Message): r"""A ComputeReservationsTestIamPermissionsRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. testPermissionsRequest: A TestPermissionsRequest resource to be passed as the request body. zone: The name of the zone for this request. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) testPermissionsRequest = _messages.MessageField('TestPermissionsRequest', 3) zone = _messages.StringField(4, required=True) class ComputeResourcePoliciesAggregatedListRequest(_messages.Message): r"""A ComputeResourcePoliciesAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeResourcePoliciesDeleteRequest(_messages.Message): r"""A ComputeResourcePoliciesDeleteRequest object. Fields: project: Project ID for this request. region: Name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). resourcePolicy: Name of the resource policy to delete. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) resourcePolicy = _messages.StringField(4, required=True) class ComputeResourcePoliciesGetIamPolicyRequest(_messages.Message): r"""A ComputeResourcePoliciesGetIamPolicyRequest object. Fields: project: Project ID for this request. region: The name of the region for this request. resource: Name or id of the resource for this request. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) resource = _messages.StringField(3, required=True) class ComputeResourcePoliciesGetRequest(_messages.Message): r"""A ComputeResourcePoliciesGetRequest object. Fields: project: Project ID for this request. region: Name of the region for this request. resourcePolicy: Name of the resource policy to retrieve. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) resourcePolicy = _messages.StringField(3, required=True) class ComputeResourcePoliciesInsertRequest(_messages.Message): r"""A ComputeResourcePoliciesInsertRequest object. Fields: project: Project ID for this request. region: Name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). resourcePolicy: A ResourcePolicy resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) resourcePolicy = _messages.MessageField('ResourcePolicy', 4) class ComputeResourcePoliciesListRequest(_messages.Message): r"""A ComputeResourcePoliciesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: Name of the region for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) region = _messages.StringField(6, required=True) class ComputeResourcePoliciesSetIamPolicyRequest(_messages.Message): r"""A ComputeResourcePoliciesSetIamPolicyRequest object. Fields: project: Project ID for this request. region: The name of the region for this request. regionSetPolicyRequest: A RegionSetPolicyRequest resource to be passed as the request body. resource: Name or id of the resource for this request. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) regionSetPolicyRequest = _messages.MessageField('RegionSetPolicyRequest', 3) resource = _messages.StringField(4, required=True) class ComputeResourcePoliciesTestIamPermissionsRequest(_messages.Message): r"""A ComputeResourcePoliciesTestIamPermissionsRequest object. Fields: project: Project ID for this request. region: The name of the region for this request. resource: Name or id of the resource for this request. testPermissionsRequest: A TestPermissionsRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) resource = _messages.StringField(3, required=True) testPermissionsRequest = _messages.MessageField('TestPermissionsRequest', 4) class ComputeRoutersAggregatedListRequest(_messages.Message): r"""A ComputeRoutersAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeRoutersDeleteRequest(_messages.Message): r"""A ComputeRoutersDeleteRequest object. Fields: project: Project ID for this request. region: Name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). router: Name of the Router resource to delete. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) router = _messages.StringField(4, required=True) class ComputeRoutersGetNatMappingInfoRequest(_messages.Message): r"""A ComputeRoutersGetNatMappingInfoRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: Name of the region for this request. router: Name of the Router resource to query for Nat Mapping information of VM endpoints. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) region = _messages.StringField(6, required=True) router = _messages.StringField(7, required=True) class ComputeRoutersGetRequest(_messages.Message): r"""A ComputeRoutersGetRequest object. Fields: project: Project ID for this request. region: Name of the region for this request. router: Name of the Router resource to return. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) router = _messages.StringField(3, required=True) class ComputeRoutersGetRouterStatusRequest(_messages.Message): r"""A ComputeRoutersGetRouterStatusRequest object. Fields: project: Project ID for this request. region: Name of the region for this request. router: Name of the Router resource to query. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) router = _messages.StringField(3, required=True) class ComputeRoutersInsertRequest(_messages.Message): r"""A ComputeRoutersInsertRequest object. Fields: project: Project ID for this request. region: Name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). router: A Router resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) router = _messages.MessageField('Router', 4) class ComputeRoutersListRequest(_messages.Message): r"""A ComputeRoutersListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: Name of the region for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) region = _messages.StringField(6, required=True) class ComputeRoutersPatchRequest(_messages.Message): r"""A ComputeRoutersPatchRequest object. Fields: project: Project ID for this request. region: Name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). router: Name of the Router resource to patch. routerResource: A Router resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) router = _messages.StringField(4, required=True) routerResource = _messages.MessageField('Router', 5) class ComputeRoutersPreviewRequest(_messages.Message): r"""A ComputeRoutersPreviewRequest object. Fields: project: Project ID for this request. region: Name of the region for this request. router: Name of the Router resource to query. routerResource: A Router resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) router = _messages.StringField(3, required=True) routerResource = _messages.MessageField('Router', 4) class ComputeRoutersUpdateRequest(_messages.Message): r"""A ComputeRoutersUpdateRequest object. Fields: project: Project ID for this request. region: Name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). router: Name of the Router resource to update. routerResource: A Router resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) router = _messages.StringField(4, required=True) routerResource = _messages.MessageField('Router', 5) class ComputeRoutesDeleteRequest(_messages.Message): r"""A ComputeRoutesDeleteRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). route: Name of the Route resource to delete. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) route = _messages.StringField(3, required=True) class ComputeRoutesGetRequest(_messages.Message): r"""A ComputeRoutesGetRequest object. Fields: project: Project ID for this request. route: Name of the Route resource to return. """ project = _messages.StringField(1, required=True) route = _messages.StringField(2, required=True) class ComputeRoutesInsertRequest(_messages.Message): r"""A ComputeRoutesInsertRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). route: A Route resource to be passed as the request body. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) route = _messages.MessageField('Route', 3) class ComputeRoutesListRequest(_messages.Message): r"""A ComputeRoutesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeSecurityPoliciesAddRuleRequest(_messages.Message): r"""A ComputeSecurityPoliciesAddRuleRequest object. Fields: project: Project ID for this request. securityPolicy: Name of the security policy to update. securityPolicyRule: A SecurityPolicyRule resource to be passed as the request body. """ project = _messages.StringField(1, required=True) securityPolicy = _messages.StringField(2, required=True) securityPolicyRule = _messages.MessageField('SecurityPolicyRule', 3) class ComputeSecurityPoliciesDeleteRequest(_messages.Message): r"""A ComputeSecurityPoliciesDeleteRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). securityPolicy: Name of the security policy to delete. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) securityPolicy = _messages.StringField(3, required=True) class ComputeSecurityPoliciesGetRequest(_messages.Message): r"""A ComputeSecurityPoliciesGetRequest object. Fields: project: Project ID for this request. securityPolicy: Name of the security policy to get. """ project = _messages.StringField(1, required=True) securityPolicy = _messages.StringField(2, required=True) class ComputeSecurityPoliciesGetRuleRequest(_messages.Message): r"""A ComputeSecurityPoliciesGetRuleRequest object. Fields: priority: The priority of the rule to get from the security policy. project: Project ID for this request. securityPolicy: Name of the security policy to which the queried rule belongs. """ priority = _messages.IntegerField(1, variant=_messages.Variant.INT32) project = _messages.StringField(2, required=True) securityPolicy = _messages.StringField(3, required=True) class ComputeSecurityPoliciesInsertRequest(_messages.Message): r"""A ComputeSecurityPoliciesInsertRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). securityPolicy: A SecurityPolicy resource to be passed as the request body. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) securityPolicy = _messages.MessageField('SecurityPolicy', 3) class ComputeSecurityPoliciesListRequest(_messages.Message): r"""A ComputeSecurityPoliciesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeSecurityPoliciesPatchRequest(_messages.Message): r"""A ComputeSecurityPoliciesPatchRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). securityPolicy: Name of the security policy to update. securityPolicyResource: A SecurityPolicy resource to be passed as the request body. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) securityPolicy = _messages.StringField(3, required=True) securityPolicyResource = _messages.MessageField('SecurityPolicy', 4) class ComputeSecurityPoliciesPatchRuleRequest(_messages.Message): r"""A ComputeSecurityPoliciesPatchRuleRequest object. Fields: priority: The priority of the rule to patch. project: Project ID for this request. securityPolicy: Name of the security policy to update. securityPolicyRule: A SecurityPolicyRule resource to be passed as the request body. """ priority = _messages.IntegerField(1, variant=_messages.Variant.INT32) project = _messages.StringField(2, required=True) securityPolicy = _messages.StringField(3, required=True) securityPolicyRule = _messages.MessageField('SecurityPolicyRule', 4) class ComputeSecurityPoliciesRemoveRuleRequest(_messages.Message): r"""A ComputeSecurityPoliciesRemoveRuleRequest object. Fields: priority: The priority of the rule to remove from the security policy. project: Project ID for this request. securityPolicy: Name of the security policy to update. """ priority = _messages.IntegerField(1, variant=_messages.Variant.INT32) project = _messages.StringField(2, required=True) securityPolicy = _messages.StringField(3, required=True) class ComputeSnapshotsDeleteRequest(_messages.Message): r"""A ComputeSnapshotsDeleteRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). snapshot: Name of the Snapshot resource to delete. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) snapshot = _messages.StringField(3, required=True) class ComputeSnapshotsGetIamPolicyRequest(_messages.Message): r"""A ComputeSnapshotsGetIamPolicyRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) class ComputeSnapshotsGetRequest(_messages.Message): r"""A ComputeSnapshotsGetRequest object. Fields: project: Project ID for this request. snapshot: Name of the Snapshot resource to return. """ project = _messages.StringField(1, required=True) snapshot = _messages.StringField(2, required=True) class ComputeSnapshotsListRequest(_messages.Message): r"""A ComputeSnapshotsListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeSnapshotsSetIamPolicyRequest(_messages.Message): r"""A ComputeSnapshotsSetIamPolicyRequest object. Fields: globalSetPolicyRequest: A GlobalSetPolicyRequest resource to be passed as the request body. project: Project ID for this request. resource: Name or id of the resource for this request. """ globalSetPolicyRequest = _messages.MessageField('GlobalSetPolicyRequest', 1) project = _messages.StringField(2, required=True) resource = _messages.StringField(3, required=True) class ComputeSnapshotsSetLabelsRequest(_messages.Message): r"""A ComputeSnapshotsSetLabelsRequest object. Fields: globalSetLabelsRequest: A GlobalSetLabelsRequest resource to be passed as the request body. project: Project ID for this request. resource: Name or id of the resource for this request. """ globalSetLabelsRequest = _messages.MessageField('GlobalSetLabelsRequest', 1) project = _messages.StringField(2, required=True) resource = _messages.StringField(3, required=True) class ComputeSnapshotsTestIamPermissionsRequest(_messages.Message): r"""A ComputeSnapshotsTestIamPermissionsRequest object. Fields: project: Project ID for this request. resource: Name or id of the resource for this request. testPermissionsRequest: A TestPermissionsRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) resource = _messages.StringField(2, required=True) testPermissionsRequest = _messages.MessageField('TestPermissionsRequest', 3) class ComputeSslCertificatesDeleteRequest(_messages.Message): r"""A ComputeSslCertificatesDeleteRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). sslCertificate: Name of the SslCertificate resource to delete. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) sslCertificate = _messages.StringField(3, required=True) class ComputeSslCertificatesGetRequest(_messages.Message): r"""A ComputeSslCertificatesGetRequest object. Fields: project: Project ID for this request. sslCertificate: Name of the SslCertificate resource to return. """ project = _messages.StringField(1, required=True) sslCertificate = _messages.StringField(2, required=True) class ComputeSslCertificatesInsertRequest(_messages.Message): r"""A ComputeSslCertificatesInsertRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). sslCertificate: A SslCertificate resource to be passed as the request body. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) sslCertificate = _messages.MessageField('SslCertificate', 3) class ComputeSslCertificatesListRequest(_messages.Message): r"""A ComputeSslCertificatesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeSslPoliciesDeleteRequest(_messages.Message): r"""A ComputeSslPoliciesDeleteRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). sslPolicy: Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) sslPolicy = _messages.StringField(3, required=True) class ComputeSslPoliciesGetRequest(_messages.Message): r"""A ComputeSslPoliciesGetRequest object. Fields: project: Project ID for this request. sslPolicy: Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. """ project = _messages.StringField(1, required=True) sslPolicy = _messages.StringField(2, required=True) class ComputeSslPoliciesInsertRequest(_messages.Message): r"""A ComputeSslPoliciesInsertRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). sslPolicy: A SslPolicy resource to be passed as the request body. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) sslPolicy = _messages.MessageField('SslPolicy', 3) class ComputeSslPoliciesListAvailableFeaturesRequest(_messages.Message): r"""A ComputeSslPoliciesListAvailableFeaturesRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeSslPoliciesListRequest(_messages.Message): r"""A ComputeSslPoliciesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeSslPoliciesPatchRequest(_messages.Message): r"""A ComputeSslPoliciesPatchRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). sslPolicy: Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. sslPolicyResource: A SslPolicy resource to be passed as the request body. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) sslPolicy = _messages.StringField(3, required=True) sslPolicyResource = _messages.MessageField('SslPolicy', 4) class ComputeSubnetworksAggregatedListRequest(_messages.Message): r"""A ComputeSubnetworksAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeSubnetworksDeleteRequest(_messages.Message): r"""A ComputeSubnetworksDeleteRequest object. Fields: project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). subnetwork: Name of the Subnetwork resource to delete. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) subnetwork = _messages.StringField(4, required=True) class ComputeSubnetworksExpandIpCidrRangeRequest(_messages.Message): r"""A ComputeSubnetworksExpandIpCidrRangeRequest object. Fields: project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). subnetwork: Name of the Subnetwork resource to update. subnetworksExpandIpCidrRangeRequest: A SubnetworksExpandIpCidrRangeRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) subnetwork = _messages.StringField(4, required=True) subnetworksExpandIpCidrRangeRequest = _messages.MessageField('SubnetworksExpandIpCidrRangeRequest', 5) class ComputeSubnetworksGetIamPolicyRequest(_messages.Message): r"""A ComputeSubnetworksGetIamPolicyRequest object. Fields: project: Project ID for this request. region: The name of the region for this request. resource: Name or id of the resource for this request. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) resource = _messages.StringField(3, required=True) class ComputeSubnetworksGetRequest(_messages.Message): r"""A ComputeSubnetworksGetRequest object. Fields: project: Project ID for this request. region: Name of the region scoping this request. subnetwork: Name of the Subnetwork resource to return. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) subnetwork = _messages.StringField(3, required=True) class ComputeSubnetworksInsertRequest(_messages.Message): r"""A ComputeSubnetworksInsertRequest object. Fields: project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). subnetwork: A Subnetwork resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) subnetwork = _messages.MessageField('Subnetwork', 4) class ComputeSubnetworksListRequest(_messages.Message): r"""A ComputeSubnetworksListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: Name of the region scoping this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) region = _messages.StringField(6, required=True) class ComputeSubnetworksListUsableRequest(_messages.Message): r"""A ComputeSubnetworksListUsableRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeSubnetworksPatchRequest(_messages.Message): r"""A ComputeSubnetworksPatchRequest object. Fields: project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). subnetwork: Name of the Subnetwork resource to patch. subnetworkResource: A Subnetwork resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) subnetwork = _messages.StringField(4, required=True) subnetworkResource = _messages.MessageField('Subnetwork', 5) class ComputeSubnetworksSetIamPolicyRequest(_messages.Message): r"""A ComputeSubnetworksSetIamPolicyRequest object. Fields: project: Project ID for this request. region: The name of the region for this request. regionSetPolicyRequest: A RegionSetPolicyRequest resource to be passed as the request body. resource: Name or id of the resource for this request. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) regionSetPolicyRequest = _messages.MessageField('RegionSetPolicyRequest', 3) resource = _messages.StringField(4, required=True) class ComputeSubnetworksSetPrivateIpGoogleAccessRequest(_messages.Message): r"""A ComputeSubnetworksSetPrivateIpGoogleAccessRequest object. Fields: project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). subnetwork: Name of the Subnetwork resource. subnetworksSetPrivateIpGoogleAccessRequest: A SubnetworksSetPrivateIpGoogleAccessRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) subnetwork = _messages.StringField(4, required=True) subnetworksSetPrivateIpGoogleAccessRequest = _messages.MessageField('SubnetworksSetPrivateIpGoogleAccessRequest', 5) class ComputeSubnetworksTestIamPermissionsRequest(_messages.Message): r"""A ComputeSubnetworksTestIamPermissionsRequest object. Fields: project: Project ID for this request. region: The name of the region for this request. resource: Name or id of the resource for this request. testPermissionsRequest: A TestPermissionsRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) resource = _messages.StringField(3, required=True) testPermissionsRequest = _messages.MessageField('TestPermissionsRequest', 4) class ComputeTargetHttpProxiesDeleteRequest(_messages.Message): r"""A ComputeTargetHttpProxiesDeleteRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetHttpProxy: Name of the TargetHttpProxy resource to delete. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) targetHttpProxy = _messages.StringField(3, required=True) class ComputeTargetHttpProxiesGetRequest(_messages.Message): r"""A ComputeTargetHttpProxiesGetRequest object. Fields: project: Project ID for this request. targetHttpProxy: Name of the TargetHttpProxy resource to return. """ project = _messages.StringField(1, required=True) targetHttpProxy = _messages.StringField(2, required=True) class ComputeTargetHttpProxiesInsertRequest(_messages.Message): r"""A ComputeTargetHttpProxiesInsertRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetHttpProxy: A TargetHttpProxy resource to be passed as the request body. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) targetHttpProxy = _messages.MessageField('TargetHttpProxy', 3) class ComputeTargetHttpProxiesListRequest(_messages.Message): r"""A ComputeTargetHttpProxiesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeTargetHttpProxiesSetUrlMapRequest(_messages.Message): r"""A ComputeTargetHttpProxiesSetUrlMapRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetHttpProxy: Name of the TargetHttpProxy to set a URL map for. urlMapReference: A UrlMapReference resource to be passed as the request body. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) targetHttpProxy = _messages.StringField(3, required=True) urlMapReference = _messages.MessageField('UrlMapReference', 4) class ComputeTargetHttpsProxiesDeleteRequest(_messages.Message): r"""A ComputeTargetHttpsProxiesDeleteRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetHttpsProxy: Name of the TargetHttpsProxy resource to delete. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) targetHttpsProxy = _messages.StringField(3, required=True) class ComputeTargetHttpsProxiesGetRequest(_messages.Message): r"""A ComputeTargetHttpsProxiesGetRequest object. Fields: project: Project ID for this request. targetHttpsProxy: Name of the TargetHttpsProxy resource to return. """ project = _messages.StringField(1, required=True) targetHttpsProxy = _messages.StringField(2, required=True) class ComputeTargetHttpsProxiesInsertRequest(_messages.Message): r"""A ComputeTargetHttpsProxiesInsertRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetHttpsProxy: A TargetHttpsProxy resource to be passed as the request body. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) targetHttpsProxy = _messages.MessageField('TargetHttpsProxy', 3) class ComputeTargetHttpsProxiesListRequest(_messages.Message): r"""A ComputeTargetHttpsProxiesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeTargetHttpsProxiesSetQuicOverrideRequest(_messages.Message): r"""A ComputeTargetHttpsProxiesSetQuicOverrideRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetHttpsProxiesSetQuicOverrideRequest: A TargetHttpsProxiesSetQuicOverrideRequest resource to be passed as the request body. targetHttpsProxy: Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should conform to RFC1035. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) targetHttpsProxiesSetQuicOverrideRequest = _messages.MessageField('TargetHttpsProxiesSetQuicOverrideRequest', 3) targetHttpsProxy = _messages.StringField(4, required=True) class ComputeTargetHttpsProxiesSetSslCertificatesRequest(_messages.Message): r"""A ComputeTargetHttpsProxiesSetSslCertificatesRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetHttpsProxiesSetSslCertificatesRequest: A TargetHttpsProxiesSetSslCertificatesRequest resource to be passed as the request body. targetHttpsProxy: Name of the TargetHttpsProxy resource to set an SslCertificates resource for. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) targetHttpsProxiesSetSslCertificatesRequest = _messages.MessageField('TargetHttpsProxiesSetSslCertificatesRequest', 3) targetHttpsProxy = _messages.StringField(4, required=True) class ComputeTargetHttpsProxiesSetSslPolicyRequest(_messages.Message): r"""A ComputeTargetHttpsProxiesSetSslPolicyRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). sslPolicyReference: A SslPolicyReference resource to be passed as the request body. targetHttpsProxy: Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) sslPolicyReference = _messages.MessageField('SslPolicyReference', 3) targetHttpsProxy = _messages.StringField(4, required=True) class ComputeTargetHttpsProxiesSetUrlMapRequest(_messages.Message): r"""A ComputeTargetHttpsProxiesSetUrlMapRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetHttpsProxy: Name of the TargetHttpsProxy resource whose URL map is to be set. urlMapReference: A UrlMapReference resource to be passed as the request body. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) targetHttpsProxy = _messages.StringField(3, required=True) urlMapReference = _messages.MessageField('UrlMapReference', 4) class ComputeTargetInstancesAggregatedListRequest(_messages.Message): r"""A ComputeTargetInstancesAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeTargetInstancesDeleteRequest(_messages.Message): r"""A ComputeTargetInstancesDeleteRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetInstance: Name of the TargetInstance resource to delete. zone: Name of the zone scoping this request. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) targetInstance = _messages.StringField(3, required=True) zone = _messages.StringField(4, required=True) class ComputeTargetInstancesGetRequest(_messages.Message): r"""A ComputeTargetInstancesGetRequest object. Fields: project: Project ID for this request. targetInstance: Name of the TargetInstance resource to return. zone: Name of the zone scoping this request. """ project = _messages.StringField(1, required=True) targetInstance = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) class ComputeTargetInstancesInsertRequest(_messages.Message): r"""A ComputeTargetInstancesInsertRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetInstance: A TargetInstance resource to be passed as the request body. zone: Name of the zone scoping this request. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) targetInstance = _messages.MessageField('TargetInstance', 3) zone = _messages.StringField(4, required=True) class ComputeTargetInstancesListRequest(_messages.Message): r"""A ComputeTargetInstancesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. zone: Name of the zone scoping this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) zone = _messages.StringField(6, required=True) class ComputeTargetPoolsAddHealthCheckRequest(_messages.Message): r"""A ComputeTargetPoolsAddHealthCheckRequest object. Fields: project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetPool: Name of the target pool to add a health check to. targetPoolsAddHealthCheckRequest: A TargetPoolsAddHealthCheckRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) targetPool = _messages.StringField(4, required=True) targetPoolsAddHealthCheckRequest = _messages.MessageField('TargetPoolsAddHealthCheckRequest', 5) class ComputeTargetPoolsAddInstanceRequest(_messages.Message): r"""A ComputeTargetPoolsAddInstanceRequest object. Fields: project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetPool: Name of the TargetPool resource to add instances to. targetPoolsAddInstanceRequest: A TargetPoolsAddInstanceRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) targetPool = _messages.StringField(4, required=True) targetPoolsAddInstanceRequest = _messages.MessageField('TargetPoolsAddInstanceRequest', 5) class ComputeTargetPoolsAggregatedListRequest(_messages.Message): r"""A ComputeTargetPoolsAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeTargetPoolsDeleteRequest(_messages.Message): r"""A ComputeTargetPoolsDeleteRequest object. Fields: project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetPool: Name of the TargetPool resource to delete. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) targetPool = _messages.StringField(4, required=True) class ComputeTargetPoolsGetHealthRequest(_messages.Message): r"""A ComputeTargetPoolsGetHealthRequest object. Fields: instanceReference: A InstanceReference resource to be passed as the request body. project: Project ID for this request. region: Name of the region scoping this request. targetPool: Name of the TargetPool resource to which the queried instance belongs. """ instanceReference = _messages.MessageField('InstanceReference', 1) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) targetPool = _messages.StringField(4, required=True) class ComputeTargetPoolsGetRequest(_messages.Message): r"""A ComputeTargetPoolsGetRequest object. Fields: project: Project ID for this request. region: Name of the region scoping this request. targetPool: Name of the TargetPool resource to return. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) targetPool = _messages.StringField(3, required=True) class ComputeTargetPoolsInsertRequest(_messages.Message): r"""A ComputeTargetPoolsInsertRequest object. Fields: project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetPool: A TargetPool resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) targetPool = _messages.MessageField('TargetPool', 4) class ComputeTargetPoolsListRequest(_messages.Message): r"""A ComputeTargetPoolsListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: Name of the region scoping this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) region = _messages.StringField(6, required=True) class ComputeTargetPoolsRemoveHealthCheckRequest(_messages.Message): r"""A ComputeTargetPoolsRemoveHealthCheckRequest object. Fields: project: Project ID for this request. region: Name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetPool: Name of the target pool to remove health checks from. targetPoolsRemoveHealthCheckRequest: A TargetPoolsRemoveHealthCheckRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) targetPool = _messages.StringField(4, required=True) targetPoolsRemoveHealthCheckRequest = _messages.MessageField('TargetPoolsRemoveHealthCheckRequest', 5) class ComputeTargetPoolsRemoveInstanceRequest(_messages.Message): r"""A ComputeTargetPoolsRemoveInstanceRequest object. Fields: project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetPool: Name of the TargetPool resource to remove instances from. targetPoolsRemoveInstanceRequest: A TargetPoolsRemoveInstanceRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) targetPool = _messages.StringField(4, required=True) targetPoolsRemoveInstanceRequest = _messages.MessageField('TargetPoolsRemoveInstanceRequest', 5) class ComputeTargetPoolsSetBackupRequest(_messages.Message): r"""A ComputeTargetPoolsSetBackupRequest object. Fields: failoverRatio: New failoverRatio value for the target pool. project: Project ID for this request. region: Name of the region scoping this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetPool: Name of the TargetPool resource to set a backup pool for. targetReference: A TargetReference resource to be passed as the request body. """ failoverRatio = _messages.FloatField(1, variant=_messages.Variant.FLOAT) project = _messages.StringField(2, required=True) region = _messages.StringField(3, required=True) requestId = _messages.StringField(4) targetPool = _messages.StringField(5, required=True) targetReference = _messages.MessageField('TargetReference', 6) class ComputeTargetSslProxiesDeleteRequest(_messages.Message): r"""A ComputeTargetSslProxiesDeleteRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetSslProxy: Name of the TargetSslProxy resource to delete. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) targetSslProxy = _messages.StringField(3, required=True) class ComputeTargetSslProxiesGetRequest(_messages.Message): r"""A ComputeTargetSslProxiesGetRequest object. Fields: project: Project ID for this request. targetSslProxy: Name of the TargetSslProxy resource to return. """ project = _messages.StringField(1, required=True) targetSslProxy = _messages.StringField(2, required=True) class ComputeTargetSslProxiesInsertRequest(_messages.Message): r"""A ComputeTargetSslProxiesInsertRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetSslProxy: A TargetSslProxy resource to be passed as the request body. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) targetSslProxy = _messages.MessageField('TargetSslProxy', 3) class ComputeTargetSslProxiesListRequest(_messages.Message): r"""A ComputeTargetSslProxiesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeTargetSslProxiesSetBackendServiceRequest(_messages.Message): r"""A ComputeTargetSslProxiesSetBackendServiceRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetSslProxiesSetBackendServiceRequest: A TargetSslProxiesSetBackendServiceRequest resource to be passed as the request body. targetSslProxy: Name of the TargetSslProxy resource whose BackendService resource is to be set. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) targetSslProxiesSetBackendServiceRequest = _messages.MessageField('TargetSslProxiesSetBackendServiceRequest', 3) targetSslProxy = _messages.StringField(4, required=True) class ComputeTargetSslProxiesSetProxyHeaderRequest(_messages.Message): r"""A ComputeTargetSslProxiesSetProxyHeaderRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetSslProxiesSetProxyHeaderRequest: A TargetSslProxiesSetProxyHeaderRequest resource to be passed as the request body. targetSslProxy: Name of the TargetSslProxy resource whose ProxyHeader is to be set. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) targetSslProxiesSetProxyHeaderRequest = _messages.MessageField('TargetSslProxiesSetProxyHeaderRequest', 3) targetSslProxy = _messages.StringField(4, required=True) class ComputeTargetSslProxiesSetSslCertificatesRequest(_messages.Message): r"""A ComputeTargetSslProxiesSetSslCertificatesRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetSslProxiesSetSslCertificatesRequest: A TargetSslProxiesSetSslCertificatesRequest resource to be passed as the request body. targetSslProxy: Name of the TargetSslProxy resource whose SslCertificate resource is to be set. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) targetSslProxiesSetSslCertificatesRequest = _messages.MessageField('TargetSslProxiesSetSslCertificatesRequest', 3) targetSslProxy = _messages.StringField(4, required=True) class ComputeTargetSslProxiesSetSslPolicyRequest(_messages.Message): r"""A ComputeTargetSslProxiesSetSslPolicyRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). sslPolicyReference: A SslPolicyReference resource to be passed as the request body. targetSslProxy: Name of the TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) sslPolicyReference = _messages.MessageField('SslPolicyReference', 3) targetSslProxy = _messages.StringField(4, required=True) class ComputeTargetTcpProxiesDeleteRequest(_messages.Message): r"""A ComputeTargetTcpProxiesDeleteRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetTcpProxy: Name of the TargetTcpProxy resource to delete. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) targetTcpProxy = _messages.StringField(3, required=True) class ComputeTargetTcpProxiesGetRequest(_messages.Message): r"""A ComputeTargetTcpProxiesGetRequest object. Fields: project: Project ID for this request. targetTcpProxy: Name of the TargetTcpProxy resource to return. """ project = _messages.StringField(1, required=True) targetTcpProxy = _messages.StringField(2, required=True) class ComputeTargetTcpProxiesInsertRequest(_messages.Message): r"""A ComputeTargetTcpProxiesInsertRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetTcpProxy: A TargetTcpProxy resource to be passed as the request body. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) targetTcpProxy = _messages.MessageField('TargetTcpProxy', 3) class ComputeTargetTcpProxiesListRequest(_messages.Message): r"""A ComputeTargetTcpProxiesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeTargetTcpProxiesSetBackendServiceRequest(_messages.Message): r"""A ComputeTargetTcpProxiesSetBackendServiceRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetTcpProxiesSetBackendServiceRequest: A TargetTcpProxiesSetBackendServiceRequest resource to be passed as the request body. targetTcpProxy: Name of the TargetTcpProxy resource whose BackendService resource is to be set. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) targetTcpProxiesSetBackendServiceRequest = _messages.MessageField('TargetTcpProxiesSetBackendServiceRequest', 3) targetTcpProxy = _messages.StringField(4, required=True) class ComputeTargetTcpProxiesSetProxyHeaderRequest(_messages.Message): r"""A ComputeTargetTcpProxiesSetProxyHeaderRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetTcpProxiesSetProxyHeaderRequest: A TargetTcpProxiesSetProxyHeaderRequest resource to be passed as the request body. targetTcpProxy: Name of the TargetTcpProxy resource whose ProxyHeader is to be set. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) targetTcpProxiesSetProxyHeaderRequest = _messages.MessageField('TargetTcpProxiesSetProxyHeaderRequest', 3) targetTcpProxy = _messages.StringField(4, required=True) class ComputeTargetVpnGatewaysAggregatedListRequest(_messages.Message): r"""A ComputeTargetVpnGatewaysAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeTargetVpnGatewaysDeleteRequest(_messages.Message): r"""A ComputeTargetVpnGatewaysDeleteRequest object. Fields: project: Project ID for this request. region: Name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetVpnGateway: Name of the target VPN gateway to delete. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) targetVpnGateway = _messages.StringField(4, required=True) class ComputeTargetVpnGatewaysGetRequest(_messages.Message): r"""A ComputeTargetVpnGatewaysGetRequest object. Fields: project: Project ID for this request. region: Name of the region for this request. targetVpnGateway: Name of the target VPN gateway to return. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) targetVpnGateway = _messages.StringField(3, required=True) class ComputeTargetVpnGatewaysInsertRequest(_messages.Message): r"""A ComputeTargetVpnGatewaysInsertRequest object. Fields: project: Project ID for this request. region: Name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). targetVpnGateway: A TargetVpnGateway resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) targetVpnGateway = _messages.MessageField('TargetVpnGateway', 4) class ComputeTargetVpnGatewaysListRequest(_messages.Message): r"""A ComputeTargetVpnGatewaysListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: Name of the region for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) region = _messages.StringField(6, required=True) class ComputeUrlMapsDeleteRequest(_messages.Message): r"""A ComputeUrlMapsDeleteRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). urlMap: Name of the UrlMap resource to delete. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) urlMap = _messages.StringField(3, required=True) class ComputeUrlMapsGetRequest(_messages.Message): r"""A ComputeUrlMapsGetRequest object. Fields: project: Project ID for this request. urlMap: Name of the UrlMap resource to return. """ project = _messages.StringField(1, required=True) urlMap = _messages.StringField(2, required=True) class ComputeUrlMapsInsertRequest(_messages.Message): r"""A ComputeUrlMapsInsertRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). urlMap: A UrlMap resource to be passed as the request body. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) urlMap = _messages.MessageField('UrlMap', 3) class ComputeUrlMapsInvalidateCacheRequest(_messages.Message): r"""A ComputeUrlMapsInvalidateCacheRequest object. Fields: cacheInvalidationRule: A CacheInvalidationRule resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). urlMap: Name of the UrlMap scoping this request. """ cacheInvalidationRule = _messages.MessageField('CacheInvalidationRule', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) urlMap = _messages.StringField(4, required=True) class ComputeUrlMapsListRequest(_messages.Message): r"""A ComputeUrlMapsListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeUrlMapsPatchRequest(_messages.Message): r"""A ComputeUrlMapsPatchRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). urlMap: Name of the UrlMap resource to patch. urlMapResource: A UrlMap resource to be passed as the request body. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) urlMap = _messages.StringField(3, required=True) urlMapResource = _messages.MessageField('UrlMap', 4) class ComputeUrlMapsUpdateRequest(_messages.Message): r"""A ComputeUrlMapsUpdateRequest object. Fields: project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). urlMap: Name of the UrlMap resource to update. urlMapResource: A UrlMap resource to be passed as the request body. """ project = _messages.StringField(1, required=True) requestId = _messages.StringField(2) urlMap = _messages.StringField(3, required=True) urlMapResource = _messages.MessageField('UrlMap', 4) class ComputeUrlMapsValidateRequest(_messages.Message): r"""A ComputeUrlMapsValidateRequest object. Fields: project: Project ID for this request. urlMap: Name of the UrlMap resource to be validated as. urlMapsValidateRequest: A UrlMapsValidateRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) urlMap = _messages.StringField(2, required=True) urlMapsValidateRequest = _messages.MessageField('UrlMapsValidateRequest', 3) class ComputeVpnGatewaysAggregatedListRequest(_messages.Message): r"""A ComputeVpnGatewaysAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeVpnGatewaysDeleteRequest(_messages.Message): r"""A ComputeVpnGatewaysDeleteRequest object. Fields: project: Project ID for this request. region: Name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). vpnGateway: Name of the VPN gateway to delete. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) vpnGateway = _messages.StringField(4, required=True) class ComputeVpnGatewaysGetRequest(_messages.Message): r"""A ComputeVpnGatewaysGetRequest object. Fields: project: Project ID for this request. region: Name of the region for this request. vpnGateway: Name of the VPN gateway to return. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) vpnGateway = _messages.StringField(3, required=True) class ComputeVpnGatewaysGetStatusRequest(_messages.Message): r"""A ComputeVpnGatewaysGetStatusRequest object. Fields: project: Project ID for this request. region: Name of the region for this request. vpnGateway: Name of the VPN gateway to return. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) vpnGateway = _messages.StringField(3, required=True) class ComputeVpnGatewaysInsertRequest(_messages.Message): r"""A ComputeVpnGatewaysInsertRequest object. Fields: project: Project ID for this request. region: Name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). vpnGateway: A VpnGateway resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) vpnGateway = _messages.MessageField('VpnGateway', 4) class ComputeVpnGatewaysListRequest(_messages.Message): r"""A ComputeVpnGatewaysListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: Name of the region for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) region = _messages.StringField(6, required=True) class ComputeVpnGatewaysSetLabelsRequest(_messages.Message): r"""A ComputeVpnGatewaysSetLabelsRequest object. Fields: project: Project ID for this request. region: The region for this request. regionSetLabelsRequest: A RegionSetLabelsRequest resource to be passed as the request body. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). resource: Name or id of the resource for this request. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) regionSetLabelsRequest = _messages.MessageField('RegionSetLabelsRequest', 3) requestId = _messages.StringField(4) resource = _messages.StringField(5, required=True) class ComputeVpnGatewaysTestIamPermissionsRequest(_messages.Message): r"""A ComputeVpnGatewaysTestIamPermissionsRequest object. Fields: project: Project ID for this request. region: The name of the region for this request. resource: Name or id of the resource for this request. testPermissionsRequest: A TestPermissionsRequest resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) resource = _messages.StringField(3, required=True) testPermissionsRequest = _messages.MessageField('TestPermissionsRequest', 4) class ComputeVpnTunnelsAggregatedListRequest(_messages.Message): r"""A ComputeVpnTunnelsAggregatedListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class ComputeVpnTunnelsDeleteRequest(_messages.Message): r"""A ComputeVpnTunnelsDeleteRequest object. Fields: project: Project ID for this request. region: Name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). vpnTunnel: Name of the VpnTunnel resource to delete. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) vpnTunnel = _messages.StringField(4, required=True) class ComputeVpnTunnelsGetRequest(_messages.Message): r"""A ComputeVpnTunnelsGetRequest object. Fields: project: Project ID for this request. region: Name of the region for this request. vpnTunnel: Name of the VpnTunnel resource to return. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) vpnTunnel = _messages.StringField(3, required=True) class ComputeVpnTunnelsInsertRequest(_messages.Message): r"""A ComputeVpnTunnelsInsertRequest object. Fields: project: Project ID for this request. region: Name of the region for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). vpnTunnel: A VpnTunnel resource to be passed as the request body. """ project = _messages.StringField(1, required=True) region = _messages.StringField(2, required=True) requestId = _messages.StringField(3) vpnTunnel = _messages.MessageField('VpnTunnel', 4) class ComputeVpnTunnelsListRequest(_messages.Message): r"""A ComputeVpnTunnelsListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. region: Name of the region for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) region = _messages.StringField(6, required=True) class ComputeZoneOperationsDeleteRequest(_messages.Message): r"""A ComputeZoneOperationsDeleteRequest object. Fields: operation: Name of the Operations resource to delete. project: Project ID for this request. zone: Name of the zone for this request. """ operation = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) class ComputeZoneOperationsDeleteResponse(_messages.Message): r"""An empty ComputeZoneOperationsDelete response.""" class ComputeZoneOperationsGetRequest(_messages.Message): r"""A ComputeZoneOperationsGetRequest object. Fields: operation: Name of the Operations resource to return. project: Project ID for this request. zone: Name of the zone for this request. """ operation = _messages.StringField(1, required=True) project = _messages.StringField(2, required=True) zone = _messages.StringField(3, required=True) class ComputeZoneOperationsListRequest(_messages.Message): r"""A ComputeZoneOperationsListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. zone: Name of the zone for request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) zone = _messages.StringField(6, required=True) class ComputeZonesGetRequest(_messages.Message): r"""A ComputeZonesGetRequest object. Fields: project: Project ID for this request. zone: Name of the zone resource to return. """ project = _messages.StringField(1, required=True) zone = _messages.StringField(2, required=True) class ComputeZonesListRequest(_messages.Message): r"""A ComputeZonesListRequest object. Fields: filter: 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 <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You 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. To 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). maxResults: 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) orderBy: Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by name or creationTimestamp desc is supported. pageToken: Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. project: Project ID for this request. """ filter = _messages.StringField(1) maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) orderBy = _messages.StringField(3) pageToken = _messages.StringField(4) project = _messages.StringField(5, required=True) class Condition(_messages.Message): r"""A condition to be met. Enums: IamValueValuesEnum: Trusted attributes supplied by the IAM system. OpValueValuesEnum: An operator to apply the subject with. SysValueValuesEnum: Trusted attributes supplied by any service that owns resources and uses the IAM system for access control. Fields: iam: Trusted attributes supplied by the IAM system. op: An operator to apply the subject with. svc: Trusted attributes discharged by the service. sys: Trusted attributes supplied by any service that owns resources and uses the IAM system for access control. values: The objects of the condition. """ class IamValueValuesEnum(_messages.Enum): r"""Trusted attributes supplied by the IAM system. Values: APPROVER: <no description> ATTRIBUTION: <no description> AUTHORITY: <no description> CREDENTIALS_TYPE: <no description> JUSTIFICATION_TYPE: <no description> NO_ATTR: <no description> SECURITY_REALM: <no description> """ APPROVER = 0 ATTRIBUTION = 1 AUTHORITY = 2 CREDENTIALS_TYPE = 3 JUSTIFICATION_TYPE = 4 NO_ATTR = 5 SECURITY_REALM = 6 class OpValueValuesEnum(_messages.Enum): r"""An operator to apply the subject with. Values: DISCHARGED: <no description> EQUALS: <no description> IN: <no description> NOT_EQUALS: <no description> NOT_IN: <no description> NO_OP: <no description> """ DISCHARGED = 0 EQUALS = 1 IN = 2 NOT_EQUALS = 3 NOT_IN = 4 NO_OP = 5 class SysValueValuesEnum(_messages.Enum): r"""Trusted attributes supplied by any service that owns resources and uses the IAM system for access control. Values: IP: <no description> NAME: <no description> NO_ATTR: <no description> REGION: <no description> SERVICE: <no description> """ IP = 0 NAME = 1 NO_ATTR = 2 REGION = 3 SERVICE = 4 iam = _messages.EnumField('IamValueValuesEnum', 1) op = _messages.EnumField('OpValueValuesEnum', 2) svc = _messages.StringField(3) sys = _messages.EnumField('SysValueValuesEnum', 4) values = _messages.StringField(5, repeated=True) class ConnectionDraining(_messages.Message): r"""Message containing connection draining configuration. Fields: drainingTimeoutSec: The amount of time in seconds to allow existing connections to persist while on unhealthy backend VMs. Only applicable if the protocol is not UDP. The valid range is [0, 3600]. """ drainingTimeoutSec = _messages.IntegerField(1, variant=_messages.Variant.INT32) class CustomerEncryptionKey(_messages.Message): r"""Represents a customer-supplied encryption key Fields: kmsKeyName: The name of the encryption key that is stored in Google Cloud KMS. rawKey: Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. sha256: [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. """ kmsKeyName = _messages.StringField(1) rawKey = _messages.StringField(2) sha256 = _messages.StringField(3) class CustomerEncryptionKeyProtectedDisk(_messages.Message): r"""A CustomerEncryptionKeyProtectedDisk object. Fields: diskEncryptionKey: Decrypts data associated with the disk with a customer- supplied encryption key. source: Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. """ diskEncryptionKey = _messages.MessageField('CustomerEncryptionKey', 1) source = _messages.StringField(2) class DeprecationStatus(_messages.Message): r"""Deprecation status for a public resource. Enums: StateValueValuesEnum: The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. Fields: deleted: An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it. deprecated: An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it. obsolete: An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it. replacement: The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource. state: The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. """ class StateValueValuesEnum(_messages.Enum): r"""The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. Values: ACTIVE: <no description> DELETED: <no description> DEPRECATED: <no description> OBSOLETE: <no description> """ ACTIVE = 0 DELETED = 1 DEPRECATED = 2 OBSOLETE = 3 deleted = _messages.StringField(1) deprecated = _messages.StringField(2) obsolete = _messages.StringField(3) replacement = _messages.StringField(4) state = _messages.EnumField('StateValueValuesEnum', 5) class Disk(_messages.Message): r"""Represents a Persistent Disk resource. Persistent disks are required for running your VM instances. Create both boot and non-boot (data) persistent disks. For more information, read Persistent Disks. For more storage options, read Storage options. The disks resource represents a zonal persistent disk. For more information, read Zonal persistent disks. The regionDisks resource represents a regional persistent disk. For more information, read Regional resources. (== resource_for beta.disks ==) (== resource_for v1.disks ==) (== resource_for v1.regionDisks ==) (== resource_for beta.regionDisks ==) Enums: StatusValueValuesEnum: [Output Only] The status of disk creation. CREATING: Disk is provisioning. RESTORING: Source data is being copied into the disk. FAILED: Disk creation failed. READY: Disk is ready for use. DELETING: Disk is deleting. Messages: LabelsValue: Labels to apply to this disk. These can be later modified by the setLabels method. Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. diskEncryptionKey: Encrypts the disk using a customer-supplied encryption key. After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later (e.g. to create a disk snapshot, to create a disk image, to create a machine image, or to attach the disk to a virtual machine). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the disk, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. guestOsFeatures: A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of the resource. Always compute#disk for disks. labelFingerprint: A fingerprint for the labels being applied to this disk, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a disk. labels: Labels to apply to this disk. These can be later modified by the setLabels method. lastAttachTimestamp: [Output Only] Last attach timestamp in RFC3339 text format. lastDetachTimestamp: [Output Only] Last detach timestamp in RFC3339 text format. licenseCodes: Integer license codes indicating which licenses are attached to this disk. licenses: A list of publicly visible licenses. Reserved for Google's use. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. options: Internal use only. physicalBlockSizeBytes: Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 16384, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller's project. region: [Output Only] URL of the region where the disk resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. replicaZones: URLs of the zones where the disk should be replicated to. Only applicable for regional resources. resourcePolicies: Resource policies applied to this disk for automatic snapshot creations. selfLink: [Output Only] Server-defined fully-qualified URL for this resource. sizeGb: Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk. If you specify this field along with sourceImage or sourceSnapshot, the value of sizeGb must not be less than the size of the sourceImage or the size of the snapshot. Acceptable values are 1 to 65536, inclusive. sourceImage: The source image used to create this disk. If the source image is deleted, this field will not be set. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family sourceImageEncryptionKey: The customer-supplied encryption key of the source image. Required if the source image is protected by a customer- supplied encryption key. sourceImageId: [Output Only] The ID value of the image used to create this disk. This value identifies the exact image that was used to create this persistent disk. For example, if you created the persistent disk from an image that was later deleted and recreated under the same name, the source image ID would identify the exact version of the image that was used. sourceSnapshot: The source snapshot used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/pr ojects/project/global/snapshots/snapshot - projects/project/global/snapshots/snapshot - global/snapshots/snapshot sourceSnapshotEncryptionKey: The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. sourceSnapshotId: [Output Only] The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used. status: [Output Only] The status of disk creation. CREATING: Disk is provisioning. RESTORING: Source data is being copied into the disk. FAILED: Disk creation failed. READY: Disk is ready for use. DELETING: Disk is deleting. type: URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd users: [Output Only] Links to the users of the disk (attached instances) in form: projects/project/zones/zone/instances/instance zone: [Output Only] URL of the zone where the disk resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. """ class StatusValueValuesEnum(_messages.Enum): r"""[Output Only] The status of disk creation. CREATING: Disk is provisioning. RESTORING: Source data is being copied into the disk. FAILED: Disk creation failed. READY: Disk is ready for use. DELETING: Disk is deleting. Values: CREATING: <no description> DELETING: <no description> FAILED: <no description> READY: <no description> RESTORING: <no description> """ CREATING = 0 DELETING = 1 FAILED = 2 READY = 3 RESTORING = 4 @encoding.MapUnrecognizedFields('additionalProperties') class LabelsValue(_messages.Message): r"""Labels to apply to this disk. These can be later modified by the setLabels method. Messages: AdditionalProperty: An additional property for a LabelsValue object. Fields: additionalProperties: Additional properties of type LabelsValue """ class AdditionalProperty(_messages.Message): r"""An additional property for a LabelsValue object. Fields: key: Name of the additional property. value: A string attribute. """ key = _messages.StringField(1) value = _messages.StringField(2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) creationTimestamp = _messages.StringField(1) description = _messages.StringField(2) diskEncryptionKey = _messages.MessageField('CustomerEncryptionKey', 3) guestOsFeatures = _messages.MessageField('GuestOsFeature', 4, repeated=True) id = _messages.IntegerField(5, variant=_messages.Variant.UINT64) kind = _messages.StringField(6, default=u'compute#disk') labelFingerprint = _messages.BytesField(7) labels = _messages.MessageField('LabelsValue', 8) lastAttachTimestamp = _messages.StringField(9) lastDetachTimestamp = _messages.StringField(10) licenseCodes = _messages.IntegerField(11, repeated=True) licenses = _messages.StringField(12, repeated=True) name = _messages.StringField(13) options = _messages.StringField(14) physicalBlockSizeBytes = _messages.IntegerField(15) region = _messages.StringField(16) replicaZones = _messages.StringField(17, repeated=True) resourcePolicies = _messages.StringField(18, repeated=True) selfLink = _messages.StringField(19) sizeGb = _messages.IntegerField(20) sourceImage = _messages.StringField(21) sourceImageEncryptionKey = _messages.MessageField('CustomerEncryptionKey', 22) sourceImageId = _messages.StringField(23) sourceSnapshot = _messages.StringField(24) sourceSnapshotEncryptionKey = _messages.MessageField('CustomerEncryptionKey', 25) sourceSnapshotId = _messages.StringField(26) status = _messages.EnumField('StatusValueValuesEnum', 27) type = _messages.StringField(28) users = _messages.StringField(29, repeated=True) zone = _messages.StringField(30) class DiskAggregatedList(_messages.Message): r"""A DiskAggregatedList object. Messages: ItemsValue: A list of DisksScopedList resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of DisksScopedList resources. kind: [Output Only] Type of resource. Always compute#diskAggregatedList for aggregated lists of persistent disks. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of DisksScopedList resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: [Output Only] Name of the scope containing this set of disks. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A DisksScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('DisksScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#diskAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class DiskInstantiationConfig(_messages.Message): r"""A specification of the desired way to instantiate a disk in the instance template when its created from a source instance. Enums: InstantiateFromValueValuesEnum: Specifies whether to include the disk and what image to use. Possible values are: - source-image: to use the same image that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - source-image-family: to use the same image family that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - custom-image: to use a user- provided image url for disk creation. Applicable to the boot disk and additional read-write disks. - attach-read-only: to attach a read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk from the template. Applicable to additional read-write disks, local SSDs, and read-only disks. Fields: autoDelete: Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). customImage: The custom source image to be used to restore this disk when instantiating this instance template. deviceName: Specifies the device name of the disk to which the configurations apply to. instantiateFrom: Specifies whether to include the disk and what image to use. Possible values are: - source-image: to use the same image that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - source-image- family: to use the same image family that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - custom-image: to use a user-provided image url for disk creation. Applicable to the boot disk and additional read-write disks. - attach-read-only: to attach a read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk from the template. Applicable to additional read-write disks, local SSDs, and read-only disks. """ class InstantiateFromValueValuesEnum(_messages.Enum): r"""Specifies whether to include the disk and what image to use. Possible values are: - source-image: to use the same image that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - source-image-family: to use the same image family that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - custom-image: to use a user-provided image url for disk creation. Applicable to the boot disk and additional read-write disks. - attach-read-only: to attach a read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk from the template. Applicable to additional read-write disks, local SSDs, and read-only disks. Values: ATTACH_READ_ONLY: <no description> BLANK: <no description> CUSTOM_IMAGE: <no description> DEFAULT: <no description> DO_NOT_INCLUDE: <no description> SOURCE_IMAGE: <no description> SOURCE_IMAGE_FAMILY: <no description> """ ATTACH_READ_ONLY = 0 BLANK = 1 CUSTOM_IMAGE = 2 DEFAULT = 3 DO_NOT_INCLUDE = 4 SOURCE_IMAGE = 5 SOURCE_IMAGE_FAMILY = 6 autoDelete = _messages.BooleanField(1) customImage = _messages.StringField(2) deviceName = _messages.StringField(3) instantiateFrom = _messages.EnumField('InstantiateFromValueValuesEnum', 4) class DiskList(_messages.Message): r"""A list of Disk resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of Disk resources. kind: [Output Only] Type of resource. Always compute#diskList for lists of disks. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('Disk', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#diskList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class DiskMoveRequest(_messages.Message): r"""A DiskMoveRequest object. Fields: destinationZone: The URL of the destination zone to move the disk. This can be a full or partial URL. For example, the following are all valid URLs to a zone: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/zones/zone - zones/zone targetDisk: The URL of the target disk to move. This can be a full or partial URL. For example, the following are all valid URLs to a disk: - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disk s/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk """ destinationZone = _messages.StringField(1) targetDisk = _messages.StringField(2) class DiskType(_messages.Message): r"""Represents a Disk Type resource. You can choose from a variety of disk types based on your needs. For more information, read Storage options. The diskTypes resource represents disk types for a zonal persistent disk. For more information, read Zonal persistent disks. The regionDiskTypes resource represents disk types for a regional persistent disk. For more information, read Regional persistent disks. (== resource_for beta.diskTypes ==) (== resource_for v1.diskTypes ==) (== resource_for v1.regionDiskTypes ==) (== resource_for beta.regionDiskTypes ==) Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. defaultDiskSizeGb: [Output Only] Server-defined default disk size in GB. deprecated: [Output Only] The deprecation status associated with this disk type. description: [Output Only] An optional description of this resource. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of the resource. Always compute#diskType for disk types. name: [Output Only] Name of the resource. region: [Output Only] URL of the region where the disk type resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. selfLink: [Output Only] Server-defined URL for the resource. validDiskSize: [Output Only] An optional textual description of the valid disk size, such as "10GB-10TB". zone: [Output Only] URL of the zone where the disk type resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. """ creationTimestamp = _messages.StringField(1) defaultDiskSizeGb = _messages.IntegerField(2) deprecated = _messages.MessageField('DeprecationStatus', 3) description = _messages.StringField(4) id = _messages.IntegerField(5, variant=_messages.Variant.UINT64) kind = _messages.StringField(6, default=u'compute#diskType') name = _messages.StringField(7) region = _messages.StringField(8) selfLink = _messages.StringField(9) validDiskSize = _messages.StringField(10) zone = _messages.StringField(11) class DiskTypeAggregatedList(_messages.Message): r"""A DiskTypeAggregatedList object. Messages: ItemsValue: A list of DiskTypesScopedList resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of DiskTypesScopedList resources. kind: [Output Only] Type of resource. Always compute#diskTypeAggregatedList. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of DiskTypesScopedList resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: [Output Only] Name of the scope containing this set of disk types. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A DiskTypesScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('DiskTypesScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#diskTypeAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class DiskTypeList(_messages.Message): r"""Contains a list of disk types. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of DiskType resources. kind: [Output Only] Type of resource. Always compute#diskTypeList for disk types. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('DiskType', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#diskTypeList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class DiskTypesScopedList(_messages.Message): r"""A DiskTypesScopedList object. Messages: WarningValue: [Output Only] Informational warning which replaces the list of disk types when the list is empty. Fields: diskTypes: [Output Only] A list of disk types contained in this scope. warning: [Output Only] Informational warning which replaces the list of disk types when the list is empty. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning which replaces the list of disk types when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) diskTypes = _messages.MessageField('DiskType', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class DisksAddResourcePoliciesRequest(_messages.Message): r"""A DisksAddResourcePoliciesRequest object. Fields: resourcePolicies: Resource policies to be added to this disk. """ resourcePolicies = _messages.StringField(1, repeated=True) class DisksRemoveResourcePoliciesRequest(_messages.Message): r"""A DisksRemoveResourcePoliciesRequest object. Fields: resourcePolicies: Resource policies to be removed from this disk. """ resourcePolicies = _messages.StringField(1, repeated=True) class DisksResizeRequest(_messages.Message): r"""A DisksResizeRequest object. Fields: sizeGb: The new size of the persistent disk, which is specified in GB. """ sizeGb = _messages.IntegerField(1) class DisksScopedList(_messages.Message): r"""A DisksScopedList object. Messages: WarningValue: [Output Only] Informational warning which replaces the list of disks when the list is empty. Fields: disks: [Output Only] A list of disks contained in this scope. warning: [Output Only] Informational warning which replaces the list of disks when the list is empty. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning which replaces the list of disks when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) disks = _messages.MessageField('Disk', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class DisplayDevice(_messages.Message): r"""A set of Display Device options Fields: enableDisplay: Defines whether the instance has Display enabled. """ enableDisplay = _messages.BooleanField(1) class DistributionPolicy(_messages.Message): r"""A DistributionPolicy object. Fields: zones: Zones where the regional managed instance group will create and manage instances. """ zones = _messages.MessageField('DistributionPolicyZoneConfiguration', 1, repeated=True) class DistributionPolicyZoneConfiguration(_messages.Message): r"""A DistributionPolicyZoneConfiguration object. Fields: zone: The URL of the zone. The zone must exist in the region where the managed instance group is located. """ zone = _messages.StringField(1) class Expr(_messages.Message): r"""Represents an expression text. Example: title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0" Fields: description: An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. expression: Textual representation of an expression in Common Expression Language syntax. The application context of the containing message determines which well-known feature set of CEL is supported. location: An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file. title: An optional title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. """ description = _messages.StringField(1) expression = _messages.StringField(2) location = _messages.StringField(3) title = _messages.StringField(4) class ExternalVpnGateway(_messages.Message): r"""External VPN gateway is the on-premises VPN gateway(s) or another cloud provider?s VPN gateway that connects to your Google Cloud VPN gateway. To create a highly available VPN from Google Cloud to your on-premises side or another Cloud provider's VPN gateway, you must create a external VPN gateway resource in GCP, which provides the information to GCP about your external VPN gateway. Enums: RedundancyTypeValueValuesEnum: Indicates the user-supplied redundancy type of this external VPN gateway. Messages: LabelsValue: Labels to apply to this ExternalVpnGateway resource. These can be later modified by the setLabels method. Each label key/value must comply with RFC1035. Label values may be empty. Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. interfaces: List of interfaces for this external VPN gateway. kind: [Output Only] Type of the resource. Always compute#externalVpnGateway for externalVpnGateways. labelFingerprint: A fingerprint for the labels being applied to this ExternalVpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an ExternalVpnGateway. labels: Labels to apply to this ExternalVpnGateway resource. These can be later modified by the setLabels method. Each label key/value must comply with RFC1035. Label values may be empty. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. redundancyType: Indicates the user-supplied redundancy type of this external VPN gateway. selfLink: [Output Only] Server-defined URL for the resource. """ class RedundancyTypeValueValuesEnum(_messages.Enum): r"""Indicates the user-supplied redundancy type of this external VPN gateway. Values: FOUR_IPS_REDUNDANCY: <no description> SINGLE_IP_INTERNALLY_REDUNDANT: <no description> TWO_IPS_REDUNDANCY: <no description> """ FOUR_IPS_REDUNDANCY = 0 SINGLE_IP_INTERNALLY_REDUNDANT = 1 TWO_IPS_REDUNDANCY = 2 @encoding.MapUnrecognizedFields('additionalProperties') class LabelsValue(_messages.Message): r"""Labels to apply to this ExternalVpnGateway resource. These can be later modified by the setLabels method. Each label key/value must comply with RFC1035. Label values may be empty. Messages: AdditionalProperty: An additional property for a LabelsValue object. Fields: additionalProperties: Additional properties of type LabelsValue """ class AdditionalProperty(_messages.Message): r"""An additional property for a LabelsValue object. Fields: key: Name of the additional property. value: A string attribute. """ key = _messages.StringField(1) value = _messages.StringField(2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) creationTimestamp = _messages.StringField(1) description = _messages.StringField(2) id = _messages.IntegerField(3, variant=_messages.Variant.UINT64) interfaces = _messages.MessageField('ExternalVpnGatewayInterface', 4, repeated=True) kind = _messages.StringField(5, default=u'compute#externalVpnGateway') labelFingerprint = _messages.BytesField(6) labels = _messages.MessageField('LabelsValue', 7) name = _messages.StringField(8) redundancyType = _messages.EnumField('RedundancyTypeValueValuesEnum', 9) selfLink = _messages.StringField(10) class ExternalVpnGatewayInterface(_messages.Message): r"""The interface for the external VPN gateway. Fields: id: The numeric ID of this interface. The allowed input values for this id for different redundancy types of external VPN gateway: SINGLE_IP_INTERNALLY_REDUNDANT - 0 TWO_IPS_REDUNDANCY - 0, 1 FOUR_IPS_REDUNDANCY - 0, 1, 2, 3 ipAddress: IP address of the interface in the external VPN gateway. Only IPv4 is supported. This IP address can be either from your on-premise gateway or another Cloud provider?s VPN gateway, it cannot be an IP address from Google Compute Engine. """ id = _messages.IntegerField(1, variant=_messages.Variant.UINT32) ipAddress = _messages.StringField(2) class ExternalVpnGatewayList(_messages.Message): r"""Response to the list request, and contains a list of externalVpnGateways. Messages: WarningValue: [Output Only] Informational warning message. Fields: etag: A string attribute. id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of ExternalVpnGateway resources. kind: [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of externalVpnGateways. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) etag = _messages.StringField(1) id = _messages.StringField(2) items = _messages.MessageField('ExternalVpnGateway', 3, repeated=True) kind = _messages.StringField(4, default=u'compute#externalVpnGatewayList') nextPageToken = _messages.StringField(5) selfLink = _messages.StringField(6) warning = _messages.MessageField('WarningValue', 7) class Firewall(_messages.Message): r"""Represents a Firewall Rule resource. Firewall rules allow or deny ingress traffic to, and egress traffic from your instances. For more information, read Firewall rules. Enums: DirectionValueValuesEnum: Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`. The default is `INGRESS`. For `INGRESS` traffic, you cannot specify the destinationRanges field, and for `EGRESS` traffic, you cannot specify the sourceRanges or sourceTags fields. Messages: AllowedValueListEntry: A AllowedValueListEntry object. DeniedValueListEntry: A DeniedValueListEntry object. Fields: allowed: The list of ALLOW rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. denied: The list of DENY rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a denied connection. description: An optional description of this resource. Provide this field when you create the resource. destinationRanges: If destination ranges are specified, the firewall rule applies only to traffic that has destination IP address in these ranges. These ranges must be expressed in CIDR format. Only IPv4 is supported. direction: Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`. The default is `INGRESS`. For `INGRESS` traffic, you cannot specify the destinationRanges field, and for `EGRESS` traffic, you cannot specify the sourceRanges or sourceTags fields. disabled: Denotes whether the firewall rule is disabled. When set to true, the firewall rule is not enforced and the network behaves as if it did not exist. If this is unspecified, the firewall rule will be enabled. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of the resource. Always compute#firewall for firewall rules. logConfig: This field denotes the logging options for a particular firewall rule. If logging is enabled, logs will be exported to Stackdriver. name: Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. network: URL of the network resource for this firewall rule. If not specified when creating a firewall rule, the default network is used: global/networks/default If you choose to specify this field, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/myproject/global/networks /my-network - projects/myproject/global/networks/my-network - global/networks/default priority: Priority for this rule. This is an integer between `0` and `65535`, both inclusive. The default value is `1000`. Relative priorities determine which rule takes effect if multiple rules apply. Lower values indicate higher priority. For example, a rule with priority `0` has higher precedence than a rule with priority `1`. DENY rules take precedence over ALLOW rules if they have equal priority. Note that VPC networks have implied rules with a priority of `65535`. To avoid conflicts with the implied rules, use a priority number less than `65535`. selfLink: [Output Only] Server-defined URL for the resource. sourceRanges: If source ranges are specified, the firewall rule applies only to traffic that has a source IP address in these ranges. These ranges must be expressed in CIDR format. One or both of sourceRanges and sourceTags may be set. If both fields are set, the rule applies to traffic that has a source IP address within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags field. The connection does not need to match both fields for the rule to apply. Only IPv4 is supported. sourceServiceAccounts: If source service accounts are specified, the firewall rules apply only to traffic originating from an instance with a service account in this list. Source service accounts cannot be used to control traffic to an instance's external IP address because service accounts are associated with an instance, not an IP address. sourceRanges can be set at the same time as sourceServiceAccounts. If both are set, the firewall applies to traffic that has a source IP address within the sourceRanges OR a source IP that belongs to an instance with service account listed in sourceServiceAccount. The connection does not need to match both fields for the firewall to apply. sourceServiceAccounts cannot be used at the same time as sourceTags or targetTags. sourceTags: If source tags are specified, the firewall rule applies only to traffic with source IPs that match the primary network interfaces of VM instances that have the tag and are in the same VPC network. Source tags cannot be used to control traffic to an instance's external IP address, it only applies to traffic between instances in the same virtual network. Because tags are associated with instances, not IP addresses. One or both of sourceRanges and sourceTags may be set. If both fields are set, the firewall applies to traffic that has a source IP address within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags field. The connection does not need to match both fields for the firewall to apply. targetServiceAccounts: A list of service accounts indicating sets of instances located in the network that may make network connections as specified in allowed[]. targetServiceAccounts cannot be used at the same time as targetTags or sourceTags. If neither targetServiceAccounts nor targetTags are specified, the firewall rule applies to all instances on the specified network. targetTags: A list of tags that controls which instances the firewall rule applies to. If targetTags are specified, then the firewall rule applies only to instances in the VPC network that have one of those tags. If no targetTags are specified, the firewall rule applies to all instances on the specified network. """ class DirectionValueValuesEnum(_messages.Enum): r"""Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`. The default is `INGRESS`. For `INGRESS` traffic, you cannot specify the destinationRanges field, and for `EGRESS` traffic, you cannot specify the sourceRanges or sourceTags fields. Values: EGRESS: <no description> INGRESS: <no description> """ EGRESS = 0 INGRESS = 1 class AllowedValueListEntry(_messages.Message): r"""A AllowedValueListEntry object. Fields: IPProtocol: The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP protocol number. ports: An optional list of ports to which this rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. """ IPProtocol = _messages.StringField(1) ports = _messages.StringField(2, repeated=True) class DeniedValueListEntry(_messages.Message): r"""A DeniedValueListEntry object. Fields: IPProtocol: The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP protocol number. ports: An optional list of ports to which this rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. """ IPProtocol = _messages.StringField(1) ports = _messages.StringField(2, repeated=True) allowed = _messages.MessageField('AllowedValueListEntry', 1, repeated=True) creationTimestamp = _messages.StringField(2) denied = _messages.MessageField('DeniedValueListEntry', 3, repeated=True) description = _messages.StringField(4) destinationRanges = _messages.StringField(5, repeated=True) direction = _messages.EnumField('DirectionValueValuesEnum', 6) disabled = _messages.BooleanField(7) id = _messages.IntegerField(8, variant=_messages.Variant.UINT64) kind = _messages.StringField(9, default=u'compute#firewall') logConfig = _messages.MessageField('FirewallLogConfig', 10) name = _messages.StringField(11) network = _messages.StringField(12) priority = _messages.IntegerField(13, variant=_messages.Variant.INT32) selfLink = _messages.StringField(14) sourceRanges = _messages.StringField(15, repeated=True) sourceServiceAccounts = _messages.StringField(16, repeated=True) sourceTags = _messages.StringField(17, repeated=True) targetServiceAccounts = _messages.StringField(18, repeated=True) targetTags = _messages.StringField(19, repeated=True) class FirewallList(_messages.Message): r"""Contains a list of firewalls. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of Firewall resources. kind: [Output Only] Type of resource. Always compute#firewallList for lists of firewalls. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('Firewall', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#firewallList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class FirewallLogConfig(_messages.Message): r"""The available logging options for a firewall rule. Fields: enable: This field denotes whether to enable logging for a particular firewall rule. """ enable = _messages.BooleanField(1) class FixedOrPercent(_messages.Message): r"""Encapsulates numeric value that can be either absolute or relative. Fields: calculated: [Output Only] Absolute value of VM instances calculated based on the specific mode. - If the value is fixed, then the calculated value is equal to the fixed value. - If the value is a percent, then the calculated value is percent/100 * targetSize. For example, the calculated value of a 80% of a managed instance group with 150 instances would be (80/100 * 150) = 120 VM instances. If there is a remainder, the number is rounded up. fixed: Specifies a fixed number of VM instances. This must be a positive integer. percent: Specifies a percentage of instances between 0 to 100%, inclusive. For example, specify 80 for 80%. """ calculated = _messages.IntegerField(1, variant=_messages.Variant.INT32) fixed = _messages.IntegerField(2, variant=_messages.Variant.INT32) percent = _messages.IntegerField(3, variant=_messages.Variant.INT32) class ForwardingRule(_messages.Message): r"""Represents a Forwarding Rule resource. A forwardingRules resource represents a regional forwarding rule. Regional external forwarding rules can reference any of the following resources: - A target instance - A Cloud VPN Classic gateway (targetVpnGateway), - A target pool for a Network Load Balancer - A global target HTTP(S) proxy for an HTTP(S) load balancer using Standard Tier - A target SSL proxy for a SSL Proxy load balancer using Standard Tier - A target TCP proxy for a TCP Proxy load balancer using Standard Tier. Regional internal forwarding rules can reference the backend service of an internal TCP/UDP load balancer. For regional internal forwarding rules, the following applies: - If the loadBalancingScheme for the load balancer is INTERNAL, then the forwarding rule references a regional internal backend service. - If the loadBalancingScheme for the load balancer is INTERNAL_MANAGED, then the forwarding rule must reference a regional target HTTP(S) proxy. For more information, read Using Forwarding rules. A globalForwardingRules resource represents a global forwarding rule. Global forwarding rules are only used by load balancers that use Premium Tier. (== resource_for beta.forwardingRules ==) (== resource_for v1.forwardingRules ==) (== resource_for beta.globalForwardingRules ==) (== resource_for v1.globalForwardingRules ==) (== resource_for beta.regionForwardingRules ==) (== resource_for v1.regionForwardingRules ==) Enums: IPProtocolValueValuesEnum: The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP, AH, SCTP or ICMP. When the load balancing scheme is INTERNAL, only TCP and UDP are valid. When the load balancing scheme is INTERNAL_SELF_MANAGED, only TCPis valid. IpVersionValueValuesEnum: The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. This can only be specified for an external global forwarding rule. LoadBalancingSchemeValueValuesEnum: This signifies what the ForwardingRule will be used for and can only take the following values: INTERNAL, INTERNAL_SELF_MANAGED, EXTERNAL. The value of INTERNAL means that this will be used for Internal Network Load Balancing (TCP, UDP). The value of INTERNAL_SELF_MANAGED means that this will be used for Internal Global HTTP(S) LB. The value of EXTERNAL means that this will be used for External Load Balancing (HTTP(S) LB, External TCP/UDP LB, SSL Proxy) NetworkTierValueValuesEnum: This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM , STANDARD. For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM. If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this value must be equal to the networkTier of the Address. Fields: IPAddress: IP address that this forwarding rule serves. When a client sends traffic to this IP address, the forwarding rule directs the traffic to the target that you specify in the forwarding rule. If you don't specify a reserved IP address, an ephemeral IP address is assigned. Methods for specifying an IP address: * IPv4 dotted decimal, as in `100.1.2.3` * Full URL, as in https://www.googleapis.com/compute/v 1/projects/project_id/regions/region/addresses/address-name * Partial URL or by name, as in: * projects/project_id/regions/region/addresses /address-name * regions/region/addresses/address-name * global/addresses /address-name * address-name The loadBalancingScheme and the forwarding rule's target determine the type of IP address that you can use. For detailed information, refer to [IP address specifications ](/load-balancing/docs/forwarding-rule- concepts#ip_address_specifications). IPProtocol: The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP, AH, SCTP or ICMP. When the load balancing scheme is INTERNAL, only TCP and UDP are valid. When the load balancing scheme is INTERNAL_SELF_MANAGED, only TCPis valid. allPorts: This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. This field cannot be used with port or portRange fields. When the load balancing scheme is INTERNAL and protocol is TCP/UDP, specify this field to allow packets addressed to any ports will be forwarded to the backends configured with this forwarding rule. backendService: This field is only used for INTERNAL load balancing. For internal load balancing, this field identifies the BackendService resource to receive the matched traffic. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. ipVersion: The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. This can only be specified for an external global forwarding rule. kind: [Output Only] Type of the resource. Always compute#forwardingRule for Forwarding Rule resources. loadBalancingScheme: This signifies what the ForwardingRule will be used for and can only take the following values: INTERNAL, INTERNAL_SELF_MANAGED, EXTERNAL. The value of INTERNAL means that this will be used for Internal Network Load Balancing (TCP, UDP). The value of INTERNAL_SELF_MANAGED means that this will be used for Internal Global HTTP(S) LB. The value of EXTERNAL means that this will be used for External Load Balancing (HTTP(S) LB, External TCP/UDP LB, SSL Proxy) name: Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. network: This field is not used for external load balancing. For INTERNAL and INTERNAL_SELF_MANAGED load balancing, this field identifies the network that the load balanced IP should belong to for this Forwarding Rule. If this field is not specified, the default network will be used. networkTier: This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM , STANDARD. For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM. If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this value must be equal to the networkTier of the Address. portRange: This field is deprecated. See the port field. ports: List of comma-separated ports. The forwarding rule forwards packets with matching destination ports. If the forwarding rule's loadBalancingScheme is EXTERNAL, and the forwarding rule references a target pool, specifying ports is optional. You can specify an unlimited number of ports, but they must be contiguous. If you omit ports, GCP forwards traffic on any port of the forwarding rule's protocol. If the forwarding rule's loadBalancingScheme is EXTERNAL, and the forwarding rule references a target HTTP proxy, target HTTPS proxy, target TCP proxy, target SSL proxy, or target VPN gateway, you must specify ports using the following constraints: - TargetHttpProxy: 80, 8080 - TargetHttpsProxy: 443 - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222 - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222 - TargetVpnGateway: 500, 4500 If the forwarding rule's loadBalancingScheme is INTERNAL, you must specify ports in one of the following ways: * A list of up to five ports, which can be non- contiguous * Keyword ALL, which causes the forwarding rule to forward traffic on any port of the forwarding rule's protocol. The ports field is used along with the target field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance. Applicable only when IPProtocol is TCP, UDP, or SCTP. Forwarding rules with the same [IPAddress, IPProtocol] pair must have disjoint port ranges. region: [Output Only] URL of the region where the regional forwarding rule resides. This field is not applicable to global forwarding rules. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. selfLink: [Output Only] Server-defined URL for the resource. serviceLabel: An optional prefix to the service name for this Forwarding Rule. If specified, the prefix is the first label of the fully qualified service name. The label must be 1-63 characters long, and comply with RFC1035. Specifically, the label must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. This field is only used for internal load balancing. serviceName: [Output Only] The internal fully qualified service name for this Forwarding Rule. This field is only used for internal load balancing. subnetwork: This field is only used for INTERNAL load balancing. For internal load balancing, this field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule. If the network specified is in auto subnet mode, this field is optional. However, if the network is in custom subnet mode, a subnetwork must be specified. target: The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must live in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. For INTERNAL_SELF_MANAGED load balancing, only HTTP and HTTPS targets are valid. """ class IPProtocolValueValuesEnum(_messages.Enum): r"""The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP, AH, SCTP or ICMP. When the load balancing scheme is INTERNAL, only TCP and UDP are valid. When the load balancing scheme is INTERNAL_SELF_MANAGED, only TCPis valid. Values: AH: <no description> ESP: <no description> ICMP: <no description> SCTP: <no description> TCP: <no description> UDP: <no description> """ AH = 0 ESP = 1 ICMP = 2 SCTP = 3 TCP = 4 UDP = 5 class IpVersionValueValuesEnum(_messages.Enum): r"""The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. This can only be specified for an external global forwarding rule. Values: IPV4: <no description> IPV6: <no description> UNSPECIFIED_VERSION: <no description> """ IPV4 = 0 IPV6 = 1 UNSPECIFIED_VERSION = 2 class LoadBalancingSchemeValueValuesEnum(_messages.Enum): r"""This signifies what the ForwardingRule will be used for and can only take the following values: INTERNAL, INTERNAL_SELF_MANAGED, EXTERNAL. The value of INTERNAL means that this will be used for Internal Network Load Balancing (TCP, UDP). The value of INTERNAL_SELF_MANAGED means that this will be used for Internal Global HTTP(S) LB. The value of EXTERNAL means that this will be used for External Load Balancing (HTTP(S) LB, External TCP/UDP LB, SSL Proxy) Values: EXTERNAL: <no description> INTERNAL: <no description> INTERNAL_SELF_MANAGED: <no description> INVALID: <no description> """ EXTERNAL = 0 INTERNAL = 1 INTERNAL_SELF_MANAGED = 2 INVALID = 3 class NetworkTierValueValuesEnum(_messages.Enum): r"""This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM , STANDARD. For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM. If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this value must be equal to the networkTier of the Address. Values: PREMIUM: <no description> STANDARD: <no description> """ PREMIUM = 0 STANDARD = 1 IPAddress = _messages.StringField(1) IPProtocol = _messages.EnumField('IPProtocolValueValuesEnum', 2) allPorts = _messages.BooleanField(3) backendService = _messages.StringField(4) creationTimestamp = _messages.StringField(5) description = _messages.StringField(6) id = _messages.IntegerField(7, variant=_messages.Variant.UINT64) ipVersion = _messages.EnumField('IpVersionValueValuesEnum', 8) kind = _messages.StringField(9, default=u'compute#forwardingRule') loadBalancingScheme = _messages.EnumField('LoadBalancingSchemeValueValuesEnum', 10) name = _messages.StringField(11) network = _messages.StringField(12) networkTier = _messages.EnumField('NetworkTierValueValuesEnum', 13) portRange = _messages.StringField(14) ports = _messages.StringField(15, repeated=True) region = _messages.StringField(16) selfLink = _messages.StringField(17) serviceLabel = _messages.StringField(18) serviceName = _messages.StringField(19) subnetwork = _messages.StringField(20) target = _messages.StringField(21) class ForwardingRuleAggregatedList(_messages.Message): r"""A ForwardingRuleAggregatedList object. Messages: ItemsValue: A list of ForwardingRulesScopedList resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of ForwardingRulesScopedList resources. kind: [Output Only] Type of resource. Always compute#forwardingRuleAggregatedList for lists of forwarding rules. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of ForwardingRulesScopedList resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: Name of the scope containing this set of addresses. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A ForwardingRulesScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('ForwardingRulesScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#forwardingRuleAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class ForwardingRuleList(_messages.Message): r"""Contains a list of ForwardingRule resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of ForwardingRule resources. kind: Type of resource. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ForwardingRule', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#forwardingRuleList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class ForwardingRuleReference(_messages.Message): r"""A ForwardingRuleReference object. Fields: forwardingRule: A string attribute. """ forwardingRule = _messages.StringField(1) class ForwardingRulesScopedList(_messages.Message): r"""A ForwardingRulesScopedList object. Messages: WarningValue: Informational warning which replaces the list of forwarding rules when the list is empty. Fields: forwardingRules: A list of forwarding rules contained in this scope. warning: Informational warning which replaces the list of forwarding rules when the list is empty. """ class WarningValue(_messages.Message): r"""Informational warning which replaces the list of forwarding rules when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) forwardingRules = _messages.MessageField('ForwardingRule', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class GlobalSetLabelsRequest(_messages.Message): r"""A GlobalSetLabelsRequest object. Messages: LabelsValue: A list of labels to apply for this resource. Each label key & value must comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. For example, "webserver-frontend": "images". A label value can also be empty (e.g. "my-label": ""). Fields: labelFingerprint: The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash when updating or changing labels, otherwise the request will fail with error 412 conditionNotMet. Make a get() request to the resource to get the latest fingerprint. labels: A list of labels to apply for this resource. Each label key & value must comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. For example, "webserver-frontend": "images". A label value can also be empty (e.g. "my-label": ""). """ @encoding.MapUnrecognizedFields('additionalProperties') class LabelsValue(_messages.Message): r"""A list of labels to apply for this resource. Each label key & value must comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. For example, "webserver-frontend": "images". A label value can also be empty (e.g. "my-label": ""). Messages: AdditionalProperty: An additional property for a LabelsValue object. Fields: additionalProperties: Additional properties of type LabelsValue """ class AdditionalProperty(_messages.Message): r"""An additional property for a LabelsValue object. Fields: key: Name of the additional property. value: A string attribute. """ key = _messages.StringField(1) value = _messages.StringField(2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) labelFingerprint = _messages.BytesField(1) labels = _messages.MessageField('LabelsValue', 2) class GlobalSetPolicyRequest(_messages.Message): r"""A GlobalSetPolicyRequest object. Fields: bindings: Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings. etag: Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag. policy: REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them. """ bindings = _messages.MessageField('Binding', 1, repeated=True) etag = _messages.BytesField(2) policy = _messages.MessageField('Policy', 3) class GuestAttributes(_messages.Message): r"""A guest attributes entry. Fields: kind: [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry. queryPath: The path to be queried. This can be the default namespace ('/') or a nested namespace ('//') or a specified key ('//') queryValue: [Output Only] The value of the requested queried path. selfLink: [Output Only] Server-defined URL for this resource. variableKey: The key to search for. variableValue: [Output Only] The value found for the requested key. """ kind = _messages.StringField(1, default=u'compute#guestAttributes') queryPath = _messages.StringField(2) queryValue = _messages.MessageField('GuestAttributesValue', 3) selfLink = _messages.StringField(4) variableKey = _messages.StringField(5) variableValue = _messages.StringField(6) class GuestAttributesEntry(_messages.Message): r"""A guest attributes namespace/key/value entry. Fields: key: Key for the guest attribute entry. namespace: Namespace for the guest attribute entry. value: Value for the guest attribute entry. """ key = _messages.StringField(1) namespace = _messages.StringField(2) value = _messages.StringField(3) class GuestAttributesValue(_messages.Message): r"""Array of guest attribute namespace/key/value tuples. Fields: items: A GuestAttributesEntry attribute. """ items = _messages.MessageField('GuestAttributesEntry', 1, repeated=True) class GuestOsFeature(_messages.Message): r"""Guest OS features. Enums: TypeValueValuesEnum: The ID of a supported feature. Read Enabling guest operating system features to see a list of available options. Fields: type: The ID of a supported feature. Read Enabling guest operating system features to see a list of available options. """ class TypeValueValuesEnum(_messages.Enum): r"""The ID of a supported feature. Read Enabling guest operating system features to see a list of available options. Values: FEATURE_TYPE_UNSPECIFIED: <no description> MULTI_IP_SUBNET: <no description> SECURE_BOOT: <no description> UEFI_COMPATIBLE: <no description> VIRTIO_SCSI_MULTIQUEUE: <no description> WINDOWS: <no description> """ FEATURE_TYPE_UNSPECIFIED = 0 MULTI_IP_SUBNET = 1 SECURE_BOOT = 2 UEFI_COMPATIBLE = 3 VIRTIO_SCSI_MULTIQUEUE = 4 WINDOWS = 5 type = _messages.EnumField('TypeValueValuesEnum', 1) class HTTP2HealthCheck(_messages.Message): r"""A HTTP2HealthCheck object. Enums: PortSpecificationValueValuesEnum: Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, HTTP2 health check follows behavior specified in port and portName fields. ProxyHeaderValueValuesEnum: Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. Fields: host: The value of the host header in the HTTP/2 health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used. port: The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535. portName: Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. portSpecification: Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, HTTP2 health check follows behavior specified in port and portName fields. proxyHeader: Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. requestPath: The request path of the HTTP/2 health check request. The default value is /. response: The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII. """ class PortSpecificationValueValuesEnum(_messages.Enum): r"""Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, HTTP2 health check follows behavior specified in port and portName fields. Values: USE_FIXED_PORT: <no description> USE_NAMED_PORT: <no description> USE_SERVING_PORT: <no description> """ USE_FIXED_PORT = 0 USE_NAMED_PORT = 1 USE_SERVING_PORT = 2 class ProxyHeaderValueValuesEnum(_messages.Enum): r"""Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. Values: NONE: <no description> PROXY_V1: <no description> """ NONE = 0 PROXY_V1 = 1 host = _messages.StringField(1) port = _messages.IntegerField(2, variant=_messages.Variant.INT32) portName = _messages.StringField(3) portSpecification = _messages.EnumField('PortSpecificationValueValuesEnum', 4) proxyHeader = _messages.EnumField('ProxyHeaderValueValuesEnum', 5) requestPath = _messages.StringField(6) response = _messages.StringField(7) class HTTPHealthCheck(_messages.Message): r"""A HTTPHealthCheck object. Enums: PortSpecificationValueValuesEnum: Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, HTTP health check follows behavior specified in port and portName fields. ProxyHeaderValueValuesEnum: Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. Fields: host: The value of the host header in the HTTP health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used. port: The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535. portName: Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. portSpecification: Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, HTTP health check follows behavior specified in port and portName fields. proxyHeader: Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. requestPath: The request path of the HTTP health check request. The default value is /. response: The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII. """ class PortSpecificationValueValuesEnum(_messages.Enum): r"""Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, HTTP health check follows behavior specified in port and portName fields. Values: USE_FIXED_PORT: <no description> USE_NAMED_PORT: <no description> USE_SERVING_PORT: <no description> """ USE_FIXED_PORT = 0 USE_NAMED_PORT = 1 USE_SERVING_PORT = 2 class ProxyHeaderValueValuesEnum(_messages.Enum): r"""Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. Values: NONE: <no description> PROXY_V1: <no description> """ NONE = 0 PROXY_V1 = 1 host = _messages.StringField(1) port = _messages.IntegerField(2, variant=_messages.Variant.INT32) portName = _messages.StringField(3) portSpecification = _messages.EnumField('PortSpecificationValueValuesEnum', 4) proxyHeader = _messages.EnumField('ProxyHeaderValueValuesEnum', 5) requestPath = _messages.StringField(6) response = _messages.StringField(7) class HTTPSHealthCheck(_messages.Message): r"""A HTTPSHealthCheck object. Enums: PortSpecificationValueValuesEnum: Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, HTTPS health check follows behavior specified in port and portName fields. ProxyHeaderValueValuesEnum: Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. Fields: host: The value of the host header in the HTTPS health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used. port: The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535. portName: Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. portSpecification: Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, HTTPS health check follows behavior specified in port and portName fields. proxyHeader: Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. requestPath: The request path of the HTTPS health check request. The default value is /. response: The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII. """ class PortSpecificationValueValuesEnum(_messages.Enum): r"""Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, HTTPS health check follows behavior specified in port and portName fields. Values: USE_FIXED_PORT: <no description> USE_NAMED_PORT: <no description> USE_SERVING_PORT: <no description> """ USE_FIXED_PORT = 0 USE_NAMED_PORT = 1 USE_SERVING_PORT = 2 class ProxyHeaderValueValuesEnum(_messages.Enum): r"""Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. Values: NONE: <no description> PROXY_V1: <no description> """ NONE = 0 PROXY_V1 = 1 host = _messages.StringField(1) port = _messages.IntegerField(2, variant=_messages.Variant.INT32) portName = _messages.StringField(3) portSpecification = _messages.EnumField('PortSpecificationValueValuesEnum', 4) proxyHeader = _messages.EnumField('ProxyHeaderValueValuesEnum', 5) requestPath = _messages.StringField(6) response = _messages.StringField(7) class HealthCheck(_messages.Message): r"""Represents a Health Check resource. Health checks are used for most GCP load balancers and managed instance group auto-healing. For more information, read Health Check Concepts. To perform health checks on network load balancers, you must use either httpHealthChecks or httpsHealthChecks. Enums: TypeValueValuesEnum: Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field. Fields: checkIntervalSec: How often (in seconds) to send a health check. The default value is 5 seconds. creationTimestamp: [Output Only] Creation timestamp in 3339 text format. description: An optional description of this resource. Provide this property when you create the resource. healthyThreshold: A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2. http2HealthCheck: A HTTP2HealthCheck attribute. httpHealthCheck: A HTTPHealthCheck attribute. httpsHealthCheck: A HTTPSHealthCheck attribute. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: Type of the resource. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. selfLink: [Output Only] Server-defined URL for the resource. sslHealthCheck: A SSLHealthCheck attribute. tcpHealthCheck: A TCPHealthCheck attribute. timeoutSec: How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec. type: Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field. unhealthyThreshold: A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2. """ class TypeValueValuesEnum(_messages.Enum): r"""Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol- specific health check field must be specified, which must match type field. Values: HTTP: <no description> HTTP2: <no description> HTTPS: <no description> INVALID: <no description> SSL: <no description> TCP: <no description> """ HTTP = 0 HTTP2 = 1 HTTPS = 2 INVALID = 3 SSL = 4 TCP = 5 checkIntervalSec = _messages.IntegerField(1, variant=_messages.Variant.INT32) creationTimestamp = _messages.StringField(2) description = _messages.StringField(3) healthyThreshold = _messages.IntegerField(4, variant=_messages.Variant.INT32) http2HealthCheck = _messages.MessageField('HTTP2HealthCheck', 5) httpHealthCheck = _messages.MessageField('HTTPHealthCheck', 6) httpsHealthCheck = _messages.MessageField('HTTPSHealthCheck', 7) id = _messages.IntegerField(8, variant=_messages.Variant.UINT64) kind = _messages.StringField(9, default=u'compute#healthCheck') name = _messages.StringField(10) selfLink = _messages.StringField(11) sslHealthCheck = _messages.MessageField('SSLHealthCheck', 12) tcpHealthCheck = _messages.MessageField('TCPHealthCheck', 13) timeoutSec = _messages.IntegerField(14, variant=_messages.Variant.INT32) type = _messages.EnumField('TypeValueValuesEnum', 15) unhealthyThreshold = _messages.IntegerField(16, variant=_messages.Variant.INT32) class HealthCheckList(_messages.Message): r"""Contains a list of HealthCheck resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of HealthCheck resources. kind: Type of resource. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('HealthCheck', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#healthCheckList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class HealthCheckReference(_messages.Message): r"""A full or valid partial URL to a health check. For example, the following are valid URLs: - https://www.googleapis.com/compute/beta/projects/project- id/global/httpHealthChecks/health-check - projects/project- id/global/httpHealthChecks/health-check - global/httpHealthChecks/health- check Fields: healthCheck: A string attribute. """ healthCheck = _messages.StringField(1) class HealthStatus(_messages.Message): r"""A HealthStatus object. Enums: HealthStateValueValuesEnum: Health state of the instance. Fields: healthState: Health state of the instance. instance: URL of the instance resource. ipAddress: The IP address represented by this resource. port: The port on the instance. """ class HealthStateValueValuesEnum(_messages.Enum): r"""Health state of the instance. Values: HEALTHY: <no description> UNHEALTHY: <no description> """ HEALTHY = 0 UNHEALTHY = 1 healthState = _messages.EnumField('HealthStateValueValuesEnum', 1) instance = _messages.StringField(2) ipAddress = _messages.StringField(3) port = _messages.IntegerField(4, variant=_messages.Variant.INT32) class HealthStatusForNetworkEndpoint(_messages.Message): r"""A HealthStatusForNetworkEndpoint object. Enums: HealthStateValueValuesEnum: Health state of the network endpoint determined based on the health checks configured. Fields: backendService: URL of the backend service associated with the health state of the network endpoint. forwardingRule: URL of the forwarding rule associated with the health state of the network endpoint. healthCheck: URL of the health check associated with the health state of the network endpoint. healthState: Health state of the network endpoint determined based on the health checks configured. """ class HealthStateValueValuesEnum(_messages.Enum): r"""Health state of the network endpoint determined based on the health checks configured. Values: DRAINING: <no description> HEALTHY: <no description> UNHEALTHY: <no description> UNKNOWN: <no description> """ DRAINING = 0 HEALTHY = 1 UNHEALTHY = 2 UNKNOWN = 3 backendService = _messages.MessageField('BackendServiceReference', 1) forwardingRule = _messages.MessageField('ForwardingRuleReference', 2) healthCheck = _messages.MessageField('HealthCheckReference', 3) healthState = _messages.EnumField('HealthStateValueValuesEnum', 4) class HostRule(_messages.Message): r"""UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService. Fields: description: An optional description of this resource. Provide this property when you create the resource. hosts: The list of host patterns to match. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or .. pathMatcher: The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion. """ description = _messages.StringField(1) hosts = _messages.StringField(2, repeated=True) pathMatcher = _messages.StringField(3) class HttpHealthCheck(_messages.Message): r"""Represents a legacy HTTP Health Check resource. Legacy health checks are required by network load balancers. For more information, read Health Check Concepts. Fields: checkIntervalSec: How often (in seconds) to send a health check. The default value is 5 seconds. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. healthyThreshold: A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2. host: The value of the host header in the HTTP health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of the resource. Always compute#httpHealthCheck for HTTP health checks. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. port: The TCP port number for the HTTP health check request. The default value is 80. requestPath: The request path of the HTTP health check request. The default value is /. This field does not support query parameters. selfLink: [Output Only] Server-defined URL for the resource. timeoutSec: How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec. unhealthyThreshold: A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2. """ checkIntervalSec = _messages.IntegerField(1, variant=_messages.Variant.INT32) creationTimestamp = _messages.StringField(2) description = _messages.StringField(3) healthyThreshold = _messages.IntegerField(4, variant=_messages.Variant.INT32) host = _messages.StringField(5) id = _messages.IntegerField(6, variant=_messages.Variant.UINT64) kind = _messages.StringField(7, default=u'compute#httpHealthCheck') name = _messages.StringField(8) port = _messages.IntegerField(9, variant=_messages.Variant.INT32) requestPath = _messages.StringField(10) selfLink = _messages.StringField(11) timeoutSec = _messages.IntegerField(12, variant=_messages.Variant.INT32) unhealthyThreshold = _messages.IntegerField(13, variant=_messages.Variant.INT32) class HttpHealthCheckList(_messages.Message): r"""Contains a list of HttpHealthCheck resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of HttpHealthCheck resources. kind: Type of resource. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('HttpHealthCheck', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#httpHealthCheckList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class HttpsHealthCheck(_messages.Message): r"""Represents a legacy HTTPS Health Check resource. Legacy health checks are required by network load balancers. For more information, read Health Check Concepts. Fields: checkIntervalSec: How often (in seconds) to send a health check. The default value is 5 seconds. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. healthyThreshold: A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2. host: The value of the host header in the HTTPS health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: Type of the resource. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. port: The TCP port number for the HTTPS health check request. The default value is 443. requestPath: The request path of the HTTPS health check request. The default value is "/". selfLink: [Output Only] Server-defined URL for the resource. timeoutSec: How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have a greater value than checkIntervalSec. unhealthyThreshold: A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2. """ checkIntervalSec = _messages.IntegerField(1, variant=_messages.Variant.INT32) creationTimestamp = _messages.StringField(2) description = _messages.StringField(3) healthyThreshold = _messages.IntegerField(4, variant=_messages.Variant.INT32) host = _messages.StringField(5) id = _messages.IntegerField(6, variant=_messages.Variant.UINT64) kind = _messages.StringField(7, default=u'compute#httpsHealthCheck') name = _messages.StringField(8) port = _messages.IntegerField(9, variant=_messages.Variant.INT32) requestPath = _messages.StringField(10) selfLink = _messages.StringField(11) timeoutSec = _messages.IntegerField(12, variant=_messages.Variant.INT32) unhealthyThreshold = _messages.IntegerField(13, variant=_messages.Variant.INT32) class HttpsHealthCheckList(_messages.Message): r"""Contains a list of HttpsHealthCheck resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of HttpsHealthCheck resources. kind: Type of resource. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('HttpsHealthCheck', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#httpsHealthCheckList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class Image(_messages.Message): r"""Represents an Image resource. You can use images to create boot disks for your VM instances. For more information, read Images. (== resource_for beta.images ==) (== resource_for v1.images ==) Enums: SourceTypeValueValuesEnum: The type of the image used to create this disk. The default and only value is RAW StatusValueValuesEnum: [Output Only] The status of the image. An image can be used to create other resources, such as instances, only after the image has been successfully created and the status is set to READY. Possible values are FAILED, PENDING, or READY. Messages: LabelsValue: Labels to apply to this image. These can be later modified by the setLabels method. RawDiskValue: The parameters of the raw disk image. Fields: archiveSizeBytes: Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. deprecated: The deprecation status associated with this image. description: An optional description of this resource. Provide this property when you create the resource. diskSizeGb: Size of the image when restored onto a persistent disk (in GB). family: The name of the image family to which this image belongs. You can create disks by specifying an image family instead of a specific image name. The image family always returns its latest image that is not deprecated. The name of the image family must comply with RFC1035. guestOsFeatures: A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. imageEncryptionKey: Encrypts the image using a customer-supplied encryption key. After you encrypt an image with a customer-supplied key, you must provide the same key if you use the image later (e.g. to create a disk from the image). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the image, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the image later. kind: [Output Only] Type of the resource. Always compute#image for images. labelFingerprint: A fingerprint for the labels being applied to this image, which is essentially a hash of the labels used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an image. labels: Labels to apply to this image. These can be later modified by the setLabels method. licenseCodes: Integer license codes indicating which licenses are attached to this image. licenses: Any applicable license URI. name: Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. rawDisk: The parameters of the raw disk image. selfLink: [Output Only] Server-defined URL for the resource. sourceDisk: URL of the source disk used to create this image. This can be a full or valid partial URL. You must provide either this property or the rawDisk.source property but not both to create an image. For example, the following are valid values: - https://www.googleapis.com/ compute/v1/projects/project/zones/zone/disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk sourceDiskEncryptionKey: The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer- supplied encryption key. sourceDiskId: [Output Only] The ID value of the disk used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given disk name. sourceImage: URL of the source image used to create this image. This can be a full or valid partial URL. You must provide exactly one of: - this property, or - the rawDisk.source property, or - the sourceDisk property in order to create an image. sourceImageEncryptionKey: The customer-supplied encryption key of the source image. Required if the source image is protected by a customer- supplied encryption key. sourceImageId: [Output Only] The ID value of the image used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given image name. sourceSnapshot: URL of the source snapshot used to create this image. This can be a full or valid partial URL. You must provide exactly one of: - this property, or - the sourceImage property, or - the rawDisk.source property, or - the sourceDisk property in order to create an image. sourceSnapshotEncryptionKey: The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. sourceSnapshotId: [Output Only] The ID value of the snapshot used to create this image. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given snapshot name. sourceType: The type of the image used to create this disk. The default and only value is RAW status: [Output Only] The status of the image. An image can be used to create other resources, such as instances, only after the image has been successfully created and the status is set to READY. Possible values are FAILED, PENDING, or READY. """ class SourceTypeValueValuesEnum(_messages.Enum): r"""The type of the image used to create this disk. The default and only value is RAW Values: RAW: <no description> """ RAW = 0 class StatusValueValuesEnum(_messages.Enum): r"""[Output Only] The status of the image. An image can be used to create other resources, such as instances, only after the image has been successfully created and the status is set to READY. Possible values are FAILED, PENDING, or READY. Values: DELETING: <no description> FAILED: <no description> PENDING: <no description> READY: <no description> """ DELETING = 0 FAILED = 1 PENDING = 2 READY = 3 @encoding.MapUnrecognizedFields('additionalProperties') class LabelsValue(_messages.Message): r"""Labels to apply to this image. These can be later modified by the setLabels method. Messages: AdditionalProperty: An additional property for a LabelsValue object. Fields: additionalProperties: Additional properties of type LabelsValue """ class AdditionalProperty(_messages.Message): r"""An additional property for a LabelsValue object. Fields: key: Name of the additional property. value: A string attribute. """ key = _messages.StringField(1) value = _messages.StringField(2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class RawDiskValue(_messages.Message): r"""The parameters of the raw disk image. Enums: ContainerTypeValueValuesEnum: The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created. Fields: containerType: The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created. sha1Checksum: [Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created. source: The full Google Cloud Storage URL where the disk image is stored. You must provide either this property or the sourceDisk property but not both. """ class ContainerTypeValueValuesEnum(_messages.Enum): r"""The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created. Values: TAR: <no description> """ TAR = 0 containerType = _messages.EnumField('ContainerTypeValueValuesEnum', 1) sha1Checksum = _messages.StringField(2) source = _messages.StringField(3) archiveSizeBytes = _messages.IntegerField(1) creationTimestamp = _messages.StringField(2) deprecated = _messages.MessageField('DeprecationStatus', 3) description = _messages.StringField(4) diskSizeGb = _messages.IntegerField(5) family = _messages.StringField(6) guestOsFeatures = _messages.MessageField('GuestOsFeature', 7, repeated=True) id = _messages.IntegerField(8, variant=_messages.Variant.UINT64) imageEncryptionKey = _messages.MessageField('CustomerEncryptionKey', 9) kind = _messages.StringField(10, default=u'compute#image') labelFingerprint = _messages.BytesField(11) labels = _messages.MessageField('LabelsValue', 12) licenseCodes = _messages.IntegerField(13, repeated=True) licenses = _messages.StringField(14, repeated=True) name = _messages.StringField(15) rawDisk = _messages.MessageField('RawDiskValue', 16) selfLink = _messages.StringField(17) sourceDisk = _messages.StringField(18) sourceDiskEncryptionKey = _messages.MessageField('CustomerEncryptionKey', 19) sourceDiskId = _messages.StringField(20) sourceImage = _messages.StringField(21) sourceImageEncryptionKey = _messages.MessageField('CustomerEncryptionKey', 22) sourceImageId = _messages.StringField(23) sourceSnapshot = _messages.StringField(24) sourceSnapshotEncryptionKey = _messages.MessageField('CustomerEncryptionKey', 25) sourceSnapshotId = _messages.StringField(26) sourceType = _messages.EnumField('SourceTypeValueValuesEnum', 27, default=u'RAW') status = _messages.EnumField('StatusValueValuesEnum', 28) class ImageList(_messages.Message): r"""Contains a list of images. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of Image resources. kind: Type of resource. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('Image', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#imageList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class Instance(_messages.Message): r"""Represents an Instance resource. An instance is a virtual machine that is hosted on Google Cloud Platform. For more information, read Virtual Machine Instances. (== resource_for beta.instances ==) (== resource_for v1.instances ==) Enums: StatusValueValuesEnum: [Output Only] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, STOPPED, SUSPENDING, SUSPENDED, and TERMINATED. Messages: LabelsValue: Labels to apply to this instance. These can be later modified by the setLabels method. Fields: canIpForward: Allows this instance to send and receive packets with non- matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding. cpuPlatform: [Output Only] The CPU platform used by this instance. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. deletionProtection: Whether the resource should be protected against deletion. description: An optional description of this resource. Provide this property when you create the resource. disks: Array of disks associated with this instance. Persistent disks must be created before you can assign them. displayDevice: Enables display device for the instance. guestAccelerators: A list of the type and count of accelerator cards attached to the instance. hostname: Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If hostname is not specified, the default hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of the resource. Always compute#instance for instances. labelFingerprint: A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up- to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the instance. labels: Labels to apply to this instance. These can be later modified by the setLabels method. machineType: Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. For example, the following is a valid partial url to a predefined machine type: zones/us- central1-f/machineTypes/n1-standard-1 To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB): zones/zone/machineTypes/custom-CPUS-MEMORY For example: zones/us- central1-f/machineTypes/custom-4-5120 For a full list of restrictions, read the Specifications for custom machine types. metadata: The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys. minCpuPlatform: Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". name: The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. networkInterfaces: An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance. reservationAffinity: Specifies the reservations that this instance can consume from. scheduling: Sets the scheduling options for this instance. selfLink: [Output Only] Server-defined URL for this resource. serviceAccounts: A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information. shieldedInstanceConfig: A ShieldedInstanceConfig attribute. shieldedInstanceIntegrityPolicy: A ShieldedInstanceIntegrityPolicy attribute. startRestricted: [Output Only] Whether a VM has been restricted for start because Compute Engine has detected suspicious activity. status: [Output Only] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, STOPPED, SUSPENDING, SUSPENDED, and TERMINATED. statusMessage: [Output Only] An optional, human-readable explanation of the status. tags: Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035. Multiple tags can be specified via the 'tags.items' field. zone: [Output Only] URL of the zone where the instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. """ class StatusValueValuesEnum(_messages.Enum): r"""[Output Only] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, STOPPED, SUSPENDING, SUSPENDED, and TERMINATED. Values: PROVISIONING: <no description> REPAIRING: <no description> RUNNING: <no description> STAGING: <no description> STOPPED: <no description> STOPPING: <no description> SUSPENDED: <no description> SUSPENDING: <no description> TERMINATED: <no description> """ PROVISIONING = 0 REPAIRING = 1 RUNNING = 2 STAGING = 3 STOPPED = 4 STOPPING = 5 SUSPENDED = 6 SUSPENDING = 7 TERMINATED = 8 @encoding.MapUnrecognizedFields('additionalProperties') class LabelsValue(_messages.Message): r"""Labels to apply to this instance. These can be later modified by the setLabels method. Messages: AdditionalProperty: An additional property for a LabelsValue object. Fields: additionalProperties: Additional properties of type LabelsValue """ class AdditionalProperty(_messages.Message): r"""An additional property for a LabelsValue object. Fields: key: Name of the additional property. value: A string attribute. """ key = _messages.StringField(1) value = _messages.StringField(2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) canIpForward = _messages.BooleanField(1) cpuPlatform = _messages.StringField(2) creationTimestamp = _messages.StringField(3) deletionProtection = _messages.BooleanField(4) description = _messages.StringField(5) disks = _messages.MessageField('AttachedDisk', 6, repeated=True) displayDevice = _messages.MessageField('DisplayDevice', 7) guestAccelerators = _messages.MessageField('AcceleratorConfig', 8, repeated=True) hostname = _messages.StringField(9) id = _messages.IntegerField(10, variant=_messages.Variant.UINT64) kind = _messages.StringField(11, default=u'compute#instance') labelFingerprint = _messages.BytesField(12) labels = _messages.MessageField('LabelsValue', 13) machineType = _messages.StringField(14) metadata = _messages.MessageField('Metadata', 15) minCpuPlatform = _messages.StringField(16) name = _messages.StringField(17) networkInterfaces = _messages.MessageField('NetworkInterface', 18, repeated=True) reservationAffinity = _messages.MessageField('ReservationAffinity', 19) scheduling = _messages.MessageField('Scheduling', 20) selfLink = _messages.StringField(21) serviceAccounts = _messages.MessageField('ServiceAccount', 22, repeated=True) shieldedInstanceConfig = _messages.MessageField('ShieldedInstanceConfig', 23) shieldedInstanceIntegrityPolicy = _messages.MessageField('ShieldedInstanceIntegrityPolicy', 24) startRestricted = _messages.BooleanField(25) status = _messages.EnumField('StatusValueValuesEnum', 26) statusMessage = _messages.StringField(27) tags = _messages.MessageField('Tags', 28) zone = _messages.StringField(29) class InstanceAggregatedList(_messages.Message): r"""A InstanceAggregatedList object. Messages: ItemsValue: An object that contains a list of instances scoped by zone. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: An object that contains a list of instances scoped by zone. kind: [Output Only] Type of resource. Always compute#instanceAggregatedList for aggregated lists of Instance resources. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""An object that contains a list of instances scoped by zone. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: [Output Only] Name of the scope containing this set of instances. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A InstancesScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('InstancesScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#instanceAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class InstanceGroup(_messages.Message): r"""Represents an unmanaged Instance Group resource. Use unmanaged instance groups if you need to apply load balancing to groups of heterogeneous instances or if you need to manage the instances yourself. For more information, read Instance groups. For zonal unmanaged Instance Group, use instanceGroups resource. For regional unmanaged Instance Group, use regionInstanceGroups resource. (== resource_for beta.instanceGroups ==) (== resource_for v1.instanceGroups ==) (== resource_for beta.regionInstanceGroups ==) (== resource_for v1.regionInstanceGroups ==) Fields: creationTimestamp: [Output Only] The creation timestamp for this instance group in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. fingerprint: [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently. id: [Output Only] A unique identifier for this instance group, generated by the server. kind: [Output Only] The resource type, which is always compute#instanceGroup for instance groups. name: The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035. namedPorts: Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "http", port: 80},{name: "http", port: 8080}] Named ports apply to all instances in this instance group. network: The URL of the network to which all instances in the instance group belong. region: [Output Only] The URL of the region where the instance group is located (for regional resources). selfLink: [Output Only] The URL for this instance group. The server generates this URL. size: [Output Only] The total number of instances in the instance group. subnetwork: [Output Only] The URL of the subnetwork to which all instances in the instance group belong. zone: [Output Only] The URL of the zone where the instance group is located (for zonal resources). """ creationTimestamp = _messages.StringField(1) description = _messages.StringField(2) fingerprint = _messages.BytesField(3) id = _messages.IntegerField(4, variant=_messages.Variant.UINT64) kind = _messages.StringField(5, default=u'compute#instanceGroup') name = _messages.StringField(6) namedPorts = _messages.MessageField('NamedPort', 7, repeated=True) network = _messages.StringField(8) region = _messages.StringField(9) selfLink = _messages.StringField(10) size = _messages.IntegerField(11, variant=_messages.Variant.INT32) subnetwork = _messages.StringField(12) zone = _messages.StringField(13) class InstanceGroupAggregatedList(_messages.Message): r"""A InstanceGroupAggregatedList object. Messages: ItemsValue: A list of InstanceGroupsScopedList resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of InstanceGroupsScopedList resources. kind: [Output Only] The resource type, which is always compute#instanceGroupAggregatedList for aggregated lists of instance groups. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of InstanceGroupsScopedList resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: The name of the scope that contains this set of instance groups. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A InstanceGroupsScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('InstanceGroupsScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#instanceGroupAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class InstanceGroupList(_messages.Message): r"""A list of InstanceGroup resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of InstanceGroup resources. kind: [Output Only] The resource type, which is always compute#instanceGroupList for instance group lists. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('InstanceGroup', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#instanceGroupList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class InstanceGroupManager(_messages.Message): r"""Represents a Managed Instance Group resource. An instance group is a collection of VM instances that you can manage as a single entity. For more information, read Instance groups. For zonal Managed Instance Group, use the instanceGroupManagers resource. For regional Managed Instance Group, use the regionInstanceGroupManagers resource. (== resource_for beta.instanceGroupManagers ==) (== resource_for v1.instanceGroupManagers ==) (== resource_for beta.regionInstanceGroupManagers ==) (== resource_for v1.regionInstanceGroupManagers ==) Fields: autoHealingPolicies: The autohealing policy for this managed instance group. You can specify only one value. baseInstanceName: The base instance name to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with RFC1035. creationTimestamp: [Output Only] The creation timestamp for this managed instance group in RFC3339 text format. currentActions: [Output Only] The list of instance actions and the number of instances in this managed instance group that are scheduled for each of those actions. description: An optional description of this resource. Provide this property when you create the resource. distributionPolicy: Policy specifying intended distribution of instances in regional managed instance group. fingerprint: Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to update the InstanceGroupManager, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an InstanceGroupManager. id: [Output Only] A unique identifier for this resource type. The server generates this identifier. instanceGroup: [Output Only] The URL of the Instance Group resource. instanceTemplate: The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group. kind: [Output Only] The resource type, which is always compute#instanceGroupManager for managed instance groups. name: The name of the managed instance group. The name must be 1-63 characters long, and comply with RFC1035. namedPorts: Named ports configured for the Instance Groups complementary to this Instance Group Manager. region: [Output Only] The URL of the region where the managed instance group resides (for regional resources). selfLink: [Output Only] The URL for this managed instance group. The server defines this URL. status: [Output Only] The status of this managed instance group. targetPools: The URLs for all TargetPool resources to which instances in the instanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group. targetSize: The target number of running instances for this managed instance group. Deleting or abandoning instances reduces this number. Resizing the group changes this number. updatePolicy: The update policy for this managed instance group. versions: Specifies the instance templates used by this managed instance group to create instances. Each version is defined by an instanceTemplate and a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary updates. zone: [Output Only] The URL of the zone where the managed instance group is located (for zonal resources). """ autoHealingPolicies = _messages.MessageField('InstanceGroupManagerAutoHealingPolicy', 1, repeated=True) baseInstanceName = _messages.StringField(2) creationTimestamp = _messages.StringField(3) currentActions = _messages.MessageField('InstanceGroupManagerActionsSummary', 4) description = _messages.StringField(5) distributionPolicy = _messages.MessageField('DistributionPolicy', 6) fingerprint = _messages.BytesField(7) id = _messages.IntegerField(8, variant=_messages.Variant.UINT64) instanceGroup = _messages.StringField(9) instanceTemplate = _messages.StringField(10) kind = _messages.StringField(11, default=u'compute#instanceGroupManager') name = _messages.StringField(12) namedPorts = _messages.MessageField('NamedPort', 13, repeated=True) region = _messages.StringField(14) selfLink = _messages.StringField(15) status = _messages.MessageField('InstanceGroupManagerStatus', 16) targetPools = _messages.StringField(17, repeated=True) targetSize = _messages.IntegerField(18, variant=_messages.Variant.INT32) updatePolicy = _messages.MessageField('InstanceGroupManagerUpdatePolicy', 19) versions = _messages.MessageField('InstanceGroupManagerVersion', 20, repeated=True) zone = _messages.StringField(21) class InstanceGroupManagerActionsSummary(_messages.Message): r"""A InstanceGroupManagerActionsSummary object. Fields: abandoning: [Output Only] The total number of instances in the managed instance group that are scheduled to be abandoned. Abandoning an instance removes it from the managed instance group without deleting it. creating: [Output Only] The number of instances in the managed instance group that are scheduled to be created or are currently being created. If the group fails to create any of these instances, it tries again until it creates the instance successfully. If you have disabled creation retries, this field will not be populated; instead, the creatingWithoutRetries field will be populated. creatingWithoutRetries: [Output Only] The number of instances that the managed instance group will attempt to create. The group attempts to create each instance only once. If the group fails to create any of these instances, it decreases the group's targetSize value accordingly. deleting: [Output Only] The number of instances in the managed instance group that are scheduled to be deleted or are currently being deleted. none: [Output Only] The number of instances in the managed instance group that are running and have no scheduled actions. recreating: [Output Only] The number of instances in the managed instance group that are scheduled to be recreated or are currently being being recreated. Recreating an instance deletes the existing root persistent disk and creates a new disk from the image that is defined in the instance template. refreshing: [Output Only] The number of instances in the managed instance group that are being reconfigured with properties that do not require a restart or a recreate action. For example, setting or removing target pools for the instance. restarting: [Output Only] The number of instances in the managed instance group that are scheduled to be restarted or are currently being restarted. verifying: [Output Only] The number of instances in the managed instance group that are being verified. See the managedInstances[].currentAction property in the listManagedInstances method documentation. """ abandoning = _messages.IntegerField(1, variant=_messages.Variant.INT32) creating = _messages.IntegerField(2, variant=_messages.Variant.INT32) creatingWithoutRetries = _messages.IntegerField(3, variant=_messages.Variant.INT32) deleting = _messages.IntegerField(4, variant=_messages.Variant.INT32) none = _messages.IntegerField(5, variant=_messages.Variant.INT32) recreating = _messages.IntegerField(6, variant=_messages.Variant.INT32) refreshing = _messages.IntegerField(7, variant=_messages.Variant.INT32) restarting = _messages.IntegerField(8, variant=_messages.Variant.INT32) verifying = _messages.IntegerField(9, variant=_messages.Variant.INT32) class InstanceGroupManagerAggregatedList(_messages.Message): r"""A InstanceGroupManagerAggregatedList object. Messages: ItemsValue: A list of InstanceGroupManagersScopedList resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of InstanceGroupManagersScopedList resources. kind: [Output Only] The resource type, which is always compute#instanceGroupManagerAggregatedList for an aggregated list of managed instance groups. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of InstanceGroupManagersScopedList resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: [Output Only] The name of the scope that contains this set of managed instance groups. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A InstanceGroupManagersScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('InstanceGroupManagersScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#instanceGroupManagerAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class InstanceGroupManagerAutoHealingPolicy(_messages.Message): r"""InstanceGroupManagerAutoHealingPolicy message type. Fields: healthCheck: The URL for the health check that signals autohealing. initialDelaySec: The number of seconds that the managed instance group waits before it applies autohealing policies to new instances or recently recreated instances. This initial delay allows instances to initialize and run their startup scripts before the instance group determines that they are UNHEALTHY. This prevents the managed instance group from recreating its instances prematurely. This value must be from range [0, 3600]. """ healthCheck = _messages.StringField(1) initialDelaySec = _messages.IntegerField(2, variant=_messages.Variant.INT32) class InstanceGroupManagerList(_messages.Message): r"""[Output Only] A list of managed instance groups. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of InstanceGroupManager resources. kind: [Output Only] The resource type, which is always compute#instanceGroupManagerList for a list of managed instance groups. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('InstanceGroupManager', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#instanceGroupManagerList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class InstanceGroupManagerStatus(_messages.Message): r"""A InstanceGroupManagerStatus object. Fields: isStable: [Output Only] A bit indicating whether the managed instance group is in a stable state. A stable state means that: none of the instances in the managed instance group is currently undergoing any type of change (for example, creation, restart, or deletion); no future changes are scheduled for instances in the managed instance group; and the managed instance group itself is not being modified. """ isStable = _messages.BooleanField(1) class InstanceGroupManagerUpdatePolicy(_messages.Message): r"""A InstanceGroupManagerUpdatePolicy object. Enums: MinimalActionValueValuesEnum: Minimal action to be taken on an instance. You can specify either RESTART to restart existing instances or REPLACE to delete and create new instances from the target template. If you specify a RESTART, the Updater will attempt to perform that action only. However, if the Updater determines that the minimal action you specify is not enough to perform the update, it might perform a more disruptive action. TypeValueValuesEnum: The type of update process. You can specify either PROACTIVE so that the instance group manager proactively executes actions in order to bring instances to their target versions or OPPORTUNISTIC so that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls). Fields: maxSurge: The maximum number of instances that can be created above the specified targetSize during the update process. By default, a fixed value of 1 is used. This value can be either a fixed number or a percentage if the instance group has 10 or more instances. If you set a percentage, the number of instances will be rounded up if necessary. At least one of either maxSurge or maxUnavailable must be greater than 0. Learn more about maxSurge. maxUnavailable: The maximum number of instances that can be unavailable during the update process. An instance is considered available if all of the following conditions are satisfied: - The instance's status is RUNNING. - If there is a health check on the instance group, the instance's liveness health check result must be HEALTHY at least once. If there is no health check on the group, then the instance only needs to have a status of RUNNING to be considered available. By default, a fixed value of 1 is used. This value can be either a fixed number or a percentage if the instance group has 10 or more instances. If you set a percentage, the number of instances will be rounded up if necessary. At least one of either maxSurge or maxUnavailable must be greater than 0. Learn more about maxUnavailable. minimalAction: Minimal action to be taken on an instance. You can specify either RESTART to restart existing instances or REPLACE to delete and create new instances from the target template. If you specify a RESTART, the Updater will attempt to perform that action only. However, if the Updater determines that the minimal action you specify is not enough to perform the update, it might perform a more disruptive action. type: The type of update process. You can specify either PROACTIVE so that the instance group manager proactively executes actions in order to bring instances to their target versions or OPPORTUNISTIC so that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls). """ class MinimalActionValueValuesEnum(_messages.Enum): r"""Minimal action to be taken on an instance. You can specify either RESTART to restart existing instances or REPLACE to delete and create new instances from the target template. If you specify a RESTART, the Updater will attempt to perform that action only. However, if the Updater determines that the minimal action you specify is not enough to perform the update, it might perform a more disruptive action. Values: REPLACE: <no description> RESTART: <no description> """ REPLACE = 0 RESTART = 1 class TypeValueValuesEnum(_messages.Enum): r"""The type of update process. You can specify either PROACTIVE so that the instance group manager proactively executes actions in order to bring instances to their target versions or OPPORTUNISTIC so that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls). Values: OPPORTUNISTIC: <no description> PROACTIVE: <no description> """ OPPORTUNISTIC = 0 PROACTIVE = 1 maxSurge = _messages.MessageField('FixedOrPercent', 1) maxUnavailable = _messages.MessageField('FixedOrPercent', 2) minimalAction = _messages.EnumField('MinimalActionValueValuesEnum', 3) type = _messages.EnumField('TypeValueValuesEnum', 4) class InstanceGroupManagerVersion(_messages.Message): r"""A InstanceGroupManagerVersion object. Fields: instanceTemplate: The URL of the instance template that is specified for this managed instance group. The group uses this template to create new instances in the managed instance group until the `targetSize` for this version is reached. name: Name of the version. Unique among all versions in the scope of this managed instance group. targetSize: Specifies the intended number of instances to be created from the instanceTemplate. The final number of instances created from the template will be equal to: - If expressed as a fixed number, the minimum of either targetSize.fixed or instanceGroupManager.targetSize is used. - if expressed as a percent, the targetSize would be (targetSize.percent/100 * InstanceGroupManager.targetSize) If there is a remainder, the number is rounded up. If unset, this version will update any remaining instances not updated by another version. Read Starting a canary update for more information. """ instanceTemplate = _messages.StringField(1) name = _messages.StringField(2) targetSize = _messages.MessageField('FixedOrPercent', 3) class InstanceGroupManagersAbandonInstancesRequest(_messages.Message): r"""A InstanceGroupManagersAbandonInstancesRequest object. Fields: instances: The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. """ instances = _messages.StringField(1, repeated=True) class InstanceGroupManagersDeleteInstancesRequest(_messages.Message): r"""A InstanceGroupManagersDeleteInstancesRequest object. Fields: instances: The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. """ instances = _messages.StringField(1, repeated=True) class InstanceGroupManagersListManagedInstancesResponse(_messages.Message): r"""A InstanceGroupManagersListManagedInstancesResponse object. Fields: managedInstances: [Output Only] The list of instances in the managed instance group. """ managedInstances = _messages.MessageField('ManagedInstance', 1, repeated=True) class InstanceGroupManagersRecreateInstancesRequest(_messages.Message): r"""A InstanceGroupManagersRecreateInstancesRequest object. Fields: instances: The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. """ instances = _messages.StringField(1, repeated=True) class InstanceGroupManagersScopedList(_messages.Message): r"""A InstanceGroupManagersScopedList object. Messages: WarningValue: [Output Only] The warning that replaces the list of managed instance groups when the list is empty. Fields: instanceGroupManagers: [Output Only] The list of managed instance groups that are contained in the specified project and zone. warning: [Output Only] The warning that replaces the list of managed instance groups when the list is empty. """ class WarningValue(_messages.Message): r"""[Output Only] The warning that replaces the list of managed instance groups when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) instanceGroupManagers = _messages.MessageField('InstanceGroupManager', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class InstanceGroupManagersSetInstanceTemplateRequest(_messages.Message): r"""A InstanceGroupManagersSetInstanceTemplateRequest object. Fields: instanceTemplate: The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group. """ instanceTemplate = _messages.StringField(1) class InstanceGroupManagersSetTargetPoolsRequest(_messages.Message): r"""A InstanceGroupManagersSetTargetPoolsRequest object. Fields: fingerprint: The fingerprint of the target pools information. Use this optional property to prevent conflicts when multiple users change the target pools settings concurrently. Obtain the fingerprint with the instanceGroupManagers.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request. targetPools: The list of target pool URLs that instances in this managed instance group belong to. The managed instance group applies these target pools to all of the instances in the group. Existing instances and new instances in the group all receive these target pool settings. """ fingerprint = _messages.BytesField(1) targetPools = _messages.StringField(2, repeated=True) class InstanceGroupsAddInstancesRequest(_messages.Message): r"""A InstanceGroupsAddInstancesRequest object. Fields: instances: The list of instances to add to the instance group. """ instances = _messages.MessageField('InstanceReference', 1, repeated=True) class InstanceGroupsListInstances(_messages.Message): r"""A InstanceGroupsListInstances object. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of InstanceWithNamedPorts resources. kind: [Output Only] The resource type, which is always compute#instanceGroupsListInstances for the list of instances in the specified instance group. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('InstanceWithNamedPorts', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#instanceGroupsListInstances') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class InstanceGroupsListInstancesRequest(_messages.Message): r"""A InstanceGroupsListInstancesRequest object. Enums: InstanceStateValueValuesEnum: A filter for the state of the instances in the instance group. Valid options are ALL or RUNNING. If you do not specify this parameter the list includes all instances regardless of their state. Fields: instanceState: A filter for the state of the instances in the instance group. Valid options are ALL or RUNNING. If you do not specify this parameter the list includes all instances regardless of their state. """ class InstanceStateValueValuesEnum(_messages.Enum): r"""A filter for the state of the instances in the instance group. Valid options are ALL or RUNNING. If you do not specify this parameter the list includes all instances regardless of their state. Values: ALL: <no description> RUNNING: <no description> """ ALL = 0 RUNNING = 1 instanceState = _messages.EnumField('InstanceStateValueValuesEnum', 1) class InstanceGroupsRemoveInstancesRequest(_messages.Message): r"""A InstanceGroupsRemoveInstancesRequest object. Fields: instances: The list of instances to remove from the instance group. """ instances = _messages.MessageField('InstanceReference', 1, repeated=True) class InstanceGroupsScopedList(_messages.Message): r"""A InstanceGroupsScopedList object. Messages: WarningValue: [Output Only] An informational warning that replaces the list of instance groups when the list is empty. Fields: instanceGroups: [Output Only] The list of instance groups that are contained in this scope. warning: [Output Only] An informational warning that replaces the list of instance groups when the list is empty. """ class WarningValue(_messages.Message): r"""[Output Only] An informational warning that replaces the list of instance groups when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) instanceGroups = _messages.MessageField('InstanceGroup', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class InstanceGroupsSetNamedPortsRequest(_messages.Message): r"""A InstanceGroupsSetNamedPortsRequest object. Fields: fingerprint: The fingerprint of the named ports information for this instance group. Use this optional property to prevent conflicts when multiple users change the named ports settings concurrently. Obtain the fingerprint with the instanceGroups.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request. A request with an incorrect fingerprint will fail with error 412 conditionNotMet. namedPorts: The list of named ports to set for this instance group. """ fingerprint = _messages.BytesField(1) namedPorts = _messages.MessageField('NamedPort', 2, repeated=True) class InstanceList(_messages.Message): r"""Contains a list of instances. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of Instance resources. kind: [Output Only] Type of resource. Always compute#instanceList for lists of Instance resources. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('Instance', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#instanceList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class InstanceListReferrers(_messages.Message): r"""Contains a list of instance referrers. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of Reference resources. kind: [Output Only] Type of resource. Always compute#instanceListReferrers for lists of Instance referrers. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('Reference', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#instanceListReferrers') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class InstanceMoveRequest(_messages.Message): r"""A InstanceMoveRequest object. Fields: destinationZone: The URL of the destination zone to move the instance. This can be a full or partial URL. For example, the following are all valid URLs to a zone: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/zones/zone - zones/zone targetInstance: The URL of the target instance to move. This can be a full or partial URL. For example, the following are all valid URLs to an instance: - https://www.googleapis.com/compute/v1/projects/project/zon es/zone/instances/instance - projects/project/zones/zone/instances/instance - zones/zone/instances/instance """ destinationZone = _messages.StringField(1) targetInstance = _messages.StringField(2) class InstanceProperties(_messages.Message): r"""InstanceProperties message type. Messages: LabelsValue: Labels to apply to instances that are created from this template. Fields: canIpForward: Enables instances created based on this template to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next- hop in a Route resource, specify true. If unsure, leave this set to false. See the Enable IP forwarding documentation for more information. description: An optional text description for the instances that are created from this instance template. disks: An array of disks that are associated with the instances that are created from this template. guestAccelerators: A list of guest accelerator cards' type and count to use for instances created from the instance template. labels: Labels to apply to instances that are created from this template. machineType: The machine type to use for instances that are created from this template. metadata: The metadata key/value pairs to assign to instances that are created from this template. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information. minCpuPlatform: Minimum cpu/platform to be used by this instance. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform. networkInterfaces: An array of network access configurations for this interface. reservationAffinity: Specifies the reservations that this instance can consume from. scheduling: Specifies the scheduling options for the instances that are created from this template. serviceAccounts: A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from this template. Use metadata queries to obtain the access tokens for these instances. shieldedInstanceConfig: A ShieldedInstanceConfig attribute. tags: A list of tags to apply to the instances that are created from this template. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035. """ @encoding.MapUnrecognizedFields('additionalProperties') class LabelsValue(_messages.Message): r"""Labels to apply to instances that are created from this template. Messages: AdditionalProperty: An additional property for a LabelsValue object. Fields: additionalProperties: Additional properties of type LabelsValue """ class AdditionalProperty(_messages.Message): r"""An additional property for a LabelsValue object. Fields: key: Name of the additional property. value: A string attribute. """ key = _messages.StringField(1) value = _messages.StringField(2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) canIpForward = _messages.BooleanField(1) description = _messages.StringField(2) disks = _messages.MessageField('AttachedDisk', 3, repeated=True) guestAccelerators = _messages.MessageField('AcceleratorConfig', 4, repeated=True) labels = _messages.MessageField('LabelsValue', 5) machineType = _messages.StringField(6) metadata = _messages.MessageField('Metadata', 7) minCpuPlatform = _messages.StringField(8) networkInterfaces = _messages.MessageField('NetworkInterface', 9, repeated=True) reservationAffinity = _messages.MessageField('ReservationAffinity', 10) scheduling = _messages.MessageField('Scheduling', 11) serviceAccounts = _messages.MessageField('ServiceAccount', 12, repeated=True) shieldedInstanceConfig = _messages.MessageField('ShieldedInstanceConfig', 13) tags = _messages.MessageField('Tags', 14) class InstanceReference(_messages.Message): r"""A InstanceReference object. Fields: instance: The URL for a specific instance. """ instance = _messages.StringField(1) class InstanceTemplate(_messages.Message): r"""Represents an Instance Template resource. You can use instance templates to create VM instances and managed instance groups. For more information, read Instance Templates. (== resource_for beta.instanceTemplates ==) (== resource_for v1.instanceTemplates ==) Fields: creationTimestamp: [Output Only] The creation timestamp for this instance template in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. id: [Output Only] A unique identifier for this instance template. The server defines this identifier. kind: [Output Only] The resource type, which is always compute#instanceTemplate for instance templates. name: Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. properties: The instance properties for this instance template. selfLink: [Output Only] The URL for this instance template. The server defines this URL. sourceInstance: The source instance used to create the template. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/pr ojects/project/zones/zone/instances/instance - projects/project/zones/zone/instances/instance sourceInstanceParams: The source instance params to use to create this instance template. """ creationTimestamp = _messages.StringField(1) description = _messages.StringField(2) id = _messages.IntegerField(3, variant=_messages.Variant.UINT64) kind = _messages.StringField(4, default=u'compute#instanceTemplate') name = _messages.StringField(5) properties = _messages.MessageField('InstanceProperties', 6) selfLink = _messages.StringField(7) sourceInstance = _messages.StringField(8) sourceInstanceParams = _messages.MessageField('SourceInstanceParams', 9) class InstanceTemplateList(_messages.Message): r"""A list of instance templates. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of InstanceTemplate resources. kind: [Output Only] The resource type, which is always compute#instanceTemplatesListResponse for instance template lists. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('InstanceTemplate', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#instanceTemplateList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class InstanceWithNamedPorts(_messages.Message): r"""A InstanceWithNamedPorts object. Enums: StatusValueValuesEnum: [Output Only] The status of the instance. Fields: instance: [Output Only] The URL of the instance. namedPorts: [Output Only] The named ports that belong to this instance group. status: [Output Only] The status of the instance. """ class StatusValueValuesEnum(_messages.Enum): r"""[Output Only] The status of the instance. Values: PROVISIONING: <no description> REPAIRING: <no description> RUNNING: <no description> STAGING: <no description> STOPPED: <no description> STOPPING: <no description> SUSPENDED: <no description> SUSPENDING: <no description> TERMINATED: <no description> """ PROVISIONING = 0 REPAIRING = 1 RUNNING = 2 STAGING = 3 STOPPED = 4 STOPPING = 5 SUSPENDED = 6 SUSPENDING = 7 TERMINATED = 8 instance = _messages.StringField(1) namedPorts = _messages.MessageField('NamedPort', 2, repeated=True) status = _messages.EnumField('StatusValueValuesEnum', 3) class InstancesScopedList(_messages.Message): r"""A InstancesScopedList object. Messages: WarningValue: [Output Only] Informational warning which replaces the list of instances when the list is empty. Fields: instances: [Output Only] A list of instances contained in this scope. warning: [Output Only] Informational warning which replaces the list of instances when the list is empty. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning which replaces the list of instances when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) instances = _messages.MessageField('Instance', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class InstancesSetLabelsRequest(_messages.Message): r"""A InstancesSetLabelsRequest object. Messages: LabelsValue: A LabelsValue object. Fields: labelFingerprint: Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide the latest fingerprint value when making a request to add or change labels. labels: A LabelsValue attribute. """ @encoding.MapUnrecognizedFields('additionalProperties') class LabelsValue(_messages.Message): r"""A LabelsValue object. Messages: AdditionalProperty: An additional property for a LabelsValue object. Fields: additionalProperties: Additional properties of type LabelsValue """ class AdditionalProperty(_messages.Message): r"""An additional property for a LabelsValue object. Fields: key: Name of the additional property. value: A string attribute. """ key = _messages.StringField(1) value = _messages.StringField(2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) labelFingerprint = _messages.BytesField(1) labels = _messages.MessageField('LabelsValue', 2) class InstancesSetMachineResourcesRequest(_messages.Message): r"""A InstancesSetMachineResourcesRequest object. Fields: guestAccelerators: A list of the type and count of accelerator cards attached to the instance. """ guestAccelerators = _messages.MessageField('AcceleratorConfig', 1, repeated=True) class InstancesSetMachineTypeRequest(_messages.Message): r"""A InstancesSetMachineTypeRequest object. Fields: machineType: Full or partial URL of the machine type resource. See Machine Types for a full list of machine types. For example: zones/us- central1-f/machineTypes/n1-standard-1 """ machineType = _messages.StringField(1) class InstancesSetMinCpuPlatformRequest(_messages.Message): r"""A InstancesSetMinCpuPlatformRequest object. Fields: minCpuPlatform: Minimum cpu/platform this instance should be started at. """ minCpuPlatform = _messages.StringField(1) class InstancesSetServiceAccountRequest(_messages.Message): r"""A InstancesSetServiceAccountRequest object. Fields: email: Email address of the service account. scopes: The list of scopes to be made available for this service account. """ email = _messages.StringField(1) scopes = _messages.StringField(2, repeated=True) class InstancesStartWithEncryptionKeyRequest(_messages.Message): r"""A InstancesStartWithEncryptionKeyRequest object. Fields: disks: Array of disks associated with this instance that are protected with a customer-supplied encryption key. In order to start the instance, the disk url and its corresponding key must be provided. If the disk is not protected with a customer-supplied encryption key it should not be specified. """ disks = _messages.MessageField('CustomerEncryptionKeyProtectedDisk', 1, repeated=True) class Interconnect(_messages.Message): r"""Represents an Interconnect resource. An Interconnect resource is a dedicated connection between the GCP network and your on-premises network. For more information, read the Dedicated Interconnect Overview. (== resource_for v1.interconnects ==) (== resource_for beta.interconnects ==) Enums: InterconnectTypeValueValuesEnum: Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed interconnection shared between customers though a partner. - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. LinkTypeValueValuesEnum: Type of link requested, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle. OperationalStatusValueValuesEnum: [Output Only] The current status of this Interconnect's functionality, which can take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. StateValueValuesEnum: [Output Only] The current state of Interconnect functionality, which can take one of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. Fields: adminEnabled: Administrative status of the interconnect. When this is set to true, the Interconnect is functional and can carry traffic. When set to false, no packets can be carried over the interconnect and no BGP routes are exchanged over it. By default, the status is set to true. circuitInfos: [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. customerName: Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect. description: An optional description of this resource. Provide this property when you create the resource. expectedOutages: [Output Only] A list of outages expected for this Interconnect. googleIpAddress: [Output Only] IP address configured on the Google side of the Interconnect link. This can be used only for ping tests. googleReferenceId: [Output Only] Google reference ID to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. interconnectAttachments: [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect. interconnectType: Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed interconnection shared between customers though a partner. - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. kind: [Output Only] Type of the resource. Always compute#interconnect for interconnects. linkType: Type of link requested, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle. location: URL of the InterconnectLocation object that represents where this connection is to be provisioned. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. nocContactEmail: Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Stackdriver logs alerting and Cloud Notifications. operationalStatus: [Output Only] The current status of this Interconnect's functionality, which can take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. peerIpAddress: [Output Only] IP address configured on the customer side of the Interconnect link. The customer should configure this IP address during turnup when prompted by Google NOC. This can be used only for ping tests. provisionedLinkCount: [Output Only] Number of links actually provisioned in this interconnect. requestedLinkCount: Target number of physical links in the link bundle, as requested by the customer. selfLink: [Output Only] Server-defined URL for the resource. state: [Output Only] The current state of Interconnect functionality, which can take one of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. """ class InterconnectTypeValueValuesEnum(_messages.Enum): r"""Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed interconnection shared between customers though a partner. - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. Values: DEDICATED: <no description> IT_PRIVATE: <no description> PARTNER: <no description> """ DEDICATED = 0 IT_PRIVATE = 1 PARTNER = 2 class LinkTypeValueValuesEnum(_messages.Enum): r"""Type of link requested, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle. Values: LINK_TYPE_ETHERNET_10G_LR: <no description> """ LINK_TYPE_ETHERNET_10G_LR = 0 class OperationalStatusValueValuesEnum(_messages.Enum): r"""[Output Only] The current status of this Interconnect's functionality, which can take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. Values: OS_ACTIVE: <no description> OS_UNPROVISIONED: <no description> """ OS_ACTIVE = 0 OS_UNPROVISIONED = 1 class StateValueValuesEnum(_messages.Enum): r"""[Output Only] The current state of Interconnect functionality, which can take one of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. Values: ACTIVE: <no description> UNPROVISIONED: <no description> """ ACTIVE = 0 UNPROVISIONED = 1 adminEnabled = _messages.BooleanField(1) circuitInfos = _messages.MessageField('InterconnectCircuitInfo', 2, repeated=True) creationTimestamp = _messages.StringField(3) customerName = _messages.StringField(4) description = _messages.StringField(5) expectedOutages = _messages.MessageField('InterconnectOutageNotification', 6, repeated=True) googleIpAddress = _messages.StringField(7) googleReferenceId = _messages.StringField(8) id = _messages.IntegerField(9, variant=_messages.Variant.UINT64) interconnectAttachments = _messages.StringField(10, repeated=True) interconnectType = _messages.EnumField('InterconnectTypeValueValuesEnum', 11) kind = _messages.StringField(12, default=u'compute#interconnect') linkType = _messages.EnumField('LinkTypeValueValuesEnum', 13) location = _messages.StringField(14) name = _messages.StringField(15) nocContactEmail = _messages.StringField(16) operationalStatus = _messages.EnumField('OperationalStatusValueValuesEnum', 17) peerIpAddress = _messages.StringField(18) provisionedLinkCount = _messages.IntegerField(19, variant=_messages.Variant.INT32) requestedLinkCount = _messages.IntegerField(20, variant=_messages.Variant.INT32) selfLink = _messages.StringField(21) state = _messages.EnumField('StateValueValuesEnum', 22) class InterconnectAttachment(_messages.Message): r"""Represents an Interconnect Attachment (VLAN) resource. You can use Interconnect attachments (VLANS) to connect your Virtual Private Cloud networks to your on-premises networks through an Interconnect. For more information, read Creating VLAN Attachments. (== resource_for beta.interconnectAttachments ==) (== resource_for v1.interconnectAttachments ==) Enums: BandwidthValueValuesEnum: Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s EdgeAvailabilityDomainValueValuesEnum: Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY. OperationalStatusValueValuesEnum: [Output Only] The current status of whether or not this interconnect attachment is functional, which can take one of the following values: - OS_ACTIVE: The attachment has been turned up and is ready to use. - OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete. StateValueValuesEnum: [Output Only] The current state of this attachment's functionality. Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This state can take one of the following values: - ACTIVE: The attachment has been turned up and is ready to use. - UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete. - PENDING_PARTNER: A newly- created PARTNER attachment that has not yet been configured on the Partner side. - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it. - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it. - DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted. TypeValueValuesEnum: The type of interconnect attachment this is, which can take one of the following values: - DEDICATED: an attachment to a Dedicated Interconnect. - PARTNER: an attachment to a Partner Interconnect, created by the customer. - PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by the partner. Fields: adminEnabled: Determines whether this Attachment will carry packets. Not present for PARTNER_PROVIDER. bandwidth: Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s candidateSubnets: Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google?s edge. If not supplied, Google will randomly select an unused /29 from all of link-local space. cloudRouterIpAddress: [Output Only] IPv4 address + prefix length to be configured on Cloud Router Interface for this interconnect attachment. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. customerRouterIpAddress: [Output Only] IPv4 address + prefix length to be configured on the customer router subinterface for this interconnect attachment. description: An optional description of this resource. edgeAvailabilityDomain: Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY. googleReferenceId: [Output Only] Google reference ID, to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. [Deprecated] This field is not used. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. interconnect: URL of the underlying Interconnect object that this attachment's traffic will traverse through. kind: [Output Only] Type of the resource. Always compute#interconnectAttachment for interconnect attachments. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. operationalStatus: [Output Only] The current status of whether or not this interconnect attachment is functional, which can take one of the following values: - OS_ACTIVE: The attachment has been turned up and is ready to use. - OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete. pairingKey: [Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not present for DEDICATED]. The opaque identifier of an PARTNER attachment used to initiate provisioning with a selected partner. Of the form "XXXXX/region/domain" partnerAsn: Optional BGP ASN for the router supplied by a Layer 3 Partner if they configured BGP on behalf of the customer. Output only for PARTNER type, input only for PARTNER_PROVIDER, not available for DEDICATED. partnerMetadata: Informational metadata about Partner attachments from Partners to display to customers. Output only for for PARTNER type, mutable for PARTNER_PROVIDER, not available for DEDICATED. privateInterconnectInfo: [Output Only] Information specific to an InterconnectAttachment. This property is populated if the interconnect that this is attached to is of type DEDICATED. region: [Output Only] URL of the region where the regional interconnect attachment resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. router: URL of the Cloud Router to be used for dynamic routing. This router must be in the same region as this InterconnectAttachment. The InterconnectAttachment will automatically connect the Interconnect to the network & region within which the Cloud Router is configured. selfLink: [Output Only] Server-defined URL for the resource. state: [Output Only] The current state of this attachment's functionality. Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This state can take one of the following values: - ACTIVE: The attachment has been turned up and is ready to use. - UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete. - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been configured on the Partner side. - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it. - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it. - DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted. type: The type of interconnect attachment this is, which can take one of the following values: - DEDICATED: an attachment to a Dedicated Interconnect. - PARTNER: an attachment to a Partner Interconnect, created by the customer. - PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by the partner. vlanTag8021q: The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4094. Only specified at creation time. """ class BandwidthValueValuesEnum(_messages.Enum): r"""Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s Values: BPS_100M: <no description> BPS_10G: <no description> BPS_1G: <no description> BPS_200M: <no description> BPS_2G: <no description> BPS_300M: <no description> BPS_400M: <no description> BPS_500M: <no description> BPS_50M: <no description> BPS_5G: <no description> """ BPS_100M = 0 BPS_10G = 1 BPS_1G = 2 BPS_200M = 3 BPS_2G = 4 BPS_300M = 5 BPS_400M = 6 BPS_500M = 7 BPS_50M = 8 BPS_5G = 9 class EdgeAvailabilityDomainValueValuesEnum(_messages.Enum): r"""Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY. Values: AVAILABILITY_DOMAIN_1: <no description> AVAILABILITY_DOMAIN_2: <no description> AVAILABILITY_DOMAIN_ANY: <no description> """ AVAILABILITY_DOMAIN_1 = 0 AVAILABILITY_DOMAIN_2 = 1 AVAILABILITY_DOMAIN_ANY = 2 class OperationalStatusValueValuesEnum(_messages.Enum): r"""[Output Only] The current status of whether or not this interconnect attachment is functional, which can take one of the following values: - OS_ACTIVE: The attachment has been turned up and is ready to use. - OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete. Values: OS_ACTIVE: <no description> OS_UNPROVISIONED: <no description> """ OS_ACTIVE = 0 OS_UNPROVISIONED = 1 class StateValueValuesEnum(_messages.Enum): r"""[Output Only] The current state of this attachment's functionality. Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This state can take one of the following values: - ACTIVE: The attachment has been turned up and is ready to use. - UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete. - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been configured on the Partner side. - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it. - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it. - DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted. Values: ACTIVE: <no description> DEFUNCT: <no description> PARTNER_REQUEST_RECEIVED: <no description> PENDING_CUSTOMER: <no description> PENDING_PARTNER: <no description> STATE_UNSPECIFIED: <no description> UNPROVISIONED: <no description> """ ACTIVE = 0 DEFUNCT = 1 PARTNER_REQUEST_RECEIVED = 2 PENDING_CUSTOMER = 3 PENDING_PARTNER = 4 STATE_UNSPECIFIED = 5 UNPROVISIONED = 6 class TypeValueValuesEnum(_messages.Enum): r"""The type of interconnect attachment this is, which can take one of the following values: - DEDICATED: an attachment to a Dedicated Interconnect. - PARTNER: an attachment to a Partner Interconnect, created by the customer. - PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by the partner. Values: DEDICATED: <no description> PARTNER: <no description> PARTNER_PROVIDER: <no description> """ DEDICATED = 0 PARTNER = 1 PARTNER_PROVIDER = 2 adminEnabled = _messages.BooleanField(1) bandwidth = _messages.EnumField('BandwidthValueValuesEnum', 2) candidateSubnets = _messages.StringField(3, repeated=True) cloudRouterIpAddress = _messages.StringField(4) creationTimestamp = _messages.StringField(5) customerRouterIpAddress = _messages.StringField(6) description = _messages.StringField(7) edgeAvailabilityDomain = _messages.EnumField('EdgeAvailabilityDomainValueValuesEnum', 8) googleReferenceId = _messages.StringField(9) id = _messages.IntegerField(10, variant=_messages.Variant.UINT64) interconnect = _messages.StringField(11) kind = _messages.StringField(12, default=u'compute#interconnectAttachment') name = _messages.StringField(13) operationalStatus = _messages.EnumField('OperationalStatusValueValuesEnum', 14) pairingKey = _messages.StringField(15) partnerAsn = _messages.IntegerField(16) partnerMetadata = _messages.MessageField('InterconnectAttachmentPartnerMetadata', 17) privateInterconnectInfo = _messages.MessageField('InterconnectAttachmentPrivateInfo', 18) region = _messages.StringField(19) router = _messages.StringField(20) selfLink = _messages.StringField(21) state = _messages.EnumField('StateValueValuesEnum', 22) type = _messages.EnumField('TypeValueValuesEnum', 23) vlanTag8021q = _messages.IntegerField(24, variant=_messages.Variant.INT32) class InterconnectAttachmentAggregatedList(_messages.Message): r"""A InterconnectAttachmentAggregatedList object. Messages: ItemsValue: A list of InterconnectAttachmentsScopedList resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of InterconnectAttachmentsScopedList resources. kind: [Output Only] Type of resource. Always compute#interconnectAttachmentAggregatedList for aggregated lists of interconnect attachments. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of InterconnectAttachmentsScopedList resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: Name of the scope containing this set of interconnect attachments. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A InterconnectAttachmentsScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('InterconnectAttachmentsScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#interconnectAttachmentAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class InterconnectAttachmentList(_messages.Message): r"""Response to the list request, and contains a list of interconnect attachments. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of InterconnectAttachment resources. kind: [Output Only] Type of resource. Always compute#interconnectAttachmentList for lists of interconnect attachments. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('InterconnectAttachment', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#interconnectAttachmentList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class InterconnectAttachmentPartnerMetadata(_messages.Message): r"""Informational metadata about Partner attachments from Partners to display to customers. These fields are propagated from PARTNER_PROVIDER attachments to their corresponding PARTNER attachments. Fields: interconnectName: Plain text name of the Interconnect this attachment is connected to, as displayed in the Partner?s portal. For instance "Chicago 1". This value may be validated to match approved Partner values. partnerName: Plain text name of the Partner providing this attachment. This value may be validated to match approved Partner values. portalUrl: URL of the Partner?s portal for this Attachment. Partners may customise this to be a deep link to the specific resource on the Partner portal. This value may be validated to match approved Partner values. """ interconnectName = _messages.StringField(1) partnerName = _messages.StringField(2) portalUrl = _messages.StringField(3) class InterconnectAttachmentPrivateInfo(_messages.Message): r"""Information for an interconnect attachment when this belongs to an interconnect of type DEDICATED. Fields: tag8021q: [Output Only] 802.1q encapsulation tag to be used for traffic between Google and the customer, going to and from this network and region. """ tag8021q = _messages.IntegerField(1, variant=_messages.Variant.UINT32) class InterconnectAttachmentsScopedList(_messages.Message): r"""A InterconnectAttachmentsScopedList object. Messages: WarningValue: Informational warning which replaces the list of addresses when the list is empty. Fields: interconnectAttachments: A list of interconnect attachments contained in this scope. warning: Informational warning which replaces the list of addresses when the list is empty. """ class WarningValue(_messages.Message): r"""Informational warning which replaces the list of addresses when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) interconnectAttachments = _messages.MessageField('InterconnectAttachment', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class InterconnectCircuitInfo(_messages.Message): r"""Describes a single physical circuit between the Customer and Google. CircuitInfo objects are created by Google, so all fields are output only. Next id: 4 Fields: customerDemarcId: Customer-side demarc ID for this circuit. googleCircuitId: Google-assigned unique ID for this circuit. Assigned at circuit turn-up. googleDemarcId: Google-side demarc ID for this circuit. Assigned at circuit turn-up and provided by Google to the customer in the LOA. """ customerDemarcId = _messages.StringField(1) googleCircuitId = _messages.StringField(2) googleDemarcId = _messages.StringField(3) class InterconnectDiagnostics(_messages.Message): r"""Diagnostics information about interconnect, contains detailed and current technical information about Google?s side of the connection. Fields: arpCaches: A list of InterconnectDiagnostics.ARPEntry objects, describing individual neighbors currently seen by the Google router in the ARP cache for the Interconnect. This will be empty when the Interconnect is not bundled. links: A list of InterconnectDiagnostics.LinkStatus objects, describing the status for each link on the Interconnect. macAddress: The MAC address of the Interconnect's bundle interface. """ arpCaches = _messages.MessageField('InterconnectDiagnosticsARPEntry', 1, repeated=True) links = _messages.MessageField('InterconnectDiagnosticsLinkStatus', 2, repeated=True) macAddress = _messages.StringField(3) class InterconnectDiagnosticsARPEntry(_messages.Message): r"""Describing the ARP neighbor entries seen on this link Fields: ipAddress: The IP address of this ARP neighbor. macAddress: The MAC address of this ARP neighbor. """ ipAddress = _messages.StringField(1) macAddress = _messages.StringField(2) class InterconnectDiagnosticsLinkLACPStatus(_messages.Message): r"""A InterconnectDiagnosticsLinkLACPStatus object. Enums: StateValueValuesEnum: The state of a LACP link, which can take one of the following values: - ACTIVE: The link is configured and active within the bundle. - DETACHED: The link is not configured within the bundle. This means that the rest of the object should be empty. Fields: googleSystemId: System ID of the port on Google?s side of the LACP exchange. neighborSystemId: System ID of the port on the neighbor?s side of the LACP exchange. state: The state of a LACP link, which can take one of the following values: - ACTIVE: The link is configured and active within the bundle. - DETACHED: The link is not configured within the bundle. This means that the rest of the object should be empty. """ class StateValueValuesEnum(_messages.Enum): r"""The state of a LACP link, which can take one of the following values: - ACTIVE: The link is configured and active within the bundle. - DETACHED: The link is not configured within the bundle. This means that the rest of the object should be empty. Values: ACTIVE: <no description> DETACHED: <no description> """ ACTIVE = 0 DETACHED = 1 googleSystemId = _messages.StringField(1) neighborSystemId = _messages.StringField(2) state = _messages.EnumField('StateValueValuesEnum', 3) class InterconnectDiagnosticsLinkOpticalPower(_messages.Message): r"""A InterconnectDiagnosticsLinkOpticalPower object. Enums: StateValueValuesEnum: The status of the current value when compared to the warning and alarm levels for the receiving or transmitting transceiver. Possible states include: - OK: The value has not crossed a warning threshold. - LOW_WARNING: The value has crossed below the low warning threshold. - HIGH_WARNING: The value has crossed above the high warning threshold. - LOW_ALARM: The value has crossed below the low alarm threshold. - HIGH_ALARM: The value has crossed above the high alarm threshold. Fields: state: The status of the current value when compared to the warning and alarm levels for the receiving or transmitting transceiver. Possible states include: - OK: The value has not crossed a warning threshold. - LOW_WARNING: The value has crossed below the low warning threshold. - HIGH_WARNING: The value has crossed above the high warning threshold. - LOW_ALARM: The value has crossed below the low alarm threshold. - HIGH_ALARM: The value has crossed above the high alarm threshold. value: Value of the current receiving or transmitting optical power, read in dBm. Take a known good optical value, give it a 10% margin and trigger warnings relative to that value. In general, a -7dBm warning and a -11dBm alarm are good optical value estimates for most links. """ class StateValueValuesEnum(_messages.Enum): r"""The status of the current value when compared to the warning and alarm levels for the receiving or transmitting transceiver. Possible states include: - OK: The value has not crossed a warning threshold. - LOW_WARNING: The value has crossed below the low warning threshold. - HIGH_WARNING: The value has crossed above the high warning threshold. - LOW_ALARM: The value has crossed below the low alarm threshold. - HIGH_ALARM: The value has crossed above the high alarm threshold. Values: HIGH_ALARM: <no description> HIGH_WARNING: <no description> LOW_ALARM: <no description> LOW_WARNING: <no description> OK: <no description> """ HIGH_ALARM = 0 HIGH_WARNING = 1 LOW_ALARM = 2 LOW_WARNING = 3 OK = 4 state = _messages.EnumField('StateValueValuesEnum', 1) value = _messages.FloatField(2, variant=_messages.Variant.FLOAT) class InterconnectDiagnosticsLinkStatus(_messages.Message): r"""A InterconnectDiagnosticsLinkStatus object. Fields: arpCaches: A list of InterconnectDiagnostics.ARPEntry objects, describing the ARP neighbor entries seen on this link. This will be empty if the link is bundled circuitId: The unique ID for this link assigned during turn up by Google. googleDemarc: The Demarc address assigned by Google and provided in the LoA. lacpStatus: A InterconnectDiagnosticsLinkLACPStatus attribute. receivingOpticalPower: An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of the received light level. transmittingOpticalPower: An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of the transmitted light level. """ arpCaches = _messages.MessageField('InterconnectDiagnosticsARPEntry', 1, repeated=True) circuitId = _messages.StringField(2) googleDemarc = _messages.StringField(3) lacpStatus = _messages.MessageField('InterconnectDiagnosticsLinkLACPStatus', 4) receivingOpticalPower = _messages.MessageField('InterconnectDiagnosticsLinkOpticalPower', 5) transmittingOpticalPower = _messages.MessageField('InterconnectDiagnosticsLinkOpticalPower', 6) class InterconnectList(_messages.Message): r"""Response to the list request, and contains a list of interconnects. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of Interconnect resources. kind: [Output Only] Type of resource. Always compute#interconnectList for lists of interconnects. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('Interconnect', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#interconnectList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class InterconnectLocation(_messages.Message): r"""Represents an Interconnect Attachment (VLAN) Location resource. You can use this resource to find location details about an Interconnect attachment (VLAN). For more information about interconnect attachments, read Creating VLAN Attachments. Enums: ContinentValueValuesEnum: [Output Only] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA StatusValueValuesEnum: [Output Only] The status of this InterconnectLocation, which can take one of the following values: - CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects. Fields: address: [Output Only] The postal address of the Point of Presence, each line in the address is separated by a newline character. availabilityZone: [Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area (metro), maintenance will not be simultaneously scheduled in more than one availability zone. Example: "zone1" or "zone2". city: [Output Only] Metropolitan area designator that indicates which city an interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands". continent: [Output Only] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: [Output Only] An optional description of the resource. facilityProvider: [Output Only] The name of the provider for this facility (e.g., EQUINIX). facilityProviderFacilityId: [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1). id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of the resource. Always compute#interconnectLocation for interconnect locations. name: [Output Only] Name of the resource. peeringdbFacilityId: [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in peeringdb). regionInfos: [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions. selfLink: [Output Only] Server-defined URL for the resource. status: [Output Only] The status of this InterconnectLocation, which can take one of the following values: - CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects. """ class ContinentValueValuesEnum(_messages.Enum): r"""[Output Only] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA Values: AFRICA: <no description> ASIA_PAC: <no description> C_AFRICA: <no description> C_ASIA_PAC: <no description> C_EUROPE: <no description> C_NORTH_AMERICA: <no description> C_SOUTH_AMERICA: <no description> EUROPE: <no description> NORTH_AMERICA: <no description> SOUTH_AMERICA: <no description> """ AFRICA = 0 ASIA_PAC = 1 C_AFRICA = 2 C_ASIA_PAC = 3 C_EUROPE = 4 C_NORTH_AMERICA = 5 C_SOUTH_AMERICA = 6 EUROPE = 7 NORTH_AMERICA = 8 SOUTH_AMERICA = 9 class StatusValueValuesEnum(_messages.Enum): r"""[Output Only] The status of this InterconnectLocation, which can take one of the following values: - CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects. Values: AVAILABLE: <no description> CLOSED: <no description> """ AVAILABLE = 0 CLOSED = 1 address = _messages.StringField(1) availabilityZone = _messages.StringField(2) city = _messages.StringField(3) continent = _messages.EnumField('ContinentValueValuesEnum', 4) creationTimestamp = _messages.StringField(5) description = _messages.StringField(6) facilityProvider = _messages.StringField(7) facilityProviderFacilityId = _messages.StringField(8) id = _messages.IntegerField(9, variant=_messages.Variant.UINT64) kind = _messages.StringField(10, default=u'compute#interconnectLocation') name = _messages.StringField(11) peeringdbFacilityId = _messages.StringField(12) regionInfos = _messages.MessageField('InterconnectLocationRegionInfo', 13, repeated=True) selfLink = _messages.StringField(14) status = _messages.EnumField('StatusValueValuesEnum', 15) class InterconnectLocationList(_messages.Message): r"""Response to the list request, and contains a list of interconnect locations. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of InterconnectLocation resources. kind: [Output Only] Type of resource. Always compute#interconnectLocationList for lists of interconnect locations. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('InterconnectLocation', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#interconnectLocationList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class InterconnectLocationRegionInfo(_messages.Message): r"""Information about any potential InterconnectAttachments between an Interconnect at a specific InterconnectLocation, and a specific Cloud Region. Enums: LocationPresenceValueValuesEnum: Identifies the network presence of this location. Fields: expectedRttMs: Expected round-trip time in milliseconds, from this InterconnectLocation to a VM in this region. locationPresence: Identifies the network presence of this location. region: URL for the region of this location. """ class LocationPresenceValueValuesEnum(_messages.Enum): r"""Identifies the network presence of this location. Values: GLOBAL: <no description> LOCAL_REGION: <no description> LP_GLOBAL: <no description> LP_LOCAL_REGION: <no description> """ GLOBAL = 0 LOCAL_REGION = 1 LP_GLOBAL = 2 LP_LOCAL_REGION = 3 expectedRttMs = _messages.IntegerField(1) locationPresence = _messages.EnumField('LocationPresenceValueValuesEnum', 2) region = _messages.StringField(3) class InterconnectOutageNotification(_messages.Message): r"""Description of a planned outage on this Interconnect. Next id: 9 Enums: IssueTypeValueValuesEnum: Form this outage is expected to take, which can take one of the following values: - OUTAGE: The Interconnect may be completely out of service for some or all of the specified window. - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole should remain up, but with reduced bandwidth. Note that the versions of this enum prefixed with "IT_" have been deprecated in favor of the unprefixed values. SourceValueValuesEnum: The party that generated this notification, which can take the following value: - GOOGLE: this notification as generated by Google. Note that the value of NSRC_GOOGLE has been deprecated in favor of GOOGLE. StateValueValuesEnum: State of this notification, which can take one of the following values: - ACTIVE: This outage notification is active. The event could be in the past, present, or future. See start_time and end_time for scheduling. - CANCELLED: The outage associated with this notification was cancelled before the outage was due to start. Note that the versions of this enum prefixed with "NS_" have been deprecated in favor of the unprefixed values. Fields: affectedCircuits: If issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs that will be affected. description: A description about the purpose of the outage. endTime: Scheduled end time for the outage (milliseconds since Unix epoch). issueType: Form this outage is expected to take, which can take one of the following values: - OUTAGE: The Interconnect may be completely out of service for some or all of the specified window. - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole should remain up, but with reduced bandwidth. Note that the versions of this enum prefixed with "IT_" have been deprecated in favor of the unprefixed values. name: Unique identifier for this outage notification. source: The party that generated this notification, which can take the following value: - GOOGLE: this notification as generated by Google. Note that the value of NSRC_GOOGLE has been deprecated in favor of GOOGLE. startTime: Scheduled start time for the outage (milliseconds since Unix epoch). state: State of this notification, which can take one of the following values: - ACTIVE: This outage notification is active. The event could be in the past, present, or future. See start_time and end_time for scheduling. - CANCELLED: The outage associated with this notification was cancelled before the outage was due to start. Note that the versions of this enum prefixed with "NS_" have been deprecated in favor of the unprefixed values. """ class IssueTypeValueValuesEnum(_messages.Enum): r"""Form this outage is expected to take, which can take one of the following values: - OUTAGE: The Interconnect may be completely out of service for some or all of the specified window. - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole should remain up, but with reduced bandwidth. Note that the versions of this enum prefixed with "IT_" have been deprecated in favor of the unprefixed values. Values: IT_OUTAGE: <no description> IT_PARTIAL_OUTAGE: <no description> OUTAGE: <no description> PARTIAL_OUTAGE: <no description> """ IT_OUTAGE = 0 IT_PARTIAL_OUTAGE = 1 OUTAGE = 2 PARTIAL_OUTAGE = 3 class SourceValueValuesEnum(_messages.Enum): r"""The party that generated this notification, which can take the following value: - GOOGLE: this notification as generated by Google. Note that the value of NSRC_GOOGLE has been deprecated in favor of GOOGLE. Values: GOOGLE: <no description> NSRC_GOOGLE: <no description> """ GOOGLE = 0 NSRC_GOOGLE = 1 class StateValueValuesEnum(_messages.Enum): r"""State of this notification, which can take one of the following values: - ACTIVE: This outage notification is active. The event could be in the past, present, or future. See start_time and end_time for scheduling. - CANCELLED: The outage associated with this notification was cancelled before the outage was due to start. Note that the versions of this enum prefixed with "NS_" have been deprecated in favor of the unprefixed values. Values: ACTIVE: <no description> CANCELLED: <no description> COMPLETED: <no description> NS_ACTIVE: <no description> NS_CANCELED: <no description> """ ACTIVE = 0 CANCELLED = 1 COMPLETED = 2 NS_ACTIVE = 3 NS_CANCELED = 4 affectedCircuits = _messages.StringField(1, repeated=True) description = _messages.StringField(2) endTime = _messages.IntegerField(3) issueType = _messages.EnumField('IssueTypeValueValuesEnum', 4) name = _messages.StringField(5) source = _messages.EnumField('SourceValueValuesEnum', 6) startTime = _messages.IntegerField(7) state = _messages.EnumField('StateValueValuesEnum', 8) class InterconnectsGetDiagnosticsResponse(_messages.Message): r"""Response for the InterconnectsGetDiagnosticsRequest. Fields: result: A InterconnectDiagnostics attribute. """ result = _messages.MessageField('InterconnectDiagnostics', 1) class License(_messages.Message): r"""A license resource. Fields: chargesUseFee: [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional textual description of the resource; provided by the client when the resource is created. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of resource. Always compute#license for licenses. licenseCode: [Output Only] The unique code used to attach this license to images, snapshots, and disks. name: Name of the resource. The name must be 1-63 characters long and comply with RFC1035. resourceRequirements: A LicenseResourceRequirements attribute. selfLink: [Output Only] Server-defined URL for the resource. transferable: If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk. """ chargesUseFee = _messages.BooleanField(1) creationTimestamp = _messages.StringField(2) description = _messages.StringField(3) id = _messages.IntegerField(4, variant=_messages.Variant.UINT64) kind = _messages.StringField(5, default=u'compute#license') licenseCode = _messages.IntegerField(6, variant=_messages.Variant.UINT64) name = _messages.StringField(7) resourceRequirements = _messages.MessageField('LicenseResourceRequirements', 8) selfLink = _messages.StringField(9) transferable = _messages.BooleanField(10) class LicenseCode(_messages.Message): r"""A LicenseCode object. Enums: StateValueValuesEnum: [Output Only] Current state of this License Code. Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: [Output Only] Description of this License Code. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of resource. Always compute#licenseCode for licenses. licenseAlias: [Output Only] URL and description aliases of Licenses with the same License Code. name: [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer. selfLink: [Output Only] Server-defined URL for the resource. state: [Output Only] Current state of this License Code. transferable: [Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred. """ class StateValueValuesEnum(_messages.Enum): r"""[Output Only] Current state of this License Code. Values: DISABLED: <no description> ENABLED: <no description> RESTRICTED: <no description> STATE_UNSPECIFIED: <no description> TERMINATED: <no description> """ DISABLED = 0 ENABLED = 1 RESTRICTED = 2 STATE_UNSPECIFIED = 3 TERMINATED = 4 creationTimestamp = _messages.StringField(1) description = _messages.StringField(2) id = _messages.IntegerField(3, variant=_messages.Variant.UINT64) kind = _messages.StringField(4, default=u'compute#licenseCode') licenseAlias = _messages.MessageField('LicenseCodeLicenseAlias', 5, repeated=True) name = _messages.StringField(6) selfLink = _messages.StringField(7) state = _messages.EnumField('StateValueValuesEnum', 8) transferable = _messages.BooleanField(9) class LicenseCodeLicenseAlias(_messages.Message): r"""A LicenseCodeLicenseAlias object. Fields: description: [Output Only] Description of this License Code. selfLink: [Output Only] URL of license corresponding to this License Code. """ description = _messages.StringField(1) selfLink = _messages.StringField(2) class LicenseResourceRequirements(_messages.Message): r"""A LicenseResourceRequirements object. Fields: minGuestCpuCount: Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start. minMemoryMb: Minimum memory required to use the Instance. Enforced at Instance creation and Instance start. """ minGuestCpuCount = _messages.IntegerField(1, variant=_messages.Variant.INT32) minMemoryMb = _messages.IntegerField(2, variant=_messages.Variant.INT32) class LicensesListResponse(_messages.Message): r"""A LicensesListResponse object. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of License resources. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('License', 2, repeated=True) nextPageToken = _messages.StringField(3) selfLink = _messages.StringField(4) warning = _messages.MessageField('WarningValue', 5) class LogConfig(_messages.Message): r"""Specifies what kind of log the caller must write Fields: cloudAudit: Cloud audit options. counter: Counter options. dataAccess: Data access options. """ cloudAudit = _messages.MessageField('LogConfigCloudAuditOptions', 1) counter = _messages.MessageField('LogConfigCounterOptions', 2) dataAccess = _messages.MessageField('LogConfigDataAccessOptions', 3) class LogConfigCloudAuditOptions(_messages.Message): r"""Write a Cloud Audit log Enums: LogNameValueValuesEnum: The log_name to populate in the Cloud Audit Record. Fields: authorizationLoggingOptions: Information used by the Cloud Audit Logging pipeline. logName: The log_name to populate in the Cloud Audit Record. """ class LogNameValueValuesEnum(_messages.Enum): r"""The log_name to populate in the Cloud Audit Record. Values: ADMIN_ACTIVITY: <no description> DATA_ACCESS: <no description> UNSPECIFIED_LOG_NAME: <no description> """ ADMIN_ACTIVITY = 0 DATA_ACCESS = 1 UNSPECIFIED_LOG_NAME = 2 authorizationLoggingOptions = _messages.MessageField('AuthorizationLoggingOptions', 1) logName = _messages.EnumField('LogNameValueValuesEnum', 2) class LogConfigCounterOptions(_messages.Message): r"""Increment a streamz counter with the specified metric and field names. Metric names should start with a '/', generally be lowercase-only, and end in "_count". Field names should not contain an initial slash. The actual exported metric names will have "/iam/policy" prepended. Field names correspond to IAM request parameters and field values are their respective values. Supported field names: - "authority", which is "[token]" if IAMContext.token is present, otherwise the value of IAMContext.authority_selector if present, and otherwise a representation of IAMContext.principal; or - "iam_principal", a representation of IAMContext.principal even if a token or authority selector is present; or - "" (empty string), resulting in a counter with no fields. Examples: counter { metric: "/debug_access_count" field: "iam_principal" } ==> increment counter /iam/policy/backend_debug_access_count {iam_principal=[value of IAMContext.principal]} At this time we do not support multiple field names (though this may be supported in the future). Fields: field: The field value to attribute. metric: The metric to update. """ field = _messages.StringField(1) metric = _messages.StringField(2) class LogConfigDataAccessOptions(_messages.Message): r"""Write a Data Access (Gin) log Enums: LogModeValueValuesEnum: Whether Gin logging should happen in a fail-closed manner at the caller. This is relevant only in the LocalIAM implementation, for now. Fields: logMode: Whether Gin logging should happen in a fail-closed manner at the caller. This is relevant only in the LocalIAM implementation, for now. """ class LogModeValueValuesEnum(_messages.Enum): r"""Whether Gin logging should happen in a fail-closed manner at the caller. This is relevant only in the LocalIAM implementation, for now. Values: LOG_FAIL_CLOSED: <no description> LOG_MODE_UNSPECIFIED: <no description> """ LOG_FAIL_CLOSED = 0 LOG_MODE_UNSPECIFIED = 1 logMode = _messages.EnumField('LogModeValueValuesEnum', 1) class MachineType(_messages.Message): r"""Represents a Machine Type resource. You can use specific machine types for your VM instances based on performance and pricing requirements. For more information, read Machine Types. (== resource_for v1.machineTypes ==) (== resource_for beta.machineTypes ==) Messages: ScratchDisksValueListEntry: A ScratchDisksValueListEntry object. Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. deprecated: [Output Only] The deprecation status associated with this machine type. description: [Output Only] An optional textual description of the resource. guestCpus: [Output Only] The number of virtual CPUs that are available to the instance. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. imageSpaceGb: [Deprecated] This property is deprecated and will never be populated with any relevant values. isSharedCpu: [Output Only] Whether this machine type has a shared CPU. See Shared-core machine types for more information. kind: [Output Only] The type of the resource. Always compute#machineType for machine types. maximumPersistentDisks: [Output Only] Maximum persistent disks allowed. maximumPersistentDisksSizeGb: [Output Only] Maximum total persistent disks size (GB) allowed. memoryMb: [Output Only] The amount of physical memory available to the instance, defined in MB. name: [Output Only] Name of the resource. scratchDisks: [Output Only] A list of extended scratch disks assigned to the instance. selfLink: [Output Only] Server-defined URL for the resource. zone: [Output Only] The name of the zone where the machine type resides, such as us-central1-a. """ class ScratchDisksValueListEntry(_messages.Message): r"""A ScratchDisksValueListEntry object. Fields: diskGb: Size of the scratch disk, defined in GB. """ diskGb = _messages.IntegerField(1, variant=_messages.Variant.INT32) creationTimestamp = _messages.StringField(1) deprecated = _messages.MessageField('DeprecationStatus', 2) description = _messages.StringField(3) guestCpus = _messages.IntegerField(4, variant=_messages.Variant.INT32) id = _messages.IntegerField(5, variant=_messages.Variant.UINT64) imageSpaceGb = _messages.IntegerField(6, variant=_messages.Variant.INT32) isSharedCpu = _messages.BooleanField(7) kind = _messages.StringField(8, default=u'compute#machineType') maximumPersistentDisks = _messages.IntegerField(9, variant=_messages.Variant.INT32) maximumPersistentDisksSizeGb = _messages.IntegerField(10) memoryMb = _messages.IntegerField(11, variant=_messages.Variant.INT32) name = _messages.StringField(12) scratchDisks = _messages.MessageField('ScratchDisksValueListEntry', 13, repeated=True) selfLink = _messages.StringField(14) zone = _messages.StringField(15) class MachineTypeAggregatedList(_messages.Message): r"""A MachineTypeAggregatedList object. Messages: ItemsValue: A list of MachineTypesScopedList resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of MachineTypesScopedList resources. kind: [Output Only] Type of resource. Always compute#machineTypeAggregatedList for aggregated lists of machine types. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of MachineTypesScopedList resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: [Output Only] Name of the scope containing this set of machine types. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A MachineTypesScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('MachineTypesScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#machineTypeAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class MachineTypeList(_messages.Message): r"""Contains a list of machine types. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of MachineType resources. kind: [Output Only] Type of resource. Always compute#machineTypeList for lists of machine types. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('MachineType', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#machineTypeList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class MachineTypesScopedList(_messages.Message): r"""A MachineTypesScopedList object. Messages: WarningValue: [Output Only] An informational warning that appears when the machine types list is empty. Fields: machineTypes: [Output Only] A list of machine types contained in this scope. warning: [Output Only] An informational warning that appears when the machine types list is empty. """ class WarningValue(_messages.Message): r"""[Output Only] An informational warning that appears when the machine types list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) machineTypes = _messages.MessageField('MachineType', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class ManagedInstance(_messages.Message): r"""A Managed Instance resource. Enums: CurrentActionValueValuesEnum: [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified. InstanceStatusValueValuesEnum: [Output Only] The status of the instance. This field is empty when the instance does not exist. Fields: currentAction: [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified. id: [Output only] The unique identifier for this resource. This field is empty when instance does not exist. instance: [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created. instanceStatus: [Output Only] The status of the instance. This field is empty when the instance does not exist. lastAttempt: [Output Only] Information about the last attempt to create or delete the instance. version: [Output Only] Intended version of this instance. """ class CurrentActionValueValuesEnum(_messages.Enum): r"""[Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified. Values: ABANDONING: <no description> CREATING: <no description> CREATING_WITHOUT_RETRIES: <no description> DELETING: <no description> NONE: <no description> RECREATING: <no description> REFRESHING: <no description> RESTARTING: <no description> VERIFYING: <no description> """ ABANDONING = 0 CREATING = 1 CREATING_WITHOUT_RETRIES = 2 DELETING = 3 NONE = 4 RECREATING = 5 REFRESHING = 6 RESTARTING = 7 VERIFYING = 8 class InstanceStatusValueValuesEnum(_messages.Enum): r"""[Output Only] The status of the instance. This field is empty when the instance does not exist. Values: PROVISIONING: <no description> REPAIRING: <no description> RUNNING: <no description> STAGING: <no description> STOPPED: <no description> STOPPING: <no description> SUSPENDED: <no description> SUSPENDING: <no description> TERMINATED: <no description> """ PROVISIONING = 0 REPAIRING = 1 RUNNING = 2 STAGING = 3 STOPPED = 4 STOPPING = 5 SUSPENDED = 6 SUSPENDING = 7 TERMINATED = 8 currentAction = _messages.EnumField('CurrentActionValueValuesEnum', 1) id = _messages.IntegerField(2, variant=_messages.Variant.UINT64) instance = _messages.StringField(3) instanceStatus = _messages.EnumField('InstanceStatusValueValuesEnum', 4) lastAttempt = _messages.MessageField('ManagedInstanceLastAttempt', 5) version = _messages.MessageField('ManagedInstanceVersion', 6) class ManagedInstanceLastAttempt(_messages.Message): r"""A ManagedInstanceLastAttempt object. Messages: ErrorsValue: [Output Only] Encountered errors during the last attempt to create or delete the instance. Fields: errors: [Output Only] Encountered errors during the last attempt to create or delete the instance. """ class ErrorsValue(_messages.Message): r"""[Output Only] Encountered errors during the last attempt to create or delete the instance. Messages: ErrorsValueListEntry: A ErrorsValueListEntry object. Fields: errors: [Output Only] The array of errors encountered while processing this operation. """ class ErrorsValueListEntry(_messages.Message): r"""A ErrorsValueListEntry object. Fields: code: [Output Only] The error type identifier for this error. location: [Output Only] Indicates the field in the request that caused the error. This property is optional. message: [Output Only] An optional, human-readable error message. """ code = _messages.StringField(1) location = _messages.StringField(2) message = _messages.StringField(3) errors = _messages.MessageField('ErrorsValueListEntry', 1, repeated=True) errors = _messages.MessageField('ErrorsValue', 1) class ManagedInstanceVersion(_messages.Message): r"""A ManagedInstanceVersion object. Fields: instanceTemplate: [Output Only] The intended template of the instance. This field is empty when current_action is one of { DELETING, ABANDONING }. name: [Output Only] Name of the version. """ instanceTemplate = _messages.StringField(1) name = _messages.StringField(2) class Metadata(_messages.Message): r"""A metadata key/value entry. Messages: ItemsValueListEntry: A ItemsValueListEntry object. Fields: fingerprint: Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource. items: Array of key/value pairs. The total size of all keys and values must be less than 512 KB. kind: [Output Only] Type of the resource. Always compute#metadata for metadata. """ class ItemsValueListEntry(_messages.Message): r"""A ItemsValueListEntry object. Fields: key: Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project. value: Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB). """ key = _messages.StringField(1) value = _messages.StringField(2) fingerprint = _messages.BytesField(1) items = _messages.MessageField('ItemsValueListEntry', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#metadata') class NamedPort(_messages.Message): r"""The named port. For example: . Fields: name: The name for this named port. The name must be 1-63 characters long, and comply with RFC1035. port: The port number, which can be a value between 1 and 65535. """ name = _messages.StringField(1) port = _messages.IntegerField(2, variant=_messages.Variant.INT32) class Network(_messages.Message): r"""Represents a VPC Network resource. Networks connect resources to each other and to the internet. For more information, read Virtual Private Cloud (VPC) Network. (== resource_for v1.networks ==) (== resource_for beta.networks ==) Fields: IPv4Range: Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created. autoCreateSubnetworks: When set to true, the VPC network is created in "auto" mode. When set to false, the VPC network is created in "custom" mode. An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this field when you create the resource. gatewayIPv4: [Output Only] The gateway address for default routing out of the network, selected by GCP. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of the resource. Always compute#network for networks. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. peerings: [Output Only] A list of network peerings for the resource. routingConfig: The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce. selfLink: [Output Only] Server-defined URL for the resource. subnetworks: [Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network. """ IPv4Range = _messages.StringField(1) autoCreateSubnetworks = _messages.BooleanField(2) creationTimestamp = _messages.StringField(3) description = _messages.StringField(4) gatewayIPv4 = _messages.StringField(5) id = _messages.IntegerField(6, variant=_messages.Variant.UINT64) kind = _messages.StringField(7, default=u'compute#network') name = _messages.StringField(8) peerings = _messages.MessageField('NetworkPeering', 9, repeated=True) routingConfig = _messages.MessageField('NetworkRoutingConfig', 10) selfLink = _messages.StringField(11) subnetworks = _messages.StringField(12, repeated=True) class NetworkEndpoint(_messages.Message): r"""The network endpoint. Fields: instance: The name for a specific VM instance that the IP address belongs to. This is required for network endpoints of type GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group. The name must be 1-63 characters long, and comply with RFC1035. ipAddress: Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used. port: Optional port number of network endpoint. If not specified and the NetworkEndpointGroup.network_endpoint_type is GCE_IP_PORT, the defaultPort for the network endpoint group will be used. """ instance = _messages.StringField(1) ipAddress = _messages.StringField(2) port = _messages.IntegerField(3, variant=_messages.Variant.INT32) class NetworkEndpointGroup(_messages.Message): r"""Represents a collection of network endpoints. Enums: NetworkEndpointTypeValueValuesEnum: Type of network endpoints in this network endpoint group. Currently the only supported value is GCE_VM_IP_PORT. Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. defaultPort: The default port used if the port number is not specified in the network endpoint. description: An optional description of this resource. Provide this property when you create the resource. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of the resource. Always compute#networkEndpointGroup for network endpoint group. name: Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. network: The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified. networkEndpointType: Type of network endpoints in this network endpoint group. Currently the only supported value is GCE_VM_IP_PORT. selfLink: [Output Only] Server-defined URL for the resource. size: [Output only] Number of network endpoints in the network endpoint group. subnetwork: Optional URL of the subnetwork to which all network endpoints in the NEG belong. zone: [Output Only] The URL of the zone where the network endpoint group is located. """ class NetworkEndpointTypeValueValuesEnum(_messages.Enum): r"""Type of network endpoints in this network endpoint group. Currently the only supported value is GCE_VM_IP_PORT. Values: GCE_VM_IP_PORT: <no description> """ GCE_VM_IP_PORT = 0 creationTimestamp = _messages.StringField(1) defaultPort = _messages.IntegerField(2, variant=_messages.Variant.INT32) description = _messages.StringField(3) id = _messages.IntegerField(4, variant=_messages.Variant.UINT64) kind = _messages.StringField(5, default=u'compute#networkEndpointGroup') name = _messages.StringField(6) network = _messages.StringField(7) networkEndpointType = _messages.EnumField('NetworkEndpointTypeValueValuesEnum', 8) selfLink = _messages.StringField(9) size = _messages.IntegerField(10, variant=_messages.Variant.INT32) subnetwork = _messages.StringField(11) zone = _messages.StringField(12) class NetworkEndpointGroupAggregatedList(_messages.Message): r"""A NetworkEndpointGroupAggregatedList object. Messages: ItemsValue: A list of NetworkEndpointGroupsScopedList resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of NetworkEndpointGroupsScopedList resources. kind: [Output Only] The resource type, which is always compute#networkEndpointGroupAggregatedList for aggregated lists of network endpoint groups. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of NetworkEndpointGroupsScopedList resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: The name of the scope that contains this set of network endpoint groups. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A NetworkEndpointGroupsScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('NetworkEndpointGroupsScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#networkEndpointGroupAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class NetworkEndpointGroupList(_messages.Message): r"""A NetworkEndpointGroupList object. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of NetworkEndpointGroup resources. kind: [Output Only] The resource type, which is always compute#networkEndpointGroupList for network endpoint group lists. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('NetworkEndpointGroup', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#networkEndpointGroupList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class NetworkEndpointGroupsAttachEndpointsRequest(_messages.Message): r"""A NetworkEndpointGroupsAttachEndpointsRequest object. Fields: networkEndpoints: The list of network endpoints to be attached. """ networkEndpoints = _messages.MessageField('NetworkEndpoint', 1, repeated=True) class NetworkEndpointGroupsDetachEndpointsRequest(_messages.Message): r"""A NetworkEndpointGroupsDetachEndpointsRequest object. Fields: networkEndpoints: The list of network endpoints to be detached. """ networkEndpoints = _messages.MessageField('NetworkEndpoint', 1, repeated=True) class NetworkEndpointGroupsListEndpointsRequest(_messages.Message): r"""A NetworkEndpointGroupsListEndpointsRequest object. Enums: HealthStatusValueValuesEnum: Optional query parameter for showing the health status of each network endpoint. Valid options are SKIP or SHOW. If you don't specifiy this parameter, the health status of network endpoints will not be provided. Fields: healthStatus: Optional query parameter for showing the health status of each network endpoint. Valid options are SKIP or SHOW. If you don't specifiy this parameter, the health status of network endpoints will not be provided. """ class HealthStatusValueValuesEnum(_messages.Enum): r"""Optional query parameter for showing the health status of each network endpoint. Valid options are SKIP or SHOW. If you don't specifiy this parameter, the health status of network endpoints will not be provided. Values: SHOW: <no description> SKIP: <no description> """ SHOW = 0 SKIP = 1 healthStatus = _messages.EnumField('HealthStatusValueValuesEnum', 1) class NetworkEndpointGroupsListNetworkEndpoints(_messages.Message): r"""A NetworkEndpointGroupsListNetworkEndpoints object. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of NetworkEndpointWithHealthStatus resources. kind: [Output Only] The resource type, which is always compute#networkEndpointGroupsListNetworkEndpoints for the list of network endpoints in the specified network endpoint group. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('NetworkEndpointWithHealthStatus', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#networkEndpointGroupsListNetworkEndpoints') nextPageToken = _messages.StringField(4) warning = _messages.MessageField('WarningValue', 5) class NetworkEndpointGroupsScopedList(_messages.Message): r"""A NetworkEndpointGroupsScopedList object. Messages: WarningValue: [Output Only] An informational warning that replaces the list of network endpoint groups when the list is empty. Fields: networkEndpointGroups: [Output Only] The list of network endpoint groups that are contained in this scope. warning: [Output Only] An informational warning that replaces the list of network endpoint groups when the list is empty. """ class WarningValue(_messages.Message): r"""[Output Only] An informational warning that replaces the list of network endpoint groups when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) networkEndpointGroups = _messages.MessageField('NetworkEndpointGroup', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class NetworkEndpointWithHealthStatus(_messages.Message): r"""A NetworkEndpointWithHealthStatus object. Fields: healths: [Output only] The health status of network endpoint; networkEndpoint: [Output only] The network endpoint; """ healths = _messages.MessageField('HealthStatusForNetworkEndpoint', 1, repeated=True) networkEndpoint = _messages.MessageField('NetworkEndpoint', 2) class NetworkInterface(_messages.Message): r"""A network interface resource attached to an instance. Fields: accessConfigs: An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access. aliasIpRanges: An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks. fingerprint: Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface, otherwise the request will fail with error 412 conditionNotMet. kind: [Output Only] Type of the resource. Always compute#networkInterface for network interfaces. name: [Output Only] The name of the network interface, which is generated by the server. For network devices, these are eth0, eth1, etc. network: URL of the network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used; if the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https:// www.googleapis.com/compute/v1/projects/project/global/networks/network - projects/project/global/networks/network - global/networks/default networkIP: An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system. subnetwork: The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region/su bnetworks/subnetwork - regions/region/subnetworks/subnetwork """ accessConfigs = _messages.MessageField('AccessConfig', 1, repeated=True) aliasIpRanges = _messages.MessageField('AliasIpRange', 2, repeated=True) fingerprint = _messages.BytesField(3) kind = _messages.StringField(4, default=u'compute#networkInterface') name = _messages.StringField(5) network = _messages.StringField(6) networkIP = _messages.StringField(7) subnetwork = _messages.StringField(8) class NetworkList(_messages.Message): r"""Contains a list of networks. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of Network resources. kind: [Output Only] Type of resource. Always compute#networkList for lists of networks. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('Network', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#networkList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class NetworkPeering(_messages.Message): r"""A network peering attached to a network resource. The message includes the peering name, peer network, peering state, and a flag indicating whether Google Compute Engine should automatically create routes for the peering. Enums: StateValueValuesEnum: [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration in the peer network. Fields: autoCreateRoutes: This field will be deprecated soon. Use the exchange_subnet_routes field instead. Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE. exchangeSubnetRoutes: Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE. exportCustomRoutes: Whether to export the custom routes to peer network. importCustomRoutes: Whether to import the custom routes from peer network. name: Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. network: The URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network. state: [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration in the peer network. stateDetails: [Output Only] Details about the current state of the peering. """ class StateValueValuesEnum(_messages.Enum): r"""[Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration in the peer network. Values: ACTIVE: <no description> INACTIVE: <no description> """ ACTIVE = 0 INACTIVE = 1 autoCreateRoutes = _messages.BooleanField(1) exchangeSubnetRoutes = _messages.BooleanField(2) exportCustomRoutes = _messages.BooleanField(3) importCustomRoutes = _messages.BooleanField(4) name = _messages.StringField(5) network = _messages.StringField(6) state = _messages.EnumField('StateValueValuesEnum', 7) stateDetails = _messages.StringField(8) class NetworkRoutingConfig(_messages.Message): r"""A routing configuration attached to a network resource. The message includes the list of routers associated with the network, and a flag indicating the type of routing behavior to enforce network-wide. Enums: RoutingModeValueValuesEnum: The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. Fields: routingMode: The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. """ class RoutingModeValueValuesEnum(_messages.Enum): r"""The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. Values: GLOBAL: <no description> REGIONAL: <no description> """ GLOBAL = 0 REGIONAL = 1 routingMode = _messages.EnumField('RoutingModeValueValuesEnum', 1) class NetworksAddPeeringRequest(_messages.Message): r"""A NetworksAddPeeringRequest object. Fields: autoCreateRoutes: This field will be deprecated soon. Use exchange_subnet_routes in network_peering instead. Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE. name: Name of the peering, which should conform to RFC1035. networkPeering: Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon. peerNetwork: URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network. """ autoCreateRoutes = _messages.BooleanField(1) name = _messages.StringField(2) networkPeering = _messages.MessageField('NetworkPeering', 3) peerNetwork = _messages.StringField(4) class NetworksRemovePeeringRequest(_messages.Message): r"""A NetworksRemovePeeringRequest object. Fields: name: Name of the peering, which should conform to RFC1035. """ name = _messages.StringField(1) class NetworksUpdatePeeringRequest(_messages.Message): r"""A NetworksUpdatePeeringRequest object. Fields: networkPeering: A NetworkPeering attribute. """ networkPeering = _messages.MessageField('NetworkPeering', 1) class NodeGroup(_messages.Message): r"""Represent a sole-tenant Node Group resource. A sole-tenant node is a physical server that is dedicated to hosting VM instances only for your specific project. Use sole-tenant nodes to keep your instances physically separated from instances in other projects, or to group your instances together on the same host hardware. For more information, read Sole-tenant nodes. (== resource_for beta.nodeGroups ==) (== resource_for v1.nodeGroups ==) NextID: 15 Enums: StatusValueValuesEnum: Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] The type of the resource. Always compute#nodeGroup for node group. name: The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. nodeTemplate: The URL of the node template to which this node group belongs. selfLink: [Output Only] Server-defined URL for the resource. size: [Output Only] The total number of nodes in the node group. status: A StatusValueValuesEnum attribute. zone: [Output Only] The name of the zone where the node group resides, such as us-central1-a. """ class StatusValueValuesEnum(_messages.Enum): r"""StatusValueValuesEnum enum type. Values: CREATING: <no description> DELETING: <no description> INVALID: <no description> READY: <no description> """ CREATING = 0 DELETING = 1 INVALID = 2 READY = 3 creationTimestamp = _messages.StringField(1) description = _messages.StringField(2) id = _messages.IntegerField(3, variant=_messages.Variant.UINT64) kind = _messages.StringField(4, default=u'compute#nodeGroup') name = _messages.StringField(5) nodeTemplate = _messages.StringField(6) selfLink = _messages.StringField(7) size = _messages.IntegerField(8, variant=_messages.Variant.INT32) status = _messages.EnumField('StatusValueValuesEnum', 9) zone = _messages.StringField(10) class NodeGroupAggregatedList(_messages.Message): r"""A NodeGroupAggregatedList object. Messages: ItemsValue: A list of NodeGroupsScopedList resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of NodeGroupsScopedList resources. kind: [Output Only] Type of resource.Always compute#nodeGroupAggregatedList for aggregated lists of node groups. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of NodeGroupsScopedList resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: [Output Only] Name of the scope containing this set of node groups. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A NodeGroupsScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('NodeGroupsScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#nodeGroupAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class NodeGroupList(_messages.Message): r"""Contains a list of nodeGroups. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of NodeGroup resources. kind: [Output Only] Type of resource.Always compute#nodeGroupList for lists of node groups. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('NodeGroup', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#nodeGroupList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class NodeGroupNode(_messages.Message): r"""A NodeGroupNode object. Enums: StatusValueValuesEnum: Fields: instances: Instances scheduled on this node. name: The name of the node. nodeType: The type of this node. serverBinding: Binding properties for the physical server. status: A StatusValueValuesEnum attribute. """ class StatusValueValuesEnum(_messages.Enum): r"""StatusValueValuesEnum enum type. Values: CREATING: <no description> DELETING: <no description> INVALID: <no description> READY: <no description> REPAIRING: <no description> """ CREATING = 0 DELETING = 1 INVALID = 2 READY = 3 REPAIRING = 4 instances = _messages.StringField(1, repeated=True) name = _messages.StringField(2) nodeType = _messages.StringField(3) serverBinding = _messages.MessageField('ServerBinding', 4) status = _messages.EnumField('StatusValueValuesEnum', 5) class NodeGroupsAddNodesRequest(_messages.Message): r"""A NodeGroupsAddNodesRequest object. Fields: additionalNodeCount: Count of additional nodes to be added to the node group. """ additionalNodeCount = _messages.IntegerField(1, variant=_messages.Variant.INT32) class NodeGroupsDeleteNodesRequest(_messages.Message): r"""A NodeGroupsDeleteNodesRequest object. Fields: nodes: Names of the nodes to delete. """ nodes = _messages.StringField(1, repeated=True) class NodeGroupsListNodes(_messages.Message): r"""A NodeGroupsListNodes object. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of Node resources. kind: [Output Only] The resource type, which is always compute.nodeGroupsListNodes for the list of nodes in the specified node group. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('NodeGroupNode', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#nodeGroupsListNodes') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class NodeGroupsScopedList(_messages.Message): r"""A NodeGroupsScopedList object. Messages: WarningValue: [Output Only] An informational warning that appears when the nodeGroup list is empty. Fields: nodeGroups: [Output Only] A list of node groups contained in this scope. warning: [Output Only] An informational warning that appears when the nodeGroup list is empty. """ class WarningValue(_messages.Message): r"""[Output Only] An informational warning that appears when the nodeGroup list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) nodeGroups = _messages.MessageField('NodeGroup', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class NodeGroupsSetNodeTemplateRequest(_messages.Message): r"""A NodeGroupsSetNodeTemplateRequest object. Fields: nodeTemplate: Full or partial URL of the node template resource to be updated for this node group. """ nodeTemplate = _messages.StringField(1) class NodeTemplate(_messages.Message): r"""Represent a sole-tenant Node Template resource. You can use a template to define properties for nodes in a node group. For more information, read Creating node groups and instances. (== resource_for beta.nodeTemplates ==) (== resource_for v1.nodeTemplates ==) (== NextID: 16 ==) Enums: StatusValueValuesEnum: [Output Only] The status of the node template. One of the following values: CREATING, READY, and DELETING. Messages: NodeAffinityLabelsValue: Labels to use for node affinity, which will be used in instance scheduling. Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] The type of the resource. Always compute#nodeTemplate for node templates. name: The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. nodeAffinityLabels: Labels to use for node affinity, which will be used in instance scheduling. nodeType: The node type to use for nodes group that are created from this template. nodeTypeFlexibility: The flexible properties of the desired node type. Node groups that use this node template will create nodes of a type that matches these properties. This field is mutually exclusive with the node_type property; you can only define one or the other, but not both. region: [Output Only] The name of the region where the node template resides, such as us-central1. selfLink: [Output Only] Server-defined URL for the resource. serverBinding: Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole- tenant node options for more information. status: [Output Only] The status of the node template. One of the following values: CREATING, READY, and DELETING. statusMessage: [Output Only] An optional, human-readable explanation of the status. """ class StatusValueValuesEnum(_messages.Enum): r"""[Output Only] The status of the node template. One of the following values: CREATING, READY, and DELETING. Values: CREATING: <no description> DELETING: <no description> INVALID: <no description> READY: <no description> """ CREATING = 0 DELETING = 1 INVALID = 2 READY = 3 @encoding.MapUnrecognizedFields('additionalProperties') class NodeAffinityLabelsValue(_messages.Message): r"""Labels to use for node affinity, which will be used in instance scheduling. Messages: AdditionalProperty: An additional property for a NodeAffinityLabelsValue object. Fields: additionalProperties: Additional properties of type NodeAffinityLabelsValue """ class AdditionalProperty(_messages.Message): r"""An additional property for a NodeAffinityLabelsValue object. Fields: key: Name of the additional property. value: A string attribute. """ key = _messages.StringField(1) value = _messages.StringField(2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) creationTimestamp = _messages.StringField(1) description = _messages.StringField(2) id = _messages.IntegerField(3, variant=_messages.Variant.UINT64) kind = _messages.StringField(4, default=u'compute#nodeTemplate') name = _messages.StringField(5) nodeAffinityLabels = _messages.MessageField('NodeAffinityLabelsValue', 6) nodeType = _messages.StringField(7) nodeTypeFlexibility = _messages.MessageField('NodeTemplateNodeTypeFlexibility', 8) region = _messages.StringField(9) selfLink = _messages.StringField(10) serverBinding = _messages.MessageField('ServerBinding', 11) status = _messages.EnumField('StatusValueValuesEnum', 12) statusMessage = _messages.StringField(13) class NodeTemplateAggregatedList(_messages.Message): r"""A NodeTemplateAggregatedList object. Messages: ItemsValue: A list of NodeTemplatesScopedList resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of NodeTemplatesScopedList resources. kind: [Output Only] Type of resource.Always compute#nodeTemplateAggregatedList for aggregated lists of node templates. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of NodeTemplatesScopedList resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: [Output Only] Name of the scope containing this set of node templates. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A NodeTemplatesScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('NodeTemplatesScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#nodeTemplateAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class NodeTemplateList(_messages.Message): r"""Contains a list of node templates. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of NodeTemplate resources. kind: [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node templates. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('NodeTemplate', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#nodeTemplateList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class NodeTemplateNodeTypeFlexibility(_messages.Message): r"""A NodeTemplateNodeTypeFlexibility object. Fields: cpus: A string attribute. localSsd: A string attribute. memory: A string attribute. """ cpus = _messages.StringField(1) localSsd = _messages.StringField(2) memory = _messages.StringField(3) class NodeTemplatesScopedList(_messages.Message): r"""A NodeTemplatesScopedList object. Messages: WarningValue: [Output Only] An informational warning that appears when the node templates list is empty. Fields: nodeTemplates: [Output Only] A list of node templates contained in this scope. warning: [Output Only] An informational warning that appears when the node templates list is empty. """ class WarningValue(_messages.Message): r"""[Output Only] An informational warning that appears when the node templates list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) nodeTemplates = _messages.MessageField('NodeTemplate', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class NodeType(_messages.Message): r"""Represent a sole-tenant Node Type resource. Each node within a node group must have a node type. A node type specifies the total amount of cores and memory for that node. Currently, the only available node type is n1-node-96-624 node type that has 96 vCPUs and 624 GB of memory, available in multiple zones. For more information read Node types. (== resource_for beta.nodeTypes ==) (== resource_for v1.nodeTypes ==) Fields: cpuPlatform: [Output Only] The CPU platform used by this node type. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. deprecated: [Output Only] The deprecation status associated with this node type. description: [Output Only] An optional textual description of the resource. guestCpus: [Output Only] The number of virtual CPUs that are available to the node type. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] The type of the resource. Always compute#nodeType for node types. localSsdGb: [Output Only] Local SSD available to the node type, defined in GB. memoryMb: [Output Only] The amount of physical memory available to the node type, defined in MB. name: [Output Only] Name of the resource. selfLink: [Output Only] Server-defined URL for the resource. zone: [Output Only] The name of the zone where the node type resides, such as us-central1-a. """ cpuPlatform = _messages.StringField(1) creationTimestamp = _messages.StringField(2) deprecated = _messages.MessageField('DeprecationStatus', 3) description = _messages.StringField(4) guestCpus = _messages.IntegerField(5, variant=_messages.Variant.INT32) id = _messages.IntegerField(6, variant=_messages.Variant.UINT64) kind = _messages.StringField(7, default=u'compute#nodeType') localSsdGb = _messages.IntegerField(8, variant=_messages.Variant.INT32) memoryMb = _messages.IntegerField(9, variant=_messages.Variant.INT32) name = _messages.StringField(10) selfLink = _messages.StringField(11) zone = _messages.StringField(12) class NodeTypeAggregatedList(_messages.Message): r"""A NodeTypeAggregatedList object. Messages: ItemsValue: A list of NodeTypesScopedList resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of NodeTypesScopedList resources. kind: [Output Only] Type of resource.Always compute#nodeTypeAggregatedList for aggregated lists of node types. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of NodeTypesScopedList resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: [Output Only] Name of the scope containing this set of node types. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A NodeTypesScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('NodeTypesScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#nodeTypeAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class NodeTypeList(_messages.Message): r"""Contains a list of node types. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of NodeType resources. kind: [Output Only] Type of resource.Always compute#nodeTypeList for lists of node types. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('NodeType', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#nodeTypeList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class NodeTypesScopedList(_messages.Message): r"""A NodeTypesScopedList object. Messages: WarningValue: [Output Only] An informational warning that appears when the node types list is empty. Fields: nodeTypes: [Output Only] A list of node types contained in this scope. warning: [Output Only] An informational warning that appears when the node types list is empty. """ class WarningValue(_messages.Message): r"""[Output Only] An informational warning that appears when the node types list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) nodeTypes = _messages.MessageField('NodeType', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class Operation(_messages.Message): r"""Represents an Operation resource. You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the globalOperations resource. - For regional operations, use the regionOperations resource. - For zonal operations, use the zonalOperations resource. For more information, read Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) Enums: StatusValueValuesEnum: [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. Messages: ErrorValue: [Output Only] If errors are generated during processing of the operation, this field will be populated. WarningsValueListEntry: A WarningsValueListEntry object. Fields: clientOperationId: [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. creationTimestamp: [Deprecated] This field is deprecated. description: [Output Only] A textual description of the operation, which is set when the operation is created. endTime: [Output Only] The time that this operation was completed. This value is in RFC3339 text format. error: [Output Only] If errors are generated during processing of the operation, this field will be populated. httpErrorMessage: [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. httpErrorStatusCode: [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. id: [Output Only] The unique identifier for the operation. This identifier is defined by the server. insertTime: [Output Only] The time that this operation was requested. This value is in RFC3339 text format. kind: [Output Only] Type of the resource. Always compute#operation for Operation resources. name: [Output Only] Name of the operation. operationType: [Output Only] The type of operation, such as insert, update, or delete, and so on. progress: [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. region: [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. selfLink: [Output Only] Server-defined URL for the resource. startTime: [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. status: [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. statusMessage: [Output Only] An optional textual description of the current status of the operation. targetId: [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. targetLink: [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. user: [Output Only] User who requested the operation, for example: [email protected]. warnings: [Output Only] If warning messages are generated during processing of the operation, this field will be populated. zone: [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. """ class StatusValueValuesEnum(_messages.Enum): r"""[Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. Values: DONE: <no description> PENDING: <no description> RUNNING: <no description> """ DONE = 0 PENDING = 1 RUNNING = 2 class ErrorValue(_messages.Message): r"""[Output Only] If errors are generated during processing of the operation, this field will be populated. Messages: ErrorsValueListEntry: A ErrorsValueListEntry object. Fields: errors: [Output Only] The array of errors encountered while processing this operation. """ class ErrorsValueListEntry(_messages.Message): r"""A ErrorsValueListEntry object. Fields: code: [Output Only] The error type identifier for this error. location: [Output Only] Indicates the field in the request that caused the error. This property is optional. message: [Output Only] An optional, human-readable error message. """ code = _messages.StringField(1) location = _messages.StringField(2) message = _messages.StringField(3) errors = _messages.MessageField('ErrorsValueListEntry', 1, repeated=True) class WarningsValueListEntry(_messages.Message): r"""A WarningsValueListEntry object. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) clientOperationId = _messages.StringField(1) creationTimestamp = _messages.StringField(2) description = _messages.StringField(3) endTime = _messages.StringField(4) error = _messages.MessageField('ErrorValue', 5) httpErrorMessage = _messages.StringField(6) httpErrorStatusCode = _messages.IntegerField(7, variant=_messages.Variant.INT32) id = _messages.IntegerField(8, variant=_messages.Variant.UINT64) insertTime = _messages.StringField(9) kind = _messages.StringField(10, default=u'compute#operation') name = _messages.StringField(11) operationType = _messages.StringField(12) progress = _messages.IntegerField(13, variant=_messages.Variant.INT32) region = _messages.StringField(14) selfLink = _messages.StringField(15) startTime = _messages.StringField(16) status = _messages.EnumField('StatusValueValuesEnum', 17) statusMessage = _messages.StringField(18) targetId = _messages.IntegerField(19, variant=_messages.Variant.UINT64) targetLink = _messages.StringField(20) user = _messages.StringField(21) warnings = _messages.MessageField('WarningsValueListEntry', 22, repeated=True) zone = _messages.StringField(23) class OperationAggregatedList(_messages.Message): r"""A OperationAggregatedList object. Messages: ItemsValue: [Output Only] A map of scoped operation lists. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. items: [Output Only] A map of scoped operation lists. kind: [Output Only] Type of resource. Always compute#operationAggregatedList for aggregated lists of operations. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""[Output Only] A map of scoped operation lists. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: [Output Only] Name of the scope containing this set of operations. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A OperationsScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('OperationsScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#operationAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class OperationList(_messages.Message): r"""Contains a list of Operation resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. items: [Output Only] A list of Operation resources. kind: [Output Only] Type of resource. Always compute#operations for Operations resource. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('Operation', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#operationList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class OperationsScopedList(_messages.Message): r"""A OperationsScopedList object. Messages: WarningValue: [Output Only] Informational warning which replaces the list of operations when the list is empty. Fields: operations: [Output Only] A list of operations contained in this scope. warning: [Output Only] Informational warning which replaces the list of operations when the list is empty. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning which replaces the list of operations when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) operations = _messages.MessageField('Operation', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class PathMatcher(_messages.Message): r"""A matcher for the path portion of the URL. The BackendService from the longest-matched rule will serve the URL. If no rule was matched, the default service will be used. Fields: defaultService: The full or partial URL to the BackendService resource. This will be used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/ projects/project/global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if defaultRouteAction specifies any weightedBackendServices, defaultService must not be specified. Only one of defaultService, defaultUrlRedirect or defaultRouteAction.weightedBackendService must be set. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use description: An optional description of this resource. Provide this property when you create the resource. name: The name to which this PathMatcher is referred by the HostRule. pathRules: The list of path rules. Use this list instead of routeRules when routing based on simple path matching is all that's required. The order by which path rules are specified does not matter. Matches are always done on the longest-path-first basis. For example: a pathRule with a path /a/b/c/* will match before /a/b/* irrespective of the order in which those paths appear in this list. Only one of pathRules or routeRules must be set. """ defaultService = _messages.StringField(1) description = _messages.StringField(2) name = _messages.StringField(3) pathRules = _messages.MessageField('PathRule', 4, repeated=True) class PathRule(_messages.Message): r"""A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL. Fields: paths: The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here. service: The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendService s. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. """ paths = _messages.StringField(1, repeated=True) service = _messages.StringField(2) class Policy(_messages.Message): r"""Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources. A `Policy` consists of a list of `bindings`. A `binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM. **JSON Example** { "bindings": [ { "role": "roles/owner", "members": [ "user:[email protected]", "group:[email protected]", "domain:google.com", "serviceAccount:my-other- [email protected]" ] }, { "role": "roles/viewer", "members": ["user:[email protected]"] } ] } **YAML Example** bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/owner - members: - user:[email protected] role: roles/viewer For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs). Fields: auditConfigs: Specifies cloud audit logging configuration for this policy. bindings: Associates a list of `members` to a `role`. `bindings` with no members will result in an error. etag: `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read- modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. iamOwned: rules: If more than one rule is specified, the rules are applied in the following manner: - All matching LOG rules are always applied. - If any DENY/DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if one or more matching rule requires logging. - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if one or more matching rule requires logging. - Otherwise, if no rule applies, permission is denied. version: Deprecated. """ auditConfigs = _messages.MessageField('AuditConfig', 1, repeated=True) bindings = _messages.MessageField('Binding', 2, repeated=True) etag = _messages.BytesField(3) iamOwned = _messages.BooleanField(4) rules = _messages.MessageField('Rule', 5, repeated=True) version = _messages.IntegerField(6, variant=_messages.Variant.INT32) class Project(_messages.Message): r"""Represents a Project resource. A project is used to organize resources in a Google Cloud Platform environment. For more information, read about the Resource Hierarchy. (== resource_for v1.projects ==) (== resource_for beta.projects ==) Enums: DefaultNetworkTierValueValuesEnum: This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM. XpnProjectStatusValueValuesEnum: [Output Only] The role this project has in a shared VPC configuration. Currently only HOST projects are differentiated. Fields: commonInstanceMetadata: Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. defaultNetworkTier: This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM. defaultServiceAccount: [Output Only] Default service account used by VMs running in this project. description: An optional textual description of the resource. enabledFeatures: Restricted features enabled for use on this project. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. This is not the project ID, and is just a unique ID used by Compute Engine to identify resources. kind: [Output Only] Type of the resource. Always compute#project for projects. name: The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine. quotas: [Output Only] Quotas assigned to this project. selfLink: [Output Only] Server-defined URL for the resource. usageExportLocation: The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored. xpnProjectStatus: [Output Only] The role this project has in a shared VPC configuration. Currently only HOST projects are differentiated. """ class DefaultNetworkTierValueValuesEnum(_messages.Enum): r"""This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM. Values: PREMIUM: <no description> STANDARD: <no description> """ PREMIUM = 0 STANDARD = 1 class XpnProjectStatusValueValuesEnum(_messages.Enum): r"""[Output Only] The role this project has in a shared VPC configuration. Currently only HOST projects are differentiated. Values: HOST: <no description> UNSPECIFIED_XPN_PROJECT_STATUS: <no description> """ HOST = 0 UNSPECIFIED_XPN_PROJECT_STATUS = 1 commonInstanceMetadata = _messages.MessageField('Metadata', 1) creationTimestamp = _messages.StringField(2) defaultNetworkTier = _messages.EnumField('DefaultNetworkTierValueValuesEnum', 3) defaultServiceAccount = _messages.StringField(4) description = _messages.StringField(5) enabledFeatures = _messages.StringField(6, repeated=True) id = _messages.IntegerField(7, variant=_messages.Variant.UINT64) kind = _messages.StringField(8, default=u'compute#project') name = _messages.StringField(9) quotas = _messages.MessageField('Quota', 10, repeated=True) selfLink = _messages.StringField(11) usageExportLocation = _messages.MessageField('UsageExportLocation', 12) xpnProjectStatus = _messages.EnumField('XpnProjectStatusValueValuesEnum', 13) class ProjectsDisableXpnResourceRequest(_messages.Message): r"""A ProjectsDisableXpnResourceRequest object. Fields: xpnResource: Service resource (a.k.a service project) ID. """ xpnResource = _messages.MessageField('XpnResourceId', 1) class ProjectsEnableXpnResourceRequest(_messages.Message): r"""A ProjectsEnableXpnResourceRequest object. Fields: xpnResource: Service resource (a.k.a service project) ID. """ xpnResource = _messages.MessageField('XpnResourceId', 1) class ProjectsGetXpnResources(_messages.Message): r"""A ProjectsGetXpnResources object. Fields: kind: [Output Only] Type of resource. Always compute#projectsGetXpnResources for lists of service resources (a.k.a service projects) nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. resources: Service resources (a.k.a service projects) attached to this project as their shared VPC host. """ kind = _messages.StringField(1, default=u'compute#projectsGetXpnResources') nextPageToken = _messages.StringField(2) resources = _messages.MessageField('XpnResourceId', 3, repeated=True) class ProjectsListXpnHostsRequest(_messages.Message): r"""A ProjectsListXpnHostsRequest object. Fields: organization: Optional organization ID managed by Cloud Resource Manager, for which to list shared VPC host projects. If not specified, the organization will be inferred from the project. """ organization = _messages.StringField(1) class ProjectsSetDefaultNetworkTierRequest(_messages.Message): r"""A ProjectsSetDefaultNetworkTierRequest object. Enums: NetworkTierValueValuesEnum: Default network tier to be set. Fields: networkTier: Default network tier to be set. """ class NetworkTierValueValuesEnum(_messages.Enum): r"""Default network tier to be set. Values: PREMIUM: <no description> STANDARD: <no description> """ PREMIUM = 0 STANDARD = 1 networkTier = _messages.EnumField('NetworkTierValueValuesEnum', 1) class Quota(_messages.Message): r"""A quotas entry. Enums: MetricValueValuesEnum: [Output Only] Name of the quota metric. Fields: limit: [Output Only] Quota limit for this metric. metric: [Output Only] Name of the quota metric. owner: [Output Only] Owning resource. This is the resource on which this quota is applied. usage: [Output Only] Current usage of this metric. """ class MetricValueValuesEnum(_messages.Enum): r"""[Output Only] Name of the quota metric. Values: AUTOSCALERS: <no description> BACKEND_BUCKETS: <no description> BACKEND_SERVICES: <no description> C2_CPUS: <no description> COMMITMENTS: <no description> COMMITTED_C2_CPUS: <no description> COMMITTED_CPUS: <no description> COMMITTED_LOCAL_SSD_TOTAL_GB: <no description> COMMITTED_N2_CPUS: <no description> COMMITTED_NVIDIA_K80_GPUS: <no description> COMMITTED_NVIDIA_P100_GPUS: <no description> COMMITTED_NVIDIA_P4_GPUS: <no description> COMMITTED_NVIDIA_T4_GPUS: <no description> COMMITTED_NVIDIA_V100_GPUS: <no description> CPUS: <no description> CPUS_ALL_REGIONS: <no description> DISKS_TOTAL_GB: <no description> EXTERNAL_VPN_GATEWAYS: <no description> FIREWALLS: <no description> FORWARDING_RULES: <no description> GLOBAL_INTERNAL_ADDRESSES: <no description> GPUS_ALL_REGIONS: <no description> HEALTH_CHECKS: <no description> IMAGES: <no description> INSTANCES: <no description> INSTANCE_GROUPS: <no description> INSTANCE_GROUP_MANAGERS: <no description> INSTANCE_TEMPLATES: <no description> INTERCONNECTS: <no description> INTERCONNECT_ATTACHMENTS_PER_REGION: <no description> INTERCONNECT_ATTACHMENTS_TOTAL_MBPS: <no description> INTERNAL_ADDRESSES: <no description> IN_USE_ADDRESSES: <no description> IN_USE_BACKUP_SCHEDULES: <no description> IN_USE_SNAPSHOT_SCHEDULES: <no description> LOCAL_SSD_TOTAL_GB: <no description> N2_CPUS: <no description> NETWORKS: <no description> NETWORK_ENDPOINT_GROUPS: <no description> NVIDIA_K80_GPUS: <no description> NVIDIA_P100_GPUS: <no description> NVIDIA_P100_VWS_GPUS: <no description> NVIDIA_P4_GPUS: <no description> NVIDIA_P4_VWS_GPUS: <no description> NVIDIA_T4_GPUS: <no description> NVIDIA_T4_VWS_GPUS: <no description> NVIDIA_V100_GPUS: <no description> PREEMPTIBLE_CPUS: <no description> PREEMPTIBLE_LOCAL_SSD_GB: <no description> PREEMPTIBLE_NVIDIA_K80_GPUS: <no description> PREEMPTIBLE_NVIDIA_P100_GPUS: <no description> PREEMPTIBLE_NVIDIA_P100_VWS_GPUS: <no description> PREEMPTIBLE_NVIDIA_P4_GPUS: <no description> PREEMPTIBLE_NVIDIA_P4_VWS_GPUS: <no description> PREEMPTIBLE_NVIDIA_T4_GPUS: <no description> PREEMPTIBLE_NVIDIA_T4_VWS_GPUS: <no description> PREEMPTIBLE_NVIDIA_V100_GPUS: <no description> REGIONAL_AUTOSCALERS: <no description> REGIONAL_INSTANCE_GROUP_MANAGERS: <no description> RESERVATIONS: <no description> RESOURCE_POLICIES: <no description> ROUTERS: <no description> ROUTES: <no description> SECURITY_POLICIES: <no description> SECURITY_POLICY_RULES: <no description> SNAPSHOTS: <no description> SSD_TOTAL_GB: <no description> SSL_CERTIFICATES: <no description> STATIC_ADDRESSES: <no description> SUBNETWORKS: <no description> TARGET_HTTPS_PROXIES: <no description> TARGET_HTTP_PROXIES: <no description> TARGET_INSTANCES: <no description> TARGET_POOLS: <no description> TARGET_SSL_PROXIES: <no description> TARGET_TCP_PROXIES: <no description> TARGET_VPN_GATEWAYS: <no description> URL_MAPS: <no description> VPN_GATEWAYS: <no description> VPN_TUNNELS: <no description> """ AUTOSCALERS = 0 BACKEND_BUCKETS = 1 BACKEND_SERVICES = 2 C2_CPUS = 3 COMMITMENTS = 4 COMMITTED_C2_CPUS = 5 COMMITTED_CPUS = 6 COMMITTED_LOCAL_SSD_TOTAL_GB = 7 COMMITTED_N2_CPUS = 8 COMMITTED_NVIDIA_K80_GPUS = 9 COMMITTED_NVIDIA_P100_GPUS = 10 COMMITTED_NVIDIA_P4_GPUS = 11 COMMITTED_NVIDIA_T4_GPUS = 12 COMMITTED_NVIDIA_V100_GPUS = 13 CPUS = 14 CPUS_ALL_REGIONS = 15 DISKS_TOTAL_GB = 16 EXTERNAL_VPN_GATEWAYS = 17 FIREWALLS = 18 FORWARDING_RULES = 19 GLOBAL_INTERNAL_ADDRESSES = 20 GPUS_ALL_REGIONS = 21 HEALTH_CHECKS = 22 IMAGES = 23 INSTANCES = 24 INSTANCE_GROUPS = 25 INSTANCE_GROUP_MANAGERS = 26 INSTANCE_TEMPLATES = 27 INTERCONNECTS = 28 INTERCONNECT_ATTACHMENTS_PER_REGION = 29 INTERCONNECT_ATTACHMENTS_TOTAL_MBPS = 30 INTERNAL_ADDRESSES = 31 IN_USE_ADDRESSES = 32 IN_USE_BACKUP_SCHEDULES = 33 IN_USE_SNAPSHOT_SCHEDULES = 34 LOCAL_SSD_TOTAL_GB = 35 N2_CPUS = 36 NETWORKS = 37 NETWORK_ENDPOINT_GROUPS = 38 NVIDIA_K80_GPUS = 39 NVIDIA_P100_GPUS = 40 NVIDIA_P100_VWS_GPUS = 41 NVIDIA_P4_GPUS = 42 NVIDIA_P4_VWS_GPUS = 43 NVIDIA_T4_GPUS = 44 NVIDIA_T4_VWS_GPUS = 45 NVIDIA_V100_GPUS = 46 PREEMPTIBLE_CPUS = 47 PREEMPTIBLE_LOCAL_SSD_GB = 48 PREEMPTIBLE_NVIDIA_K80_GPUS = 49 PREEMPTIBLE_NVIDIA_P100_GPUS = 50 PREEMPTIBLE_NVIDIA_P100_VWS_GPUS = 51 PREEMPTIBLE_NVIDIA_P4_GPUS = 52 PREEMPTIBLE_NVIDIA_P4_VWS_GPUS = 53 PREEMPTIBLE_NVIDIA_T4_GPUS = 54 PREEMPTIBLE_NVIDIA_T4_VWS_GPUS = 55 PREEMPTIBLE_NVIDIA_V100_GPUS = 56 REGIONAL_AUTOSCALERS = 57 REGIONAL_INSTANCE_GROUP_MANAGERS = 58 RESERVATIONS = 59 RESOURCE_POLICIES = 60 ROUTERS = 61 ROUTES = 62 SECURITY_POLICIES = 63 SECURITY_POLICY_RULES = 64 SNAPSHOTS = 65 SSD_TOTAL_GB = 66 SSL_CERTIFICATES = 67 STATIC_ADDRESSES = 68 SUBNETWORKS = 69 TARGET_HTTPS_PROXIES = 70 TARGET_HTTP_PROXIES = 71 TARGET_INSTANCES = 72 TARGET_POOLS = 73 TARGET_SSL_PROXIES = 74 TARGET_TCP_PROXIES = 75 TARGET_VPN_GATEWAYS = 76 URL_MAPS = 77 VPN_GATEWAYS = 78 VPN_TUNNELS = 79 limit = _messages.FloatField(1) metric = _messages.EnumField('MetricValueValuesEnum', 2) owner = _messages.StringField(3) usage = _messages.FloatField(4) class Reference(_messages.Message): r"""Represents a reference to a resource. Fields: kind: [Output Only] Type of the resource. Always compute#reference for references. referenceType: A description of the reference type with no implied semantics. Possible values include: - MEMBER_OF referrer: URL of the resource which refers to the target. target: URL of the resource to which this reference points. """ kind = _messages.StringField(1, default=u'compute#reference') referenceType = _messages.StringField(2) referrer = _messages.StringField(3) target = _messages.StringField(4) class Region(_messages.Message): r"""Represents a Region resource. A region is a geographical area where a resource is located. For more information, read Regions and Zones. (== resource_for beta.regions ==) (== resource_for v1.regions ==) Enums: StatusValueValuesEnum: [Output Only] Status of the region, either UP or DOWN. Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. deprecated: [Output Only] The deprecation status associated with this region. description: [Output Only] Textual description of the resource. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of the resource. Always compute#region for regions. name: [Output Only] Name of the resource. quotas: [Output Only] Quotas assigned to this region. selfLink: [Output Only] Server-defined URL for the resource. status: [Output Only] Status of the region, either UP or DOWN. zones: [Output Only] A list of zones available in this region, in the form of resource URLs. """ class StatusValueValuesEnum(_messages.Enum): r"""[Output Only] Status of the region, either UP or DOWN. Values: DOWN: <no description> UP: <no description> """ DOWN = 0 UP = 1 creationTimestamp = _messages.StringField(1) deprecated = _messages.MessageField('DeprecationStatus', 2) description = _messages.StringField(3) id = _messages.IntegerField(4, variant=_messages.Variant.UINT64) kind = _messages.StringField(5, default=u'compute#region') name = _messages.StringField(6) quotas = _messages.MessageField('Quota', 7, repeated=True) selfLink = _messages.StringField(8) status = _messages.EnumField('StatusValueValuesEnum', 9) zones = _messages.StringField(10, repeated=True) class RegionAutoscalerList(_messages.Message): r"""Contains a list of autoscalers. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of Autoscaler resources. kind: Type of resource. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('Autoscaler', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#regionAutoscalerList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class RegionDiskTypeList(_messages.Message): r"""A RegionDiskTypeList object. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of DiskType resources. kind: [Output Only] Type of resource. Always compute#regionDiskTypeList for region disk types. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('DiskType', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#regionDiskTypeList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class RegionDisksAddResourcePoliciesRequest(_messages.Message): r"""A RegionDisksAddResourcePoliciesRequest object. Fields: resourcePolicies: Resource policies to be added to this disk. """ resourcePolicies = _messages.StringField(1, repeated=True) class RegionDisksRemoveResourcePoliciesRequest(_messages.Message): r"""A RegionDisksRemoveResourcePoliciesRequest object. Fields: resourcePolicies: Resource policies to be removed from this disk. """ resourcePolicies = _messages.StringField(1, repeated=True) class RegionDisksResizeRequest(_messages.Message): r"""A RegionDisksResizeRequest object. Fields: sizeGb: The new size of the regional persistent disk, which is specified in GB. """ sizeGb = _messages.IntegerField(1) class RegionInstanceGroupList(_messages.Message): r"""Contains a list of InstanceGroup resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of InstanceGroup resources. kind: The resource type. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('InstanceGroup', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#regionInstanceGroupList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class RegionInstanceGroupManagerList(_messages.Message): r"""Contains a list of managed instance groups. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of InstanceGroupManager resources. kind: [Output Only] The resource type, which is always compute#instanceGroupManagerList for a list of managed instance groups that exist in th regional scope. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('InstanceGroupManager', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#regionInstanceGroupManagerList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class RegionInstanceGroupManagersAbandonInstancesRequest(_messages.Message): r"""A RegionInstanceGroupManagersAbandonInstancesRequest object. Fields: instances: The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. """ instances = _messages.StringField(1, repeated=True) class RegionInstanceGroupManagersDeleteInstancesRequest(_messages.Message): r"""A RegionInstanceGroupManagersDeleteInstancesRequest object. Fields: instances: The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. """ instances = _messages.StringField(1, repeated=True) class RegionInstanceGroupManagersListInstancesResponse(_messages.Message): r"""A RegionInstanceGroupManagersListInstancesResponse object. Fields: managedInstances: A list of managed instances. """ managedInstances = _messages.MessageField('ManagedInstance', 1, repeated=True) class RegionInstanceGroupManagersRecreateRequest(_messages.Message): r"""A RegionInstanceGroupManagersRecreateRequest object. Fields: instances: The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. """ instances = _messages.StringField(1, repeated=True) class RegionInstanceGroupManagersSetTargetPoolsRequest(_messages.Message): r"""A RegionInstanceGroupManagersSetTargetPoolsRequest object. Fields: fingerprint: Fingerprint of the target pools information, which is a hash of the contents. This field is used for optimistic locking when you update the target pool entries. This field is optional. targetPools: The URL of all TargetPool resources to which instances in the instanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group. """ fingerprint = _messages.BytesField(1) targetPools = _messages.StringField(2, repeated=True) class RegionInstanceGroupManagersSetTemplateRequest(_messages.Message): r"""A RegionInstanceGroupManagersSetTemplateRequest object. Fields: instanceTemplate: URL of the InstanceTemplate resource from which all new instances will be created. """ instanceTemplate = _messages.StringField(1) class RegionInstanceGroupsListInstances(_messages.Message): r"""A RegionInstanceGroupsListInstances object. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of InstanceWithNamedPorts resources. kind: The resource type. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('InstanceWithNamedPorts', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#regionInstanceGroupsListInstances') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class RegionInstanceGroupsListInstancesRequest(_messages.Message): r"""A RegionInstanceGroupsListInstancesRequest object. Enums: InstanceStateValueValuesEnum: Instances in which state should be returned. Valid options are: 'ALL', 'RUNNING'. By default, it lists all instances. Fields: instanceState: Instances in which state should be returned. Valid options are: 'ALL', 'RUNNING'. By default, it lists all instances. portName: Name of port user is interested in. It is optional. If it is set, only information about this ports will be returned. If it is not set, all the named ports will be returned. Always lists all instances. """ class InstanceStateValueValuesEnum(_messages.Enum): r"""Instances in which state should be returned. Valid options are: 'ALL', 'RUNNING'. By default, it lists all instances. Values: ALL: <no description> RUNNING: <no description> """ ALL = 0 RUNNING = 1 instanceState = _messages.EnumField('InstanceStateValueValuesEnum', 1) portName = _messages.StringField(2) class RegionInstanceGroupsSetNamedPortsRequest(_messages.Message): r"""A RegionInstanceGroupsSetNamedPortsRequest object. Fields: fingerprint: The fingerprint of the named ports information for this instance group. Use this optional property to prevent conflicts when multiple users change the named ports settings concurrently. Obtain the fingerprint with the instanceGroups.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request. namedPorts: The list of named ports to set for this instance group. """ fingerprint = _messages.BytesField(1) namedPorts = _messages.MessageField('NamedPort', 2, repeated=True) class RegionList(_messages.Message): r"""Contains a list of region resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of Region resources. kind: [Output Only] Type of resource. Always compute#regionList for lists of regions. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('Region', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#regionList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class RegionSetLabelsRequest(_messages.Message): r"""A RegionSetLabelsRequest object. Messages: LabelsValue: The labels to set for this resource. Fields: labelFingerprint: The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. Make a get() request to the resource to get the latest fingerprint. labels: The labels to set for this resource. """ @encoding.MapUnrecognizedFields('additionalProperties') class LabelsValue(_messages.Message): r"""The labels to set for this resource. Messages: AdditionalProperty: An additional property for a LabelsValue object. Fields: additionalProperties: Additional properties of type LabelsValue """ class AdditionalProperty(_messages.Message): r"""An additional property for a LabelsValue object. Fields: key: Name of the additional property. value: A string attribute. """ key = _messages.StringField(1) value = _messages.StringField(2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) labelFingerprint = _messages.BytesField(1) labels = _messages.MessageField('LabelsValue', 2) class RegionSetPolicyRequest(_messages.Message): r"""A RegionSetPolicyRequest object. Fields: bindings: Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify bindings. etag: Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag. policy: REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them. """ bindings = _messages.MessageField('Binding', 1, repeated=True) etag = _messages.BytesField(2) policy = _messages.MessageField('Policy', 3) class Reservation(_messages.Message): r"""Represents a reservation resource. A reservation ensures that capacity is held in a specific zone even if the reserved VMs are not running. For more information, read Reserving zonal resources. (== resource_for beta.reservations ==) (== resource_for v1.reservations ==) Enums: StatusValueValuesEnum: [Output Only] The status of the reservation. Fields: commitment: [OutputOnly] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of the resource. Always compute#reservations for reservations. name: The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. selfLink: [Output Only] Server-defined fully-qualified URL for this resource. specificReservation: Reservation for instances with specific machine shapes. specificReservationRequired: Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from this reservation. status: [Output Only] The status of the reservation. zone: Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment. """ class StatusValueValuesEnum(_messages.Enum): r"""[Output Only] The status of the reservation. Values: CREATING: <no description> DELETING: <no description> INVALID: <no description> READY: <no description> UPDATING: <no description> """ CREATING = 0 DELETING = 1 INVALID = 2 READY = 3 UPDATING = 4 commitment = _messages.StringField(1) creationTimestamp = _messages.StringField(2) description = _messages.StringField(3) id = _messages.IntegerField(4, variant=_messages.Variant.UINT64) kind = _messages.StringField(5, default=u'compute#reservation') name = _messages.StringField(6) selfLink = _messages.StringField(7) specificReservation = _messages.MessageField('AllocationSpecificSKUReservation', 8) specificReservationRequired = _messages.BooleanField(9) status = _messages.EnumField('StatusValueValuesEnum', 10) zone = _messages.StringField(11) class ReservationAffinity(_messages.Message): r"""Specifies the reservations that this instance can consume from. Enums: ConsumeReservationTypeValueValuesEnum: Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples. Fields: consumeReservationType: Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples. key: Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the key and specify the name of your reservation as its value. values: Corresponds to the label values of a reservation resource. """ class ConsumeReservationTypeValueValuesEnum(_messages.Enum): r"""Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples. Values: ANY_RESERVATION: <no description> NO_RESERVATION: <no description> SPECIFIC_RESERVATION: <no description> UNSPECIFIED: <no description> """ ANY_RESERVATION = 0 NO_RESERVATION = 1 SPECIFIC_RESERVATION = 2 UNSPECIFIED = 3 consumeReservationType = _messages.EnumField('ConsumeReservationTypeValueValuesEnum', 1) key = _messages.StringField(2) values = _messages.StringField(3, repeated=True) class ReservationAggregatedList(_messages.Message): r"""Contains a list of reservations. Messages: ItemsValue: A list of Allocation resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of Allocation resources. kind: Type of resource. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of Allocation resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: Name of the scope containing this set of reservations. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A ReservationsScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('ReservationsScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#reservationAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class ReservationList(_messages.Message): r"""A ReservationList object. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. items: [Output Only] A list of Allocation resources. kind: [Output Only] Type of resource.Always compute#reservationsList for listsof reservations nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('Reservation', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#reservationList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class ReservationsResizeRequest(_messages.Message): r"""A ReservationsResizeRequest object. Fields: specificSkuCount: Number of allocated resources can be resized with minimum = 1 and maximum = 1000. """ specificSkuCount = _messages.IntegerField(1) class ReservationsScopedList(_messages.Message): r"""A ReservationsScopedList object. Messages: WarningValue: Informational warning which replaces the list of reservations when the list is empty. Fields: reservations: A list of reservations contained in this scope. warning: Informational warning which replaces the list of reservations when the list is empty. """ class WarningValue(_messages.Message): r"""Informational warning which replaces the list of reservations when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) reservations = _messages.MessageField('Reservation', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class ResourceCommitment(_messages.Message): r"""Commitment for a particular resource (a Commitment is composed of one or more of these). Enums: TypeValueValuesEnum: Type of resource for which this commitment applies. Possible values are VCPU and MEMORY Fields: acceleratorType: Name of the accelerator type resource. Applicable only when the type is ACCELERATOR. amount: The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU. type: Type of resource for which this commitment applies. Possible values are VCPU and MEMORY """ class TypeValueValuesEnum(_messages.Enum): r"""Type of resource for which this commitment applies. Possible values are VCPU and MEMORY Values: ACCELERATOR: <no description> LOCAL_SSD: <no description> MEMORY: <no description> UNSPECIFIED: <no description> VCPU: <no description> """ ACCELERATOR = 0 LOCAL_SSD = 1 MEMORY = 2 UNSPECIFIED = 3 VCPU = 4 acceleratorType = _messages.StringField(1) amount = _messages.IntegerField(2) type = _messages.EnumField('TypeValueValuesEnum', 3) class ResourceGroupReference(_messages.Message): r"""A ResourceGroupReference object. Fields: group: A URI referencing one of the instance groups or network endpoint groups listed in the backend service. """ group = _messages.StringField(1) class ResourcePoliciesScopedList(_messages.Message): r"""A ResourcePoliciesScopedList object. Messages: WarningValue: Informational warning which replaces the list of resourcePolicies when the list is empty. Fields: resourcePolicies: A list of resourcePolicies contained in this scope. warning: Informational warning which replaces the list of resourcePolicies when the list is empty. """ class WarningValue(_messages.Message): r"""Informational warning which replaces the list of resourcePolicies when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) resourcePolicies = _messages.MessageField('ResourcePolicy', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class ResourcePolicy(_messages.Message): r"""A ResourcePolicy object. Enums: StatusValueValuesEnum: [Output Only] The status of resource policy creation. Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: A string attribute. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of the resource. Always compute#resource_policies for resource policies. name: The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. region: A string attribute. selfLink: [Output Only] Server-defined fully-qualified URL for this resource. snapshotSchedulePolicy: Resource policy for persistent disks for creating snapshots. status: [Output Only] The status of resource policy creation. """ class StatusValueValuesEnum(_messages.Enum): r"""[Output Only] The status of resource policy creation. Values: CREATING: <no description> DELETING: <no description> INVALID: <no description> READY: <no description> """ CREATING = 0 DELETING = 1 INVALID = 2 READY = 3 creationTimestamp = _messages.StringField(1) description = _messages.StringField(2) id = _messages.IntegerField(3, variant=_messages.Variant.UINT64) kind = _messages.StringField(4, default=u'compute#resourcePolicy') name = _messages.StringField(5) region = _messages.StringField(6) selfLink = _messages.StringField(7) snapshotSchedulePolicy = _messages.MessageField('ResourcePolicySnapshotSchedulePolicy', 8) status = _messages.EnumField('StatusValueValuesEnum', 9) class ResourcePolicyAggregatedList(_messages.Message): r"""Contains a list of resourcePolicies. Messages: ItemsValue: A list of ResourcePolicy resources. WarningValue: [Output Only] Informational warning message. Fields: etag: A string attribute. id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of ResourcePolicy resources. kind: Type of resource. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of ResourcePolicy resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: Name of the scope containing this set of resourcePolicies. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A ResourcePoliciesScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('ResourcePoliciesScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) etag = _messages.StringField(1) id = _messages.StringField(2) items = _messages.MessageField('ItemsValue', 3) kind = _messages.StringField(4, default=u'compute#resourcePolicyAggregatedList') nextPageToken = _messages.StringField(5) selfLink = _messages.StringField(6) warning = _messages.MessageField('WarningValue', 7) class ResourcePolicyDailyCycle(_messages.Message): r"""Time window specified for daily operations. Fields: daysInCycle: Defines a schedule that runs every nth day of the month. duration: [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario. startTime: Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. """ daysInCycle = _messages.IntegerField(1, variant=_messages.Variant.INT32) duration = _messages.StringField(2) startTime = _messages.StringField(3) class ResourcePolicyHourlyCycle(_messages.Message): r"""Time window specified for hourly operations. Fields: duration: [Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario. hoursInCycle: Allows to define schedule that runs every nth hour. startTime: Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT. """ duration = _messages.StringField(1) hoursInCycle = _messages.IntegerField(2, variant=_messages.Variant.INT32) startTime = _messages.StringField(3) class ResourcePolicyList(_messages.Message): r"""A ResourcePolicyList object. Messages: WarningValue: [Output Only] Informational warning message. Fields: etag: A string attribute. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. items: [Output Only] A list of ResourcePolicy resources. kind: [Output Only] Type of resource.Always compute#resourcePoliciesList for listsof resourcePolicies nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) etag = _messages.StringField(1) id = _messages.StringField(2) items = _messages.MessageField('ResourcePolicy', 3, repeated=True) kind = _messages.StringField(4, default=u'compute#resourcePolicyList') nextPageToken = _messages.StringField(5) selfLink = _messages.StringField(6) warning = _messages.MessageField('WarningValue', 7) class ResourcePolicySnapshotSchedulePolicy(_messages.Message): r"""A snapshot schedule policy specifies when and how frequently snapshots are to be created for the target disk. Also specifies how many and how long these scheduled snapshots should be retained. Fields: retentionPolicy: Retention policy applied to snapshots created by this resource policy. schedule: A Vm Maintenance Policy specifies what kind of infrastructure maintenance we are allowed to perform on this VM and when. Schedule that is applied to disks covered by this policy. snapshotProperties: Properties with which snapshots are created such as labels, encryption keys. """ retentionPolicy = _messages.MessageField('ResourcePolicySnapshotSchedulePolicyRetentionPolicy', 1) schedule = _messages.MessageField('ResourcePolicySnapshotSchedulePolicySchedule', 2) snapshotProperties = _messages.MessageField('ResourcePolicySnapshotSchedulePolicySnapshotProperties', 3) class ResourcePolicySnapshotSchedulePolicyRetentionPolicy(_messages.Message): r"""Policy for retention of scheduled snapshots. Enums: OnSourceDiskDeleteValueValuesEnum: Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. Fields: maxRetentionDays: Maximum age of the snapshot that is allowed to be kept. onSourceDiskDelete: Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. """ class OnSourceDiskDeleteValueValuesEnum(_messages.Enum): r"""Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. Values: APPLY_RETENTION_POLICY: <no description> KEEP_AUTO_SNAPSHOTS: <no description> UNSPECIFIED_ON_SOURCE_DISK_DELETE: <no description> """ APPLY_RETENTION_POLICY = 0 KEEP_AUTO_SNAPSHOTS = 1 UNSPECIFIED_ON_SOURCE_DISK_DELETE = 2 maxRetentionDays = _messages.IntegerField(1, variant=_messages.Variant.INT32) onSourceDiskDelete = _messages.EnumField('OnSourceDiskDeleteValueValuesEnum', 2) class ResourcePolicySnapshotSchedulePolicySchedule(_messages.Message): r"""A schedule for disks where the schedueled operations are performed. Fields: dailySchedule: A ResourcePolicyDailyCycle attribute. hourlySchedule: A ResourcePolicyHourlyCycle attribute. weeklySchedule: A ResourcePolicyWeeklyCycle attribute. """ dailySchedule = _messages.MessageField('ResourcePolicyDailyCycle', 1) hourlySchedule = _messages.MessageField('ResourcePolicyHourlyCycle', 2) weeklySchedule = _messages.MessageField('ResourcePolicyWeeklyCycle', 3) class ResourcePolicySnapshotSchedulePolicySnapshotProperties(_messages.Message): r"""Specified snapshot properties for scheduled snapshots created by this policy. Messages: LabelsValue: Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. Label values may be empty. Fields: guestFlush: Indication to perform a ?guest aware? snapshot. labels: Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. Label values may be empty. storageLocations: Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional). """ @encoding.MapUnrecognizedFields('additionalProperties') class LabelsValue(_messages.Message): r"""Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. Label values may be empty. Messages: AdditionalProperty: An additional property for a LabelsValue object. Fields: additionalProperties: Additional properties of type LabelsValue """ class AdditionalProperty(_messages.Message): r"""An additional property for a LabelsValue object. Fields: key: Name of the additional property. value: A string attribute. """ key = _messages.StringField(1) value = _messages.StringField(2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) guestFlush = _messages.BooleanField(1) labels = _messages.MessageField('LabelsValue', 2) storageLocations = _messages.StringField(3, repeated=True) class ResourcePolicyWeeklyCycle(_messages.Message): r"""Time window specified for weekly operations. Fields: dayOfWeeks: Up to 7 intervals/windows, one for each day of the week. """ dayOfWeeks = _messages.MessageField('ResourcePolicyWeeklyCycleDayOfWeek', 1, repeated=True) class ResourcePolicyWeeklyCycleDayOfWeek(_messages.Message): r"""A ResourcePolicyWeeklyCycleDayOfWeek object. Enums: DayValueValuesEnum: Allows to define schedule that runs specified day of the week. Fields: day: Allows to define schedule that runs specified day of the week. duration: [Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario. startTime: Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT. """ class DayValueValuesEnum(_messages.Enum): r"""Allows to define schedule that runs specified day of the week. Values: FRIDAY: <no description> INVALID: <no description> MONDAY: <no description> SATURDAY: <no description> SUNDAY: <no description> THURSDAY: <no description> TUESDAY: <no description> WEDNESDAY: <no description> """ FRIDAY = 0 INVALID = 1 MONDAY = 2 SATURDAY = 3 SUNDAY = 4 THURSDAY = 5 TUESDAY = 6 WEDNESDAY = 7 day = _messages.EnumField('DayValueValuesEnum', 1) duration = _messages.StringField(2) startTime = _messages.StringField(3) class Route(_messages.Message): r"""Represents a Route resource. A route defines a path from VM instances in the VPC network to a specific destination. This destination can be inside or outside the VPC network. For more information, read the Routes overview. (== resource_for beta.routes ==) (== resource_for v1.routes ==) Messages: WarningsValueListEntry: A WarningsValueListEntry object. Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this field when you create the resource. destRange: The destination range of outgoing packets that this route applies to. Only IPv4 is supported. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of this resource. Always compute#routes for Route resources. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. network: Fully-qualified URL of the network that this route applies to. nextHopGateway: The URL to a gateway that should handle matching packets. You can only specify the internet gateway using a full or partial valid URL: projects/project/global/gateways/default-internet-gateway nextHopInstance: The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: htt ps://www.googleapis.com/compute/v1/projects/project/zones/zone/instances / nextHopIp: The network IP address of an instance that should handle matching packets. Only IPv4 is supported. nextHopNetwork: The URL of the local network if it should handle matching packets. nextHopPeering: [Output Only] The network peering name that should handle matching packets, which should conform to RFC1035. nextHopVpnTunnel: The URL to a VpnTunnel that should handle matching packets. priority: The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length. In cases where multiple routes have equal prefix length, the one with the lowest-numbered priority value wins. The default value is `1000`. The priority value must be from `0` to `65535`, inclusive. selfLink: [Output Only] Server-defined fully-qualified URL for this resource. tags: A list of instance tags to which this route applies. warnings: [Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages. """ class WarningsValueListEntry(_messages.Message): r"""A WarningsValueListEntry object. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) creationTimestamp = _messages.StringField(1) description = _messages.StringField(2) destRange = _messages.StringField(3) id = _messages.IntegerField(4, variant=_messages.Variant.UINT64) kind = _messages.StringField(5, default=u'compute#route') name = _messages.StringField(6) network = _messages.StringField(7) nextHopGateway = _messages.StringField(8) nextHopInstance = _messages.StringField(9) nextHopIp = _messages.StringField(10) nextHopNetwork = _messages.StringField(11) nextHopPeering = _messages.StringField(12) nextHopVpnTunnel = _messages.StringField(13) priority = _messages.IntegerField(14, variant=_messages.Variant.UINT32) selfLink = _messages.StringField(15) tags = _messages.StringField(16, repeated=True) warnings = _messages.MessageField('WarningsValueListEntry', 17, repeated=True) class RouteList(_messages.Message): r"""Contains a list of Route resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of Route resources. kind: Type of resource. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('Route', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#routeList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class Router(_messages.Message): r"""Represents a Cloud Router resource. For more information about Cloud Router, read the the Cloud Router overview. Fields: bgp: BGP information specific to this router. bgpPeers: BGP information that must be configured into the routing stack to establish BGP peering. This information must specify the peer ASN and either the interface name, IP address, or peer IP address. Please refer to RFC4273. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. interfaces: Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both. kind: [Output Only] Type of resource. Always compute#router for routers. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. nats: A list of NAT services created in this router. network: URI of the network to which this router belongs. region: [Output Only] URI of the region where the router resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. selfLink: [Output Only] Server-defined URL for the resource. """ bgp = _messages.MessageField('RouterBgp', 1) bgpPeers = _messages.MessageField('RouterBgpPeer', 2, repeated=True) creationTimestamp = _messages.StringField(3) description = _messages.StringField(4) id = _messages.IntegerField(5, variant=_messages.Variant.UINT64) interfaces = _messages.MessageField('RouterInterface', 6, repeated=True) kind = _messages.StringField(7, default=u'compute#router') name = _messages.StringField(8) nats = _messages.MessageField('RouterNat', 9, repeated=True) network = _messages.StringField(10) region = _messages.StringField(11) selfLink = _messages.StringField(12) class RouterAdvertisedIpRange(_messages.Message): r"""Description-tagged IP ranges for the router to advertise. Fields: description: User-specified description for the IP range. range: The IP range to advertise. The value must be a CIDR-formatted string. """ description = _messages.StringField(1) range = _messages.StringField(2) class RouterAggregatedList(_messages.Message): r"""Contains a list of routers. Messages: ItemsValue: A list of Router resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of Router resources. kind: Type of resource. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of Router resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: Name of the scope containing this set of routers. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A RoutersScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('RoutersScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#routerAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class RouterBgp(_messages.Message): r"""A RouterBgp object. Enums: AdvertiseModeValueValuesEnum: User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM. AdvertisedGroupsValueListEntryValuesEnum: Fields: advertiseMode: User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM. advertisedGroups: User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. advertisedIpRanges: User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. asn: Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. """ class AdvertiseModeValueValuesEnum(_messages.Enum): r"""User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM. Values: CUSTOM: <no description> DEFAULT: <no description> """ CUSTOM = 0 DEFAULT = 1 class AdvertisedGroupsValueListEntryValuesEnum(_messages.Enum): r"""AdvertisedGroupsValueListEntryValuesEnum enum type. Values: ALL_SUBNETS: <no description> """ ALL_SUBNETS = 0 advertiseMode = _messages.EnumField('AdvertiseModeValueValuesEnum', 1) advertisedGroups = _messages.EnumField('AdvertisedGroupsValueListEntryValuesEnum', 2, repeated=True) advertisedIpRanges = _messages.MessageField('RouterAdvertisedIpRange', 3, repeated=True) asn = _messages.IntegerField(4, variant=_messages.Variant.UINT32) class RouterBgpPeer(_messages.Message): r"""A RouterBgpPeer object. Enums: AdvertiseModeValueValuesEnum: User-specified flag to indicate which mode to use for advertisement. AdvertisedGroupsValueListEntryValuesEnum: ManagementTypeValueValuesEnum: [Output Only] The resource that configures and manages this BGP peer. - MANAGED_BY_USER is the default value and can be managed by you or other users - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted. Fields: advertiseMode: User-specified flag to indicate which mode to use for advertisement. advertisedGroups: User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets. - ALL_PEER_VPC_SUBNETS: Advertises peer subnets of the router's VPC network. Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These groups are advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. advertisedIpRanges: User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. advertisedRoutePriority: The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win. interfaceName: Name of the interface the BGP peer is associated with. ipAddress: IP address of the interface inside Google Cloud Platform. Only IPv4 is supported. managementType: [Output Only] The resource that configures and manages this BGP peer. - MANAGED_BY_USER is the default value and can be managed by you or other users - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted. name: Name of this BGP peer. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. peerAsn: Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value. peerIpAddress: IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported. """ class AdvertiseModeValueValuesEnum(_messages.Enum): r"""User-specified flag to indicate which mode to use for advertisement. Values: CUSTOM: <no description> DEFAULT: <no description> """ CUSTOM = 0 DEFAULT = 1 class AdvertisedGroupsValueListEntryValuesEnum(_messages.Enum): r"""AdvertisedGroupsValueListEntryValuesEnum enum type. Values: ALL_SUBNETS: <no description> """ ALL_SUBNETS = 0 class ManagementTypeValueValuesEnum(_messages.Enum): r"""[Output Only] The resource that configures and manages this BGP peer. - MANAGED_BY_USER is the default value and can be managed by you or other users - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted. Values: MANAGED_BY_ATTACHMENT: <no description> MANAGED_BY_USER: <no description> """ MANAGED_BY_ATTACHMENT = 0 MANAGED_BY_USER = 1 advertiseMode = _messages.EnumField('AdvertiseModeValueValuesEnum', 1) advertisedGroups = _messages.EnumField('AdvertisedGroupsValueListEntryValuesEnum', 2, repeated=True) advertisedIpRanges = _messages.MessageField('RouterAdvertisedIpRange', 3, repeated=True) advertisedRoutePriority = _messages.IntegerField(4, variant=_messages.Variant.UINT32) interfaceName = _messages.StringField(5) ipAddress = _messages.StringField(6) managementType = _messages.EnumField('ManagementTypeValueValuesEnum', 7) name = _messages.StringField(8) peerAsn = _messages.IntegerField(9, variant=_messages.Variant.UINT32) peerIpAddress = _messages.StringField(10) class RouterInterface(_messages.Message): r"""A RouterInterface object. Enums: ManagementTypeValueValuesEnum: [Output Only] The resource that configures and manages this interface. - MANAGED_BY_USER is the default value and can be managed directly by users. - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted. Fields: ipRange: IP address and range of the interface. The IP range must be in the RFC3927 link-local IP address space. The value must be a CIDR- formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface. linkedInterconnectAttachment: URI of the linked Interconnect attachment. It must be in the same region as the router. Each interface can have one linked resource, which can be either be a VPN tunnel or an Interconnect attachment. linkedVpnTunnel: URI of the linked VPN tunnel, which must be in the same region as the router. Each interface can have one linked resource, which can be either a VPN tunnel or an Interconnect attachment. managementType: [Output Only] The resource that configures and manages this interface. - MANAGED_BY_USER is the default value and can be managed directly by users. - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted. name: Name of this interface entry. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. """ class ManagementTypeValueValuesEnum(_messages.Enum): r"""[Output Only] The resource that configures and manages this interface. - MANAGED_BY_USER is the default value and can be managed directly by users. - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted. Values: MANAGED_BY_ATTACHMENT: <no description> MANAGED_BY_USER: <no description> """ MANAGED_BY_ATTACHMENT = 0 MANAGED_BY_USER = 1 ipRange = _messages.StringField(1) linkedInterconnectAttachment = _messages.StringField(2) linkedVpnTunnel = _messages.StringField(3) managementType = _messages.EnumField('ManagementTypeValueValuesEnum', 4) name = _messages.StringField(5) class RouterList(_messages.Message): r"""Contains a list of Router resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of Router resources. kind: [Output Only] Type of resource. Always compute#router for routers. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('Router', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#routerList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class RouterNat(_messages.Message): r"""Represents a Nat resource. It enables the VMs within the specified subnetworks to access Internet without external IP addresses. It specifies a list of subnetworks (and the ranges within) that want to use NAT. Customers can also provide the external IPs that would be used for NAT. GCP would auto-allocate ephemeral IPs if no external IPs are provided. Enums: NatIpAllocateOptionValueValuesEnum: Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty. SourceSubnetworkIpRangesToNatValueValuesEnum: Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. Fields: icmpIdleTimeoutSec: Timeout (in seconds) for ICMP connections. Defaults to 30s if not set. logConfig: Configure logging on this NAT. minPortsPerVm: Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of ports is allocated to a VM. This is rounded up to the nearest power of 2. For example, if the value of this field is 50, at least 64 ports are allocated to a VM. name: Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035. natIpAllocateOption: Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty. natIps: A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid static external IP addresses assigned to the project. sourceSubnetworkIpRangesToNat: Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. subnetworks: A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above. tcpEstablishedIdleTimeoutSec: Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set. tcpTransitoryIdleTimeoutSec: Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set. udpIdleTimeoutSec: Timeout (in seconds) for UDP connections. Defaults to 30s if not set. """ class NatIpAllocateOptionValueValuesEnum(_messages.Enum): r"""Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty. Values: AUTO_ONLY: <no description> MANUAL_ONLY: <no description> """ AUTO_ONLY = 0 MANUAL_ONLY = 1 class SourceSubnetworkIpRangesToNatValueValuesEnum(_messages.Enum): r"""Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. Values: ALL_SUBNETWORKS_ALL_IP_RANGES: <no description> ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: <no description> LIST_OF_SUBNETWORKS: <no description> """ ALL_SUBNETWORKS_ALL_IP_RANGES = 0 ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES = 1 LIST_OF_SUBNETWORKS = 2 icmpIdleTimeoutSec = _messages.IntegerField(1, variant=_messages.Variant.INT32) logConfig = _messages.MessageField('RouterNatLogConfig', 2) minPortsPerVm = _messages.IntegerField(3, variant=_messages.Variant.INT32) name = _messages.StringField(4) natIpAllocateOption = _messages.EnumField('NatIpAllocateOptionValueValuesEnum', 5) natIps = _messages.StringField(6, repeated=True) sourceSubnetworkIpRangesToNat = _messages.EnumField('SourceSubnetworkIpRangesToNatValueValuesEnum', 7) subnetworks = _messages.MessageField('RouterNatSubnetworkToNat', 8, repeated=True) tcpEstablishedIdleTimeoutSec = _messages.IntegerField(9, variant=_messages.Variant.INT32) tcpTransitoryIdleTimeoutSec = _messages.IntegerField(10, variant=_messages.Variant.INT32) udpIdleTimeoutSec = _messages.IntegerField(11, variant=_messages.Variant.INT32) class RouterNatLogConfig(_messages.Message): r"""Configuration of logging on a NAT. Enums: FilterValueValuesEnum: Specifies the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. Fields: enable: Indicates whether or not to export logs. This is false by default. filter: Specifies the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. """ class FilterValueValuesEnum(_messages.Enum): r"""Specifies the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. Values: ALL: <no description> ERRORS_ONLY: <no description> TRANSLATIONS_ONLY: <no description> """ ALL = 0 ERRORS_ONLY = 1 TRANSLATIONS_ONLY = 2 enable = _messages.BooleanField(1) filter = _messages.EnumField('FilterValueValuesEnum', 2) class RouterNatSubnetworkToNat(_messages.Message): r"""Defines the IP ranges that want to use NAT for a subnetwork. Enums: SourceIpRangesToNatValueListEntryValuesEnum: Fields: name: URL for the subnetwork resource that will use NAT. secondaryIpRangeNames: A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat. sourceIpRangesToNat: Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] """ class SourceIpRangesToNatValueListEntryValuesEnum(_messages.Enum): r"""SourceIpRangesToNatValueListEntryValuesEnum enum type. Values: ALL_IP_RANGES: <no description> LIST_OF_SECONDARY_IP_RANGES: <no description> PRIMARY_IP_RANGE: <no description> """ ALL_IP_RANGES = 0 LIST_OF_SECONDARY_IP_RANGES = 1 PRIMARY_IP_RANGE = 2 name = _messages.StringField(1) secondaryIpRangeNames = _messages.StringField(2, repeated=True) sourceIpRangesToNat = _messages.EnumField('SourceIpRangesToNatValueListEntryValuesEnum', 3, repeated=True) class RouterStatus(_messages.Message): r"""A RouterStatus object. Fields: bestRoutes: Best routes for this router's network. bestRoutesForRouter: Best routes learned by this router. bgpPeerStatus: A RouterStatusBgpPeerStatus attribute. natStatus: A RouterStatusNatStatus attribute. network: URI of the network to which this router belongs. """ bestRoutes = _messages.MessageField('Route', 1, repeated=True) bestRoutesForRouter = _messages.MessageField('Route', 2, repeated=True) bgpPeerStatus = _messages.MessageField('RouterStatusBgpPeerStatus', 3, repeated=True) natStatus = _messages.MessageField('RouterStatusNatStatus', 4, repeated=True) network = _messages.StringField(5) class RouterStatusBgpPeerStatus(_messages.Message): r"""A RouterStatusBgpPeerStatus object. Enums: StatusValueValuesEnum: Status of the BGP peer: {UP, DOWN} Fields: advertisedRoutes: Routes that were advertised to the remote BGP peer ipAddress: IP address of the local BGP interface. linkedVpnTunnel: URL of the VPN tunnel that this BGP peer controls. name: Name of this BGP peer. Unique within the Routers resource. numLearnedRoutes: Number of routes learned from the remote BGP Peer. peerIpAddress: IP address of the remote BGP interface. state: BGP state as specified in RFC1771. status: Status of the BGP peer: {UP, DOWN} uptime: Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds uptimeSeconds: Time this session has been up, in seconds. Format: 145 """ class StatusValueValuesEnum(_messages.Enum): r"""Status of the BGP peer: {UP, DOWN} Values: DOWN: <no description> UNKNOWN: <no description> UP: <no description> """ DOWN = 0 UNKNOWN = 1 UP = 2 advertisedRoutes = _messages.MessageField('Route', 1, repeated=True) ipAddress = _messages.StringField(2) linkedVpnTunnel = _messages.StringField(3) name = _messages.StringField(4) numLearnedRoutes = _messages.IntegerField(5, variant=_messages.Variant.UINT32) peerIpAddress = _messages.StringField(6) state = _messages.StringField(7) status = _messages.EnumField('StatusValueValuesEnum', 8) uptime = _messages.StringField(9) uptimeSeconds = _messages.StringField(10) class RouterStatusNatStatus(_messages.Message): r"""Status of a NAT contained in this router. Next tag: 9 Fields: autoAllocatedNatIps: A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] minExtraNatIpsNeeded: The number of extra IPs to allocate. This will be greater than 0 only if user-specified IPs are NOT enough to allow all configured VMs to use NAT. This value is meaningful only when auto- allocation of NAT IPs is *not* used. name: Unique name of this NAT. numVmEndpointsWithNatMappings: Number of VM endpoints (i.e., Nics) that can use NAT. userAllocatedNatIpResources: A list of fully qualified URLs of reserved IP address resources. userAllocatedNatIps: A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133". """ autoAllocatedNatIps = _messages.StringField(1, repeated=True) minExtraNatIpsNeeded = _messages.IntegerField(2, variant=_messages.Variant.INT32) name = _messages.StringField(3) numVmEndpointsWithNatMappings = _messages.IntegerField(4, variant=_messages.Variant.INT32) userAllocatedNatIpResources = _messages.StringField(5, repeated=True) userAllocatedNatIps = _messages.StringField(6, repeated=True) class RouterStatusResponse(_messages.Message): r"""A RouterStatusResponse object. Fields: kind: Type of resource. result: A RouterStatus attribute. """ kind = _messages.StringField(1, default=u'compute#routerStatusResponse') result = _messages.MessageField('RouterStatus', 2) class RoutersPreviewResponse(_messages.Message): r"""A RoutersPreviewResponse object. Fields: resource: Preview of given router. """ resource = _messages.MessageField('Router', 1) class RoutersScopedList(_messages.Message): r"""A RoutersScopedList object. Messages: WarningValue: Informational warning which replaces the list of routers when the list is empty. Fields: routers: A list of routers contained in this scope. warning: Informational warning which replaces the list of routers when the list is empty. """ class WarningValue(_messages.Message): r"""Informational warning which replaces the list of routers when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) routers = _messages.MessageField('Router', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class Rule(_messages.Message): r"""A rule to be applied in a Policy. Enums: ActionValueValuesEnum: Required Fields: action: Required conditions: Additional restrictions that must be met. All conditions must pass for the rule to match. description: Human-readable description of the rule. ins: If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. logConfigs: The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action. notIns: If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. permissions: A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs. """ class ActionValueValuesEnum(_messages.Enum): r"""Required Values: ALLOW: <no description> ALLOW_WITH_LOG: <no description> DENY: <no description> DENY_WITH_LOG: <no description> LOG: <no description> NO_ACTION: <no description> """ ALLOW = 0 ALLOW_WITH_LOG = 1 DENY = 2 DENY_WITH_LOG = 3 LOG = 4 NO_ACTION = 5 action = _messages.EnumField('ActionValueValuesEnum', 1) conditions = _messages.MessageField('Condition', 2, repeated=True) description = _messages.StringField(3) ins = _messages.StringField(4, repeated=True) logConfigs = _messages.MessageField('LogConfig', 5, repeated=True) notIns = _messages.StringField(6, repeated=True) permissions = _messages.StringField(7, repeated=True) class SSLHealthCheck(_messages.Message): r"""A SSLHealthCheck object. Enums: PortSpecificationValueValuesEnum: Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, SSL health check follows behavior specified in port and portName fields. ProxyHeaderValueValuesEnum: Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. Fields: port: The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535. portName: Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. portSpecification: Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, SSL health check follows behavior specified in port and portName fields. proxyHeader: Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. request: The application data to send once the SSL connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII. response: The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII. """ class PortSpecificationValueValuesEnum(_messages.Enum): r"""Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, SSL health check follows behavior specified in port and portName fields. Values: USE_FIXED_PORT: <no description> USE_NAMED_PORT: <no description> USE_SERVING_PORT: <no description> """ USE_FIXED_PORT = 0 USE_NAMED_PORT = 1 USE_SERVING_PORT = 2 class ProxyHeaderValueValuesEnum(_messages.Enum): r"""Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. Values: NONE: <no description> PROXY_V1: <no description> """ NONE = 0 PROXY_V1 = 1 port = _messages.IntegerField(1, variant=_messages.Variant.INT32) portName = _messages.StringField(2) portSpecification = _messages.EnumField('PortSpecificationValueValuesEnum', 3) proxyHeader = _messages.EnumField('ProxyHeaderValueValuesEnum', 4) request = _messages.StringField(5) response = _messages.StringField(6) class Scheduling(_messages.Message): r"""Sets the scheduling options for an Instance. NextID: 9 Enums: OnHostMaintenanceValueValuesEnum: Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Setting Instance Scheduling Options. Fields: automaticRestart: Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine. nodeAffinities: A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. onHostMaintenance: Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Setting Instance Scheduling Options. preemptible: Defines whether the instance is preemptible. This can only be set during instance creation, it cannot be set or changed after the instance has been created. """ class OnHostMaintenanceValueValuesEnum(_messages.Enum): r"""Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Setting Instance Scheduling Options. Values: MIGRATE: <no description> TERMINATE: <no description> """ MIGRATE = 0 TERMINATE = 1 automaticRestart = _messages.BooleanField(1) nodeAffinities = _messages.MessageField('SchedulingNodeAffinity', 2, repeated=True) onHostMaintenance = _messages.EnumField('OnHostMaintenanceValueValuesEnum', 3) preemptible = _messages.BooleanField(4) class SchedulingNodeAffinity(_messages.Message): r"""Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. Enums: OperatorValueValuesEnum: Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity. Fields: key: Corresponds to the label key of Node resource. operator: Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity. values: Corresponds to the label values of Node resource. """ class OperatorValueValuesEnum(_messages.Enum): r"""Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity. Values: IN: <no description> NOT_IN: <no description> OPERATOR_UNSPECIFIED: <no description> """ IN = 0 NOT_IN = 1 OPERATOR_UNSPECIFIED = 2 key = _messages.StringField(1) operator = _messages.EnumField('OperatorValueValuesEnum', 2) values = _messages.StringField(3, repeated=True) class SecurityPolicy(_messages.Message): r"""Represents a Cloud Armor Security Policy resource. Only external backend services that use load balancers can reference a Security Policy. For more information, read Cloud Armor Security Policy Concepts. (== resource_for v1.securityPolicies ==) (== resource_for beta.securityPolicies ==) Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. fingerprint: Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make get() request to the security policy. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output only] Type of the resource. Always compute#securityPolicyfor security policies name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. rules: A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a security policy, a default rule with action "allow" will be added. selfLink: [Output Only] Server-defined URL for the resource. """ creationTimestamp = _messages.StringField(1) description = _messages.StringField(2) fingerprint = _messages.BytesField(3) id = _messages.IntegerField(4, variant=_messages.Variant.UINT64) kind = _messages.StringField(5, default=u'compute#securityPolicy') name = _messages.StringField(6) rules = _messages.MessageField('SecurityPolicyRule', 7, repeated=True) selfLink = _messages.StringField(8) class SecurityPolicyList(_messages.Message): r"""A SecurityPolicyList object. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of SecurityPolicy resources. kind: [Output Only] Type of resource. Always compute#securityPolicyList for listsof securityPolicies nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('SecurityPolicy', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#securityPolicyList') nextPageToken = _messages.StringField(4) warning = _messages.MessageField('WarningValue', 5) class SecurityPolicyReference(_messages.Message): r"""A SecurityPolicyReference object. Fields: securityPolicy: A string attribute. """ securityPolicy = _messages.StringField(1) class SecurityPolicyRule(_messages.Message): r"""Represents a rule that describes one or more match conditions along with the action to be taken when traffic matches this condition (allow or deny). Fields: action: The Action to preform when the client connection triggers the rule. Can currently be either "allow" or "deny()" where valid values for status are 403, 404, and 502. description: An optional description of this resource. Provide this property when you create the resource. kind: [Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules match: A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding ?action? is enforced. preview: If set to true, the specified action is not enforced. priority: An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest prority. """ action = _messages.StringField(1) description = _messages.StringField(2) kind = _messages.StringField(3, default=u'compute#securityPolicyRule') match = _messages.MessageField('SecurityPolicyRuleMatcher', 4) preview = _messages.BooleanField(5) priority = _messages.IntegerField(6, variant=_messages.Variant.INT32) class SecurityPolicyRuleMatcher(_messages.Message): r"""Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified. Enums: VersionedExprValueValuesEnum: Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config. Fields: config: The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified. versionedExpr: Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config. """ class VersionedExprValueValuesEnum(_messages.Enum): r"""Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config. Values: SRC_IPS_V1: <no description> """ SRC_IPS_V1 = 0 config = _messages.MessageField('SecurityPolicyRuleMatcherConfig', 1) versionedExpr = _messages.EnumField('VersionedExprValueValuesEnum', 2) class SecurityPolicyRuleMatcherConfig(_messages.Message): r"""A SecurityPolicyRuleMatcherConfig object. Fields: srcIpRanges: CIDR IP address range. """ srcIpRanges = _messages.StringField(1, repeated=True) class SerialPortOutput(_messages.Message): r"""An instance's serial console output. Fields: contents: [Output Only] The contents of the console output. kind: [Output Only] Type of the resource. Always compute#serialPortOutput for serial port output. next: [Output Only] The position of the next byte of content from the serial console output. Use this value in the next request as the start parameter. selfLink: [Output Only] Server-defined URL for this resource. start: The starting byte position of the output that was returned. This should match the start parameter sent with the request. If the serial console output exceeds the size of the buffer, older output will be overwritten by newer content and the start values will be mismatched. """ contents = _messages.StringField(1) kind = _messages.StringField(2, default=u'compute#serialPortOutput') next = _messages.IntegerField(3) selfLink = _messages.StringField(4) start = _messages.IntegerField(5) class ServerBinding(_messages.Message): r"""A ServerBinding object. Enums: TypeValueValuesEnum: Fields: type: A TypeValueValuesEnum attribute. """ class TypeValueValuesEnum(_messages.Enum): r"""TypeValueValuesEnum enum type. Values: RESTART_NODE_ON_ANY_SERVER: <no description> RESTART_NODE_ON_MINIMAL_SERVERS: <no description> SERVER_BINDING_TYPE_UNSPECIFIED: <no description> """ RESTART_NODE_ON_ANY_SERVER = 0 RESTART_NODE_ON_MINIMAL_SERVERS = 1 SERVER_BINDING_TYPE_UNSPECIFIED = 2 type = _messages.EnumField('TypeValueValuesEnum', 1) class ServiceAccount(_messages.Message): r"""A service account. Fields: email: Email address of the service account. scopes: The list of scopes to be made available for this service account. """ email = _messages.StringField(1) scopes = _messages.StringField(2, repeated=True) class ShieldedInstanceConfig(_messages.Message): r"""A set of Shielded Instance options. Fields: enableIntegrityMonitoring: Defines whether the instance has integrity monitoring enabled. enableSecureBoot: Defines whether the instance has Secure Boot enabled. enableVtpm: Defines whether the instance has the vTPM enabled. """ enableIntegrityMonitoring = _messages.BooleanField(1) enableSecureBoot = _messages.BooleanField(2) enableVtpm = _messages.BooleanField(3) class ShieldedInstanceIdentity(_messages.Message): r"""A shielded Instance identity entry. Fields: encryptionKey: An Endorsement Key (EK) issued to the Shielded Instance's vTPM. kind: [Output Only] Type of the resource. Always compute#shieldedInstanceIdentity for shielded Instance identity entry. signingKey: An Attestation Key (AK) issued to the Shielded Instance's vTPM. """ encryptionKey = _messages.MessageField('ShieldedInstanceIdentityEntry', 1) kind = _messages.StringField(2, default=u'compute#shieldedInstanceIdentity') signingKey = _messages.MessageField('ShieldedInstanceIdentityEntry', 3) class ShieldedInstanceIdentityEntry(_messages.Message): r"""A Shielded Instance Identity Entry. Fields: ekCert: A PEM-encoded X.509 certificate. This field can be empty. ekPub: A PEM-encoded public key. """ ekCert = _messages.StringField(1) ekPub = _messages.StringField(2) class ShieldedInstanceIntegrityPolicy(_messages.Message): r"""The policy describes the baseline against which Instance boot integrity is measured. Fields: updateAutoLearnPolicy: Updates the integrity policy baseline using the measurements from the VM instance's most recent boot. """ updateAutoLearnPolicy = _messages.BooleanField(1) class SignedUrlKey(_messages.Message): r"""Represents a customer-supplied Signing Key used by Cloud CDN Signed URLs Fields: keyName: Name of the key. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. keyValue: 128-bit key value used for signing the URL. The key value must be a valid RFC 4648 Section 5 base64url encoded string. """ keyName = _messages.StringField(1) keyValue = _messages.StringField(2) class Snapshot(_messages.Message): r"""Represents a Persistent Disk Snapshot resource. You can use snapshots to back up data on a regular interval. For more information, read Creating persistent disk snapshots. (== resource_for beta.snapshots ==) (== resource_for v1.snapshots ==) Enums: StatusValueValuesEnum: [Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. StorageBytesStatusValueValuesEnum: [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Messages: LabelsValue: Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty. Fields: autoCreated: [Output Only] Set to true if snapshots are automatically by applying resource policy on the target disk. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. diskSizeGb: [Output Only] Size of the snapshot, specified in GB. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of the resource. Always compute#snapshot for Snapshot resources. labelFingerprint: A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a snapshot. labels: Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty. licenseCodes: [Output Only] Integer license codes indicating which licenses are attached to this snapshot. licenses: [Output Only] A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image). name: Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. selfLink: [Output Only] Server-defined URL for the resource. snapshotEncryptionKey: Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later. sourceDisk: [Output Only] The source disk used to create this snapshot. sourceDiskEncryptionKey: The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer- supplied encryption key. sourceDiskId: [Output Only] The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name. status: [Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. storageBytes: [Output Only] A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion. storageBytesStatus: [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. storageLocations: Cloud Storage bucket storage location of the snapshot (regional or multi-regional). """ class StatusValueValuesEnum(_messages.Enum): r"""[Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. Values: CREATING: <no description> DELETING: <no description> FAILED: <no description> READY: <no description> UPLOADING: <no description> """ CREATING = 0 DELETING = 1 FAILED = 2 READY = 3 UPLOADING = 4 class StorageBytesStatusValueValuesEnum(_messages.Enum): r"""[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Values: UPDATING: <no description> UP_TO_DATE: <no description> """ UPDATING = 0 UP_TO_DATE = 1 @encoding.MapUnrecognizedFields('additionalProperties') class LabelsValue(_messages.Message): r"""Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty. Messages: AdditionalProperty: An additional property for a LabelsValue object. Fields: additionalProperties: Additional properties of type LabelsValue """ class AdditionalProperty(_messages.Message): r"""An additional property for a LabelsValue object. Fields: key: Name of the additional property. value: A string attribute. """ key = _messages.StringField(1) value = _messages.StringField(2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) autoCreated = _messages.BooleanField(1) creationTimestamp = _messages.StringField(2) description = _messages.StringField(3) diskSizeGb = _messages.IntegerField(4) id = _messages.IntegerField(5, variant=_messages.Variant.UINT64) kind = _messages.StringField(6, default=u'compute#snapshot') labelFingerprint = _messages.BytesField(7) labels = _messages.MessageField('LabelsValue', 8) licenseCodes = _messages.IntegerField(9, repeated=True) licenses = _messages.StringField(10, repeated=True) name = _messages.StringField(11) selfLink = _messages.StringField(12) snapshotEncryptionKey = _messages.MessageField('CustomerEncryptionKey', 13) sourceDisk = _messages.StringField(14) sourceDiskEncryptionKey = _messages.MessageField('CustomerEncryptionKey', 15) sourceDiskId = _messages.StringField(16) status = _messages.EnumField('StatusValueValuesEnum', 17) storageBytes = _messages.IntegerField(18) storageBytesStatus = _messages.EnumField('StorageBytesStatusValueValuesEnum', 19) storageLocations = _messages.StringField(20, repeated=True) class SnapshotList(_messages.Message): r"""Contains a list of Snapshot resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of Snapshot resources. kind: Type of resource. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('Snapshot', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#snapshotList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class SourceInstanceParams(_messages.Message): r"""A specification of the parameters to use when creating the instance template from a source instance. Fields: diskConfigs: Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, new custom images will be created from each disk. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes. """ diskConfigs = _messages.MessageField('DiskInstantiationConfig', 1, repeated=True) class SslCertificate(_messages.Message): r"""Represents an SSL Certificate resource. This SSL certificate resource also contains a private key. You can use SSL keys and certificates to secure connections to a load balancer. For more information, read Creating and Using SSL Certificates. (== resource_for beta.sslCertificates ==) (== resource_for v1.sslCertificates ==) Fields: certificate: A local certificate file. The certificate must be in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of the resource. Always compute#sslCertificate for SSL certificates. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. privateKey: A write-only private key in PEM format. Only insert requests will include this field. selfLink: [Output only] Server-defined URL for the resource. """ certificate = _messages.StringField(1) creationTimestamp = _messages.StringField(2) description = _messages.StringField(3) id = _messages.IntegerField(4, variant=_messages.Variant.UINT64) kind = _messages.StringField(5, default=u'compute#sslCertificate') name = _messages.StringField(6) privateKey = _messages.StringField(7) selfLink = _messages.StringField(8) class SslCertificateList(_messages.Message): r"""Contains a list of SslCertificate resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of SslCertificate resources. kind: Type of resource. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('SslCertificate', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#sslCertificateList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class SslPoliciesList(_messages.Message): r"""A SslPoliciesList object. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of SslPolicy resources. kind: [Output Only] Type of the resource. Always compute#sslPoliciesList for lists of sslPolicies. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('SslPolicy', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#sslPoliciesList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class SslPoliciesListAvailableFeaturesResponse(_messages.Message): r"""A SslPoliciesListAvailableFeaturesResponse object. Fields: features: A string attribute. """ features = _messages.StringField(1, repeated=True) class SslPolicy(_messages.Message): r"""Represents a Cloud Armor Security Policy resource. Only external backend services used by HTTP or HTTPS load balancers can reference a Security Policy. For more information, read read Cloud Armor Security Policy Concepts. (== resource_for beta.sslPolicies ==) (== resource_for v1.sslPolicies ==) Enums: MinTlsVersionValueValuesEnum: The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2. ProfileValueValuesEnum: Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. Messages: WarningsValueListEntry: A WarningsValueListEntry object. Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. customFeatures: A list of features enabled when the selected profile is CUSTOM. The - method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM. description: An optional description of this resource. Provide this property when you create the resource. enabledFeatures: [Output Only] The list of features enabled in the SSL policy. fingerprint: Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an SslPolicy. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies. minTlsVersion: The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2. name: Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. profile: Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. selfLink: [Output Only] Server-defined URL for the resource. warnings: [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. """ class MinTlsVersionValueValuesEnum(_messages.Enum): r"""The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2. Values: TLS_1_0: <no description> TLS_1_1: <no description> TLS_1_2: <no description> """ TLS_1_0 = 0 TLS_1_1 = 1 TLS_1_2 = 2 class ProfileValueValuesEnum(_messages.Enum): r"""Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. Values: COMPATIBLE: <no description> CUSTOM: <no description> MODERN: <no description> RESTRICTED: <no description> """ COMPATIBLE = 0 CUSTOM = 1 MODERN = 2 RESTRICTED = 3 class WarningsValueListEntry(_messages.Message): r"""A WarningsValueListEntry object. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) creationTimestamp = _messages.StringField(1) customFeatures = _messages.StringField(2, repeated=True) description = _messages.StringField(3) enabledFeatures = _messages.StringField(4, repeated=True) fingerprint = _messages.BytesField(5) id = _messages.IntegerField(6, variant=_messages.Variant.UINT64) kind = _messages.StringField(7, default=u'compute#sslPolicy') minTlsVersion = _messages.EnumField('MinTlsVersionValueValuesEnum', 8) name = _messages.StringField(9) profile = _messages.EnumField('ProfileValueValuesEnum', 10) selfLink = _messages.StringField(11) warnings = _messages.MessageField('WarningsValueListEntry', 12, repeated=True) class SslPolicyReference(_messages.Message): r"""A SslPolicyReference object. Fields: sslPolicy: URL of the SSL policy resource. Set this to empty string to clear any existing SSL policy associated with the target proxy resource. """ sslPolicy = _messages.StringField(1) class StandardQueryParameters(_messages.Message): r"""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: An opaque string that represents a user for quota purposes. Must not exceed 40 characters. trace: A tracing token of the form "token:<tokenid>" to include in api requests. userIp: Deprecated. Please use quotaUser instead. """ class AltValueValuesEnum(_messages.Enum): r"""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) class Subnetwork(_messages.Message): r"""Represents a Subnetwork resource. A subnetwork (also known as a subnet) is a logical partition of a Virtual Private Cloud network with one primary IP range and zero or more secondary IP ranges. For more information, read Virtual Private Cloud (VPC) Network. (== resource_for beta.subnetworks ==) (== resource_for v1.subnetworks ==) Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time. enableFlowLogs: Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging. fingerprint: Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a Subnetwork. gatewayAddress: [Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. ipCidrRange: The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 192.168.0.0/16. Ranges must be unique and non- overlapping within a network. Only IPv4 is supported. This field can be set only at resource creation time. kind: [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources. logConfig: This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Stackdriver. name: The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. network: The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. Only networks that are in the distributed mode can have subnetworks. This field can be set only at resource creation time. privateIpGoogleAccess: Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess. region: URL of the region where the Subnetwork resides. This field can be set only at resource creation time. secondaryIpRanges: An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request. selfLink: [Output Only] Server-defined URL for the resource. """ creationTimestamp = _messages.StringField(1) description = _messages.StringField(2) enableFlowLogs = _messages.BooleanField(3) fingerprint = _messages.BytesField(4) gatewayAddress = _messages.StringField(5) id = _messages.IntegerField(6, variant=_messages.Variant.UINT64) ipCidrRange = _messages.StringField(7) kind = _messages.StringField(8, default=u'compute#subnetwork') logConfig = _messages.MessageField('SubnetworkLogConfig', 9) name = _messages.StringField(10) network = _messages.StringField(11) privateIpGoogleAccess = _messages.BooleanField(12) region = _messages.StringField(13) secondaryIpRanges = _messages.MessageField('SubnetworkSecondaryRange', 14, repeated=True) selfLink = _messages.StringField(15) class SubnetworkAggregatedList(_messages.Message): r"""A SubnetworkAggregatedList object. Messages: ItemsValue: A list of SubnetworksScopedList resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of SubnetworksScopedList resources. kind: [Output Only] Type of resource. Always compute#subnetworkAggregatedList for aggregated lists of subnetworks. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of SubnetworksScopedList resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: Name of the scope containing this set of Subnetworks. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A SubnetworksScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('SubnetworksScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#subnetworkAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class SubnetworkList(_messages.Message): r"""Contains a list of Subnetwork resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of Subnetwork resources. kind: [Output Only] Type of resource. Always compute#subnetworkList for lists of subnetworks. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('Subnetwork', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#subnetworkList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class SubnetworkLogConfig(_messages.Message): r"""The available logging options for this subnetwork. Enums: AggregationIntervalValueValuesEnum: Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection. MetadataValueValuesEnum: Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is INCLUDE_ALL_METADATA. Fields: aggregationInterval: Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection. enable: Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging. flowSampling: Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5, which means half of all collected logs are reported. metadata: Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is INCLUDE_ALL_METADATA. """ class AggregationIntervalValueValuesEnum(_messages.Enum): r"""Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection. Values: INTERVAL_10_MIN: <no description> INTERVAL_15_MIN: <no description> INTERVAL_1_MIN: <no description> INTERVAL_30_SEC: <no description> INTERVAL_5_MIN: <no description> INTERVAL_5_SEC: <no description> """ INTERVAL_10_MIN = 0 INTERVAL_15_MIN = 1 INTERVAL_1_MIN = 2 INTERVAL_30_SEC = 3 INTERVAL_5_MIN = 4 INTERVAL_5_SEC = 5 class MetadataValueValuesEnum(_messages.Enum): r"""Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is INCLUDE_ALL_METADATA. Values: EXCLUDE_ALL_METADATA: <no description> INCLUDE_ALL_METADATA: <no description> """ EXCLUDE_ALL_METADATA = 0 INCLUDE_ALL_METADATA = 1 aggregationInterval = _messages.EnumField('AggregationIntervalValueValuesEnum', 1) enable = _messages.BooleanField(2) flowSampling = _messages.FloatField(3, variant=_messages.Variant.FLOAT) metadata = _messages.EnumField('MetadataValueValuesEnum', 4) class SubnetworkSecondaryRange(_messages.Message): r"""Represents a secondary IP range of a subnetwork. Fields: ipCidrRange: The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. rangeName: The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork. """ ipCidrRange = _messages.StringField(1) rangeName = _messages.StringField(2) class SubnetworksExpandIpCidrRangeRequest(_messages.Message): r"""A SubnetworksExpandIpCidrRangeRequest object. Fields: ipCidrRange: The IP (in CIDR format or netmask) of internal addresses that are legal on this Subnetwork. This range should be disjoint from other subnetworks within this network. This range can only be larger than (i.e. a superset of) the range previously defined before the update. """ ipCidrRange = _messages.StringField(1) class SubnetworksScopedList(_messages.Message): r"""A SubnetworksScopedList object. Messages: WarningValue: An informational warning that appears when the list of addresses is empty. Fields: subnetworks: A list of subnetworks contained in this scope. warning: An informational warning that appears when the list of addresses is empty. """ class WarningValue(_messages.Message): r"""An informational warning that appears when the list of addresses is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) subnetworks = _messages.MessageField('Subnetwork', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class SubnetworksSetPrivateIpGoogleAccessRequest(_messages.Message): r"""A SubnetworksSetPrivateIpGoogleAccessRequest object. Fields: privateIpGoogleAccess: A boolean attribute. """ privateIpGoogleAccess = _messages.BooleanField(1) class TCPHealthCheck(_messages.Message): r"""A TCPHealthCheck object. Enums: PortSpecificationValueValuesEnum: Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, TCP health check follows behavior specified in port and portName fields. ProxyHeaderValueValuesEnum: Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. Fields: port: The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535. portName: Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. portSpecification: Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, TCP health check follows behavior specified in port and portName fields. proxyHeader: Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. request: The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII. response: The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII. """ class PortSpecificationValueValuesEnum(_messages.Enum): r"""Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, TCP health check follows behavior specified in port and portName fields. Values: USE_FIXED_PORT: <no description> USE_NAMED_PORT: <no description> USE_SERVING_PORT: <no description> """ USE_FIXED_PORT = 0 USE_NAMED_PORT = 1 USE_SERVING_PORT = 2 class ProxyHeaderValueValuesEnum(_messages.Enum): r"""Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. Values: NONE: <no description> PROXY_V1: <no description> """ NONE = 0 PROXY_V1 = 1 port = _messages.IntegerField(1, variant=_messages.Variant.INT32) portName = _messages.StringField(2) portSpecification = _messages.EnumField('PortSpecificationValueValuesEnum', 3) proxyHeader = _messages.EnumField('ProxyHeaderValueValuesEnum', 4) request = _messages.StringField(5) response = _messages.StringField(6) class Tags(_messages.Message): r"""A set of instance tags. Fields: fingerprint: Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update tags. You must always provide an up-to-date fingerprint hash in order to update or change tags. To see the latest fingerprint, make get() request to the instance. items: An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035. """ fingerprint = _messages.BytesField(1) items = _messages.StringField(2, repeated=True) class TargetHttpProxy(_messages.Message): r"""Represents a Target HTTP Proxy resource. A target HTTP proxy is a component of certain types of load balancers. Global forwarding rules reference a target HTTP proxy, and the target proxy then references a URL map. For more information, read Using Target Proxies. (== resource_for beta.targetHttpProxies ==) (== resource_for v1.targetHttpProxies ==) Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. selfLink: [Output Only] Server-defined URL for the resource. urlMap: URL to the UrlMap resource that defines the mapping from URL to the BackendService. """ creationTimestamp = _messages.StringField(1) description = _messages.StringField(2) id = _messages.IntegerField(3, variant=_messages.Variant.UINT64) kind = _messages.StringField(4, default=u'compute#targetHttpProxy') name = _messages.StringField(5) selfLink = _messages.StringField(6) urlMap = _messages.StringField(7) class TargetHttpProxyList(_messages.Message): r"""A list of TargetHttpProxy resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of TargetHttpProxy resources. kind: Type of resource. Always compute#targetHttpProxyList for lists of target HTTP proxies. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('TargetHttpProxy', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#targetHttpProxyList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class TargetHttpsProxiesSetQuicOverrideRequest(_messages.Message): r"""A TargetHttpsProxiesSetQuicOverrideRequest object. Enums: QuicOverrideValueValuesEnum: QUIC policy for the TargetHttpsProxy resource. Fields: quicOverride: QUIC policy for the TargetHttpsProxy resource. """ class QuicOverrideValueValuesEnum(_messages.Enum): r"""QUIC policy for the TargetHttpsProxy resource. Values: DISABLE: <no description> ENABLE: <no description> NONE: <no description> """ DISABLE = 0 ENABLE = 1 NONE = 2 quicOverride = _messages.EnumField('QuicOverrideValueValuesEnum', 1) class TargetHttpsProxiesSetSslCertificatesRequest(_messages.Message): r"""A TargetHttpsProxiesSetSslCertificatesRequest object. Fields: sslCertificates: New set of SslCertificate resources to associate with this TargetHttpsProxy resource. Currently exactly one SslCertificate resource must be specified. """ sslCertificates = _messages.StringField(1, repeated=True) class TargetHttpsProxy(_messages.Message): r"""Represents a Target HTTPS Proxy resource. A target HTTPS proxy is a component of certain types of load balancers. Global forwarding rules reference a target HTTPS proxy, and the target proxy then references a URL map. For more information, read Using Target Proxies. (== resource_for beta.targetHttpsProxies ==) (== resource_for v1.targetHttpsProxies ==) Enums: QuicOverrideValueValuesEnum: Specifies the QUIC override policy for this TargetHttpsProxy resource. This determines whether the load balancer will attempt to negotiate QUIC with clients or not. Can specify one of NONE, ENABLE, or DISABLE. Specify ENABLE to always enable QUIC, Enables QUIC when set to ENABLE, and disables QUIC when set to DISABLE. If NONE is specified, uses the QUIC policy with no user overrides, which is equivalent to DISABLE. Not specifying this field is equivalent to specifying NONE. Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of resource. Always compute#targetHttpsProxy for target HTTPS proxies. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. quicOverride: Specifies the QUIC override policy for this TargetHttpsProxy resource. This determines whether the load balancer will attempt to negotiate QUIC with clients or not. Can specify one of NONE, ENABLE, or DISABLE. Specify ENABLE to always enable QUIC, Enables QUIC when set to ENABLE, and disables QUIC when set to DISABLE. If NONE is specified, uses the QUIC policy with no user overrides, which is equivalent to DISABLE. Not specifying this field is equivalent to specifying NONE. selfLink: [Output Only] Server-defined URL for the resource. sslCertificates: URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. sslPolicy: URL of SslPolicy resource that will be associated with the TargetHttpsProxy resource. If not set, the TargetHttpsProxy resource will not have any SSL policy configured. urlMap: A fully-qualified or valid partial URL to the UrlMap resource that defines the mapping from URL to the BackendService. For example, the following are all valid URLs for specifying a URL map: - https://www.googleapis.compute/v1/projects/project/global/urlMaps/url- map - projects/project/global/urlMaps/url-map - global/urlMaps/url-map """ class QuicOverrideValueValuesEnum(_messages.Enum): r"""Specifies the QUIC override policy for this TargetHttpsProxy resource. This determines whether the load balancer will attempt to negotiate QUIC with clients or not. Can specify one of NONE, ENABLE, or DISABLE. Specify ENABLE to always enable QUIC, Enables QUIC when set to ENABLE, and disables QUIC when set to DISABLE. If NONE is specified, uses the QUIC policy with no user overrides, which is equivalent to DISABLE. Not specifying this field is equivalent to specifying NONE. Values: DISABLE: <no description> ENABLE: <no description> NONE: <no description> """ DISABLE = 0 ENABLE = 1 NONE = 2 creationTimestamp = _messages.StringField(1) description = _messages.StringField(2) id = _messages.IntegerField(3, variant=_messages.Variant.UINT64) kind = _messages.StringField(4, default=u'compute#targetHttpsProxy') name = _messages.StringField(5) quicOverride = _messages.EnumField('QuicOverrideValueValuesEnum', 6) selfLink = _messages.StringField(7) sslCertificates = _messages.StringField(8, repeated=True) sslPolicy = _messages.StringField(9) urlMap = _messages.StringField(10) class TargetHttpsProxyList(_messages.Message): r"""Contains a list of TargetHttpsProxy resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of TargetHttpsProxy resources. kind: Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS proxies. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('TargetHttpsProxy', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#targetHttpsProxyList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class TargetInstance(_messages.Message): r"""Represents a Target Instance resource. You can use a target instance to handle traffic for one or more forwarding rules, which is ideal for forwarding protocol traffic that is managed by a single source. For example, ESP, AH, TCP, or UDP. For more information, read Target instances. (== resource_for beta.targetInstances ==) (== resource_for v1.targetInstances ==) Enums: NatPolicyValueValuesEnum: NAT option controlling how IPs are NAT'ed to the instance. Currently only NO_NAT (default value) is supported. Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. instance: A URL to the virtual machine instance that handles traffic for this target instance. When creating a target instance, you can provide the fully-qualified URL or a valid partial URL to the desired virtual machine. For example, the following are all valid URLs: - https://www.g oogleapis.com/compute/v1/projects/project/zones/zone/instances/instance - projects/project/zones/zone/instances/instance - zones/zone/instances/instance kind: [Output Only] The type of the resource. Always compute#targetInstance for target instances. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. natPolicy: NAT option controlling how IPs are NAT'ed to the instance. Currently only NO_NAT (default value) is supported. selfLink: [Output Only] Server-defined URL for the resource. zone: [Output Only] URL of the zone where the target instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. """ class NatPolicyValueValuesEnum(_messages.Enum): r"""NAT option controlling how IPs are NAT'ed to the instance. Currently only NO_NAT (default value) is supported. Values: NO_NAT: <no description> """ NO_NAT = 0 creationTimestamp = _messages.StringField(1) description = _messages.StringField(2) id = _messages.IntegerField(3, variant=_messages.Variant.UINT64) instance = _messages.StringField(4) kind = _messages.StringField(5, default=u'compute#targetInstance') name = _messages.StringField(6) natPolicy = _messages.EnumField('NatPolicyValueValuesEnum', 7) selfLink = _messages.StringField(8) zone = _messages.StringField(9) class TargetInstanceAggregatedList(_messages.Message): r"""A TargetInstanceAggregatedList object. Messages: ItemsValue: A list of TargetInstance resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of TargetInstance resources. kind: Type of resource. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of TargetInstance resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: Name of the scope containing this set of target instances. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A TargetInstancesScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('TargetInstancesScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#targetInstanceAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class TargetInstanceList(_messages.Message): r"""Contains a list of TargetInstance resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of TargetInstance resources. kind: Type of resource. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('TargetInstance', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#targetInstanceList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class TargetInstancesScopedList(_messages.Message): r"""A TargetInstancesScopedList object. Messages: WarningValue: Informational warning which replaces the list of addresses when the list is empty. Fields: targetInstances: A list of target instances contained in this scope. warning: Informational warning which replaces the list of addresses when the list is empty. """ class WarningValue(_messages.Message): r"""Informational warning which replaces the list of addresses when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) targetInstances = _messages.MessageField('TargetInstance', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class TargetPool(_messages.Message): r"""Represents a Target Pool resource. Target pools are used for network TCP/UDP load balancing. A target pool references member instances, an associated legacy HttpHealthCheck resource, and, optionally, a backup target pool. For more information, read Using target pools. (== resource_for beta.targetPools ==) (== resource_for v1.targetPools ==) Enums: SessionAffinityValueValuesEnum: Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy. Fields: backupPool: This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is properly set to a value between [0, 1]. backupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio and backupPool are not set, or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. failoverRatio: This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool). The value of the field must be in [0, 1]. If set, backupPool must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio is not set or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy. healthChecks: The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. An empty list means all member instances will be considered healthy at all times. Only HttpHealthChecks are supported. Only one health check may be specified. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. instances: A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool. kind: [Output Only] Type of the resource. Always compute#targetPool for target pools. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. region: [Output Only] URL of the region where the target pool resides. selfLink: [Output Only] Server-defined URL for the resource. sessionAffinity: Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy. """ class SessionAffinityValueValuesEnum(_messages.Enum): r"""Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy. Values: CLIENT_IP: <no description> CLIENT_IP_PORT_PROTO: <no description> CLIENT_IP_PROTO: <no description> GENERATED_COOKIE: <no description> NONE: <no description> """ CLIENT_IP = 0 CLIENT_IP_PORT_PROTO = 1 CLIENT_IP_PROTO = 2 GENERATED_COOKIE = 3 NONE = 4 backupPool = _messages.StringField(1) creationTimestamp = _messages.StringField(2) description = _messages.StringField(3) failoverRatio = _messages.FloatField(4, variant=_messages.Variant.FLOAT) healthChecks = _messages.StringField(5, repeated=True) id = _messages.IntegerField(6, variant=_messages.Variant.UINT64) instances = _messages.StringField(7, repeated=True) kind = _messages.StringField(8, default=u'compute#targetPool') name = _messages.StringField(9) region = _messages.StringField(10) selfLink = _messages.StringField(11) sessionAffinity = _messages.EnumField('SessionAffinityValueValuesEnum', 12) class TargetPoolAggregatedList(_messages.Message): r"""A TargetPoolAggregatedList object. Messages: ItemsValue: A list of TargetPool resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of TargetPool resources. kind: [Output Only] Type of resource. Always compute#targetPoolAggregatedList for aggregated lists of target pools. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of TargetPool resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: Name of the scope containing this set of target pools. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A TargetPoolsScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('TargetPoolsScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#targetPoolAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class TargetPoolInstanceHealth(_messages.Message): r"""A TargetPoolInstanceHealth object. Fields: healthStatus: A HealthStatus attribute. kind: [Output Only] Type of resource. Always compute#targetPoolInstanceHealth when checking the health of an instance. """ healthStatus = _messages.MessageField('HealthStatus', 1, repeated=True) kind = _messages.StringField(2, default=u'compute#targetPoolInstanceHealth') class TargetPoolList(_messages.Message): r"""Contains a list of TargetPool resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of TargetPool resources. kind: [Output Only] Type of resource. Always compute#targetPoolList for lists of target pools. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('TargetPool', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#targetPoolList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class TargetPoolsAddHealthCheckRequest(_messages.Message): r"""A TargetPoolsAddHealthCheckRequest object. Fields: healthChecks: The HttpHealthCheck to add to the target pool. """ healthChecks = _messages.MessageField('HealthCheckReference', 1, repeated=True) class TargetPoolsAddInstanceRequest(_messages.Message): r"""A TargetPoolsAddInstanceRequest object. Fields: instances: A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs: - https://www.googleapis.com/compute/v1/projects/project- id/zones/zone/instances/instance-name - projects/project- id/zones/zone/instances/instance-name - zones/zone/instances/instance- name """ instances = _messages.MessageField('InstanceReference', 1, repeated=True) class TargetPoolsRemoveHealthCheckRequest(_messages.Message): r"""A TargetPoolsRemoveHealthCheckRequest object. Fields: healthChecks: Health check URL to be removed. This can be a full or valid partial URL. For example, the following are valid URLs: - https://www. googleapis.com/compute/beta/projects/project/global/httpHealthChecks /health-check - projects/project/global/httpHealthChecks/health-check - global/httpHealthChecks/health-check """ healthChecks = _messages.MessageField('HealthCheckReference', 1, repeated=True) class TargetPoolsRemoveInstanceRequest(_messages.Message): r"""A TargetPoolsRemoveInstanceRequest object. Fields: instances: URLs of the instances to be removed from target pool. """ instances = _messages.MessageField('InstanceReference', 1, repeated=True) class TargetPoolsScopedList(_messages.Message): r"""A TargetPoolsScopedList object. Messages: WarningValue: Informational warning which replaces the list of addresses when the list is empty. Fields: targetPools: A list of target pools contained in this scope. warning: Informational warning which replaces the list of addresses when the list is empty. """ class WarningValue(_messages.Message): r"""Informational warning which replaces the list of addresses when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) targetPools = _messages.MessageField('TargetPool', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class TargetReference(_messages.Message): r"""A TargetReference object. Fields: target: A string attribute. """ target = _messages.StringField(1) class TargetSslProxiesSetBackendServiceRequest(_messages.Message): r"""A TargetSslProxiesSetBackendServiceRequest object. Fields: service: The URL of the new BackendService resource for the targetSslProxy. """ service = _messages.StringField(1) class TargetSslProxiesSetProxyHeaderRequest(_messages.Message): r"""A TargetSslProxiesSetProxyHeaderRequest object. Enums: ProxyHeaderValueValuesEnum: The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed. Fields: proxyHeader: The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed. """ class ProxyHeaderValueValuesEnum(_messages.Enum): r"""The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed. Values: NONE: <no description> PROXY_V1: <no description> """ NONE = 0 PROXY_V1 = 1 proxyHeader = _messages.EnumField('ProxyHeaderValueValuesEnum', 1) class TargetSslProxiesSetSslCertificatesRequest(_messages.Message): r"""A TargetSslProxiesSetSslCertificatesRequest object. Fields: sslCertificates: New set of URLs to SslCertificate resources to associate with this TargetSslProxy. Currently exactly one ssl certificate must be specified. """ sslCertificates = _messages.StringField(1, repeated=True) class TargetSslProxy(_messages.Message): r"""Represents a Target SSL Proxy resource. A target SSL proxy is a component of a SSL Proxy load balancer. Global forwarding rules reference a target SSL proxy, and the target proxy then references an external backend service. For more information, read Using Target Proxies. (== resource_for beta.targetSslProxies ==) (== resource_for v1.targetSslProxies ==) Enums: ProxyHeaderValueValuesEnum: Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of the resource. Always compute#targetSslProxy for target SSL proxies. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. proxyHeader: Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. selfLink: [Output Only] Server-defined URL for the resource. service: URL to the BackendService resource. sslCertificates: URLs to SslCertificate resources that are used to authenticate connections to Backends. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. sslPolicy: URL of SslPolicy resource that will be associated with the TargetSslProxy resource. If not set, the TargetSslProxy resource will not have any SSL policy configured. """ class ProxyHeaderValueValuesEnum(_messages.Enum): r"""Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. Values: NONE: <no description> PROXY_V1: <no description> """ NONE = 0 PROXY_V1 = 1 creationTimestamp = _messages.StringField(1) description = _messages.StringField(2) id = _messages.IntegerField(3, variant=_messages.Variant.UINT64) kind = _messages.StringField(4, default=u'compute#targetSslProxy') name = _messages.StringField(5) proxyHeader = _messages.EnumField('ProxyHeaderValueValuesEnum', 6) selfLink = _messages.StringField(7) service = _messages.StringField(8) sslCertificates = _messages.StringField(9, repeated=True) sslPolicy = _messages.StringField(10) class TargetSslProxyList(_messages.Message): r"""Contains a list of TargetSslProxy resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of TargetSslProxy resources. kind: Type of resource. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('TargetSslProxy', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#targetSslProxyList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class TargetTcpProxiesSetBackendServiceRequest(_messages.Message): r"""A TargetTcpProxiesSetBackendServiceRequest object. Fields: service: The URL of the new BackendService resource for the targetTcpProxy. """ service = _messages.StringField(1) class TargetTcpProxiesSetProxyHeaderRequest(_messages.Message): r"""A TargetTcpProxiesSetProxyHeaderRequest object. Enums: ProxyHeaderValueValuesEnum: The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed. Fields: proxyHeader: The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed. """ class ProxyHeaderValueValuesEnum(_messages.Enum): r"""The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed. Values: NONE: <no description> PROXY_V1: <no description> """ NONE = 0 PROXY_V1 = 1 proxyHeader = _messages.EnumField('ProxyHeaderValueValuesEnum', 1) class TargetTcpProxy(_messages.Message): r"""Represents a Target TCP Proxy resource. A target TCP proxy is a component of a TCP Proxy load balancer. Global forwarding rules reference ta target TCP proxy, and the target proxy then references an external backend service. For more information, read TCP Proxy Load Balancing Concepts. (== resource_for beta.targetTcpProxies ==) (== resource_for v1.targetTcpProxies ==) Enums: ProxyHeaderValueValuesEnum: Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of the resource. Always compute#targetTcpProxy for target TCP proxies. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. proxyHeader: Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. selfLink: [Output Only] Server-defined URL for the resource. service: URL to the BackendService resource. """ class ProxyHeaderValueValuesEnum(_messages.Enum): r"""Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. Values: NONE: <no description> PROXY_V1: <no description> """ NONE = 0 PROXY_V1 = 1 creationTimestamp = _messages.StringField(1) description = _messages.StringField(2) id = _messages.IntegerField(3, variant=_messages.Variant.UINT64) kind = _messages.StringField(4, default=u'compute#targetTcpProxy') name = _messages.StringField(5) proxyHeader = _messages.EnumField('ProxyHeaderValueValuesEnum', 6) selfLink = _messages.StringField(7) service = _messages.StringField(8) class TargetTcpProxyList(_messages.Message): r"""Contains a list of TargetTcpProxy resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of TargetTcpProxy resources. kind: Type of resource. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('TargetTcpProxy', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#targetTcpProxyList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class TargetVpnGateway(_messages.Message): r"""Represents a Target VPN Gateway resource. The target VPN gateway resource represents a Classic Cloud VPN gateway. For more information, read the the Cloud VPN Overview. (== resource_for beta.targetVpnGateways ==) (== resource_for v1.targetVpnGateways ==) Enums: StatusValueValuesEnum: [Output Only] The status of the VPN gateway, which can be one of the following: CREATING, READY, FAILED, or DELETING. Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. forwardingRules: [Output Only] A list of URLs to the ForwardingRule resources. ForwardingRules are created using compute.forwardingRules.insert and associated with a VPN gateway. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of resource. Always compute#targetVpnGateway for target VPN gateways. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. network: URL of the network to which this VPN gateway is attached. Provided by the client when the VPN gateway is created. region: [Output Only] URL of the region where the target VPN gateway resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. selfLink: [Output Only] Server-defined URL for the resource. status: [Output Only] The status of the VPN gateway, which can be one of the following: CREATING, READY, FAILED, or DELETING. tunnels: [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using the compute.vpntunnels.insert method and associated with a VPN gateway. """ class StatusValueValuesEnum(_messages.Enum): r"""[Output Only] The status of the VPN gateway, which can be one of the following: CREATING, READY, FAILED, or DELETING. Values: CREATING: <no description> DELETING: <no description> FAILED: <no description> READY: <no description> """ CREATING = 0 DELETING = 1 FAILED = 2 READY = 3 creationTimestamp = _messages.StringField(1) description = _messages.StringField(2) forwardingRules = _messages.StringField(3, repeated=True) id = _messages.IntegerField(4, variant=_messages.Variant.UINT64) kind = _messages.StringField(5, default=u'compute#targetVpnGateway') name = _messages.StringField(6) network = _messages.StringField(7) region = _messages.StringField(8) selfLink = _messages.StringField(9) status = _messages.EnumField('StatusValueValuesEnum', 10) tunnels = _messages.StringField(11, repeated=True) class TargetVpnGatewayAggregatedList(_messages.Message): r"""A TargetVpnGatewayAggregatedList object. Messages: ItemsValue: A list of TargetVpnGateway resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of TargetVpnGateway resources. kind: [Output Only] Type of resource. Always compute#targetVpnGateway for target VPN gateways. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of TargetVpnGateway resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: [Output Only] Name of the scope containing this set of target VPN gateways. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A TargetVpnGatewaysScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('TargetVpnGatewaysScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#targetVpnGatewayAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class TargetVpnGatewayList(_messages.Message): r"""Contains a list of TargetVpnGateway resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of TargetVpnGateway resources. kind: [Output Only] Type of resource. Always compute#targetVpnGateway for target VPN gateways. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('TargetVpnGateway', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#targetVpnGatewayList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class TargetVpnGatewaysScopedList(_messages.Message): r"""A TargetVpnGatewaysScopedList object. Messages: WarningValue: [Output Only] Informational warning which replaces the list of addresses when the list is empty. Fields: targetVpnGateways: [Output Only] A list of target VPN gateways contained in this scope. warning: [Output Only] Informational warning which replaces the list of addresses when the list is empty. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning which replaces the list of addresses when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) targetVpnGateways = _messages.MessageField('TargetVpnGateway', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class TestFailure(_messages.Message): r"""A TestFailure object. Fields: actualService: A string attribute. expectedService: A string attribute. host: A string attribute. path: A string attribute. """ actualService = _messages.StringField(1) expectedService = _messages.StringField(2) host = _messages.StringField(3) path = _messages.StringField(4) class TestPermissionsRequest(_messages.Message): r"""A TestPermissionsRequest object. Fields: permissions: The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. """ permissions = _messages.StringField(1, repeated=True) class TestPermissionsResponse(_messages.Message): r"""A TestPermissionsResponse object. Fields: permissions: A subset of `TestPermissionsRequest.permissions` that the caller is allowed. """ permissions = _messages.StringField(1, repeated=True) class UrlMap(_messages.Message): r"""Represents a URL Map resource. A URL map resource is a component of certain types of load balancers. This resource defines mappings from host names and URL paths to either a backend service or a backend bucket. To use this resource, the backend service must have a loadBalancingScheme of either EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED For more information, read URL Map Concepts. Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. defaultService: The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect or defaultRouteAction.weightedBackendService must be set. description: An optional description of this resource. Provide this property when you create the resource. fingerprint: Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a UrlMap. hostRules: The list of HostRules to use against the URL. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of the resource. Always compute#urlMaps for url maps. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. pathMatchers: The list of named PathMatchers to use against the URL. selfLink: [Output Only] Server-defined URL for the resource. tests: The list of expected URL mapping tests. Request to update this UrlMap will succeed only if all of the test cases pass. You can specify a maximum of 100 tests per UrlMap. """ creationTimestamp = _messages.StringField(1) defaultService = _messages.StringField(2) description = _messages.StringField(3) fingerprint = _messages.BytesField(4) hostRules = _messages.MessageField('HostRule', 5, repeated=True) id = _messages.IntegerField(6, variant=_messages.Variant.UINT64) kind = _messages.StringField(7, default=u'compute#urlMap') name = _messages.StringField(8) pathMatchers = _messages.MessageField('PathMatcher', 9, repeated=True) selfLink = _messages.StringField(10) tests = _messages.MessageField('UrlMapTest', 11, repeated=True) class UrlMapList(_messages.Message): r"""Contains a list of UrlMap resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of UrlMap resources. kind: Type of resource. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('UrlMap', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#urlMapList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class UrlMapReference(_messages.Message): r"""A UrlMapReference object. Fields: urlMap: A string attribute. """ urlMap = _messages.StringField(1) class UrlMapTest(_messages.Message): r"""Message for the expected URL mappings. Fields: description: Description of this test case. host: Host portion of the URL. path: Path portion of the URL. service: Expected BackendService resource the given URL should be mapped to. """ description = _messages.StringField(1) host = _messages.StringField(2) path = _messages.StringField(3) service = _messages.StringField(4) class UrlMapValidationResult(_messages.Message): r"""Message representing the validation result for a UrlMap. Fields: loadErrors: A string attribute. loadSucceeded: Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' indicates the reasons. testFailures: A TestFailure attribute. testPassed: If successfully loaded, this field indicates whether the test passed. If false, 'testFailures's indicate the reason of failure. """ loadErrors = _messages.StringField(1, repeated=True) loadSucceeded = _messages.BooleanField(2) testFailures = _messages.MessageField('TestFailure', 3, repeated=True) testPassed = _messages.BooleanField(4) class UrlMapsValidateRequest(_messages.Message): r"""A UrlMapsValidateRequest object. Fields: resource: Content of the UrlMap to be validated. """ resource = _messages.MessageField('UrlMap', 1) class UrlMapsValidateResponse(_messages.Message): r"""A UrlMapsValidateResponse object. Fields: result: A UrlMapValidationResult attribute. """ result = _messages.MessageField('UrlMapValidationResult', 1) class UsableSubnetwork(_messages.Message): r"""Subnetwork which the current user has compute.subnetworks.use permission on. Fields: ipCidrRange: The range of internal addresses that are owned by this subnetwork. network: Network URL. secondaryIpRanges: Secondary IP ranges. subnetwork: Subnetwork URL. """ ipCidrRange = _messages.StringField(1) network = _messages.StringField(2) secondaryIpRanges = _messages.MessageField('UsableSubnetworkSecondaryRange', 3, repeated=True) subnetwork = _messages.StringField(4) class UsableSubnetworkSecondaryRange(_messages.Message): r"""Secondary IP range of a usable subnetwork. Fields: ipCidrRange: The range of IP addresses belonging to this subnetwork secondary range. rangeName: The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork. """ ipCidrRange = _messages.StringField(1) rangeName = _messages.StringField(2) class UsableSubnetworksAggregatedList(_messages.Message): r"""A UsableSubnetworksAggregatedList object. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. items: [Output] A list of usable subnetwork URLs. kind: [Output Only] Type of resource. Always compute#usableSubnetworksAggregatedList for aggregated lists of usable subnetworks. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('UsableSubnetwork', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#usableSubnetworksAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class UsageExportLocation(_messages.Message): r"""The location in Cloud Storage and naming method of the daily usage report. Contains bucket_name and report_name prefix. Fields: bucketName: The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This can either be the bucket name by itself, such as example-bucket, or the bucket name with gs:// or https://storage.googleapis.com/ in front of it, such as gs://example- bucket. reportNamePrefix: An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions. """ bucketName = _messages.StringField(1) reportNamePrefix = _messages.StringField(2) class VmEndpointNatMappings(_messages.Message): r"""Contain information of Nat mapping for a VM endpoint (i.e., NIC). Fields: instanceName: Name of the VM instance which the endpoint belongs to interfaceNatMappings: A VmEndpointNatMappingsInterfaceNatMappings attribute. """ instanceName = _messages.StringField(1) interfaceNatMappings = _messages.MessageField('VmEndpointNatMappingsInterfaceNatMappings', 2, repeated=True) class VmEndpointNatMappingsInterfaceNatMappings(_messages.Message): r"""Contain information of Nat mapping for an interface of this endpoint. Fields: natIpPortRanges: A list of all IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. numTotalNatPorts: Total number of ports across all NAT IPs allocated to this interface. It equals to the aggregated port number in the field nat_ip_port_ranges. sourceAliasIpRange: Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP range. Examples: "10.33.4.55/32", or "192.168.5.0/24". sourceVirtualIp: Primary IP of the VM for this NIC. """ natIpPortRanges = _messages.StringField(1, repeated=True) numTotalNatPorts = _messages.IntegerField(2, variant=_messages.Variant.INT32) sourceAliasIpRange = _messages.StringField(3) sourceVirtualIp = _messages.StringField(4) class VmEndpointNatMappingsList(_messages.Message): r"""Contains a list of VmEndpointNatMappings. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. result: [Output Only] A list of Nat mapping information of VM endpoints. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) kind = _messages.StringField(2, default=u'compute#vmEndpointNatMappingsList') nextPageToken = _messages.StringField(3) result = _messages.MessageField('VmEndpointNatMappings', 4, repeated=True) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class VpnGateway(_messages.Message): r"""Represents a VPN gateway resource. Messages: LabelsValue: Labels to apply to this VpnGateway resource. These can be later modified by the setLabels method. Each label key/value must comply with RFC1035. Label values may be empty. Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. labelFingerprint: A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an VpnGateway. labels: Labels to apply to this VpnGateway resource. These can be later modified by the setLabels method. Each label key/value must comply with RFC1035. Label values may be empty. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. network: URL of the network to which this VPN gateway is attached. Provided by the client when the VPN gateway is created. region: [Output Only] URL of the region where the VPN gateway resides. selfLink: [Output Only] Server-defined URL for the resource. vpnInterfaces: [Output Only] A list of interfaces on this VPN gateway. """ @encoding.MapUnrecognizedFields('additionalProperties') class LabelsValue(_messages.Message): r"""Labels to apply to this VpnGateway resource. These can be later modified by the setLabels method. Each label key/value must comply with RFC1035. Label values may be empty. Messages: AdditionalProperty: An additional property for a LabelsValue object. Fields: additionalProperties: Additional properties of type LabelsValue """ class AdditionalProperty(_messages.Message): r"""An additional property for a LabelsValue object. Fields: key: Name of the additional property. value: A string attribute. """ key = _messages.StringField(1) value = _messages.StringField(2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) creationTimestamp = _messages.StringField(1) description = _messages.StringField(2) id = _messages.IntegerField(3, variant=_messages.Variant.UINT64) kind = _messages.StringField(4, default=u'compute#vpnGateway') labelFingerprint = _messages.BytesField(5) labels = _messages.MessageField('LabelsValue', 6) name = _messages.StringField(7) network = _messages.StringField(8) region = _messages.StringField(9) selfLink = _messages.StringField(10) vpnInterfaces = _messages.MessageField('VpnGatewayVpnGatewayInterface', 11, repeated=True) class VpnGatewayAggregatedList(_messages.Message): r"""A VpnGatewayAggregatedList object. Messages: ItemsValue: A list of VpnGateway resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of VpnGateway resources. kind: [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of VpnGateway resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: [Output Only] Name of the scope containing this set of VPN gateways. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A VpnGatewaysScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('VpnGatewaysScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#vpnGatewayAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class VpnGatewayList(_messages.Message): r"""Contains a list of VpnGateway resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of VpnGateway resources. kind: [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('VpnGateway', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#vpnGatewayList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class VpnGatewayStatus(_messages.Message): r"""A VpnGatewayStatus object. Fields: vpnConnections: List of VPN connection for this VpnGateway. """ vpnConnections = _messages.MessageField('VpnGatewayStatusVpnConnection', 1, repeated=True) class VpnGatewayStatusHighAvailabilityRequirementState(_messages.Message): r"""Describes the high availability requirement state for the VPN connection between this Cloud VPN gateway and a peer gateway. Enums: StateValueValuesEnum: Indicates the high availability requirement state for the VPN connection. Valid values are CONNECTION_REDUNDANCY_MET, CONNECTION_REDUNDANCY_NOT_MET. UnsatisfiedReasonValueValuesEnum: Indicates the reason why the VPN connection does not meet the high availability redundancy criteria/requirement. Valid values is INCOMPLETE_TUNNELS_COVERAGE. Fields: state: Indicates the high availability requirement state for the VPN connection. Valid values are CONNECTION_REDUNDANCY_MET, CONNECTION_REDUNDANCY_NOT_MET. unsatisfiedReason: Indicates the reason why the VPN connection does not meet the high availability redundancy criteria/requirement. Valid values is INCOMPLETE_TUNNELS_COVERAGE. """ class StateValueValuesEnum(_messages.Enum): r"""Indicates the high availability requirement state for the VPN connection. Valid values are CONNECTION_REDUNDANCY_MET, CONNECTION_REDUNDANCY_NOT_MET. Values: CONNECTION_REDUNDANCY_MET: <no description> CONNECTION_REDUNDANCY_NOT_MET: <no description> """ CONNECTION_REDUNDANCY_MET = 0 CONNECTION_REDUNDANCY_NOT_MET = 1 class UnsatisfiedReasonValueValuesEnum(_messages.Enum): r"""Indicates the reason why the VPN connection does not meet the high availability redundancy criteria/requirement. Valid values is INCOMPLETE_TUNNELS_COVERAGE. Values: INCOMPLETE_TUNNELS_COVERAGE: <no description> """ INCOMPLETE_TUNNELS_COVERAGE = 0 state = _messages.EnumField('StateValueValuesEnum', 1) unsatisfiedReason = _messages.EnumField('UnsatisfiedReasonValueValuesEnum', 2) class VpnGatewayStatusTunnel(_messages.Message): r"""Contains some information about a VPN tunnel. Fields: localGatewayInterface: The VPN gateway interface this VPN tunnel is associated with. peerGatewayInterface: The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an external VPN gateway or GCP VPN gateway. tunnelUrl: URL reference to the VPN tunnel. """ localGatewayInterface = _messages.IntegerField(1, variant=_messages.Variant.UINT32) peerGatewayInterface = _messages.IntegerField(2, variant=_messages.Variant.UINT32) tunnelUrl = _messages.StringField(3) class VpnGatewayStatusVpnConnection(_messages.Message): r"""A VPN connection contains all VPN tunnels connected from this VpnGateway to the same peer gateway. The peer gateway could either be a external VPN gateway or GCP VPN gateway. Fields: peerExternalGateway: URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway. peerGcpGateway: URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway. state: HighAvailabilityRequirementState for the VPN connection. tunnels: List of VPN tunnels that are in this VPN connection. """ peerExternalGateway = _messages.StringField(1) peerGcpGateway = _messages.StringField(2) state = _messages.MessageField('VpnGatewayStatusHighAvailabilityRequirementState', 3) tunnels = _messages.MessageField('VpnGatewayStatusTunnel', 4, repeated=True) class VpnGatewayVpnGatewayInterface(_messages.Message): r"""A VPN gateway interface. Fields: id: The numeric ID of this VPN gateway interface. ipAddress: The external IP address for this VPN gateway interface. """ id = _messages.IntegerField(1, variant=_messages.Variant.UINT32) ipAddress = _messages.StringField(2) class VpnGatewaysGetStatusResponse(_messages.Message): r"""A VpnGatewaysGetStatusResponse object. Fields: result: A VpnGatewayStatus attribute. """ result = _messages.MessageField('VpnGatewayStatus', 1) class VpnGatewaysScopedList(_messages.Message): r"""A VpnGatewaysScopedList object. Messages: WarningValue: [Output Only] Informational warning which replaces the list of addresses when the list is empty. Fields: vpnGateways: [Output Only] A list of VPN gateways contained in this scope. warning: [Output Only] Informational warning which replaces the list of addresses when the list is empty. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning which replaces the list of addresses when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) vpnGateways = _messages.MessageField('VpnGateway', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class VpnTunnel(_messages.Message): r"""Represents a Cloud VPN Tunnel resource. For more information about VPN, read the the Cloud VPN Overview. (== resource_for beta.vpnTunnels ==) (== resource_for v1.vpnTunnels ==) Enums: StatusValueValuesEnum: [Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready to be used. Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. detailedStatus: [Output Only] Detailed status message for the VPN tunnel. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. ikeVersion: IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. Acceptable IKE versions are 1 or 2. The default version is 2. kind: [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. localTrafficSelector: Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported. name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. peerExternalGateway: URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field is exclusive with the field peerGcpGateway. peerExternalGatewayInterface: The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. peerGcpGateway: URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field can be used when creating highly available VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer GCP VPN gateway. peerIp: IP address of the peer VPN gateway. Only IPv4 is supported. region: [Output Only] URL of the region where the VPN tunnel resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. remoteTrafficSelector: Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported. router: URL of the router resource to be used for dynamic routing. selfLink: [Output Only] Server-defined URL for the resource. sharedSecret: Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway. sharedSecretHash: Hash of the shared secret. status: [Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready to be used. targetVpnGateway: URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. vpnGateway: URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High Availability VPN gateway resource is created. vpnGatewayInterface: The interface ID of the VPN gateway with which this VPN tunnel is associated. """ class StatusValueValuesEnum(_messages.Enum): r"""[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready to be used. Values: ALLOCATING_RESOURCES: <no description> AUTHORIZATION_ERROR: <no description> DEPROVISIONING: <no description> ESTABLISHED: <no description> FAILED: <no description> FIRST_HANDSHAKE: <no description> NEGOTIATION_FAILURE: <no description> NETWORK_ERROR: <no description> NO_INCOMING_PACKETS: <no description> PROVISIONING: <no description> REJECTED: <no description> STOPPED: <no description> WAITING_FOR_FULL_CONFIG: <no description> """ ALLOCATING_RESOURCES = 0 AUTHORIZATION_ERROR = 1 DEPROVISIONING = 2 ESTABLISHED = 3 FAILED = 4 FIRST_HANDSHAKE = 5 NEGOTIATION_FAILURE = 6 NETWORK_ERROR = 7 NO_INCOMING_PACKETS = 8 PROVISIONING = 9 REJECTED = 10 STOPPED = 11 WAITING_FOR_FULL_CONFIG = 12 creationTimestamp = _messages.StringField(1) description = _messages.StringField(2) detailedStatus = _messages.StringField(3) id = _messages.IntegerField(4, variant=_messages.Variant.UINT64) ikeVersion = _messages.IntegerField(5, variant=_messages.Variant.INT32) kind = _messages.StringField(6, default=u'compute#vpnTunnel') localTrafficSelector = _messages.StringField(7, repeated=True) name = _messages.StringField(8) peerExternalGateway = _messages.StringField(9) peerExternalGatewayInterface = _messages.IntegerField(10, variant=_messages.Variant.INT32) peerGcpGateway = _messages.StringField(11) peerIp = _messages.StringField(12) region = _messages.StringField(13) remoteTrafficSelector = _messages.StringField(14, repeated=True) router = _messages.StringField(15) selfLink = _messages.StringField(16) sharedSecret = _messages.StringField(17) sharedSecretHash = _messages.StringField(18) status = _messages.EnumField('StatusValueValuesEnum', 19) targetVpnGateway = _messages.StringField(20) vpnGateway = _messages.StringField(21) vpnGatewayInterface = _messages.IntegerField(22, variant=_messages.Variant.INT32) class VpnTunnelAggregatedList(_messages.Message): r"""A VpnTunnelAggregatedList object. Messages: ItemsValue: A list of VpnTunnelsScopedList resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of VpnTunnelsScopedList resources. kind: [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ @encoding.MapUnrecognizedFields('additionalProperties') class ItemsValue(_messages.Message): r"""A list of VpnTunnelsScopedList resources. Messages: AdditionalProperty: An additional property for a ItemsValue object. Fields: additionalProperties: Name of the scope containing this set of VPN tunnels. """ class AdditionalProperty(_messages.Message): r"""An additional property for a ItemsValue object. Fields: key: Name of the additional property. value: A VpnTunnelsScopedList attribute. """ key = _messages.StringField(1) value = _messages.MessageField('VpnTunnelsScopedList', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('ItemsValue', 2) kind = _messages.StringField(3, default=u'compute#vpnTunnelAggregatedList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class VpnTunnelList(_messages.Message): r"""Contains a list of VpnTunnel resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of VpnTunnel resources. kind: [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('VpnTunnel', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#vpnTunnelList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class VpnTunnelsScopedList(_messages.Message): r"""A VpnTunnelsScopedList object. Messages: WarningValue: Informational warning which replaces the list of addresses when the list is empty. Fields: vpnTunnels: A list of VPN tunnels contained in this scope. warning: Informational warning which replaces the list of addresses when the list is empty. """ class WarningValue(_messages.Message): r"""Informational warning which replaces the list of addresses when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) vpnTunnels = _messages.MessageField('VpnTunnel', 1, repeated=True) warning = _messages.MessageField('WarningValue', 2) class XpnHostList(_messages.Message): r"""A XpnHostList object. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: [Output Only] A list of shared VPC host project URLs. kind: [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC hosts. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('Project', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#xpnHostList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class XpnResourceId(_messages.Message): r"""Service resource (a.k.a service project) ID. Enums: TypeValueValuesEnum: The type of the service resource. Fields: id: The ID of the service resource. In the case of projects, this field supports project id (e.g., my-project-123) and project number (e.g. 12345678). type: The type of the service resource. """ class TypeValueValuesEnum(_messages.Enum): r"""The type of the service resource. Values: PROJECT: <no description> XPN_RESOURCE_TYPE_UNSPECIFIED: <no description> """ PROJECT = 0 XPN_RESOURCE_TYPE_UNSPECIFIED = 1 id = _messages.StringField(1) type = _messages.EnumField('TypeValueValuesEnum', 2) class Zone(_messages.Message): r"""Represents a Zone resource. A zone is a deployment area. These deployment areas are subsets of a region. For example the zone us-east1-a is located in the us-east1 region. For more information, read Regions and Zones. (== resource_for beta.zones ==) (== resource_for v1.zones ==) Enums: StatusValueValuesEnum: [Output Only] Status of the zone, either UP or DOWN. Fields: availableCpuPlatforms: [Output Only] Available cpu/platform selections for the zone. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. deprecated: [Output Only] The deprecation status associated with this zone. description: [Output Only] Textual description of the resource. id: [Output Only] The unique identifier for the resource. This identifier is defined by the server. kind: [Output Only] Type of the resource. Always compute#zone for zones. name: [Output Only] Name of the resource. region: [Output Only] Full URL reference to the region which hosts the zone. selfLink: [Output Only] Server-defined URL for the resource. status: [Output Only] Status of the zone, either UP or DOWN. """ class StatusValueValuesEnum(_messages.Enum): r"""[Output Only] Status of the zone, either UP or DOWN. Values: DOWN: <no description> UP: <no description> """ DOWN = 0 UP = 1 availableCpuPlatforms = _messages.StringField(1, repeated=True) creationTimestamp = _messages.StringField(2) deprecated = _messages.MessageField('DeprecationStatus', 3) description = _messages.StringField(4) id = _messages.IntegerField(5, variant=_messages.Variant.UINT64) kind = _messages.StringField(6, default=u'compute#zone') name = _messages.StringField(7) region = _messages.StringField(8) selfLink = _messages.StringField(9) status = _messages.EnumField('StatusValueValuesEnum', 10) class ZoneList(_messages.Message): r"""Contains a list of zone resources. Messages: WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of Zone resources. kind: Type of resource. nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. selfLink: [Output Only] Server-defined URL for this resource. warning: [Output Only] Informational warning message. """ class WarningValue(_messages.Message): r"""[Output Only] Informational warning message. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEntry object. Fields: code: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. data: [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } message: [Output Only] A human-readable description of the warning code. """ class CodeValueValuesEnum(_messages.Enum): r"""[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Values: CLEANUP_FAILED: <no description> DEPRECATED_RESOURCE_USED: <no description> DEPRECATED_TYPE_USED: <no description> DISK_SIZE_LARGER_THAN_IMAGE_SIZE: <no description> EXPERIMENTAL_TYPE_USED: <no description> EXTERNAL_API_WARNING: <no description> FIELD_VALUE_OVERRIDEN: <no description> INJECTED_KERNELS_DEPRECATED: <no description> MISSING_TYPE_DEPENDENCY: <no description> NEXT_HOP_ADDRESS_NOT_ASSIGNED: <no description> NEXT_HOP_CANNOT_IP_FORWARD: <no description> NEXT_HOP_INSTANCE_NOT_FOUND: <no description> NEXT_HOP_INSTANCE_NOT_ON_NETWORK: <no description> NEXT_HOP_NOT_RUNNING: <no description> NOT_CRITICAL_ERROR: <no description> NO_RESULTS_ON_PAGE: <no description> REQUIRED_TOS_AGREEMENT: <no description> RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING: <no description> RESOURCE_NOT_DELETED: <no description> SCHEMA_VALIDATION_IGNORED: <no description> SINGLE_INSTANCE_PROPERTY_TEMPLATE: <no description> UNDECLARED_PROPERTIES: <no description> UNREACHABLE: <no description> """ CLEANUP_FAILED = 0 DEPRECATED_RESOURCE_USED = 1 DEPRECATED_TYPE_USED = 2 DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 3 EXPERIMENTAL_TYPE_USED = 4 EXTERNAL_API_WARNING = 5 FIELD_VALUE_OVERRIDEN = 6 INJECTED_KERNELS_DEPRECATED = 7 MISSING_TYPE_DEPENDENCY = 8 NEXT_HOP_ADDRESS_NOT_ASSIGNED = 9 NEXT_HOP_CANNOT_IP_FORWARD = 10 NEXT_HOP_INSTANCE_NOT_FOUND = 11 NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 12 NEXT_HOP_NOT_RUNNING = 13 NOT_CRITICAL_ERROR = 14 NO_RESULTS_ON_PAGE = 15 REQUIRED_TOS_AGREEMENT = 16 RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 17 RESOURCE_NOT_DELETED = 18 SCHEMA_VALIDATION_IGNORED = 19 SINGLE_INSTANCE_PROPERTY_TEMPLATE = 20 UNDECLARED_PROPERTIES = 21 UNREACHABLE = 22 class DataValueListEntry(_messages.Message): r"""A DataValueListEntry object. Fields: key: [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). value: [Output Only] A warning data value corresponding to the key. """ key = _messages.StringField(1) value = _messages.StringField(2) code = _messages.EnumField('CodeValueValuesEnum', 1) data = _messages.MessageField('DataValueListEntry', 2, repeated=True) message = _messages.StringField(3) id = _messages.StringField(1) items = _messages.MessageField('Zone', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#zoneList') nextPageToken = _messages.StringField(4) selfLink = _messages.StringField(5) warning = _messages.MessageField('WarningValue', 6) class ZoneSetLabelsRequest(_messages.Message): r"""A ZoneSetLabelsRequest object. Messages: LabelsValue: The labels to set for this resource. Fields: labelFingerprint: The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. Make a get() request to the resource to get the latest fingerprint. labels: The labels to set for this resource. """ @encoding.MapUnrecognizedFields('additionalProperties') class LabelsValue(_messages.Message): r"""The labels to set for this resource. Messages: AdditionalProperty: An additional property for a LabelsValue object. Fields: additionalProperties: Additional properties of type LabelsValue """ class AdditionalProperty(_messages.Message): r"""An additional property for a LabelsValue object. Fields: key: Name of the additional property. value: A string attribute. """ key = _messages.StringField(1) value = _messages.StringField(2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) labelFingerprint = _messages.BytesField(1) labels = _messages.MessageField('LabelsValue', 2) class ZoneSetPolicyRequest(_messages.Message): r"""A ZoneSetPolicyRequest object. Fields: bindings: Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify bindings. etag: Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag. policy: REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them. """ bindings = _messages.MessageField('Binding', 1, repeated=True) etag = _messages.BytesField(2) policy = _messages.MessageField('Policy', 3)
657fe89cd2b81c2f222c3e4b5ec744eb2230ebac
0f40272f221acd09932e5e4b7f6287300526c902
/Programmers/Python/Code/줄 서는 방법.py
c1ff2fd5f910d0a0f0592e1a715b923f87a01fb8
[]
no_license
wansang93/Algorithm
60cfa0d5a3cda7e41096cb22537a35c4789fc9e8
65425d1bf8e49cc3a732680c0c1030a2dc0333ca
refs/heads/master
2023-08-05T04:35:44.128549
2023-07-29T17:57:00
2023-07-29T17:57:00
225,189,092
7
0
null
null
null
null
UTF-8
Python
false
false
308
py
import math def solution(n, k): answer = [] nums = [i for i in range(1, n+1)] k -= 1 while nums: index = k // math.factorial(n-1) answer.append(nums.pop(index)) k %= math.factorial(n-1) n -= 1 return answer data1 = 3, 5 print(solution(*data1))
999b382c9ad57d0ddfec93969cb49d317a2255d2
a1a86ccffff5f1a8fdab92f58fe46cd66f9cc0e2
/docrec/ocr__/recognition.py
63a91f818d84a4929e0fb5014006eafe4fed7c67
[]
no_license
ZhengHui-Z/deeprec-sib18
8ec2c3b5b2fb6bfc6879f28a28c56776a7aa4faa
036171c33bc2f90645d8b9794aa0850c34a3ad05
refs/heads/master
2020-06-19T20:09:57.953934
2019-06-24T14:03:00
2019-06-24T14:03:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
815
py
import numpy as np from pytesseract import image_to_string from PIL import Image from ..text.textprocessing import text2words # http://www.nltk.org/howto/portuguese_en.html # http://stanford.edu/~rjweiss/public_html/IRiSS2013/text2/notebooks/cleaningtext.html # Run OCR def image2text(image, language='en_US'): lang = {'en_US': 'eng', 'pt_BR': 'por'}[language] text = image_to_string( Image.fromarray(image.astype(np.uint8)), lang=lang ).encode('utf-8', 'ignore') return text def image2words(image, language='en_US', min_length=3): return text2words( image2text(image, language=language), min_length=min_length ) def number_of_words(image, language='en_US', min_length=3): return len(image2words(image, language=language, min_length=min_length))
7c07abfe45a78368fccc1684dd15011fba059c07
56ca0c81e6f8f984737f57c43ad8d44a84f0e6cf
/src/bpp/migrations/0293_pbn_api_kasowanie_przed_nie_eksp_zero.py
e14f1181b74a62c95a3a32e731aa17b60a5f7220
[ "MIT", "CC0-1.0" ]
permissive
iplweb/bpp
c40f64c78c0da9f21c1bd5cf35d56274a491f840
a3d36a8d76733a479e6b580ba6ea57034574e14a
refs/heads/dev
2023-08-09T22:10:49.509079
2023-07-25T04:55:54
2023-07-25T04:55:54
87,017,024
2
0
NOASSERTION
2023-03-04T04:02:36
2017-04-02T21:22:20
Python
UTF-8
Python
false
false
784
py
# Generated by Django 3.0.14 on 2021-09-15 19:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("bpp", "0292_przypinanie_dyscyplin"), ] operations = [ migrations.AddField( model_name="uczelnia", name="pbn_api_kasuj_przed_wysylka", field=models.BooleanField( default=False, verbose_name="Kasuj oświadczenia rekordu przed wysłaniem do PBN", ), ), migrations.AddField( model_name="uczelnia", name="pbn_api_nie_wysylaj_prac_bez_pk", field=models.BooleanField( default=False, verbose_name="Nie wysyłaj do PBN prac z PK=0" ), ), ]
040780f0a66c35d9feada04c693a6b39fc7f7acc
70f564990215f47b139a777826f211477e9b44f6
/plan2vec_experiments/analysis_icml_2020/local_metric_img_visualization.py
832991f25694a02b928ea7dc8ae3ba5d41a0fb3b
[]
no_license
geyang/plan2vec
de87f2d77732c4aacdefd00067ebebacb7cd763f
aeeb50aed3d7da4c266b4ca163e96d4c0747e3c1
refs/heads/master
2022-11-16T03:40:42.638239
2022-10-28T04:01:29
2022-10-28T04:01:29
261,273,420
65
3
null
null
null
null
UTF-8
Python
false
false
2,107
py
from plan2vec.plotting.maze_world.connect_the_dots_image_maze import Args, main if __name__ == "__main__": import jaynes from plan2vec_experiments import instr, RUN, config_charts, dir_prefix from os.path import join as pJoin, dirname, normpath from ml_logger import logger logger.configure(log_directory=RUN.server, register_experiment=False) # glob_root = dir_prefix() # glob_root = "/geyang/plan2vec/2019/12-16/analysis/local-metric-analysis/all_local_metric" # glob_root = "/geyang/plan2vec/2020/02-08/neo_plan2vec/uvpn_image/quick_eval_new_local_metric/local_metric/10.50" glob_root = "/geyang/plan2vec/2020/02-08/neo_plan2vec/uvpn_image/quick_eval_new_local_metric/local_metric/hige_loss/lr-sweep/12.24" kwargs = [] with logger.PrefixContext(glob_root): # note: rope uses {}-{} as postfix. maze do not. weight_paths = logger.glob("**/models/**/f_lm.pkl") logger.print('found these experiments') logger.print(*weight_paths, sep="\n") for p in weight_paths: parameter_path = normpath(pJoin(dirname(p), '..', '..', 'parameters.pkl')) env_id, local_metric, latent_dim = \ logger.get_parameters( 'Args.env_id', 'Args.local_metric', 'Args.latent_dim', path=parameter_path, default=None) logger.abspath(p) kwargs.append(dict(env_id=env_id, load_local_metric=logger.abspath(p), local_metric=local_metric, latent_dim=latent_dim)) jaynes.config() for _ in kwargs: jaynes.run(instr(main, n_rollouts=100, **_)) config_charts(""" charts: - type: file glob: "**/*render.png" - type: file glob: "**/*data.png" - type: file glob: "**/*connected.png" - type: file glob: "**/*gt.png" - type: file glob: "**/*gt_wider.png" keys: - run.status - Args.env_id - Args.load_local_metric """) jaynes.listen()
29fabdd37b5eee248069bcbcc7c7fc5826ff0d69
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/bob/1ed1c792986545bca6955b9771a56a39.py
d6cd9ce8061599c2e2f464b8921262b171bc563d
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
327
py
class Bob: def __init__(self): pass def hey(self, msg): if msg == None or msg.strip() == '': return 'Fine. Be that way!' if str.isupper(msg): return 'Woah, chill out!' if msg[-1] == '?': return 'Sure.' else: return 'Whatever.'
a41438e4acb444093674b2f0a12897ce09c822f2
550c29e5eb1b767e1ba1d67970003ae60fe55038
/docs/conf.py
aeb57f99fcc63784e75db695d17393fef961659d
[ "MIT" ]
permissive
Neraste/black
c5945e37a3dd90b6ab739e780b5f94fd57c586ce
9d735d240bb5dee1ef5285883acfa69cddbcaa47
refs/heads/master
2020-03-20T00:51:26.343434
2018-06-12T12:43:22
2018-06-12T12:43:22
137,058,114
0
0
MIT
2018-06-12T10:48:43
2018-06-12T10:48:43
null
UTF-8
Python
false
false
8,378
py
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/stable/config # -- Path setup -------------------------------------------------------------- # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # import ast from pathlib import Path import re import shutil import string from recommonmark.parser import CommonMarkParser CURRENT_DIR = Path(__file__).parent def get_version(): black_py = CURRENT_DIR / ".." / "black.py" _version_re = re.compile(r"__version__\s+=\s+(?P<version>.*)") with open(str(black_py), "r", encoding="utf8") as f: version = _version_re.search(f.read()).group("version") return str(ast.literal_eval(version)) def make_pypi_svg(version): template = CURRENT_DIR / "_static" / "pypi_template.svg" target = CURRENT_DIR / "_static" / "pypi.svg" with open(str(template), "r", encoding="utf8") as f: svg = string.Template(f.read()).substitute(version=version) with open(str(target), "w", encoding="utf8") as f: f.write(svg) def make_filename(line): non_letters = re.compile(r"[^a-z]+") filename = line[3:].rstrip().lower() filename = non_letters.sub("_", filename) if filename.startswith("_"): filename = filename[1:] if filename.endswith("_"): filename = filename[:-1] return filename + ".md" def generate_sections_from_readme(): target_dir = CURRENT_DIR / "_build" / "generated" readme = CURRENT_DIR / ".." / "README.md" shutil.rmtree(str(target_dir), ignore_errors=True) target_dir.mkdir(parents=True) output = None target_dir = target_dir.relative_to(CURRENT_DIR) with open(str(readme), "r", encoding="utf8") as f: for line in f: if line.startswith("## "): if output is not None: output.close() filename = make_filename(line) output_path = CURRENT_DIR / filename if output_path.is_symlink() or output_path.is_file(): output_path.unlink() output_path.symlink_to(target_dir / filename) output = open(str(output_path), "w", encoding="utf8") output.write( "[//]: # (NOTE: THIS FILE IS AUTOGENERATED FROM README.md)\n\n" ) if output is None: continue if line.startswith("##"): line = line[1:] output.write(line) # -- Project information ----------------------------------------------------- project = "Black" copyright = "2018, Łukasz Langa and contributors to Black" author = "Łukasz Langa and contributors to Black" # Autopopulate version # The full version, including alpha/beta/rc tags. release = get_version() # The short X.Y version. version = release for sp in "abcfr": version = version.split(sp)[0] make_pypi_svg(release) generate_sections_from_readme() # -- General configuration --------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. # # needs_sphinx = '1.0' # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = ["sphinx.ext.autodoc", "sphinx.ext.intersphinx", "sphinx.ext.napoleon"] # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] source_parsers = {".md": CommonMarkParser} # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: source_suffix = [".rst", ".md"] # The master toctree document. master_doc = "index" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. language = None # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This pattern also affects html_static_path and html_extra_path . exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] # The name of the Pygments (syntax highlighting) style to use. pygments_style = "sphinx" # -- Options for HTML output ------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # html_theme = "alabaster" html_sidebars = { "**": [ "about.html", "navigation.html", "relations.html", "sourcelink.html", "searchbox.html", ] } html_theme_options = { "show_related": False, "description": "“Any color you like.”", "github_button": True, "github_user": "ambv", "github_repo": "black", "github_type": "star", "show_powered_by": True, "fixed_sidebar": True, "logo": "logo2.png", } # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ["_static"] # Custom sidebar templates, must be a dictionary that maps document names # to template names. # # The default sidebars (for documents that don't match any pattern) are # defined by theme itself. Builtin themes are using these templates by # default: ``['localtoc.html', 'relations.html', 'sourcelink.html', # 'searchbox.html']``. # # html_sidebars = {} # -- Options for HTMLHelp output --------------------------------------------- # Output file base name for HTML help builder. htmlhelp_basename = "blackdoc" # -- Options for LaTeX output ------------------------------------------------ latex_elements = { # The paper size ('letterpaper' or 'a4paper'). # # 'papersize': 'letterpaper', # The font size ('10pt', '11pt' or '12pt'). # # 'pointsize': '10pt', # Additional stuff for the LaTeX preamble. # # 'preamble': '', # Latex figure (float) alignment # # 'figure_align': 'htbp', } # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ ( master_doc, "black.tex", "Documentation for Black", "Łukasz Langa and contributors to Black", "manual", ) ] # -- Options for manual page output ------------------------------------------ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [(master_doc, "black", "Documentation for Black", [author], 1)] # -- Options for Texinfo output ---------------------------------------------- # Grouping the document tree into Texinfo files. List of tuples # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ ( master_doc, "Black", "Documentation for Black", author, "Black", "The uncompromising Python code formatter", "Miscellaneous", ) ] # -- Options for Epub output ------------------------------------------------- # Bibliographic Dublin Core info. epub_title = project epub_author = author epub_publisher = author epub_copyright = copyright # The unique identifier of the text. This can be a ISBN number # or the project homepage. # # epub_identifier = '' # A unique identification for the text. # # epub_uid = '' # A list of files that should not be packed into the epub file. epub_exclude_files = ["search.html"] # -- Extension configuration ------------------------------------------------- autodoc_member_order = "bysource" # -- Options for intersphinx extension --------------------------------------- # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = {"https://docs.python.org/3/": None}
474c5c6d151d1b4d7a8b912ad1a74352ab53ca44
988205a1bc674399272d2b77f06bb6ae2c0b96ab
/student/urls.py
0b3401187a6dbb34b251f3f7cd4c6d64ac2fea80
[]
no_license
safwanvk/as
7797f63f84d52ba2857e99ae99b4aa5b9fd67983
1de9e1a6855a0b3f16ffdb4d693cd90579a37e40
refs/heads/main
2023-04-01T14:44:18.047169
2021-03-31T07:03:15
2021-03-31T07:03:15
349,309,666
0
0
null
null
null
null
UTF-8
Python
false
false
249
py
from django.urls import path from .views import * urlpatterns = [ path('login', student_login), path('session-check', session_check), path('create', create_student), path('delete/<pk>', delete_student), path('', get_student) ]
444a7786b5c7a8bd07929aceea4b8c0e8d44e648
a7853b95403b527a527f58cc4b94783161eaaa1d
/graph/graph_drawing_objective.py
40aa76c8871f0204c2b489d8310a9b482574fa7a
[]
no_license
jinnaiyuu/covering-options
6c3d2b2818d4074893d2eb1eed72fb77920bb3c3
00539a00842d40ba2b397496ec351a683f43d38f
refs/heads/master
2020-12-19T23:54:41.080277
2020-01-23T21:33:21
2020-01-23T21:33:21
235,890,627
0
2
null
null
null
null
UTF-8
Python
false
false
2,714
py
import numpy as np import itertools from scipy.optimize import minimize from options.util import GetRandomWalk def Attr(rho, P, fs): # rho: numpy array of size N. prob. # P : numpy array of size NxN. each row being a prob. # F : list of numpy arrays of size N (TODO: should this be a numpy array?) ret = 0.0 N = rho.shape[0] for u in range(N): for v in range(N): prob = rho[u] * P[u, v] # ret += (F[u] - F[v]) * (F[u] - F[v]) # TODO: 1 dimensional for now for f in fs: ret += (f[u] - f[v]) * (f[u] - f[v]) return ret / 2.0 def Repl(rho, P, delta, fs): ret = 0.0 N = rho.shape[0] for u in range(N): for v in range(N): prob = rho[u] * rho[v] # For repulsive term, we take exp. over rhos. for j in range(len(fs)): for k in range(j, len(fs)): f1 = fs[j] f2 = fs[k] if j == k: res = delta else: res = 0 ret += (f1[u] * f2[u] - res) * (f1[v] * f2[v] - res) return ret def GraphDrawingObjective(rho, P, delta, beta): # TODO: delta should be a function instead of a constant value N = rho.shape[0] def GDO(F): fs = [] for k in range(int(F.shape[0] / N)): f = F[N * k:N * (k+1)] fs.append(f) return Attr(rho, P, fs) + beta * Repl(rho, P, delta, fs) return GDO if __name__ == "__main__": # rho = np.array([0.25, 0.50, 0.25]) # P = np.array([[0.0, 1.0, 0.0], # [0.5, 0.0, 0.5], # [0.0, 1.0, 0.0]]) rho = np.full(9, 1.0/9.0, dtype=float) A = np.zeros((9, 9), dtype=float) A[0, 1] = 1.0 A[0, 3] = 1.0 A[1, 0] = 1.0 A[1, 2] = 1.0 A[1, 4] = 1.0 A[2, 1] = 1.0 A[2, 5] = 1.0 A[3, 0] = 1.0 A[3, 4] = 1.0 A[3, 6] = 1.0 A[4, 1] = 1.0 A[4, 3] = 1.0 A[4, 5] = 1.0 A[4, 7] = 1.0 A[5, 2] = 1.0 A[5, 4] = 1.0 A[5, 8] = 1.0 A[6, 3] = 1.0 A[6, 7] = 1.0 A[7, 4] = 1.0 A[7, 6] = 1.0 A[7, 8] = 1.0 A[8, 5] = 1.0 A[8, 7] = 1.0 P = GetRandomWalk(A) print('P=', P) delta = 0.1 beta = 5.0 GDO_fn = GraphDrawingObjective(rho, P, delta, beta) dim = 3 x0 = np.full(int(rho.shape[0]) * dim, 0.1) res = minimize(GDO_fn, x0, method='nelder-mead') sol = res.x.reshape((dim, int(rho.shape[0]))) print('solution=\n', sol) # gdo_val = GDO_fn([f1, f2]) # print('gdo=', gdo_val) # For our purpose, we want to draw an edge from minimum to maximum.
b4143060947db0249cb4b379bf6a879771385ca7
cf111b440f33ba9741ff45c60ac33dfade24e2ac
/Projects/Autocal/attic/autocal-20100708/libautocal/autocal.py
2c143bfd55996a5b498ff00611aacad771a6a1c2
[ "Unlicense" ]
permissive
fredmorcos/attic
cd08e951f56c3b256899ef5ca4ccd030d3185bc1
36d5891a959cfc83f9eeef003b4e0b574dd7d7e1
refs/heads/master
2023-07-05T10:03:58.115062
2023-06-21T22:55:38
2023-06-22T07:07:58
154,962,425
4
1
Unlicense
2023-06-22T07:08:00
2018-10-27T12:30:38
JavaScript
UTF-8
Python
false
false
795
py
#!/usr/bin/env python import sys import config, optimize, loader _help = '''AutoCal 0.1 - Fred Morcos <[email protected]> Usage: ./autocal.py [COMMANDS] < <input-file> Commands: \t--qt\t\t\tShow the Qt user interface. \t--verbose,-v\t\tShow debug output. \t--quiet,-q\t\tDo not output errors. \t--help,-h\t\tShow this help. ''' if __name__ == '__main__': for a in sys.argv: if a == '--verbose' or a == '-v': config.debug = True elif a == '--quiet' or a == '-q': config.verbose_error = False elif a == '--help' or a == '-h': print _help sys.exit(0) elif a == '--qt': from autocalqt import qt_start qt_start() sys.exit(0) input_data = '' for line in sys.stdin: input_data += line s = loader.load(input_data) s = optimize.start(s) print loader.save(s)
3f563dd24da29a3808436df13732d8d92dc6540f
baaff7bac9cf0e18bddc27ed7866885637db9dac
/Studentportal/principle/migrations/0005_auto_20200427_1626.py
7f2dcf3448db240598d8725aa7c1bbb6ff382970
[]
no_license
pratikgosavii/School-College-management-portal
0d477718a315c73b483b3885fce38d94f8cf7227
79ca0be6891067379b1544f4a8cd8bd82b177b51
refs/heads/master
2022-06-03T23:07:11.080921
2020-04-30T22:40:58
2020-04-30T22:40:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
533
py
# Generated by Django 3.0.2 on 2020-04-27 10:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('principle', '0004_auto_20200426_0042'), ] operations = [ migrations.RemoveField( model_name='addteacher', name='Teacher_Subjects', ), migrations.AddField( model_name='addteacher', name='Teacher_Subjects', field=models.ManyToManyField(to='principle.subjects'), ), ]
a91efe540d7ef22c8d8655ae84aaf3bad07462a7
58375cb29ebcd2da7adc182fd10c6f76d6deee6e
/FOTS/rroi_align/modules/rroi_align.py
7f3e5b4a21b030ab660d57f0a6ec05d9db7d052b
[ "BSD-3-Clause" ]
permissive
jiangxiluning/FOTS.PyTorch
d0d5a53595308335f20803d7a1d73274a4dad5a7
7484a81417f35b4f5c48edd3eb3e855416797379
refs/heads/master
2023-02-19T23:45:06.317493
2023-02-14T15:30:18
2023-02-14T15:30:18
142,129,096
726
236
BSD-3-Clause
2022-10-06T17:19:51
2018-07-24T08:31:45
Python
UTF-8
Python
false
false
545
py
from torch.nn.modules.module import Module from ..functions.rroi_align import RRoiAlignFunction class _RRoiAlign(Module): def __init__(self, pooled_height, pooled_width, spatial_scale): super(_RRoiAlign, self).__init__() self.pooled_width = int(pooled_width) self.pooled_height = int(pooled_height) self.spatial_scale = float(spatial_scale) def forward(self, features, rois): return RRoiAlignFunction.apply(features, rois, self.pooled_height, self.pooled_width, self.spatial_scale)
55a3ea9dd99ff3bd699c788ab07cea3e89d23de7
3f73ce74b6fdfb7966abb71a98f4986edd727c5f
/lib/pandas_option.py
0db90923fd1ec5c8f68491c947fc9cd7b40b1acc
[ "MIT" ]
permissive
yuta-komura/amateras
9c2efd310b18f159b1354864d65f9894ab93737f
cf8cc8fe0b5d8c382090fd1784a3ce96e6953157
refs/heads/master
2023-01-21T19:57:18.763894
2020-11-25T04:02:28
2020-11-25T04:02:28
297,432,974
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
import pandas as pd def display_max_columns(): pd.options.display.max_columns = None def display_max_rows(): pd.options.display.max_rows = None def display_round_down(): pd.options.display.float_format = '{:.2f}'.format
c583e85a4941db164985b6a0183b73927b75c83d
48d86947d5f3b5896c4a05cfcddcff01582a26ef
/amnesia/number/forms.py
fa9f1b18200101af1e9d576c327b0b05b5d1afa4
[]
no_license
pratulyab/amnesia
181874288c97fbf7e73d10c64e214c2a17574773
6b0b3428a27f98e0e2f6bb8aefdc8a4459e7b8cc
refs/heads/master
2021-01-20T12:49:16.592335
2017-05-07T20:38:06
2017-05-07T20:38:06
90,409,855
0
0
null
null
null
null
UTF-8
Python
false
false
1,969
py
from django import forms from django.contrib.auth import authenticate from django.contrib.auth import password_validation from django.core.exceptions import ValidationError from django.core import validators from django.db.utils import IntegrityError from django.utils.translation import ugettext_lazy as _ from number.models import PhoneNumber from sms import lookup_number from material import * class PhoneNumberForm(forms.ModelForm): calling_code = forms.CharField(label=_('Calling Code'), widget=forms.TextInput(attrs={'maxlength': 4})) def __init__(self, *args, **kwargs): super(PhoneNumberForm, self).__init__(*args, **kwargs) self.fields['number'].validators = [validators.RegexValidator(r'^\d{10}$')] def clean(self, *args, **kwargs): super(PhoneNumberForm, self).clean(*args, **kwargs) if self.cleaned_data.get('number', ''): phone_number = self.cleaned_data.get('calling_code', '') + self.cleaned_data['number'] if not lookup_number(phone_number, self.cleaned_data['country'].code): raise forms.ValidationError(_('Not a valid number according to Twilio\'s Lookup API')) return self.cleaned_data def save(self, commit=True, *args, **kwargs): obj = super(PhoneNumberForm, self).save(commit=False, *args, **kwargs) if not self.cleaned_data.get('calling_code', '') or kwargs.get('calling_code', ''): raise forms.ValidationError(_('Calling code is required.')) if not obj.country.calling_code: obj.country.calling_code = self.cleaned_data['calling_code'] if self.cleaned_data.get('calling_code', '') else kwargs['calling_code'] if commit: try: obj.save() except (ValidationError, IntegrityError): raise forms.ValidationError(_('Error Occurred. User with this number has already registered.')) return obj class Meta: model = PhoneNumber fields = ['country', 'number'] help_texts = { 'number': 'Make sure to enter a valid 10 digit number. It will be verified using Twilio\'s Lookup API', }
6ec05d3bc0cd2747d542611cb02e8455d14a425b
4e0f2938b003f5d68a57f213e652fbffb2f72ba2
/venv/Lib/site-packages/cx_OracleObject/Utils.py
e9107e5e7501b1942bcd28955a5ca2210e161f27
[]
no_license
adcGG/Lianxi
e4b1ce0d3cfc76e625e1e1caca0a58f25ba5d692
3659c3ca11a13b4ad54dbd2e669949701bae10b5
refs/heads/master
2022-12-13T05:45:41.312292
2019-08-14T07:38:19
2019-08-14T07:38:19
201,189,540
0
1
null
2022-04-22T22:08:16
2019-08-08T06:07:53
Python
UTF-8
Python
false
false
6,568
py
"""Defines utility functions.""" import cx_Exceptions import sys __all__ = [ "OrderObjects" ] def ClausesForOutput(clauses, firstString, restString, joinString): """Return a list of clauses suitable for output in a SQL statement.""" if not clauses: return "" joinString = joinString + "\n" + restString return firstString + joinString.join(clauses) def DependenciesOfInterest(key, objectsOfInterest, dependencies, dependenciesOfInterest): """Return a list of dependencies on objects of interest.""" if key in dependencies: for refKey in dependencies[key]: if refKey in objectsOfInterest: dependenciesOfInterest[refKey] = None else: DependenciesOfInterest(refKey, objectsOfInterest, dependencies, dependenciesOfInterest) def OrderObjects(objects, dependencies): """Put the objects in the order necessary for creation without errors.""" # initialize the mapping that indicates which items this object depends on iDependOn = {} dependsOnMe = {} for key in objects: iDependOn[key] = {} dependsOnMe[key] = {} # populate a mapping which indicates all of the dependencies for an object mappedDependencies = {} for owner, name, type, refOwner, refName, refType in dependencies: key = (owner, name, type) refKey = (refOwner, refName, refType) subDict = mappedDependencies.get(key) if subDict is None: subDict = mappedDependencies[key] = {} subDict[refKey] = None # now populate the mapping that indicates which items this object depends on # note that an object may depend on an object which is not in the list of # interest, but it itself depends on an object which is in the list so the # chain of dependencies is traversed until no objects of interest are found for key in iDependOn: refKeys = {} DependenciesOfInterest(key, iDependOn, mappedDependencies, refKeys) for refKey in refKeys: iDependOn[key][refKey] = None dependsOnMe[refKey][key] = None # order the items until no more items left outputObjs = {} orderedObjs = [] while iDependOn: # acquire a list of items which do not depend on anything references = {} keysToOutput = {} for key, value in list(iDependOn.items()): if not value: owner, name, type = key if owner not in keysToOutput: keysToOutput[owner] = [] keysToOutput[owner].append(key) del iDependOn[key] else: for refKey in value: owner, name, type = refKey if owner not in references: references[owner] = 0 references[owner] += 1 # detect a circular reference and avoid an infinite loop if not keysToOutput: keys = list(iDependOn.keys()) keys.sort() for key in keys: print("%s.%s (%s)" % key, file = sys.stderr) refKeys = list(iDependOn[key].keys()) refKeys.sort() for refKey in refKeys: print(" %s.%s (%s)" % refKey, file = sys.stderr) raise CircularReferenceDetected() # for each owner that has something to describe while keysToOutput: # determine the owner with the most references outputOwner = "" maxReferences = 0 keys = list(references.keys()) keys.sort() for key in keys: value = references[key] if value > maxReferences and key in keysToOutput: maxReferences = value outputOwner = key if not outputOwner: for key in keysToOutput: outputOwner = key break # remove this owner from the list keys = keysToOutput[outputOwner] del keysToOutput[outputOwner] if outputOwner in references: del references[outputOwner] # process this list, removing dependencies and adding additional # objects tempKeys = keys keys = [] while tempKeys: nextKeys = [] tempKeys.sort() for key in tempKeys: refKeys = list(dependsOnMe[key].keys()) refKeys.sort() for refKey in dependsOnMe[key]: del iDependOn[refKey][key] if not iDependOn[refKey]: owner, name, type = refKey if owner == outputOwner: del iDependOn[refKey] nextKeys.append(refKey) elif owner in keysToOutput: del iDependOn[refKey] keysToOutput[owner].append(refKey) keys += tempKeys tempKeys = nextKeys # output the list of objects that have their dependencies satisfied for key in keys: if key not in outputObjs: orderedObjs.append(key) outputObjs[key] = None # return the ordered list return orderedObjs def SetOptions(obj, options): """Set values from the options on the command line.""" if options: for attribute in dir(options): if attribute.startswith("_"): continue if hasattr(obj, attribute): value = getattr(options, attribute) if isinstance(value, list): value = [s for v in value for s in v.split(",")] setattr(obj, attribute, value) def SizeForOutput(size): """Return the size suitable for output in a SQL statement. Note that a negative size is assumed to be unlimited.""" if size < 0: return "unlimited" kilobytes, remainder = divmod(size, 1024) if not remainder: megabytes, remainder = divmod(kilobytes, 1024) if not remainder: return "%gm" % megabytes else: return "%gk" % kilobytes else: return "%g" % size class CircularReferenceDetected(cx_Exceptions.BaseException): message = "Circular reference detected!"
9f80f8e98ba81fbc03fffe07a29c8ce878090be2
7971a30e49246a1080490c9641c29cb8fd575c12
/Subset_DataStructures/remove_duplicates.py
6781a36207b4e74472372b44658b8e5dafccec4e
[]
no_license
ymwondimu/HackerRank
3870922a29a1e4271a1d3cfd238fd83fd80749c8
6481d7ddf61868108a071b44e3fdb098e8cbd61e
refs/heads/master
2020-03-21T19:05:00.406134
2018-07-26T01:11:05
2018-07-26T01:11:05
138,929,791
0
0
null
null
null
null
UTF-8
Python
false
false
1,068
py
#!/bin/python3 import math import os import random import re import sys class SinglyLinkedListNode: def __init__(self, node_data): self.data = node_data self.next = None class SinglyLinkedList: def __init__(self): self.head = None self.tail = None def insert_node(self, node_data): node = SinglyLinkedListNode(node_data) if not self.head: self.head = node else: self.tail.next = node self.tail = node def removeDuplicates(head): curr = head.next prev = head return head def main(): node1 = SinglyLinkedListNode(1) node2 = SinglyLinkedListNode(2) node3 = SinglyLinkedListNode(3) node4 = SinglyLinkedListNode(3) node5 = SinglyLinkedListNode(4) node6 = SinglyLinkedListNode(5) node1.next = node2 node2.next = node3 node3.next = node4 node4.next = node5 node5.next = node6 h = removeDuplicates(node1) while (h): print (h.data) h = h.next if __name__ == "__main__": main()
07e0a3f5263b42f5cfbf6a40d74adadb61a31aac
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03836/s870323568.py
ad0d20b04f7d66288bd881e8921f6962e16fadd5
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
516
py
def main(): sx, sy, tx, ty = map(int, input().split()) x = tx - sx y = ty - sy s = "" for i in range(2): tmp = "" if i: tmp += "D" tmp += "R"*(x+1) tmp += "U"*(y+1) tmp += "L" else: tmp += "R"*x tmp += "U"*y s += tmp + tmp.translate(str.maketrans({"U": "D", "D": "U", "L": "R", "R": "L"})) print(s) if __name__ == "__main__": main()
ebca5a69981b65a76fc4c5c52dc7719fe9aabee3
0529196c4d0f8ac25afa8d657413d4fc1e6dd241
/runnie0427/13015/13015.py2.py
93bae9ee407b969a75da385bdc1739a27aa9d784
[]
no_license
riyuna/boj
af9e1054737816ec64cbef5df4927c749808d04e
06420dd38d4ac8e7faa9e26172b30c9a3d4e7f91
refs/heads/master
2023-03-17T17:47:37.198570
2021-03-09T06:11:41
2021-03-09T06:11:41
345,656,935
0
0
null
null
null
null
UTF-8
Python
false
false
17,370
py
<!DOCTYPE html> <html lang="ko"> <head> <title>Baekjoon Online Judge</title><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta charset="utf-8"><meta name="author" content="스타트링크 (Startlink)"><meta name="keywords" content="ACM-ICPC, ICPC, 프로그래밍, 온라인 저지, 정보올림피아드, 코딩, 알고리즘, 대회, 올림피아드, 자료구조"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta property="og:type" content="website"><meta property="og:image" content="http://onlinejudgeimages.s3-ap-northeast-1.amazonaws.com/images/boj-og-1200.png"><meta property="og:site_name" content="Baekjoon Online Judge"><meta name="format-detection" content = "telephone=no"><meta name="msapplication-config" content="none"><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="manifest" href="/site.webmanifest"><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#0076c0"><meta name="msapplication-TileColor" content="#00aba9"><meta name="theme-color" content="#ffffff"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/css/bootstrap.min.css"><link rel="stylesheet" href="https://ddo7jzca0m2vt.cloudfront.net/unify/css/style.css?version=20210107"><link href="https://fonts.googleapis.com/css?family=Noto+Sans+KR:400,700|Open+Sans:400,400i,700,700i|Source+Code+Pro&amp;subset=korean" rel="stylesheet"><link rel="stylesheet" href="https://ddo7jzca0m2vt.cloudfront.net/css/connect.css?version=20210107"><link rel="stylesheet" href="https://ddo7jzca0m2vt.cloudfront.net/css/result.css?version=20210107"><link rel="stylesheet" href="https://ddo7jzca0m2vt.cloudfront.net/unify/css/custom.css?version=20210107"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.css"><link rel="stylesheet" href="https://ddo7jzca0m2vt.cloudfront.net/unify/css/theme-colors/blue.css?version=20210107"><link rel="stylesheet" href="https://ddo7jzca0m2vt.cloudfront.net/css/pace.css"> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-10874097-3"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-10874097-3'); </script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/noty/3.1.4/noty.min.css" /><meta name="username" content=""> <link rel="stylesheet" href="https://ddo7jzca0m2vt.cloudfront.net/unify/css/pages/page_404_error.css"> </head> <body> <div class="wrapper"> <div class="header no-print"><div class="topbar"><div class="container"><ul class="loginbar pull-right"><li><a href = "/register">회원가입</a></li><li class="topbar-devider"></li><li><a href = "/login?next=%2Fsource%2Fdownload%2F9854798">로그인</a></li></ul></div></div><div class="navbar navbar-default mega-menu" role="navigation"><div class="container"><div class="navbar-header"><button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse"><span class="sr-only">Toggle navigation</span><span class="fa fa-bars"></span></button><a class="navbar-brand" href="/"><img id="logo-header" src="https://d2gd6pc034wcta.cloudfront.net/images/[email protected]" alt="Logo" data-retina></a></div><div class="collapse navbar-collapse navbar-responsive-collapse"><ul class="nav navbar-nav"><li class="dropdown mega-menu-fullwidth "><a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown">문제</a><ul class="dropdown-menu"><li><div class="mega-menu-content"><div class="container"><div class="row equal-height"><div class="col-md-3 equal-height-in"><ul class="list-unstyled equal-height-list"><li><h3>문제</h3></li><li><a href = "/problemset">전체 문제</a></li><li><a href = "/category">문제 출처</a></li><li><a href = "/step">단계별로 풀어보기</a></li><li><a href = "/problem/tags">알고리즘 분류</a></li><li><a href = "/problem/added">새로 추가된 문제</a></li><li><a href = "/problem/added/1">새로 추가된 영어 문제</a></li><li><a href = "/problem/ranking">문제 순위</a></li></ul></div><div class="col-md-3 equal-height-in"><ul class="list-unstyled equal-height-list"><li><h3>문제</h3></li><li><a href="/problem/only">푼 사람이 한 명인 문제</a></li><li><a href="/problem/nobody">아무도 못 푼 문제</a></li><li><a href="/problem/recent/submit">최근 제출된 문제</a></li><li><a href="/problem/recent/accepted">최근 풀린 문제</a></li><li><a href="/problem/random">랜덤</a></li></ul></div><div class="col-md-3 equal-height-in"><ul class="list-unstyled equal-height-list"><li><h3>출처</h3></li><li><a href = "/category/1">ICPC</a></li><li><a href = "/category/2">Olympiad</a></li><li><a href = "/category/55">한국정보올림피아드</a></li><li><a href = "/category/57">한국정보올림피아드시․도지역본선</a></li><li><a href = "/category/318">전국 대학생 프로그래밍 대회 동아리 연합</a></li><li><a href = "/category/5">대학교 대회</a></li><li><a href = "/category/428">카카오 코드 페스티벌</a></li><li><a href = "/category/215">Coder's High</a></li></ul></div><div class="col-md-3 equal-height-in"><ul class="list-unstyled equal-height-list"><li><h3>ICPC</h3></li><li><a href = "/category/7">Regionals</a></li><li><a href = "/category/4">World Finals</a></li><li><a href = "/category/211">Korea Regional</a></li><li><a href = "/category/34">Africa and the Middle East Regionals</a></li><li><a href = "/category/10">Europe Regionals</a></li><li><a href = "/category/103">Latin America Regionals</a></li><li><a href = "/category/8">North America Regionals</a></li><li><a href = "/category/92">South Pacific Regionals</a></li></ul></div></div></div></div></li></ul></li><li><a href = "/workbook/top">문제집</a></li><li><a href = "/contest/official/list">대회<span class='badge badge-red rounded-2x'>2</span></a></li><li><a href = "/status">채점 현황</a></li><li><a href = "/ranklist">랭킹</a></li><li><a href = "/board/list/all">게시판</a></li><li><a href = "/group/list/all">그룹</a></li><li><a href = "/blog/list">블로그</a></li><li><a href = "/lectures">강의</a></li><li><a href = "/search"><i class="fa fa-search search-btn"></i></a></li></ul></div></div></div></div><form action="/logout" method="post" id="logout_form"><input type='hidden' value='%2Fsource%2Fdownload%2F9854798' name="next"></form> <div class="container content"> <div class="col-md-8 col-md-offset-2"> <div class="error-v1"> <span class="error-v1-title">404</span> <span>Not found</span> <div class="margin-bottom-20"></div> </div> <div class="text-center"> <span style="font-size:18px;">강의 슬라이드의 첨부 소스 코드가 404 에러가 뜨는 경우에는 링크를 복사/붙여넣기 해주세요.</span> </div> <div class="margin-bottom-40"></div> </div> </div> <div class="footer-v3 no-print"><div class="footer"><div class="container"><div class="row"><div class="col-sm-3 md-margin-bottom-40"><div class="thumb-headline"><h2>Baekjoon Online Judge</h2></div><ul class="list-unstyled simple-list margin-bottom-10"><li><a href="/about">소개</a></li><li><a href="/news">뉴스</a></li><li><a href="/live">생중계</a></li><li><a href="/poll">설문조사</a></li><li><a href="/blog">블로그</a></li><li><a href="/calendar">캘린더</a></li><li><a href="/donate">기부하기</a></li><li><a href="https://github.com/Startlink/BOJ-Feature-Request">기능 추가 요청</a></li><li><a href="https://github.com/Startlink/BOJ-spj">스페셜 저지 제작</a></li><li><a href="/labs">실험실</a></li></ul><div class="thumb-headline"><h2>채점 현황</h2></div><ul class="list-unstyled simple-list"><li><a href="/status">채점 현황</a></li></ul></div><div class="col-sm-3 md-margin-bottom-40"><div class="thumb-headline"><h2>문제</h2></div><ul class="list-unstyled simple-list margin-bottom-10"><li><a href="/problemset">문제</a></li><li><a href="/step">단계별로 풀어보기</a></li><li><a href="/problem/tags">알고리즘 분류</a></li><li><a href="/problem/added">새로 추가된 문제</a></li><li><a href="/problem/added/1">새로 추가된 영어 문제</a></li><li><a href="/problem/ranking">문제 순위</a></li><li><a href="/problem/recent/submit">최근 제출된 문제</a></li><li><a href="/problem/recent/accepted">최근 풀린 문제</a></li><li><a href="/change">재채점 및 문제 수정</a></li></ul><div class="thumb-headline"><h2>유저 대회 / 고등학교 대회</h2></div><ul class="list-inline simple-list margin-bottom"><li><a href="/category/353">FunctionCup</a></li><li><a href="/category/319">kriiicon</a></li><li><a href="/category/420">구데기컵</a></li><li><a href="/category/358">꼬마컵</a></li><li><a href="/category/421">네블컵</a></li><li><a href="/category/413">소프트콘</a></li><li><a href="/category/416">웰노운컵</a></li><li><a href="/category/detail/1743">HYEA Cup</a></li><li><a href="/category/364">경기과학고등학교</a></li><li><a href="/category/417">대구과학고등학교</a></li><li><a href="/category/429">부산일과학고</a></li><li><a href="/category/435">서울과학고등학교</a></li><li><a href="/category/394">선린인터넷고등학교</a></li></ul></div><div class="col-sm-3 md-margin-bottom-40"><div class="thumb-headline"><h2>출처</h2></div><ul class="list-unstyled simple-list margin-bottom-10"><li><a href="/category/1">ICPC</a></li><li><a href="/category/211">ICPC Korea Regional</a></li><li><a href="/category/2">Olympiad</a></li><li><a href="/category/55">한국정보올림피아드</a></li><li><a href="/category/57">한국정보올림피아드시․도지역본선</a></li><li><a href="/category/318">전국 대학생 프로그래밍 대회 동아리 연합</a></li><li><a href="/category/5">대학교 대회</a></li><li><a href="/category/428">카카오 코드 페스티벌</a></li><li><a href="/category/215">Coder's High</a></li></ul><div class="thumb-headline"><h2>대학교 대회</h2></div><ul class="list-inline simple-list"><li><a href="/category/320">KAIST</a></li><li><a href="/category/426">POSTECH</a></li><li><a href="/category/341">고려대학교</a></li><li><a href="/category/434">광주과학기술원</a></li><li><a href="/category/361">국민대학교</a></li><li><a href="/category/83">서강대학교</a></li><li><a href="/category/354">서울대학교</a></li><li><a href="/category/352">숭실대학교</a></li><li><a href="/category/408">아주대학교</a></li><li><a href="/category/334">연세대학교</a></li><li><a href="/category/336">인하대학교</a></li><li><a href="/category/347">전북대학교</a></li><li><a href="/category/400">중앙대학교</a></li><li><a href="/category/402">충남대학교</a></li><li><a href="/category/418">한양대 ERICA</a></li><li><a href="/category/363">홍익대학교</a></li><li><a href="/category/409">경인지역 6개대학 연합 프로그래밍 경시대회</a></li></ul></div><div class="col-sm-3 md-margin-bottom-40"><div class="thumb-headline"><h2>도움말</h2></div><ul class="list-unstyled simple-list margin-bottom-10"><li><a href="/help/judge">채점 도움말 및 채점 환경</a></li><li><a href="/help/rejudge">재채점 안내</a></li><li><a href="/help/rte">런타임 에러 도움말</a></li><li><a href="/help/problem">문제 스타일 안내</a></li><li><a href="/help/language">컴파일 또는 실행 옵션, 컴파일러 버전, 언어 도움말</a></li><li><a href="/help/workbook">문제집 도움말</a></li><li><a href="/help/contest">대회 개최 안내</a></li><li><a href="/help/problem-add">문제 출제 안내</a></li><li><a href="/help/rule">이용 규칙</a></li><li><a href="/help/stat">통계 도움말</a></li><li><a href="/help/question">질문 도움말</a></li><li><a href="/help/faq">자주묻는 질문</a></li><li><a href="/help/lecture">강의 안내</a></li><li><a href="/help/short">짧은 주소 안내</a></li><li><a href="/help/ad">광고 안내</a></li></ul></div></div></div><div class="copyright"><div class="container"><div class="row"><div class="col-md-9 col-sm-12"><p>&copy; 2021 All Rights Reserved. <a href="https://startlink.io">주식회사 스타트링크</a>&nbsp;|&nbsp;<a href="/terms">서비스 약관</a>&nbsp;|&nbsp;<a href="/privacy">개인정보 보호</a>&nbsp;|&nbsp;<a href="/terms/payment">결제 이용 약관</a>&nbsp;|&nbsp;<a href="https://boj.startlink.help/hc/ko">도움말</a>&nbsp;|&nbsp;<a href="http://startl.ink/2pmlJaY">광고 문의</a>&nbsp;|&nbsp;<a href="https://github.com/Startlink/update-note/blob/master/boj.md">업데이트 노트</a>&nbsp;|&nbsp;<a href="https://github.com/Startlink/update-note/blob/master/boj-issues.md">이슈</a>&nbsp;|&nbsp;<a href="https://github.com/Startlink/update-note/blob/master/boj-todo.md">TODO</a></p></div><div class="col-md-3 col-sm-12"><ul class="social-icons pull-right"><li><a href="https://www.facebook.com/onlinejudge" data-original-title="Facebook" class="rounded-x social_facebook"></a></li><li><a href="https://startlink.blog" data-original-title="Wordpress" class="rounded-x social_wordpress"></a></li></ul></div></div><div class="row"><div class="col-sm-12"><a href="https://startlink.io" class="hidden-xs"><img src="https://d2gd6pc034wcta.cloudfront.net/logo/startlink-logo-white-only.png" class="pull-right startlink-logo"></a><ul class="list-unstyled simple-list"><li>사업자 등록 번호: 541-88-00682</li><li>대표자명: 최백준</li><li>주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호</li><li>전화번호: 02-521-0487 (이메일로 연락 주세요)</li><li>이메일: <a href="mailto:[email protected]">[email protected]</a></li><li>통신판매신고번호: 제 2017-서울서초-2193 호</li></ul></div><div class="col-xs-9"><p id="no-acm-icpc"></p></div><div class="col-xs-3"></div></div></div></div></div> </div> <div id="fb-root"></div><script> window.fbAsyncInit = function() { FB.init({ appId : '322026491226049', cookie : true, xfbml : true, version : 'v2.8' }); }; (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/ko_KR/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <script> !function(f,b,e,v,n,t,s){ if(f.fbq)return;n=f.fbq=function(){ n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments) };if(!f._fbq)f._fbq=n; n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s) }(window, document,'script','//connect.facebook.net/en_US/fbevents.js'); fbq('init', '1670563073163149'); fbq('track', 'PageView'); </script> <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=1670563073163149&ev=PageView&noscript=1"/></noscript><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-migrate/3.0.1/jquery-migrate.min.js"></script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/js/bootstrap.min.js"></script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.21.0/moment.min.js"></script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.21.0/locale/ko.js"></script><script type="text/javascript" src="https://ddo7jzca0m2vt.cloudfront.net/unify/js/app.min.js?version=20210107"></script><script type="text/javascript">jQuery(document).ready(function() {App.init(0);});</script><!--[if lt IE 9]><script src="https://ddo7jzca0m2vt.cloudfront.net/unify/plugins/respond.js"></script><script src="https://ddo7jzca0m2vt.cloudfront.net/unify/plugins/html5shiv.js"></script><script src="https://ddo7jzca0m2vt.cloudfront.net/unify/js/plugins/placeholder-IE-fixes.js"></script><![endif]--><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pace/1.0.2/pace.min.js"></script><script src="https://js.pusher.com/4.2/pusher.min.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/noty/3.1.4/noty.min.js"></script> <script> window.MathJax = { tex: { inlineMath: [ ['$', '$'], ['\\(', '\\)'] ], displayMath: [ ['$$','$$'], ["\\[","\\]"] ], processEscapes: true, tags: "ams", autoload: { color: [], colorv2: ['color'] }, packages: { '[+]': ['noerrors'] } }, options: { ignoreHtmlClass: "no-mathjax|redactor-editor", processHtmlClass: 'mathjax', enableMenu: false }, chtml: { scale: 0.9 }, loader: { load: ['input/tex', 'output/chtml', '[tex]/noerrors'], } }; </script><script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script><script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> </body> </html>
92764ee5fa04ada4b84d89a4c40d1645710675ca
afc8d5a9b1c2dd476ea59a7211b455732806fdfd
/Configurations/WW/FullRunII/Full2017_v9/njets/plot.py
b869826b875f6efbb25b48b65c4cd12b7f151232
[]
no_license
latinos/PlotsConfigurations
6d88a5ad828dde4a7f45c68765081ed182fcda21
02417839021e2112e740607b0fb78e09b58c930f
refs/heads/master
2023-08-18T20:39:31.954943
2023-08-18T09:23:34
2023-08-18T09:23:34
39,819,875
10
63
null
2023-08-10T14:08:04
2015-07-28T07:36:50
Python
UTF-8
Python
false
false
5,738
py
# plot configuration nbins = 4 # groupPlot = {} # # Groups of samples to improve the plots. # If not defined, normal plots is used # groupPlot['top'] = { 'nameHR' : 'tW and t#bar{t}', 'isSignal' : 0, 'color': 400, # kYellow 'samples' : ['top'] } groupPlot['WW'] = { 'nameHR' : 'WW', 'isSignal' : 0, 'color': 851, # kAzure -9 'samples' : ['WW_B%d'%i for i in xrange(nbins)]+['ggWW_B%d'%i for i in xrange(nbins)] } groupPlot['WW_nonfid'] = { 'nameHR' : 'WW nonfid', 'isSignal' : 0, 'color': 853, # kAzure -9 'samples' : ['WW_nonfid', 'ggWW_nonfid'] } groupPlot['WWewk'] = { 'nameHR' : 'WWewk', 'isSignal' : 0, 'color': 852, # kAzure -9 'samples' : ['WWewk'] } groupPlot['Fake'] = { 'nameHR' : 'nonprompt', 'isSignal' : 0, 'color': 921, # kGray + 1 'samples' : ['Fake_me', 'Fake_em'] } groupPlot['DY'] = { 'nameHR' : "DY", 'isSignal' : 0, 'color': 418, # kGreen+2 'samples' : ['DY'] } groupPlot['VVV'] = { 'nameHR' : 'VVV', 'isSignal' : 0, 'color': 857, # kAzure -3 'samples' : ['VVV'] } groupPlot['WZ'] = { 'nameHR' : "WZ", 'isSignal' : 0, 'color' : 617, # kViolet + 1 'samples' : ['WZ'] } groupPlot['ZZ'] = { 'nameHR' : "ZZ", 'isSignal' : 0, 'color' : 618, # kViolet + 1 'samples' : ['ZZ'] } groupPlot['Vg'] = { 'nameHR' : "V#gamma", 'isSignal' : 0, 'color' : 811, # kOrange + 10 'samples' : ['Vg'] } groupPlot['Higgs'] = { 'nameHR' : 'Higgs', 'isSignal' : 0, 'color': 632, # kRed 'samples' : ['Higgs' ] } #plot = {} # keys here must match keys in samples.py # plot['DY'] = { 'color': 418, # kGreen+2 'isSignal' : 0, 'isData' : 0, 'scale' : 1.0, } plot['Fake_me'] = { 'color': 921, # kGray + 1 'isSignal' : 0, 'isData' : 0, 'scale' : 1.0 } plot['Fake_em'] = { 'color': 921, # kGray + 1 'isSignal' : 0, 'isData' : 0, 'scale' : 1.0 } plot['top'] = { 'nameHR' : 'tW and t#bar{t}', 'color': 400, # kYellow 'isSignal' : 0, 'isData' : 0, 'scale' : 1.0, } for i in xrange(nbins): plot['WW_B%d'%i] = { 'color': 851, # kAzure -9 'isSignal' : 0, 'isData' : 0, 'scale' : 1.0 # ele/mu trigger efficiency datadriven } plot['ggWW_B%d'%i] = { 'color': 851, # kAzure -9 'isSignal' : 0, 'isData' : 0, 'scale' : 1.0 # ele/mu trigger efficiency datadriven } plot['WW_nonfid'] = { 'color': 853, # kAzure -9 'isSignal' : 0, 'isData' : 0, 'scale' : 1.0 # ele/mu trigger efficiency datadriven } plot['ggWW_nonfid'] = { 'color': 853, # kAzure -9 'isSignal' : 0, 'isData' : 0, 'scale' : 1.0 # ele/mu trigger efficiency datadriven } plot['WWewk'] = { 'color': 851, # kAzure -9 'isSignal' : 0, 'isData' : 0, 'scale' : 1.0 # ele/mu trigger efficiency datadriven } plot['Vg'] = { 'color': 859, # kAzure -1 'isSignal' : 0, 'isData' : 0, 'scale' : 1.0 } plot['WZ'] = { 'color': 858, # kAzure -2 'isSignal' : 0, 'isData' : 0, 'scale' : 1.0 } plot['ZZ'] = { 'color': 858, # kAzure -2 'isSignal' : 0, 'isData' : 0, 'scale' : 1.0 } plot['VVV'] = { 'color': 857, # kAzure -3 'isSignal' : 0, 'isData' : 0, 'scale' : 1.0 } # Higgs plot['Higgs'] = { 'nameHR' : 'Higgs', 'color': 632, # kRed 'isSignal' : 0, 'isData' : 0, 'scale' : 1 # } # data plot['DATA'] = { 'nameHR' : 'Data', 'color': 1 , 'isSignal' : 0, 'isData' : 1 , 'isBlind' : 1 } # additional options legend['lumi'] = 'L = 41.5/fb' legend['sqrt'] = '#sqrt{s} = 13 TeV'
018440f84f40bfcb4de4dbd4916932d807d54935
2c7f025568bceb560888d26828aef30e5ae23393
/src/home-20170804/migrations/0015_auto_20170601_1925.py
aac40a81d41a1db348df5d1c203aa4f5437164e5
[]
no_license
GustavoCruz12/educacao
6271ebc71830ee1964f8311d3ef21ec8abf58e50
d0faa633ed1d588d84c74a3e15ccf5fa4dd9839e
refs/heads/master
2022-12-08T09:34:42.066372
2018-08-03T06:38:49
2018-08-03T06:38:49
143,387,426
0
0
null
2022-12-08T00:01:52
2018-08-03T06:31:03
Python
UTF-8
Python
false
false
493
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-06-01 19:25 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0014_auto_20170601_1923'), ] operations = [ migrations.AlterField( model_name='videoyoutube', name='slug', field=models.SlugField(max_length=250, unique=True, verbose_name='URL (slug)'), ), ]
7c720b9d543c458945310c10348f41a006a16bdb
72900b002fc2c27ea92564da10a87b4c9ab75f63
/contracts/tests/test_schedule_metadata.py
66fe05df5396217794d2f39d48bc50611e0b4899
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
firefoxxy8/calc
f495443d28f7fd71da5e881a6d05d92aad2ba0fd
7ceb2fcadd67bc9fbcb64cdaba50dbbdead0e803
refs/heads/master
2020-03-27T19:19:24.127137
2018-08-20T22:23:33
2018-08-20T22:23:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,230
py
from django.core.management import call_command from django.test import SimpleTestCase, TestCase from django.utils.safestring import SafeText from contracts.models import ScheduleMetadata def populate_schedule_metadata(): # This is SUPER weird. Previous TransactionTestCase runs (usually # the result of a LiveServerTestCase) could have removed the # schedule metadata populated by our migration, so we'll forcibly # wipe our schedule metadata and re-run the migration just in case. ScheduleMetadata.objects.all().delete() call_command('migrate', 'contracts', '0023_schedulemetadata', '--fake') call_command('migrate', 'contracts', '0024_populate_schedulemetadata') call_command('migrate', '--fake') class InitialScheduleMetadataTests(TestCase): def test_populate_data_migration_works(self): populate_schedule_metadata() env = ScheduleMetadata.objects.get(sin='899') self.assertEqual(env.schedule, 'Environmental') self.assertEqual(env.name, 'Legacy Environmental') self.assertIn('pollution', env.description) self.assertEqual(list( sm.schedule for sm in ScheduleMetadata.objects.all().order_by('schedule') ), [ 'AIMS', 'Consolidated', 'Environmental', 'FABS', 'IT Schedule 70', 'Language Services', 'Logistics', 'MOBIS', 'PES', ]) class SimpleTests(SimpleTestCase): def test_full_name_includes_sin_when_present(self): sm = ScheduleMetadata(sin='123', name='blarg') self.assertEqual(sm.full_name, '123 - blarg') def test_full_name_works_when_sin_is_absent(self): sm = ScheduleMetadata(name='blarg') self.assertEqual(sm.full_name, 'blarg') def test_description_html_works(self): sm = ScheduleMetadata(description='hello *there*') self.assertEqual( sm.description_html, '<p>hello <em>there</em></p>' ) self.assertIsInstance(sm.description_html, SafeText) def test_str_works(self): sm = ScheduleMetadata(sin='123', name='blarg') self.assertEqual(str(sm), '123 - blarg')
9ed3621af43e4f23d160e89f19f6d78356630961
3940b4a507789e1fbbaffeb200149aee215f655a
/lc/145.BinaryTreePostorderTraversal.py
cea3a772e720331356728cbbd39b0eca590101ba
[]
no_license
akimi-yano/algorithm-practice
15f52022ec79542d218c6f901a54396a62080445
1abc28919abb55b93d3879860ac9c1297d493d09
refs/heads/master
2023-06-11T13:17:56.971791
2023-06-10T05:17:56
2023-06-10T05:17:56
239,395,822
0
0
null
null
null
null
UTF-8
Python
false
false
1,915
py
# 145. Binary Tree Postorder Traversal # Medium # 2416 # 112 # Add to List # Share # Given the root of a binary tree, return the postorder traversal of its nodes' values. # Example 1: # Input: root = [1,null,2,3] # Output: [3,2,1] # Example 2: # Input: root = [] # Output: [] # Example 3: # Input: root = [1] # Output: [1] # Example 4: # Input: root = [1,2] # Output: [2,1] # Example 5: # Input: root = [1,null,2] # Output: [2,1] # Constraints: # The number of the nodes in the tree is in the range [0, 100]. # -100 <= Node.val <= 100 # Follow up: # Recursive solution is trivial, could you do it iteratively? # This solution works: # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def postorderTraversal(self, root: TreeNode) -> List[int]: def helper(cur): if not cur: return nonlocal arr helper(cur.left) helper(cur.right) arr.append(cur.val) arr = [] helper(root) return arr # This solution works - iterative: # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def postorderTraversal(self, root: TreeNode) -> List[int]: stack = [(root, False)] ans = [] while stack: node, traversed = stack.pop() if not node: continue if not traversed: stack.append((node, True)) stack.append((node.right, False)) stack.append((node.left, False)) else: ans.append(node.val) return ans
a490e7f1e6b2c65087dfabc08bfafafeb3f0052c
5e9576c368e98927e2965bd2fb23bd35d9993d69
/featuretools/primitives/standard/aggregation/time_since_last_false.py
da04a8d96f2ab98be1971c71fbac3b5a5bab51cb
[ "BSD-3-Clause" ]
permissive
alteryx/featuretools
c6e319e063e8e84e7684bf232376f95dc5272160
c284c2d27a95b81e0bae913ac90df2b02c8f3b37
refs/heads/main
2023-08-25T12:21:33.945418
2023-08-23T16:30:25
2023-08-23T16:30:25
102,908,804
1,783
201
BSD-3-Clause
2023-09-07T18:53:19
2017-09-08T22:15:17
Python
UTF-8
Python
false
false
2,223
py
import numpy as np import pandas as pd from woodwork.column_schema import ColumnSchema from woodwork.logical_types import Boolean, BooleanNullable, Datetime, Double from featuretools.primitives.base import AggregationPrimitive class TimeSinceLastFalse(AggregationPrimitive): """Calculates the time since the last `False` value. Description: Using a series of Datetimes and a series of Booleans, find the last record with a `False` value. Return the seconds elapsed between that record and the instance's cutoff time. Return nan if no values are `False`. Examples: >>> from datetime import datetime >>> time_since_last_false = TimeSinceLastFalse() >>> cutoff_time = datetime(2010, 1, 1, 12, 0, 0) >>> times = [datetime(2010, 1, 1, 11, 45, 0), ... datetime(2010, 1, 1, 11, 55, 15), ... datetime(2010, 1, 1, 11, 57, 30)] >>> booleans = [True, False, True] >>> time_since_last_false(times, booleans, time=cutoff_time) 285.0 """ name = "time_since_last_false" input_types = [ [ ColumnSchema(logical_type=Datetime, semantic_tags={"time_index"}), ColumnSchema(logical_type=Boolean), ], [ ColumnSchema(logical_type=Datetime, semantic_tags={"time_index"}), ColumnSchema(logical_type=BooleanNullable), ], ] return_type = ColumnSchema(logical_type=Double, semantic_tags={"numeric"}) uses_calc_time = True stack_on_self = False default_value = 0 def get_function(self): def time_since_last_false(datetime_col, bool_col, time=None): df = pd.DataFrame( { "datetime": datetime_col, "bool": bool_col, }, ).dropna() if df.empty: return np.nan false_indices = df[~df["bool"]] if false_indices.empty: return np.nan last_false_index = false_indices.index[-1] time_since = time - datetime_col.loc[last_false_index] return time_since.total_seconds() return time_since_last_false
6d80c5e6129e225209760595077355c9ae9cdaac
38c10c01007624cd2056884f25e0d6ab85442194
/chrome/chrome_dll_bundle.gypi
2a7c412d6691d2476d794c627214953543ac1abe
[ "BSD-3-Clause" ]
permissive
zenoalbisser/chromium
6ecf37b6c030c84f1b26282bc4ef95769c62a9b2
e71f21b9b4b9b839f5093301974a45545dad2691
refs/heads/master
2022-12-25T14:23:18.568575
2016-07-14T21:49:52
2016-07-23T08:02:51
63,980,627
0
2
BSD-3-Clause
2022-12-12T12:43:41
2016-07-22T20:14:04
null
UTF-8
Python
false
false
9,533
gypi
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # This file contains resources for the main Mac chromium bundle. { # The main browser executable's name is <(mac_product_name). # Certain things will get confused if two modules in the # executable share the same name, so append " Framework" to the # product_name used for the framework. This will result in # a name like "Chromium Framework.framework". 'product_name': '<(mac_product_name) Framework', 'mac_bundle': 1, 'xcode_settings': { 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)', # The dylib versions are of the form a[.b[.c]], where a is a # 16-bit unsigned integer, and b and c are 8-bit unsigned # integers. Any missing component is taken to be 0. The # best mapping from product version numbers into this scheme # is to just use a=BUILD, b=(PATCH/256), c=(PATCH%256). There # is no ambiguity in this scheme because the build and patch # numbers are guaranteed unique even across distinct major # and minor version numbers. These settings correspond to # -compatibility_version and -current_version. 'DYLIB_COMPATIBILITY_VERSION': '<(version_mac_dylib)', 'DYLIB_CURRENT_VERSION': '<(version_mac_dylib)', # The framework is placed within the .app's versioned # directory. DYLIB_INSTALL_NAME_BASE and # LD_DYLIB_INSTALL_NAME affect -install_name. 'DYLIB_INSTALL_NAME_BASE': '@executable_path/../Versions/<(version_full)', # See /build/mac/copy_framework_unversioned.sh for # information on LD_DYLIB_INSTALL_NAME. 'LD_DYLIB_INSTALL_NAME': '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)', 'INFOPLIST_FILE': 'app/framework-Info.plist', }, 'includes': [ 'chrome_nibs.gypi', ], # TODO(mark): Come up with a fancier way to do this. It should # only be necessary to list framework-Info.plist once, not the # three times it is listed here. 'mac_bundle_resources': [ # This image is used to badge the lock icon in the # authentication dialogs, such as those used for installation # from disk image and Keystone promotion (if so enabled). It # needs to exist as a file on disk and not just something in a # resource bundle because that's the interface that # Authorization Services uses. Also, Authorization Services # can't deal with .icns files. 'app/theme/default_100_percent/<(theme_dir_name)/product_logo_32.png', 'app/framework-Info.plist', '<@(mac_all_xibs)', 'app/theme/find_next_Template.pdf', 'app/theme/find_prev_Template.pdf', 'app/theme/menu_overflow_down.pdf', 'app/theme/menu_overflow_up.pdf', 'browser/mac/install.sh', '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_100_percent.pak', '<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak', '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))', # Note: pseudo_locales are generated via the packed_resources # dependency but not copied to the final target. See # common.gypi for more info. ], 'mac_bundle_resources!': [ 'app/framework-Info.plist', ], 'dependencies': [ 'app_mode_app', # Bring in pdfsqueeze and run it on all pdfs '../build/temp_gyp/pdfsqueeze.gyp:pdfsqueeze', '../crypto/crypto.gyp:crypto', # On Mac, Flash gets put into the framework, so we need this # dependency here. flash_player.gyp will copy the Flash bundle # into PRODUCT_DIR. '../third_party/adobe/flash/flash_player.gyp:flapper_binaries', '../third_party/crashpad/crashpad/handler/handler.gyp:crashpad_handler', '../third_party/widevine/cdm/widevine_cdm.gyp:widevinecdmadapter', 'chrome_resources.gyp:packed_extra_resources', 'chrome_resources.gyp:packed_resources', ], 'rules': [ { 'rule_name': 'pdfsqueeze', 'extension': 'pdf', 'inputs': [ '<(PRODUCT_DIR)/pdfsqueeze', ], 'outputs': [ '<(INTERMEDIATE_DIR)/pdfsqueeze/<(RULE_INPUT_ROOT).pdf', ], 'action': ['<(PRODUCT_DIR)/pdfsqueeze', '<(RULE_INPUT_PATH)', '<@(_outputs)'], 'message': 'Running pdfsqueeze on <(RULE_INPUT_PATH)', }, ], 'variables': { 'theme_dir_name': '<(branding_path_component)', }, 'postbuilds': [ { # Modify the Info.plist as needed. The script explains why # this is needed. This is also done in the chrome target. # The framework needs the Breakpad keys if this feature is # enabled. It does not need the Keystone keys; these always # come from the outer application bundle. The framework # doesn't currently use the SCM keys for anything, # but this seems like a really good place to store them. 'postbuild_name': 'Tweak Info.plist', 'action': ['<(tweak_info_plist_path)', '--breakpad=<(mac_breakpad_compiled_in)', '--breakpad_uploads=<(mac_breakpad_uploads)', '--keystone=0', '--scm=1', '--branding=<(branding)'], }, { 'postbuild_name': 'Symlink Libraries', 'action': [ 'ln', '-fns', 'Versions/Current/Libraries', '${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Libraries' ], }, ], 'copies': [ { 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries', 'files': [ '<(PRODUCT_DIR)/exif.so', ], }, { 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Helpers', 'files': [ '<(PRODUCT_DIR)/crashpad_handler', ], }, { 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Internet Plug-Ins', 'files': [], 'conditions': [ ['disable_nacl!=1', { 'files': [ '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe', ], }], ], }, { 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Internet Plug-Ins/PepperFlash', 'files': [], 'conditions': [ ['branding == "Chrome"', { 'files': [ '<(PRODUCT_DIR)/PepperFlash/PepperFlashPlayer.plugin', ], }], ], }, { # This file is used by the component installer. # It is not a complete plugin on its own. 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Internet Plug-Ins/', 'files': [], 'conditions': [ ['branding == "Chrome"', { 'files': [ '<(PRODUCT_DIR)/widevinecdmadapter.plugin', ], }], ], }, { # Copy of resources used by tests. 'destination': '<(PRODUCT_DIR)', 'files': [ '<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak' ], }, { # Copy of resources used by tests. 'destination': '<(PRODUCT_DIR)/pseudo_locales', 'files': [ '<(SHARED_INTERMEDIATE_DIR)/<(pseudo_locales).pak' ], }, { 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources', 'files': [ # Loader bundle for platform apps. '<(PRODUCT_DIR)/app_mode_loader.app', ], }, ], 'conditions': [ ['branding=="Chrome"', { 'copies': [ { # This location is for the Mac build. Note that the # copying of these files for Windows and Linux is handled # in chrome.gyp, as Mac needs to be dropped inside the # framework. 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Default Apps', 'files': ['<@(default_apps_list)'], }, ], }], ['mac_breakpad==1', { 'variables': { # A real .dSYM is needed for dump_syms to operate on. 'mac_real_dsym': 1, }, }], ['mac_keystone==1', { 'mac_bundle_resources': [ 'browser/mac/keystone_promote_preflight.sh', 'browser/mac/keystone_promote_postflight.sh', ], 'postbuilds': [ { 'postbuild_name': 'Copy KeystoneRegistration.framework', 'action': [ '../build/mac/copy_framework_unversioned.sh', '-I', '../third_party/googlemac/Releases/Keystone/KeystoneRegistration.framework', '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks', ], }, { 'postbuild_name': 'Symlink Frameworks', 'action': [ 'ln', '-fns', 'Versions/Current/Frameworks', '${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Frameworks' ], }, ], }], # mac_keystone ['debug_devtools==1', { 'postbuilds': [{ 'postbuild_name': 'Copy inspector files', 'action': [ 'ln', '-fs', '${BUILT_PRODUCTS_DIR}/resources/inspector', '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Resources', ], }], }], ['enable_hidpi==1', { 'mac_bundle_resources': [ '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_200_percent.pak', ], }], ['icu_use_data_file_flag==1', { 'mac_bundle_resources': [ '<(PRODUCT_DIR)/icudtl.dat', ], }], ['v8_use_external_startup_data==1', { 'mac_bundle_resources': [ '<(PRODUCT_DIR)/natives_blob.bin', '<(PRODUCT_DIR)/snapshot_blob.bin', ], }], ], # conditions }
d69efc6966a7a0dd85157fa1130e54581402b0c7
2feb8dfebbf10ffd03f02bea643195c942ed6739
/list_doublesplits.py
e6f81a0f131079bc59c5d382b3d93bc6415a1860
[]
no_license
Prads16/PythonForEverybodyCourseraSpecialization
f961648eb1c92fe7cc41468c278589b151e59cab
997056b3de23ed1d01f6bb1c94c6b850c114368e
refs/heads/master
2021-04-12T05:02:42.912896
2018-03-27T18:53:26
2018-03-27T18:53:26
125,952,601
0
0
null
null
null
null
UTF-8
Python
false
false
807
py
#Open the file mbox-short.txt and read it line by line. When you find a line that #starts with 'From ' like the following line: #From [email protected] Sat Jan 5 09:14:16 2008 #You will parse the From line using split() and print out the second word in the #line (i.e. the entire address of the person who sent the message). Then print #out a count at the end. #Hint: make sure not to include the lines that start with 'From:'. fname = input("Enter file name: ") #if len(fname) < 1 : fname = "mbox-short.txt" fh = open(fname) count = 0 for line in fh: line = line.rstrip() if line.startswith('From') and not line.startswith('From:'): count = count + 1 words = line.split() print(words[1]) print("There were", count, "lines in the file with From as the first word")
1b3b643a9de2d0688ccc6fd43534603d811be2eb
927b50cdaf1c384c8bbf6f13816d0ba465852fd8
/machine_learning_models/ctscan_covid_prediction/cnn.py
61c6c1a50ac8a0e672cbe76c993cee29544e1ef9
[ "MIT" ]
permissive
jhabarsingh/DOCMED
f37d336483cffd874b0a7db43677c08a47bd639c
8a831886d3dd415020699491687fb73893e674c5
refs/heads/main
2023-04-26T06:45:10.409633
2021-05-19T14:37:53
2021-05-19T14:37:53
316,683,855
3
5
MIT
2021-02-21T13:32:33
2020-11-28T07:51:22
JavaScript
UTF-8
Python
false
false
2,926
py
import tensorflow as tf import keras import pandas as pd import numpy as np import zipfile import os from random import randint from keras.layers import Dense,Flatten,MaxPool2D,Conv2D,Dropout,GlobalAveragePooling2D from keras.losses import binary_crossentropy,categorical_crossentropy from keras.models import Model,Sequential import matplotlib.pyplot as plt from keras.preprocessing.image import ImageDataGenerator from keras.preprocessing.image import load_img,img_to_array classes = ['covid', 'normal', 'others'] train_df = pd.DataFrame(columns=['image','clas']) val_df = pd.DataFrame(columns=['image','clas']) for label in classes: images = f'./mini_natural_images/{label}' print(images) for image in os.listdir(images)[:-30]: train_df = train_df.append({'image':'./mini_natural_images/'+label+'/'+image,'clas':label},ignore_index=True) for image in os.listdir(images)[-30:]: val_df = val_df.append({'image':'./mini_natural_images/'+label+'/'+image,'clas':label},ignore_index=True) print(train_df) val_df.head() train_df.shape,val_df.shape train_datagen = ImageDataGenerator( rotation_range=40, width_shift_range=0.2, height_shift_range=0.2, shear_range=0.2, zoom_range=0.2, horizontal_flip=True, rescale=1/255, ) val_datagen = ImageDataGenerator( rescale=1/255 ) train_generator = train_datagen.flow_from_dataframe(train_df, x_col='image',y_col='clas',classes=classes) val_generator = val_datagen.flow_from_dataframe(val_df,x_col='image',y_col='clas',classes=classes) from keras.applications.inception_resnet_v2 import InceptionResNetV2 inceptionresnet = InceptionResNetV2(include_top=False, input_shape=(256,256,3),classes=3) inceptionresnet.trainable = False last_layer = inceptionresnet.layers[-1].output x = GlobalAveragePooling2D()(last_layer) x = Dense(3,activation='softmax')(x) model = Model(inceptionresnet.inputs,x) model.summary() model.compile(loss='categorical_crossentropy',optimizer=keras.optimizers.RMSprop(learning_rate=0.0001),metrics=['acc']) history = model.fit(train_generator,epochs=3,validation_data=val_generator) model.save("pickle.h5") acc = history.history['acc'] val_acc = history.history['val_acc'] loss = history.history['loss'] val_loss = history.history['val_loss'] epochs = range(len(acc)) plt.plot(epochs, loss, 'r', label='Training loss') plt.plot(epochs, val_loss, 'r', label='Validation loss') plt.plot(epochs, acc, 'r', label='Training accuracy') plt.plot(epochs, val_acc, 'b', label='Validation accuracy') plt.title('Training and validation accuracy') plt.legend(loc=0) plt.figure() plt.show() index = randint(1,val_df.shape[0]) image = val_df.iloc[index] img = load_img(image.image,target_size=(256,256)) plt.imshow(img) img_tensor = img_to_array(img) img_tensor = np.expand_dims(img_tensor, axis=0) img_tensor /= 255. prediction = model.predict(img_tensor) classes[np.argmax(prediction)]
745bcadbece4be250f6c1d6a9990da5454da9590
e79d0a9a8143e03705979d2f8ce78e278d2078c0
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_11_01/aio/operations/_virtual_network_gateways_operations.py
867d69b692014f5561a8e8d194099242c85628cf
[ "LGPL-2.1-or-later", "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
dannysijia/azure-sdk-for-python
f2c276600d1ba48620e8d1c73b57eb8e3c73e35a
71bd202f5261e7ce8b2db38bb9b6802f1a55a5dc
refs/heads/main
2023-08-22T04:15:24.519733
2021-11-01T08:25:59
2021-11-01T08:25:59
423,389,780
0
0
MIT
2021-11-01T08:25:28
2021-11-01T08:25:28
null
UTF-8
Python
false
false
83,933
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling from ... import models as _models T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] class VirtualNetworkGatewaysOperations: """VirtualNetworkGatewaysOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~azure.mgmt.network.v2017_11_01.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. """ models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config async def _create_or_update_initial( self, resource_group_name: str, virtual_network_gateway_name: str, parameters: "_models.VirtualNetworkGateway", **kwargs: Any ) -> "_models.VirtualNetworkGateway": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetworkGateway"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2017-11-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json, text/json" # Construct URL url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'VirtualNetworkGateway') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: deserialized = self._deserialize('VirtualNetworkGateway', pipeline_response) if response.status_code == 201: deserialized = self._deserialize('VirtualNetworkGateway', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}'} # type: ignore async def begin_create_or_update( self, resource_group_name: str, virtual_network_gateway_name: str, parameters: "_models.VirtualNetworkGateway", **kwargs: Any ) -> AsyncLROPoller["_models.VirtualNetworkGateway"]: """Creates or updates a virtual network gateway in the specified resource group. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. :type virtual_network_gateway_name: str :param parameters: Parameters supplied to create or update virtual network gateway operation. :type parameters: ~azure.mgmt.network.v2017_11_01.models.VirtualNetworkGateway :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualNetworkGateway or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.v2017_11_01.models.VirtualNetworkGateway] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetworkGateway"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, parameters=parameters, cls=lambda x,y,z: x, **kwargs ) kwargs.pop('error_map', None) kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): deserialized = self._deserialize('VirtualNetworkGateway', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: return AsyncLROPoller.from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}'} # type: ignore async def get( self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any ) -> "_models.VirtualNetworkGateway": """Gets the specified virtual network gateway by resource group. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. :type virtual_network_gateway_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: VirtualNetworkGateway, or the result of cls(response) :rtype: ~azure.mgmt.network.v2017_11_01.models.VirtualNetworkGateway :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetworkGateway"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2017-11-01" accept = "application/json, text/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize('VirtualNetworkGateway', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}'} # type: ignore async def _delete_initial( self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2017-11-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} # type: Dict[str, Any] request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}'} # type: ignore async def begin_delete( self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes the specified virtual network gateway. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. :type virtual_network_gateway_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, cls=lambda x,y,z: x, **kwargs ) kwargs.pop('error_map', None) kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: return AsyncLROPoller.from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}'} # type: ignore async def _update_tags_initial( self, resource_group_name: str, virtual_network_gateway_name: str, parameters: "_models.TagsObject", **kwargs: Any ) -> "_models.VirtualNetworkGateway": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetworkGateway"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2017-11-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json, text/json" # Construct URL url = self._update_tags_initial.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'TagsObject') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize('VirtualNetworkGateway', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized _update_tags_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}'} # type: ignore async def begin_update_tags( self, resource_group_name: str, virtual_network_gateway_name: str, parameters: "_models.TagsObject", **kwargs: Any ) -> AsyncLROPoller["_models.VirtualNetworkGateway"]: """Updates a virtual network gateway tags. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. :type virtual_network_gateway_name: str :param parameters: Parameters supplied to update virtual network gateway tags. :type parameters: ~azure.mgmt.network.v2017_11_01.models.TagsObject :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualNetworkGateway or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.v2017_11_01.models.VirtualNetworkGateway] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetworkGateway"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: raw_result = await self._update_tags_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, parameters=parameters, cls=lambda x,y,z: x, **kwargs ) kwargs.pop('error_map', None) kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): deserialized = self._deserialize('VirtualNetworkGateway', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: return AsyncLROPoller.from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}'} # type: ignore def list( self, resource_group_name: str, **kwargs: Any ) -> AsyncIterable["_models.VirtualNetworkGatewayListResult"]: """Gets all virtual network gateways by resource group. :param resource_group_name: The name of the resource group. :type resource_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either VirtualNetworkGatewayListResult or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.v2017_11_01.models.VirtualNetworkGatewayListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetworkGatewayListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2017-11-01" accept = "application/json, text/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL url = self.list.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): deserialized = self._deserialize('VirtualNetworkGatewayListResult', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged( get_next, extract_data ) list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways'} # type: ignore def list_connections( self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any ) -> AsyncIterable["_models.VirtualNetworkGatewayListConnectionsResult"]: """Gets all the connections in a virtual network gateway. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. :type virtual_network_gateway_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either VirtualNetworkGatewayListConnectionsResult or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.v2017_11_01.models.VirtualNetworkGatewayListConnectionsResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetworkGatewayListConnectionsResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2017-11-01" accept = "application/json, text/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL url = self.list_connections.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} # type: Dict[str, Any] request = self._client.get(url, query_parameters, header_parameters) return request async def extract_data(pipeline_response): deserialized = self._deserialize('VirtualNetworkGatewayListConnectionsResult', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged( get_next, extract_data ) list_connections.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/connections'} # type: ignore async def _reset_initial( self, resource_group_name: str, virtual_network_gateway_name: str, gateway_vip: Optional[str] = None, **kwargs: Any ) -> Optional["_models.VirtualNetworkGateway"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualNetworkGateway"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2017-11-01" accept = "application/json, text/json" # Construct URL url = self._reset_initial.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] if gateway_vip is not None: query_parameters['gatewayVip'] = self._serialize.query("gateway_vip", gateway_vip, 'str') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = None if response.status_code == 200: deserialized = self._deserialize('VirtualNetworkGateway', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized _reset_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/reset'} # type: ignore async def begin_reset( self, resource_group_name: str, virtual_network_gateway_name: str, gateway_vip: Optional[str] = None, **kwargs: Any ) -> AsyncLROPoller["_models.VirtualNetworkGateway"]: """Resets the primary of the virtual network gateway in the specified resource group. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. :type virtual_network_gateway_name: str :param gateway_vip: Virtual network gateway vip address supplied to the begin reset of the active-active feature enabled gateway. :type gateway_vip: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualNetworkGateway or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.v2017_11_01.models.VirtualNetworkGateway] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetworkGateway"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: raw_result = await self._reset_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, gateway_vip=gateway_vip, cls=lambda x,y,z: x, **kwargs ) kwargs.pop('error_map', None) kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): deserialized = self._deserialize('VirtualNetworkGateway', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: return AsyncLROPoller.from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_reset.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/reset'} # type: ignore async def _generatevpnclientpackage_initial( self, resource_group_name: str, virtual_network_gateway_name: str, parameters: "_models.VpnClientParameters", **kwargs: Any ) -> Optional[str]: cls = kwargs.pop('cls', None) # type: ClsType[Optional[str]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2017-11-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json, text/json" # Construct URL url = self._generatevpnclientpackage_initial.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'VpnClientParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = None if response.status_code == 200: deserialized = self._deserialize('str', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized _generatevpnclientpackage_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnclientpackage'} # type: ignore async def begin_generatevpnclientpackage( self, resource_group_name: str, virtual_network_gateway_name: str, parameters: "_models.VpnClientParameters", **kwargs: Any ) -> AsyncLROPoller[str]: """Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. :type virtual_network_gateway_name: str :param parameters: Parameters supplied to the generate virtual network gateway VPN client package operation. :type parameters: ~azure.mgmt.network.v2017_11_01.models.VpnClientParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either str or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[str] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: raw_result = await self._generatevpnclientpackage_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, parameters=parameters, cls=lambda x,y,z: x, **kwargs ) kwargs.pop('error_map', None) kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): deserialized = self._deserialize('str', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: return AsyncLROPoller.from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_generatevpnclientpackage.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnclientpackage'} # type: ignore async def _generate_vpn_profile_initial( self, resource_group_name: str, virtual_network_gateway_name: str, parameters: "_models.VpnClientParameters", **kwargs: Any ) -> Optional[str]: cls = kwargs.pop('cls', None) # type: ClsType[Optional[str]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2017-11-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json, text/json" # Construct URL url = self._generate_vpn_profile_initial.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'VpnClientParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = None if response.status_code == 200: deserialized = self._deserialize('str', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized _generate_vpn_profile_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnprofile'} # type: ignore async def begin_generate_vpn_profile( self, resource_group_name: str, virtual_network_gateway_name: str, parameters: "_models.VpnClientParameters", **kwargs: Any ) -> AsyncLROPoller[str]: """Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for IKEV2 and radius based authentication. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. :type virtual_network_gateway_name: str :param parameters: Parameters supplied to the generate virtual network gateway VPN client package operation. :type parameters: ~azure.mgmt.network.v2017_11_01.models.VpnClientParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either str or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[str] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: raw_result = await self._generate_vpn_profile_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, parameters=parameters, cls=lambda x,y,z: x, **kwargs ) kwargs.pop('error_map', None) kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): deserialized = self._deserialize('str', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: return AsyncLROPoller.from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_generate_vpn_profile.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnprofile'} # type: ignore async def _get_vpn_profile_package_url_initial( self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any ) -> Optional[str]: cls = kwargs.pop('cls', None) # type: ClsType[Optional[str]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2017-11-01" accept = "application/json, text/json" # Construct URL url = self._get_vpn_profile_package_url_initial.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = None if response.status_code == 200: deserialized = self._deserialize('str', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized _get_vpn_profile_package_url_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnprofilepackageurl'} # type: ignore async def begin_get_vpn_profile_package_url( self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any ) -> AsyncLROPoller[str]: """Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The profile needs to be generated first using generateVpnProfile. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. :type virtual_network_gateway_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either str or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[str] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: raw_result = await self._get_vpn_profile_package_url_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, cls=lambda x,y,z: x, **kwargs ) kwargs.pop('error_map', None) kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): deserialized = self._deserialize('str', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: return AsyncLROPoller.from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_get_vpn_profile_package_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnprofilepackageurl'} # type: ignore async def _get_bgp_peer_status_initial( self, resource_group_name: str, virtual_network_gateway_name: str, peer: Optional[str] = None, **kwargs: Any ) -> Optional["_models.BgpPeerStatusListResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.BgpPeerStatusListResult"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2017-11-01" accept = "application/json, text/json" # Construct URL url = self._get_bgp_peer_status_initial.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] if peer is not None: query_parameters['peer'] = self._serialize.query("peer", peer, 'str') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = None if response.status_code == 200: deserialized = self._deserialize('BgpPeerStatusListResult', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized _get_bgp_peer_status_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getBgpPeerStatus'} # type: ignore async def begin_get_bgp_peer_status( self, resource_group_name: str, virtual_network_gateway_name: str, peer: Optional[str] = None, **kwargs: Any ) -> AsyncLROPoller["_models.BgpPeerStatusListResult"]: """The GetBgpPeerStatus operation retrieves the status of all BGP peers. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. :type virtual_network_gateway_name: str :param peer: The IP address of the peer to retrieve the status of. :type peer: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either BgpPeerStatusListResult or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.v2017_11_01.models.BgpPeerStatusListResult] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.BgpPeerStatusListResult"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: raw_result = await self._get_bgp_peer_status_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, peer=peer, cls=lambda x,y,z: x, **kwargs ) kwargs.pop('error_map', None) kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): deserialized = self._deserialize('BgpPeerStatusListResult', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: return AsyncLROPoller.from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_get_bgp_peer_status.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getBgpPeerStatus'} # type: ignore async def supported_vpn_devices( self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any ) -> str: """Gets a xml format representation for supported vpn devices. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. :type virtual_network_gateway_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: str, or the result of cls(response) :rtype: str :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType[str] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2017-11-01" accept = "application/json, text/json" # Construct URL url = self.supported_vpn_devices.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize('str', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized supported_vpn_devices.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/supportedvpndevices'} # type: ignore async def _get_learned_routes_initial( self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any ) -> Optional["_models.GatewayRouteListResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GatewayRouteListResult"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2017-11-01" accept = "application/json, text/json" # Construct URL url = self._get_learned_routes_initial.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = None if response.status_code == 200: deserialized = self._deserialize('GatewayRouteListResult', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized _get_learned_routes_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getLearnedRoutes'} # type: ignore async def begin_get_learned_routes( self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any ) -> AsyncLROPoller["_models.GatewayRouteListResult"]: """This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from BGP peers. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. :type virtual_network_gateway_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GatewayRouteListResult or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.v2017_11_01.models.GatewayRouteListResult] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.GatewayRouteListResult"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: raw_result = await self._get_learned_routes_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, cls=lambda x,y,z: x, **kwargs ) kwargs.pop('error_map', None) kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): deserialized = self._deserialize('GatewayRouteListResult', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: return AsyncLROPoller.from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_get_learned_routes.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getLearnedRoutes'} # type: ignore async def _get_advertised_routes_initial( self, resource_group_name: str, virtual_network_gateway_name: str, peer: str, **kwargs: Any ) -> Optional["_models.GatewayRouteListResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GatewayRouteListResult"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2017-11-01" accept = "application/json, text/json" # Construct URL url = self._get_advertised_routes_initial.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['peer'] = self._serialize.query("peer", peer, 'str') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = None if response.status_code == 200: deserialized = self._deserialize('GatewayRouteListResult', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized _get_advertised_routes_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getAdvertisedRoutes'} # type: ignore async def begin_get_advertised_routes( self, resource_group_name: str, virtual_network_gateway_name: str, peer: str, **kwargs: Any ) -> AsyncLROPoller["_models.GatewayRouteListResult"]: """This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. :type virtual_network_gateway_name: str :param peer: The IP address of the peer. :type peer: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GatewayRouteListResult or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.v2017_11_01.models.GatewayRouteListResult] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.GatewayRouteListResult"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: raw_result = await self._get_advertised_routes_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, peer=peer, cls=lambda x,y,z: x, **kwargs ) kwargs.pop('error_map', None) kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): deserialized = self._deserialize('GatewayRouteListResult', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: return AsyncLROPoller.from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_get_advertised_routes.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getAdvertisedRoutes'} # type: ignore async def vpn_device_configuration_script( self, resource_group_name: str, virtual_network_gateway_connection_name: str, parameters: "_models.VpnDeviceScriptParameters", **kwargs: Any ) -> str: """Gets a xml format representation for vpn device configuration script. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param virtual_network_gateway_connection_name: The name of the virtual network gateway connection for which the configuration script is generated. :type virtual_network_gateway_connection_name: str :param parameters: Parameters supplied to the generate vpn device script operation. :type parameters: ~azure.mgmt.network.v2017_11_01.models.VpnDeviceScriptParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: str, or the result of cls(response) :rtype: str :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType[str] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2017-11-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json, text/json" # Construct URL url = self.vpn_device_configuration_script.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'virtualNetworkGatewayConnectionName': self._serialize.url("virtual_network_gateway_connection_name", virtual_network_gateway_connection_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'VpnDeviceScriptParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize('str', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized vpn_device_configuration_script.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/vpndeviceconfigurationscript'} # type: ignore
7d7cada6debb9f178ad60a991eb6e7cb110ccb8e
dcda5ba16474dd8ff650e04e7f4a9bf700f6a9ff
/shop/admin.py
35ea34c67b82499abed52b603a899222fbc1937b
[]
no_license
007vict/shopbyexample
2084d6e53faafb5c7e856cc8b3a5ff43bc3a82e2
bc7dcfe5818499731c3cbf956c9c0b95cf3791da
refs/heads/master
2022-12-21T13:05:08.425653
2019-04-10T10:30:41
2019-04-10T10:30:41
177,291,341
0
0
null
2022-12-08T04:58:00
2019-03-23T13:18:59
JavaScript
UTF-8
Python
false
false
667
py
from django.contrib import admin from .models import Category, Product from parler.admin import TranslatableAdmin @admin.register(Category) class CategoryAdmin(TranslatableAdmin): list_display = ['name', 'slug'] def get_prepopulated_fields(self, request, obj=None): return {'slug': ('name',)} @admin.register(Product) class ProductAdmin(TranslatableAdmin): list_display = ['name', 'slug', 'price', 'available', 'created', 'updated'] list_filter = ['available', 'created', 'updated'] list_editable = ['price', 'available'] def get_prepopulated_fields(self, request, obj=None): return {'slug': ('name',)}
616df77085bb95807dd89413c1aa21dd7e7250a7
442ccaa620eb22d51378a45941d021b44d7cde98
/src/courses/admin.py
daed5cd7fc1160232f05616b0ed9cc628995f6df
[]
no_license
achiengcindy/supreme-school
43884b3c34fcac51d8f6ab4df38ee923f473fec9
c3777cb5f63ec41a167f87f0c7ec6a575e88ff0b
refs/heads/master
2021-01-16T01:57:01.590225
2020-03-26T01:40:14
2020-03-26T01:40:14
242,935,025
0
0
null
null
null
null
UTF-8
Python
false
false
587
py
from django.contrib import admin from .models import Subject, Course, Module # Register your models here. @admin.register(Subject) class SubjectAdmin(admin.ModelAdmin): list_display = ['title', 'slug'] prepopulated_fields = {'slug': ('title',)} class ModuleInline(admin.StackedInline): model = Module @admin.register(Course) class CourseAdmin(admin.ModelAdmin): list_display = ['title', 'subject', 'created'] list_filter = ['created', 'subject'] search_fields = ['title', 'overview'] prepopulated_fields = {'slug': ('title',)} inlines = [ModuleInline]
259eb83402332534b5d99c0a6e094279776f1915
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-gsn-edf/gsn-edf_ut=3.5_rd=0.65_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=73/params.py
885ca21da69a7e1b42cd2a69b712f6a68b7f435e
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
255
py
{'cpus': 4, 'duration': 30, 'final_util': '3.532857', 'max_util': '3.5', 'periods': 'harmonic-2', 'release_master': False, 'res_distr': '0.65', 'res_nmb': '4', 'res_weight': '0.04', 'scheduler': 'GSN-EDF', 'trial': 73, 'utils': 'uni-medium-3'}
3f52dd08607f49f62ba2a9fcf0763299051fc089
4c7fc810eb442b386969bf345b4dc6ef3152c783
/src/transformers/models/pegasus/configuration_pegasus.py
ae5f8f007573b77a2c22f667698e25ef5bd39b3e
[ "Apache-2.0" ]
permissive
newcodevelop/transformers
fbcef5d703b12febf6e76e84e3f0493769fb9d37
e8d1bd7427021d2114ec159b2c90c6b1fcddeae7
refs/heads/main
2023-03-15T11:45:09.906184
2022-08-30T07:26:17
2022-08-30T07:26:17
254,360,734
0
1
Apache-2.0
2020-04-09T12:07:09
2020-04-09T12:07:08
null
UTF-8
Python
false
false
7,868
py
# coding=utf-8 # Copyright 2021, Google and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """ PEGASUS model configuration""" from ...configuration_utils import PretrainedConfig from ...utils import logging logger = logging.get_logger(__name__) PEGASUS_PRETRAINED_CONFIG_ARCHIVE_MAP = { "google/pegasus-large": "https://huggingface.co/google/pegasus-large/resolve/main/config.json", # See all PEGASUS models at https://huggingface.co/models?filter=pegasus } class PegasusConfig(PretrainedConfig): r""" This is the configuration class to store the configuration of a [`PegasusModel`]. It is used to instantiate an PEGASUS model according to the specified arguments, defining the model architecture. Instantiating a configuration with the defaults will yield a similar configuration to that of the PEGASUS [google/pegasus-large](https://huggingface.co/google/pegasus-large) architecture. Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the documentation from [`PretrainedConfig`] for more information. Args: vocab_size (`int`, *optional*, defaults to 50265): Vocabulary size of the PEGASUS model. Defines the number of different tokens that can be represented by the `inputs_ids` passed when calling [`PegasusModel`] or [`TFPegasusModel`]. d_model (`int`, *optional*, defaults to 1024): Dimensionality of the layers and the pooler layer. encoder_layers (`int`, *optional*, defaults to 12): Number of encoder layers. decoder_layers (`int`, *optional*, defaults to 12): Number of decoder layers. encoder_attention_heads (`int`, *optional*, defaults to 16): Number of attention heads for each attention layer in the Transformer encoder. decoder_attention_heads (`int`, *optional*, defaults to 16): Number of attention heads for each attention layer in the Transformer decoder. decoder_ffn_dim (`int`, *optional*, defaults to 4096): Dimensionality of the "intermediate" (often named feed-forward) layer in decoder. encoder_ffn_dim (`int`, *optional*, defaults to 4096): Dimensionality of the "intermediate" (often named feed-forward) layer in decoder. activation_function (`str` or `function`, *optional*, defaults to `"gelu"`): The non-linear activation function (function or string) in the encoder and pooler. If string, `"gelu"`, `"relu"`, `"silu"` and `"gelu_new"` are supported. dropout (`float`, *optional*, defaults to 0.1): The dropout probability for all fully connected layers in the embeddings, encoder, and pooler. attention_dropout (`float`, *optional*, defaults to 0.0): The dropout ratio for the attention probabilities. activation_dropout (`float`, *optional*, defaults to 0.0): The dropout ratio for activations inside the fully connected layer. classifier_dropout (`float`, *optional*, defaults to 0.0): The dropout ratio for classifier. max_position_embeddings (`int`, *optional*, defaults to 1024): The maximum sequence length that this model might ever be used with. Typically set this to something large just in case (e.g., 512 or 1024 or 2048). init_std (`float`, *optional*, defaults to 0.02): The standard deviation of the truncated_normal_initializer for initializing all weight matrices. encoder_layerdrop (`float`, *optional*, defaults to 0.0): The LayerDrop probability for the encoder. See the [LayerDrop paper](see https://arxiv.org/abs/1909.11556) for more details. decoder_layerdrop (`float`, *optional*, defaults to 0.0): The LayerDrop probability for the decoder. See the [LayerDrop paper](see https://arxiv.org/abs/1909.11556) for more details. scale_embedding (`bool`, *optional*, defaults to `False`): Scale embeddings by diving by sqrt(d_model). use_cache (`bool`, *optional*, defaults to `True`): Whether or not the model should return the last key/values attentions (not used by all models) forced_eos_token_id (`int`, *optional*, defaults to 1): The id of the token to force as the last generated token when `max_length` is reached. Usually set to `eos_token_id`. Example: ```python >>> from transformers import PegasusModel, PegasusConfig >>> # Initializing a PEGASUS google/pegasus-large style configuration >>> configuration = PegasusConfig() >>> # Initializing a model from the google/pegasus-large style configuration >>> model = PegasusModel(configuration) >>> # Accessing the model configuration >>> configuration = model.config ```""" model_type = "pegasus" keys_to_ignore_at_inference = ["past_key_values"] attribute_map = {"num_attention_heads": "encoder_attention_heads", "hidden_size": "d_model"} def __init__( self, vocab_size=50265, max_position_embeddings=1024, encoder_layers=12, encoder_ffn_dim=4096, encoder_attention_heads=16, decoder_layers=12, decoder_ffn_dim=4096, decoder_attention_heads=16, encoder_layerdrop=0.0, decoder_layerdrop=0.0, use_cache=True, is_encoder_decoder=True, activation_function="gelu", d_model=1024, dropout=0.1, attention_dropout=0.0, activation_dropout=0.0, init_std=0.02, decoder_start_token_id=0, classifier_dropout=0.0, scale_embedding=False, pad_token_id=0, eos_token_id=1, forced_eos_token_id=1, **kwargs ): self.vocab_size = vocab_size self.max_position_embeddings = max_position_embeddings self.d_model = d_model self.encoder_ffn_dim = encoder_ffn_dim self.encoder_layers = encoder_layers self.encoder_attention_heads = encoder_attention_heads self.decoder_ffn_dim = decoder_ffn_dim self.decoder_layers = decoder_layers self.decoder_attention_heads = decoder_attention_heads self.dropout = dropout self.attention_dropout = attention_dropout self.activation_dropout = activation_dropout self.activation_function = activation_function self.init_std = init_std self.encoder_layerdrop = encoder_layerdrop self.decoder_layerdrop = decoder_layerdrop self.classifier_dropout = classifier_dropout self.use_cache = use_cache self.num_hidden_layers = encoder_layers self.scale_embedding = scale_embedding # scale factor will be sqrt(d_model) if True super().__init__( pad_token_id=pad_token_id, eos_token_id=eos_token_id, is_encoder_decoder=is_encoder_decoder, decoder_start_token_id=decoder_start_token_id, forced_eos_token_id=forced_eos_token_id, **kwargs, ) @property def num_attention_heads(self) -> int: return self.encoder_attention_heads @property def hidden_size(self) -> int: return self.d_model
c7bf6347a9483578c151ba6fdf82003fc374d7ff
f3b233e5053e28fa95c549017bd75a30456eb50c
/ptp1b_input/L82/82-80_MD_NVT_rerun/set_2.py
418a71c6ac0ba7775d409fa90b0c3d5147873a7b
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
741
py
import os dir = '/mnt/scratch/songlin3/run/ptp1b/L82/MD_NVT_rerun/ti_one-step/82_80/' filesdir = dir + 'files/' temp_prodin = filesdir + 'temp_prod_2.in' temp_pbs = filesdir + 'temp_2.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j in lambd: os.chdir("%6.5f" %(j)) workdir = dir + "%6.5f" %(j) + '/' #prodin prodin = workdir + "%6.5f_prod_2.in" %(j) os.system("cp %s %s" %(temp_prodin, prodin)) os.system("sed -i 's/XXX/%6.5f/g' %s" %(j, prodin)) #PBS pbs = workdir + "%6.5f_2.pbs" %(j) os.system("cp %s %s" %(temp_pbs, pbs)) os.system("sed -i 's/XXX/%6.5f/g' %s" %(j, pbs)) #submit pbs #os.system("qsub %s" %(pbs)) os.chdir(dir)
68b3cec1b5512d4fcda2395d608d5ebd33c2902e
3284ba582d3f43a2e4ec7ae8e024bea77cc28a1f
/venv/Scripts/easy_install-script.py
3fb5bc1ddb5edb3ae60e2577ce2967b7a1e385f0
[]
no_license
Rubensrvsc/Search-keyword
f00b9687a607cde169abef1bb73c4d6bf6ba07d6
b7f0c31d0157d9784dfbe5be9140072b8dcbabb1
refs/heads/master
2020-03-29T20:52:45.826118
2018-10-02T18:26:32
2018-10-02T18:26:32
150,336,409
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
#!C:\Users\ruben\PycharmProjects\Search-keyword\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit( load_entry_point('setuptools==39.1.0', 'console_scripts', 'easy_install')() )
4b22873ba2b86ee6f8f353268dab2f9cda56c13c
d77c8e7d5ec57940a2e1ee0e9836fb6181b0e051
/user.py
ff88009a1f188531003aede35af3ba5cdd19b583
[]
no_license
ultralegendary/Git-RPG
6111ea5bb25ecbd5d86d4a577935e8aa0fc40f15
db3caeea635a56303a971a4ee6488de7963a5aa2
refs/heads/master
2023-03-21T14:15:18.612195
2021-03-14T14:06:57
2021-03-14T14:06:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,458
py
import sqlite3 import os """Db structure: { user_name = ... file_path = ... level = { lvl_no: ["init","commit",....], } """ basepath = os.path.join(os.path.dirname(os.path.realpath(__file__)), "user.sqlite3") class User: def __init__(self, path=None): """Takes a file-path""" if path is None: path = basepath self.db = sqlite3.connect(path) self.cursor = self.db.cursor() if ( self.db.execute( "SELECT name FROM sqlite_master WHERE type='table' AND name='Users';" ).fetchone() == None ): self.cursor.execute( "create table if not exists Users (id integer primary key autoincrement, path text, level int, sublevel int)" ) self.cursor.execute("insert into Users values (1,NULL,1,1)") self.db.commit() def update(self, item: dict): if len(item) > 1: safe_text = ", ".join(f"{i} = ?" for i in item.keys()) else: safe_text = " ".join(f"{i} = ?" for i in item.keys()) res = self.cursor.execute(f"update Users set {safe_text} where id=1", tuple(item.values())) self.db.commit() return res def get(self, item): res = self.cursor.execute(f"select {item} from Users where id=1").fetchone() if len(res) > 1: return res else: return res[0]
422b89a625e8ed71bceb6edd8df9b18591547f09
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/codeabbey/_CodeAbbeyPythonSolutions-master/matching_brackets.py
6e1fa02b64da38699b6c5780bcf0007efcd986dd
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
745
py
_______ __ amount_values i..(input results # list ___ is_matching(word word __.sub _ [^()[\]{}<>]","",word) open_brackets ["[","(","{","<"] close_brackets ["]",")","}",">"] open_brackets_in_word = # list ___ i __ word: __(i __ open_brackets open_brackets_in_word.a..(i) ____(i __ close_brackets __(l..(open_brackets_in_word) __ 0 r.. 0 __(open_brackets.i.. open_brackets_in_word[-1]) !_ close_brackets.i.. i: r.. 0 ____ open_brackets_in_word.p.. ) __(l..(open_brackets_in_word) > 0 r.. 0 r.. 1 ___ i __ r..(amount_values word i.. ) results.a..(is_matching(word print(*results)
6f16a1c2b4dac3fc4a91743e308c6b7a3bc0d011
c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd
/google/cloud/bigquery/storage/v1/bigquery-storage-v1-py/setup.py
f20749fb5fe943b8d9cce3d3b649c3f8f26a9e70
[ "Apache-2.0" ]
permissive
dizcology/googleapis-gen
74a72b655fba2565233e5a289cfaea6dc7b91e1a
478f36572d7bcf1dc66038d0e76b9b3fa2abae63
refs/heads/master
2023-06-04T15:51:18.380826
2021-06-16T20:42:38
2021-06-16T20:42:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,802
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # import io import os import setuptools # type: ignore version = '0.1.0' package_root = os.path.abspath(os.path.dirname(__file__)) readme_filename = os.path.join(package_root, 'README.rst') with io.open(readme_filename, encoding='utf-8') as readme_file: readme = readme_file.read() setuptools.setup( name='google-cloud-bigquery-storage', version=version, long_description=readme, packages=setuptools.PEP420PackageFinder.find(), namespace_packages=('google', 'google.cloud'), platforms='Posix; MacOS X; Windows', include_package_data=True, install_requires=( 'google-api-core[grpc] >= 1.22.2, < 2.0.0dev', 'libcst >= 0.2.5', 'proto-plus >= 1.15.0', 'packaging >= 14.3', ), python_requires='>=3.6', classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Topic :: Internet', 'Topic :: Software Development :: Libraries :: Python Modules', ], zip_safe=False, )
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
29fe8a900520b7b684149b1f22f380300671c0f6
0fd2b832673946c9ee532686a2a35bf2680f8408
/CybORG/CybORG/Shared/Results.py
59e18af053e39645c2884ab3d8a515ea1d15a00f
[ "MIT" ]
permissive
pvu1984/cage-challenge-2
4e57bad7bc30c7df2b90c2fabc8395a5f2a3e65c
e76722dcd79a6b7511e185cde34fac1e0b45720e
refs/heads/main
2023-09-02T15:11:32.072215
2021-11-12T02:33:19
2021-11-12T02:33:19
429,307,660
0
0
MIT
2021-11-18T05:27:36
2021-11-18T05:27:35
null
UTF-8
Python
false
false
2,588
py
# Copyright DST Group. Licensed under the MIT license. import pprint from copy import deepcopy from CybORG.Shared.Observation import Observation class Results: def __init__(self, observation: dict = None, done: bool = None, reward: float = None, info=None, parameter_mask=None, action_space=None, error: Exception = None, error_msg: str = None, next_observation=None, action=None, action_name: str = None): self.observation = observation self.next_observation = next_observation self.done = done self.reward = reward self.action = action self.info = info self.parameter_mask = parameter_mask self.action_space = action_space self.error = error self.error_msg = error_msg self.action_name = action_name self.selection_masks = None def has_error(self): return self.error is not None def copy(self): copy_kwargs = { "done": self.done, "reward": self.reward, "error": deepcopy(self.error), "error_msg": deepcopy(self.error_msg), "action": deepcopy(self.action), "info": deepcopy(self.info), "action_space": deepcopy(self.action_space) } if isinstance(self.observation, Observation): copy_kwargs["observation"] = self.observation.copy() else: copy_kwargs["observation"] = deepcopy(self.observation) if isinstance(self.next_observation, Observation): copy_kwargs["next_observation"] = self.next_observation.copy() else: copy_kwargs["next_observation"] = deepcopy(self.next_observation) return Results(**copy_kwargs) def __str__(self): output = [f"{self.__class__.__name__}:"] for attr, v in self.__dict__.items(): if v is None: continue if isinstance(v, dict): v_str = pprint.pformat(v) else: v_str = str(v) output.append(f"{attr}={v_str}") return "\n".join(output) def __eq__(self, other): if not isinstance(other, type(self)): return False for k, v in self.__dict__.items(): if k not in other.__dict__: return False if v != other.__dict__[k]: return False return True
94d3ea0be5e02f307d069584e4530c7fdc6abeaa
79baf4404e51bdc0f33038b3b16bea86ff09e82f
/azext_iot/central/providers/export_provider.py
d5199774472543a2fd7b5a3ccb8a34bb9aa676be
[ "MIT" ]
permissive
Azure/azure-iot-cli-extension
80b6cb29e907f7512c7361a85d6bfdea5ae2dd9e
bdbe65c3874ff632c2eba25c762e9ea8e9175b5f
refs/heads/dev
2023-09-04T10:57:16.118442
2023-08-28T17:12:05
2023-08-28T17:12:05
103,456,760
95
80
NOASSERTION
2023-09-13T00:02:54
2017-09-13T22:04:36
Python
UTF-8
Python
false
false
4,040
py
# coding=utf-8 # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- from typing import List, Union from knack.log import get_logger from azure.cli.core.azclierror import AzureResponseError, ClientRequestError, ResourceNotFoundError from azext_iot.central.providers.central_provider import CentralProvider from azext_iot.constants import CENTRAL_ENDPOINT from azext_iot.central import services as central_services from azext_iot.central.models.v2022_06_30_preview import ExportPreview logger = get_logger(__name__) class CentralExportProvider(CentralProvider): def __init__(self, cmd, app_id: str, api_version: str, token=None): super().__init__(cmd, app_id, api_version, token=token) self._exports = {} def list_exports( self, central_dns_suffix=CENTRAL_ENDPOINT ) -> List[Union[dict, ExportPreview]]: exports = central_services.export.list_exports( cmd=self._cmd, app_id=self._app_id, token=self._token, central_dns_suffix=central_dns_suffix, api_version=self._api_version, ) # add to cache for export in exports: self._exports.update({export["id"]: export}) return exports def add_export( self, export_id, payload, central_dnx_suffix=CENTRAL_ENDPOINT ) -> Union[dict, ExportPreview]: if export_id in self._exports: raise ClientRequestError("Destination already exists") export = central_services.export.add_export( self._cmd, self._app_id, export_id=export_id, payload=payload, token=self._token, api_version=self._api_version, central_dns_suffix=central_dnx_suffix, ) if not export: raise AzureResponseError("Failed to create export with id: '{}'.".format(export_id)) # add to cache self._exports[export["id"]] = export return export def update_export( self, export_id, payload, central_dnx_suffix=CENTRAL_ENDPOINT ) -> Union[dict, ExportPreview]: export = central_services.export.update_export( self._cmd, self._app_id, export_id=export_id, payload=payload, token=self._token, api_version=self._api_version, central_dns_suffix=central_dnx_suffix, ) if not export: raise AzureResponseError("Failed to create export with id: '{}'.".format(export_id)) # add to cache self._exports[export_id] = export return export def get_export( self, export_id, central_dnx_suffix=CENTRAL_ENDPOINT ) -> Union[dict, ExportPreview]: # get or add to cache export = self._exports.get(export_id) if not export: export = central_services.export.get_export( cmd=self._cmd, app_id=self._app_id, token=self._token, api_version=self._api_version, export_id=export_id, central_dns_suffix=central_dnx_suffix, ) if not export: raise ResourceNotFoundError("No export found with id: '{}'.".format(export_id)) else: self._exports[export_id] = export return export def delete_export(self, export_id, central_dnx_suffix=CENTRAL_ENDPOINT): central_services.export.delete_export( cmd=self._cmd, app_id=self._app_id, token=self._token, api_version=self._api_version, export_id=export_id, central_dns_suffix=central_dnx_suffix, ) self._exports.pop(export_id, None)
9293d417b66ad07a3eb2ecf542809cd46dfaa542
7cb322bfb75500e1627f0d6306789f0c3c59e83f
/django_eveonline_connector/signals.py
e09bb78e636047511d0260cf337617d72affeb7a
[ "MIT" ]
permissive
Demieno/django-eveonline-connector
9e0cfc6b091d408407544d4486cc5d7ffcf9c3f4
7aa47440b5a4df19545c3499d63e39f202f46c61
refs/heads/master
2020-12-14T03:45:15.594067
2020-01-02T20:57:27
2020-01-02T20:57:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
678
py
from django.contrib.auth.models import User, Group from django_eveonline_connector.models import EveScope, EveClient from django.dispatch import receiver from django.db.models.signals import post_delete, post_save from django.db import transaction from django.core.exceptions import PermissionDenied import logging logger = logging.getLogger(__name__) @receiver(post_save, sender=EveScope) def scope_save(sender, **kwargs): def call(): EveClient.get_instance().save() transaction.on_commit(call) @receiver(post_delete, sender=EveScope) def scope_delete(sender, **kwargs): def call(): EveClient.get_instance().save() transaction.on_commit(call)
2fb7cc835fea101c3497563093dc6b59a9d34543
1afa6c852dfc922d1a26a384d965976f31a87692
/Common/ComputationalGeometry/Testing/Python/CSpline.py
e7feea105e904f590ff75a762cdd74fb4e846c28
[ "BSD-3-Clause" ]
permissive
dgobbi/VTK
631d037aacc7258861e70f77c586b01cd4ebff3f
17f232ee440025c26bc78a897edef78e9fc78510
refs/heads/master
2021-01-04T22:27:46.611907
2013-03-01T19:44:02
2013-03-01T19:44:02
938,377
0
2
null
null
null
null
UTF-8
Python
false
false
4,097
py
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Now create the RenderWindow, Renderer and Interactor # ren1 = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren1) iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) math = vtk.vtkMath() numberOfInputPoints = 30 aSplineX = vtk.vtkCardinalSpline() aSplineY = vtk.vtkCardinalSpline() aSplineZ = vtk.vtkCardinalSpline() # generate random points inputPoints = vtk.vtkPoints() i = 0 while i < numberOfInputPoints: x = math.Random(0,1) y = math.Random(0,1) z = math.Random(0,1) aSplineX.AddPoint(i,x) aSplineY.AddPoint(i,y) aSplineZ.AddPoint(i,z) inputPoints.InsertPoint(i,x,y,z) i = i + 1 inputData = vtk.vtkPolyData() inputData.SetPoints(inputPoints) balls = vtk.vtkSphereSource() balls.SetRadius(.01) balls.SetPhiResolution(10) balls.SetThetaResolution(10) glyphPoints = vtk.vtkGlyph3D() glyphPoints.SetInputData(inputData) glyphPoints.SetSourceConnection(balls.GetOutputPort()) glyphMapper = vtk.vtkPolyDataMapper() glyphMapper.SetInputConnection(glyphPoints.GetOutputPort()) glyph = vtk.vtkActor() glyph.SetMapper(glyphMapper) glyph.GetProperty().SetDiffuseColor(1,0.4,0.4) glyph.GetProperty().SetSpecular(.3) glyph.GetProperty().SetSpecularPower(30) ren1.AddActor(glyph) # create a polyline points = vtk.vtkPoints() profileData = vtk.vtkPolyData() numberOfOutputPoints = 400 offset = 1.0 def fit (__vtk__temp0=0,__vtk__temp1=0): global numberOfInputPoints, numberOfOutputPoints, offset points.Reset() i = 0 while i < numberOfOutputPoints: t = expr.expr(globals(), locals(),["(","numberOfInputPoints","-","offset",")","/","(","numberOfOutputPoints","-","1",")","*","i"]) points.InsertPoint(i,aSplineX.Evaluate(t),aSplineY.Evaluate(t),aSplineZ.Evaluate(t)) i = i + 1 profileData.Modified() fit() lines = vtk.vtkCellArray() lines.InsertNextCell(numberOfOutputPoints) i = 0 while i < numberOfOutputPoints: lines.InsertCellPoint(i) i = i + 1 profileData.SetPoints(points) profileData.SetLines(lines) profileTubes = vtk.vtkTubeFilter() profileTubes.SetNumberOfSides(8) profileTubes.SetInputData(profileData) profileTubes.SetRadius(.005) profileMapper = vtk.vtkPolyDataMapper() profileMapper.SetInputConnection(profileTubes.GetOutputPort()) profile = vtk.vtkActor() profile.SetMapper(profileMapper) profile.GetProperty().SetDiffuseColor(1,1,0.6) profile.GetProperty().SetSpecular(.3) profile.GetProperty().SetSpecularPower(30) ren1.AddActor(profile) ren1.ResetCamera() ren1.GetActiveCamera().Dolly(1.5) ren1.ResetCameraClippingRange() renWin.SetSize(400,400) # render the image # iren.Initialize() def opened (__vtk__temp0=0,__vtk__temp1=0): global offset offset = 1.0 aSplineX.ClosedOff() aSplineY.ClosedOff() aSplineZ.ClosedOff() fit() renWin.Render() def varyLeft (__vtk__temp0=0,__vtk__temp1=0): left = -1 while left <= 1: aSplineX.SetLeftValue(left) aSplineY.SetLeftValue(left) aSplineZ.SetLeftValue(left) fit() renWin.Render() left = expr.expr(globals(), locals(),["left","+",".05"]) def varyRight (__vtk__temp0=0,__vtk__temp1=0): right = -1 while right <= 1: aSplineX.SetRightValue(right) aSplineY.SetRightValue(right) aSplineZ.SetRightValue(right) fit() renWin.Render() right = expr.expr(globals(), locals(),["right","+",".05"]) def constraint (value,__vtk__temp0=0,__vtk__temp1=0): aSplineX.SetLeftConstraint(value) aSplineY.SetLeftConstraint(value) aSplineZ.SetLeftConstraint(value) aSplineX.SetRightConstraint(value) aSplineY.SetRightConstraint(value) aSplineZ.SetRightConstraint(value) def closed (__vtk__temp0=0,__vtk__temp1=0): global offset offset = 0.0 aSplineX.ClosedOn() aSplineY.ClosedOn() aSplineZ.ClosedOn() fit() renWin.Render() # prevent the tk window from showing up then start the event loop # --- end of script --
420be6e88a79c87d5b2471c3931dafe4d1dfad6a
85aa478ce6d022adfaff9a0294c3175444138669
/v8_llevatelo/report_odoo_extended/report_valorizado.py
05aee0bb05a4d52bbaa9d2616fb8891da2438f4d
[]
no_license
odoopruebasmp/Odoo_08
915d08bd3ac6321e43fce56a3a32ad9095d8602a
b75f92b4216ca19fd31af005c3e3f7985b3a4c27
refs/heads/master
2023-06-26T18:14:27.576001
2021-08-03T15:53:04
2021-08-03T15:53:04
389,694,585
0
0
null
null
null
null
UTF-8
Python
false
false
26,188
py
# -*- coding: utf-8 -*- from datetime import datetime, timedelta import xlsxwriter from openerp import models, fields, api import openerp.addons.decimal_precision as dp from openerp.http import request from openerp.addons.avancys_orm import avancys_orm from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT class ValueLineReport(models.Model): _name = 'value.line.report' product_id = fields.Many2one('product.product', string='Producto ID') product_name = fields.Char(string='Producto') default_code = fields.Char(string='Referencia') location_name = fields.Char(string='Ubicación') qty = fields.Float(string='Cantidad') cost = fields.Float(string='Costo') total_cost = fields.Float(string='Costo Total') class ValueReportWizard(models.TransientModel): _name = 'value.report.wizard' date_end = fields.Datetime(string='Fecha Final', required=True, default=datetime.now()) product_ids = fields.Many2many('product.product', string='Productos') print_report = fields.Selection([('print', 'Excel'), ('analizar', 'Pantalla')], string='Visualizacion', required=True, default='print') title = fields.Char(string='titulos', default='PRODUCTO ID, PRODUCTO, REFERENCIA, UBICACION,' 'SALDO FINAL, COSTO UNITARIO, COSTO FINAL') product_ids = fields.Many2many('product.product', string='Productos') location_ids = fields.Many2many('stock.location', string='Ubicaciones') @api.multi def compute_value_report(self): cr = self._cr date_end = self.date_end[:10] query_product = '' if self.product_ids: if len(self.product_ids) > 1: query_product = 'and stock_move.product_id in {ids}'.format(ids=tuple(self.product_ids.ids)) else: query_product = 'and stock_move.product_id = {id}'.format(id=self.product_ids.ids[0]) # CREAR TABLAS cr.execute(""" delete from value_line_report; drop table if exists prueba_cost; drop table if exists costo_tabla_dos; create table prueba_cost as ( ( select sum(product_qty) as cantidad, sum(total_cost) as total_cost, stock_move.product_id, sum(total_cost)/(case when sum(product_qty)=0 then 1 else sum(product_qty) end ) as costo, product_template.id from stock_move left join product_product on product_product.id=stock_move.product_id left join product_template on product_template.id=product_product.product_tmpl_id where ( ( select locat.usage from stock_location as locat where locat.id=stock_move.location_id )='supplier' ) and stock_move.date <= '{date_end}' and stock_move.state='done' and product_template.type = 'product' {query_product} group by stock_move.product_id,product_template.id order by stock_move.product_id ) union all ( select sum(product_qty) * -1 as cantidad, sum(total_cost) * -1 as total_cost, stock_move.product_id, sum(total_cost)/(case when sum(product_qty)=0 then 1 else sum(product_qty) end ) as costo, product_template.id from stock_move left join product_product on product_product.id=stock_move.product_id left join product_template on product_template.id=product_product.product_tmpl_id where ( ( select locat.usage from stock_location as locat where locat.id=stock_move.location_dest_id)='supplier' ) and stock_move.date <= '{date_end}' and stock_move.state='done' and product_template.type = 'product' {query_product} group by stock_move.product_id, product_template.id order by stock_move.product_id ) union all ( select sum(product_qty) * -1 as cantidad, sum(total_cost) * -1 as total_cost, stock_move.product_id, sum(total_cost)/(case when sum(product_qty)=0 then 1 else sum(product_qty) end ) as costo, product_template.id from stock_move left join product_product on product_product.id=stock_move.product_id left join product_template on product_template.id=product_product.product_tmpl_id where ( ( select locat.usage from stock_location as locat where locat.id=stock_move.location_dest_id)='customer' ) and stock_move.date <= '{date_end}' and stock_move.state='done' and product_template.type = 'product' {query_product} group by stock_move.product_id, product_template.id order by stock_move.product_id ) union all ( select sum(product_qty) as cantidad, sum(total_cost) as total_cost, stock_move.product_id, sum(total_cost)/(case when sum(product_qty)=0 then 1 else sum(product_qty) end ) as costo, product_template.id from stock_move left join product_product on product_product.id=stock_move.product_id left join product_template on product_template.id=product_product.product_tmpl_id where ( ( select locat.usage from stock_location as locat where locat.id=stock_move.location_id )='customer' ) and stock_move.date <= '{date_end}' and stock_move.state='done' and product_template.type = 'product' {query_product} group by stock_move.product_id, product_template.id order by stock_move.product_id ) union all ( select sum(product_qty) as cantidad, sum(total_cost) as total_cost, stock_move.product_id, sum(total_cost)/(case when sum(product_qty)=0 then 1 else sum(product_qty) end ) as costo, product_template.id from stock_move left join product_product on product_product.id=stock_move.product_id left join product_template on product_template.id=product_product.product_tmpl_id where ( ( select locat.usage from stock_location as locat where locat.id=stock_move.location_id )='production' ) and stock_move.date <= '{date_end}' and stock_move.state='done' and product_template.type = 'product' {query_product} group by stock_move.product_id,product_template.id order by stock_move.product_id ) union all ( select sum(product_qty) * -1 as cantidad, sum(total_cost) * -1 as total_cost, stock_move.product_id, sum(total_cost)/(case when sum(product_qty)=0 then 1 else sum(product_qty) end ) as costo, product_template.id from stock_move left join product_product on product_product.id=stock_move.product_id left join product_template on product_template.id=product_product.product_tmpl_id where ( ( select locat.usage from stock_location as locat where locat.id=stock_move.location_dest_id )='production' ) and stock_move.date <= '{date_end}' and stock_move.state='done' and product_template.type = 'product' {query_product} group by stock_move.product_id, product_template.id order by stock_move.product_id ) union all ( select sum(product_qty) * -1 as cantidad, sum(total_cost) * -1 as total_cost, stock_move.product_id, sum(total_cost)/(case when sum(product_qty)=0 then 1 else sum(product_qty) end ) as costo, product_template.id from stock_move left join product_product on product_product.id=stock_move.product_id left join product_template on product_template.id=product_product.product_tmpl_id where ( ( select locat.usage from stock_location as locat where locat.id=stock_move.location_dest_id )='inventory' ) and stock_move.date <= '{date_end}' and stock_move.state='done' and product_template.type = 'product' {query_product} group by stock_move.product_id,product_template.id order by stock_move.product_id ) union all ( select sum(product_qty) as cantidad, sum(total_cost) as total_cost, stock_move.product_id, sum(total_cost)/(case when sum(product_qty)=0 then 1 else sum(product_qty) end ) as costo, product_template.id from stock_move left join product_product on product_product.id=stock_move.product_id left join product_template on product_template.id=product_product.product_tmpl_id where ( ( select locat.usage from stock_location as locat where locat.id=stock_move.location_id )='inventory' ) and stock_move.date <= '{date_end}' and stock_move.state='done' and product_template.type = 'product' {query_product} group by stock_move.product_id, product_template.id order by stock_move.product_id ) ); create table costo_tabla_dos as ( select sum(cantidad) as cantidad, sum(total_cost) as costo_total, sum(total_cost)/ (case when sum(cantidad)=0 then 1 else sum(cantidad) end ) as costo , product_id, id from prueba_cost group by product_id, id order by id ); """.format(date_end=date_end, query_product=query_product)) # CONSULTA DE INFORMACION cr.execute(""" SELECT sum(costo_total), sum(cantidad), product_id, sum(costo) FROM costo_tabla_dos GROUP BY product_id; """) result = cr.fetchall() if result: for r in result: cr.execute(""" select name_template, default_code from product_product where id = {id} """.format(id=r[2])) product_id = cr.fetchone() if product_id[0] is None: product_name = 'Sin nombre' else: product_name = product_id[0] if product_id[1] is None: default_code = 'Sin Referencia' else: default_code = product_id[1] line = { 'product_id': r[2], 'product_name': product_name, 'default_code': default_code, 'location_name': 'Todas las Ubicaciones', 'qty': r[1], 'cost': r[3], 'total_cost': r[0], } avancys_orm.direct_create(self._cr, self._uid, 'value_line_report', [line]) else: line = { 'product_name': 'Sin resultado', 'qty': 0, 'total_cost': 0, 'cost': 0 } avancys_orm.direct_create(self._cr, self._uid, 'value_line_report', [line]) if self.print_report == 'print': cr.execute(""" select product_id, product_name, default_code, location_name, qty, cost, total_cost from value_line_report """) datos = self._cr.fetchall() url = self.printfast(datos) return {'type': 'ir.actions.act_url', 'url': str(url), 'target': 'self'} else: return { 'name': 'Analisis de Valorizado', 'view_type': 'form', 'view_mode': 'graph,tree', 'view_id': False, 'res_model': 'value.line.report', 'type': 'ir.actions.act_window', 'context': {'search_default_group_principal': True} } @api.multi def printfast(self, datos): actual = str(datetime.now() - timedelta(hours=5))[0:19] data_attach = { 'name': 'Valorizado_V2' + self.env.user.company_id.name + self.env.user.name + '_' + actual + '.xlsx', 'datas': '.', 'datas_fname': 'Valorizado_V2' + self.env.user.company_id.name + self.env.user.name + '_' + actual + '.', 'res_model': 'value.report.wizard', 'res_id': self.id, } self.env['ir.attachment'].search( [('res_model', '=', 'value.report.wizard'), ('company_id', '=', self.env.user.company_id.id), ( 'name', 'like', '%Valorizado_V2%' + self.env.user.name + '%')]).unlink() # elimina adjuntos del usuario # crea adjunto en blanco attachments = self.env['ir.attachment'].create(data_attach) headers = dict(request.httprequest.__dict__.get('headers')) if headers.get('Origin', False): url = dict(request.httprequest.__dict__.get('headers')).get( 'Origin') + '/web/binary/saveas?model=ir.attachment&field=datas&filename_field=name&id=' + str( attachments.id) else: url = dict(request.httprequest.__dict__.get('headers')).get( 'Referer') + '/binary/saveas?model=ir.attachment&field=datas&filename_field=name&id=' + str( attachments.id) path = attachments.store_fname self.env['ir.attachment'].search([['store_fname', '=', path]]).write( {'store_fname': attachments._get_path(path)[0]}) wb = xlsxwriter.Workbook(attachments._get_path(path)[1]) bold = wb.add_format({'bold': True}) bold2 = wb.add_format({'bold': True, 'fg_color': '#ffffff'}) bold3 = wb.add_format({'bold': False, 'fg_color': '#F2F2F2'}) bold4 = wb.add_format({'bold': True, 'fg_color': '#2E86C1'}) bold.set_align('center') bold2.set_align('center') bold3.set_align('center') bold4.set_align('center') money_format = wb.add_format({'num_format': '$#,##0'}) money_format.set_align('right') ws = wb.add_worksheet('Valorizado') ws.set_column('A:A', 20) ws.set_column('B:B', 30) ws.set_column('C:C', 30) ws.set_column('D:D', 20) ws.set_column('E:E', 20) ws.set_column('F:F', 20) ws.set_column('G:G', 20) abc = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'] ws.merge_range('A1:G1', 'INFORME VALORIZADO', bold2) ws.merge_range('A2:G2', 'FECHA CONSULTA: ' + actual, bold2) ws.merge_range('A3:B4', '', bold2) ws.write('C3', 'DESDE:', bold2) ws.write('D3', self.date_end, bold2) ws.merge_range('E3:G3', '', bold2) ws.merge_range('C4:G4', '', bold2) titulos = self.title.split(',') num = [x for x in range(0, 101)] resultado = zip(abc, num) for i, l in enumerate(titulos): for pos in resultado: if i == pos[1]: position = pos[0] break ws.write(position + str(5), l, bold4) filter_auto = 'A5:' + str(abc[len(titulos) - 1]) + '5' ws.autofilter(filter_auto) for x, line in enumerate(datos): for y, f in enumerate(titulos): for pos in resultado: if y == pos[1]: position = pos[0] break if position in ('E',): ws.write(position + str(6 + x), line[y] or int(0), bold3) elif position in ('F', 'G'): ws.write(position + str(6 + x), line[y] or int(0), money_format) else: ws.write(position + str(6 + x), line[y] or '') wb.close() return url
f6d3e340501fec410b715d1833190efc7d8adbd5
11264216ba391738e87696c2d4c2c7c4600aa056
/lecture5/lecture5/lecture5/urls.py
1e60e2c877a38f66b5e85d31d0a6a56ec8f305d5
[ "MIT" ]
permissive
CSUChico-CINS465/CINS465-Fall2016-Lecture-Examples
2775e84e4152a402ce1602fea9dffe363a7028d7
332df2821aef74c6522c53278e28ceb27cbe2fe6
refs/heads/master
2020-06-30T00:57:58.322717
2016-11-08T01:19:40
2016-11-08T01:19:40
66,382,719
0
3
null
2016-10-06T16:34:13
2016-08-23T16:10:32
Python
UTF-8
Python
false
false
817
py
"""lecture5 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r'^$',include('helloworld.urls')), url(r'^admin/', admin.site.urls), ]
25dbc0f67dd0f2b7ad3b38e4f59b589d9570d866
c9144edf6236e8214cc54f6c24f5689d11aff1a8
/week10/yghoon/keypad.py
500187cc35b217402b14fc2ada564727f2730e73
[]
no_license
dohvis/kmu-sw-proj
10aa60066c1a3a11e9f05f54effb22935c8c4381
8ab1996f84d80f322b64d35e71cb1a8f0d90c108
refs/heads/master
2021-08-23T13:15:46.962343
2017-12-05T01:44:56
2017-12-05T01:44:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
556
py
from calcFunctions import factorial, decToBin, binToDec, decToRoman numPadList = [ '7', '8', '9', '4', '5', '6', '1', '2', '3', '0', '.', '=', ] operatorList = [ '*', '/', '+', '-', '(', ')', 'C', ] constantDics = { 'pi' : '3.141592', '빛의 이동 속도 (m/s)' : '3E+8', '소리의 이동 속도 (m/s)' : '340', '태양과의 평균 거리 (km)' : '1.5E+8', } functionDics = { 'factorial (!)' : factorial, '-> binary' : decToBin, 'binary -> dec' : binToDec, '-> roman' : decToRoman, }
a9434d2aa6368d8259029d3de1bd9374cec21a2a
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_207/726.py
511cfe53fe71d562c63735db511b437a68cc20d6
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,481
py
f = open('B-small-attempt2.in','r') fo = open('result.txt','w') t = int(f.readline()) # 0N, 1R, 2O, 3Y, 4G, 5B, and 6V. d = [[],[2,6],[1,3],[2,4],[3,5],[4,6],[5,1]] e = [[],[3,4,5],[4,5,6],[1,5,6],[1,2,6],[1,2,3],[2,3,4]] st = 'XROYGBV' for ti in range(t): u = [int(x) for x in f.readline().split()] #print(u) b = [[[],u]] soln = "IMPOSSIBLE" while b: h = b[0] b = b[1:] a = h[1] #print(len(b)) if len(h[0]) == u[0]: if h[0][0] in e[h[0][-1]]: soln = ''.join(st[i] for i in h[0]) break broken = False for i in range(1,7): if a[i]: s = 0 for j in e[i]: s += a[j] if s < a[i]-1: broken = True break if not broken: if h[0]: dl = e[h[0][-1]] else: dl = range(1,7) ji = max((a[j],j) for j in range(1,7) if j in dl) if ji[0] > 4: j = ji[1] a[j] -= 1 b += [[h[0]+[j],a]] else: for j in dl: if a[j]: a2 = a[:] a2[j] -= 1 b += [[h[0]+[j],a2]] rs = "Case #%d: %s\n" % (ti+1, soln) #print(rs) fo.write( rs ) fo.close() f.close()
a55c909ea302272ae58bf65f53197abc7929f606
45a153a8e27b552d82d137bd94f2d5d0aec3c889
/GoogleCLoudwithTwilio/google-cloud-sdk/lib/surface/app/gen_repo_info_file.py
6b22de0c01c26795d53203fb8e81f01af51444b1
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
Pooshan/App-using-Twilio
84bc0be1f091c678528bdf161c9fbb0af617fc0e
a6eea3f40ef9f22a7ab47c1f63b90deaa2620049
refs/heads/master
2022-11-23T23:56:49.754209
2016-10-01T18:47:25
2016-10-01T18:47:25
69,719,320
0
1
null
2022-11-02T19:48:20
2016-10-01T04:26:37
Python
UTF-8
Python
false
false
4,572
py
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """The gen_repo_info_file command.""" import json import os from googlecloudsdk.calliope import base from googlecloudsdk.core import log from googlecloudsdk.core.util import files from googlecloudsdk.third_party.appengine.tools import context_util @base.Hidden class GenRepoInfoFile(base.Command): """Determines repository information and generates a file representation. The generated file is an opaque blob representing which source revision the application was built at, and which Google-hosted repository this revision will be pushed to. """ detailed_help = { 'DESCRIPTION': """\ This command generates two files, {old_name} and {contexts_filename}, containing information on the source revision and remote repository associated with the given source directory. {contexts_filename} contains information on all remote repositories associated with the directory, while {old_name} contains information only on one repository. It will refer to the associated Cloud Repository if there is one, or the remote Git repository if there is no Cloud Repository. {old_name} is deprecated in favor of {contexts_filename}. It is generated solely for compatibility with existing tools during the transition. """.format(old_name=context_util.CONTEXT_FILENAME, contexts_filename=context_util.EXT_CONTEXT_FILENAME), 'EXAMPLES': """\ To generate repository information files for your app, from your source directory run: $ {command} """, } @staticmethod def Args(parser): parser.add_argument( '--source-directory', default='.', help='The path to directory containing the source code for the build.') # TODO((b/25215149) Remove this option. parser.add_argument( '--output-file', help=( '(Deprecated; use --output-directory instead.) ' 'Specifies the full name of the output file to contain a single ' 'source context. The file name must be "{old_name}" in ' 'order to work with cloud diagnostic tools.').format( old_name=context_util.CONTEXT_FILENAME)) parser.add_argument( '--output-directory', default='', help=( 'The directory in which to create the source context files. ' 'Defaults to the current directory, or the directory containing ' '--output-file if that option is provided with a file name that ' 'includes a directory path.')) def Run(self, args): contexts = context_util.CalculateExtendedSourceContexts( args.source_directory) # First create the old-style source-context.json file if args.output_file: log.warn( 'The --output-file option is deprecated and will soon be removed.') output_directory = os.path.dirname(args.output_file) output_file = args.output_file else: output_directory = '' output_file = context_util.CONTEXT_FILENAME if not output_directory: if args.output_directory: output_directory = args.output_directory output_file = os.path.join(output_directory, output_file) else: output_directory = '.' best_context = context_util.BestSourceContext(contexts, args.source_directory) files.MakeDir(output_directory) with open(output_file, 'w') as f: json.dump(best_context, f, indent=2, sort_keys=True) # Create the new source-contexts.json file. if args.output_directory and args.output_directory != output_directory: output_directory = args.output_directory files.MakeDir(output_directory) with open(os.path.join(output_directory, context_util.EXT_CONTEXT_FILENAME), 'w') as f: json.dump(contexts, f, indent=2, sort_keys=True)
532cc4ddfc202f25fa9ed7132ee9c92ef072a74f
dc51e4714820d991e7d0e94b3e9eac4dbc67eea7
/历史练习1120/ORM/ORM/urls.py
a9cd9beec8294e07764e7493c49273e1e3ed6c17
[]
no_license
ruoxiaojie/Django
537d27abe9ebb85e0dfc69585f318a87e7514a70
92b88600953cd4ff743032cab3d4785437c949e0
refs/heads/master
2021-01-15T22:18:56.033883
2018-03-09T06:15:46
2018-03-09T06:15:46
99,894,862
0
1
null
null
null
null
UTF-8
Python
false
false
882
py
"""ORM URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf.urls import url from django.contrib import admin from app01 import views urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^index/', views.index), url(r'^add/', views.add), url(r'^query/', views.query), ]
38a29097fb677afe38a3f4e24a7ca69dea1596b0
2c872fedcdc12c89742d10c2f1c821eed0470726
/pbase/day06/jiangyi/day06/day05_exercise/99.py
98eb958a8ab699da85a2d9454f6e34a6e82a1522
[]
no_license
zuigehulu/AID1811
581c3c7a37df9fa928bc632e4891fc9bafe69201
10cab0869875290646a9e5d815ff159d0116990e
refs/heads/master
2020-04-19T16:33:04.174841
2019-01-30T07:58:24
2019-01-30T07:58:24
168,307,918
1
0
null
null
null
null
UTF-8
Python
false
false
268
py
# 1. 写程序打印九九乘法表 # 1x1=1 # 1x2=2 2x2=4 # 1x3=3 2x3=6 3x3=9 # .... # 1x9=9 .......... 9x9=81 for x2 in range(1, 10): for x1 in range(1, x2 + 1): print("%dx%d=%d"%(x1, x2, x1 * x2), end=' ') print() # 换行
0eedd09812bb4c2cbf5a57643d7aac8c1c200214
f51c6d0cebb27c377ce9830deec4b727b9b2ee90
/AI/05_tictactoe/01object_grid.py
b3c72f860a52becf43b6c430e74fbbe1f3bc4994
[]
no_license
dbbudd/Python-Experiments
1c3c1322583aaaf2016a2f2f3061e6d034c5d1c8
b6d294bf11a5c92b8578d16aa2f63cc27fc47b07
refs/heads/master
2020-04-17T02:21:36.693593
2019-01-17T00:18:34
2019-01-17T00:18:34
166,130,283
1
0
null
null
null
null
UTF-8
Python
false
false
1,044
py
#!/usr/bin/env python import numpy as np import itertools class gameboard(object): def __init__(self): #player 1 puts a "X", player 2 puts a "O" self.g = [[0,0,0],[0,0,0],[0,0,0]] self.grid = np.array(self.g) print(self.grid) def checkWin(self): if ((self.grid.diagonal(0) == 1).all()) or ((np.flipud(self.grid).diagonal(0) == 1).all()): print("X Wins") elif ((self.grid.diagonal(0) == 2).all()) or ((np.flipud(self.grid).diagonal(0) == 2).all()): print("0 Wins") else: for i in range(0,len(self.grid)): self.column = self.grid [:, i] self.row = self.grid [i, :] if (self.row.all() == 1) or (self.column.all() == 1): print("X Wins") elif (self.row.all() == 2) or (self.column.all() == 2): print("O Wins") else: continue print("Keep Playing!") board = gameboard() board.checkWin()
e8c235b55e0f91859013f3f878d062126d0be59f
1cb2e45c87c1b961d33cfcbed95f765ca3be15b1
/0x22-primegame/main_8.py
b78832497631e5415d3cb06df9fadfd917647b07
[]
no_license
icculp/holbertonschool-interview
a93b5e213861c3349733df1042bc7c323e8129ad
e49ac9e2f3dc356a9cae177472ac54c2e55edabf
refs/heads/main
2023-07-26T08:41:17.638936
2021-08-26T17:09:29
2021-08-26T17:09:29
319,488,541
0
0
null
null
null
null
UTF-8
Python
false
false
207
py
#!/usr/bin/python3 """ Main file for testing """ isWinner = __import__('0-prime_game').isWinner nums = [0] * 10000 for i in range(10000): nums[i] = i print("Winner: {}".format(isWinner(10000, nums)))
8ee49add3d08eb326c2b2eb0441beefb3936465b
c5471ada76f276752255b34b910da799dc29d804
/2016/day/11.py
0214968c95823e0b526e4725bbb4ea03394a88a3
[]
no_license
MasterMedo/aoc
3c75a3b02ed6e65f9a5be2f393af884c79914209
42ccde20f31b99bc9e49248a58b732dca5972c69
refs/heads/master
2022-12-22T13:22:59.562745
2022-12-22T06:29:39
2022-12-22T06:29:39
112,675,225
31
8
null
null
null
null
UTF-8
Python
false
false
1,756
py
import re from itertools import combinations, chain from heapq import heappop, heappush generators, microchips = {}, {} with open('../input/11.txt') as f: for floor, line in enumerate(f): for microchip in set(re.findall(r'\w+(?=-comp)', line)): microchips[microchip] = floor for generator in set(re.findall(r'\w+(?=\ gen)', line)): generators[generator] = floor pairs = [(microchips[i], generators[i]) for i in microchips] # pairs.extend([(0, 0)]*2) # uncomment for part 2 pairs = tuple(sorted(pairs)) floor = distance = 0 state = [distance, floor, pairs] to_visit = [] heappush(to_visit, state) visited = set([(pairs, floor)]) while to_visit: distance, floor, pairs = heappop(to_visit) if all(i == 3 for pair in pairs for i in pair): break floors = [[], [], [], []] for element, (x, y) in enumerate(pairs): floors[x].append((element, 0)) # (element_index, type) floors[y].append((element, 1)) if any(i == 0 and (e, 1) not in things and any(j == 1 for _, j in things) for things in floors for e, i in things): continue candidates = floors[floor] for floor in {min(floor + 1, 3), max(floor - 1, 0)} - set([floor]): for things in chain(map(lambda x: [x], candidates), combinations(candidates, 2)): new_pairs = tuple(sorted(tuple(floor if (e, i) in things else old for i, old in enumerate(pair)) for e, pair in enumerate(pairs))) if (new_pairs, floor) not in visited: heappush(to_visit, (distance + 1, floor, new_pairs)) visited.add((new_pairs, floor)) print(distance)
d7b9041bc53a89ae60f21bc5562483eb05692a1a
7b20e2f86c2bb2145ae9ca5bcd4b9ad1566e79b0
/ABC/ABC134/D.py
53b03aa78f43b3f56626b735bd9b2b2e47171ff2
[]
no_license
pto8913/KyoPro
5f5e769960dfec73af5b0f338f32659ff067094b
29ebc30a3d45fea273cb9034fba8311673a406dd
refs/heads/master
2021-06-13T16:43:40.275854
2021-03-23T00:02:25
2021-03-23T00:02:25
174,684,331
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
N = int(input()) A = list(map(int,input().split())) box = [0] * (N+1) res = [] for i in range(1, N+1)[::-1]: s = 0 for j in range(1, N // i): s += box[(j+1)*i] if s % 2 != A[i-1]: box[i] = 1 res.append(i) print(len(res)) print(*res)
b1967d3e0558202aea64db2d93f90760ba779a18
0f2a123478c6fb5941c4180c76fa663833d3c764
/service/neighborhood.py
dfeeab71407cb8d5ab381e80c1088ed2c3ee5e0f
[ "Apache-2.0" ]
permissive
curtislisle/EntityAlignLarge
77fc650251724dc5eec9dbde13d34b91dd0d62b9
d629ef14b5f6abe3f0c758f8df92139dc9d01f07
refs/heads/master
2021-01-18T20:32:05.074741
2015-07-02T01:36:13
2015-07-02T01:36:13
35,761,970
0
1
null
2015-07-02T01:36:13
2015-05-17T10:32:24
JavaScript
UTF-8
Python
false
false
3,139
py
import bson.json_util from bson.objectid import ObjectId import json from pymongo import MongoClient def freeze(rec): return (str(rec["_id"]), rec["data"]["id"], bson.json_util.dumps(rec)) def process(frozen): rec = json.loads(frozen[2]) processed = {"key": rec["_id"]["$oid"]} processed.update(rec["data"]) return processed def run(host=None, db=None, coll=None, center=None, radius=None, deleted=json.dumps(False)): # Connect to the Mongo collection client = MongoClient(host) db = client[db] graph = db[coll] # Prepare the arguments. radius = int(radius) deleted = json.loads(deleted) frontier = set() neighbor_nodes = set() neighbor_links = [] # Find the center node in the database. center_node = graph.find_one({"_id": ObjectId(center)}) print 'found center node:',center_node if center_node is not None and deleted or not center_node["data"].get("deleted"): frozen = freeze(center_node) neighbor_nodes.add(frozen) frontier.add(frozen) for i in range(radius): new_frontier = set() # Compute the next frontier from the current frontier. for key, id, _ in frontier: # Find all incoming and outgoing links from all nodes in the # frontier. query = {"$and": [{"type": "link"}, {"$or": [{"data.source": id}, {"data.target": id}]}]} links = graph.find(query) print 'frontier query:',query print 'query result length:',links.count() # Collect the neighbors of the node, and add them to the new # frontier if appropriate. for link in links: source = link["data"]["source"] == id neighbor_id = source and link["data"]["target"] or link["data"]["source"] query_clauses = [{"type": "node"}, {"data.id": neighbor_id}] if not deleted: query_clauses.append({"$or": [{"data.deleted": {"$exists": False}}, {"data.deleted": False}]}) neighbor = graph.find_one({"$and": query_clauses}) if neighbor is not None: frozen = freeze(neighbor) if frozen not in neighbor_nodes: new_frontier.add(frozen) neighbor_nodes.add(frozen) if source: neighbor_link = {"source": key, "target": str(neighbor["_id"])} else: neighbor_link = {"source": str(neighbor["_id"]), "target": key} neighbor_links.append(neighbor_link) frontier = new_frontier # processed = map(process, neighbor_nodes) processed = map(lambda x: json.loads(x[2]), neighbor_nodes) return {"nodes": processed, "links": neighbor_links}
5bb2b74aa55d11d9b44d494e10be4f68c00ff231
919e74f05976d9ea5f28d5dcf0a3e9311a4d22b2
/conans/client/conf/compiler_id.py
b7c41a8a1eea9e2e37c4739768e140e40f232885
[ "MIT" ]
permissive
thorsten-klein/conan
1801b021a66a89fc7d83e32100a6a44e98d4e567
7cf8f384b00ba5842886e39b2039963fc939b00e
refs/heads/develop
2023-09-01T12:04:28.975538
2023-07-26T10:55:02
2023-07-26T10:55:02
150,574,910
0
0
MIT
2023-08-22T14:45:06
2018-09-27T11:16:48
Python
UTF-8
Python
false
false
9,047
py
import os import tempfile from six import StringIO from conans.client.runner import ConanRunner from conans.model.version import Version from conans.util.files import rmdir GCC = "gcc" LLVM_GCC = "llvm-gcc" # GCC frontend with LLVM backend CLANG = "clang" APPLE_CLANG = "apple-clang" SUNCC = "suncc" VISUAL_STUDIO = "Visual Studio" INTEL = "intel" QCC = "qcc" MCST_LCC = "mcst-lcc" MSVC = "msvc" class CompilerId(object): """ compiler identification description, holds compiler name, full version and other important properties """ def __init__(self, name, major, minor, patch): self._name = name self._major = major self._minor = minor self._patch = patch self._version = Version(self.version) @property def name(self): return self._name @property def major(self): return self._major @property def minor(self): return self._minor @property def patch(self): return self._patch @property def version(self): return "%s.%s.%s" % (self._major, self._minor, self._patch) @property def major_minor(self): return "%s.%s" % (self._major, self._minor) def __str__(self): return "%s %s" % (self._name, self.version) def __repr__(self): return self.__str__() def __eq__(self, other): return self.name == other.name and self._version == other._version def __ne__(self, other): return not self.__eq__(other) UNKNOWN_COMPILER = CompilerId(None, None, None, None) # convert _MSC_VER to the corresponding Visual Studio version MSVC_TO_VS_VERSION = {800: (1, 0), 900: (2, 0), 1000: (4, 0), 1010: (4, 1), 1020: (4, 2), 1100: (5, 0), 1200: (6, 0), 1300: (7, 0), 1310: (7, 1), 1400: (8, 0), 1500: (9, 0), 1600: (10, 0), 1700: (11, 0), 1800: (12, 0), 1900: (14, 0), 1910: (15, 0), 1911: (15, 3), 1912: (15, 5), 1913: (15, 6), 1914: (15, 7), 1915: (15, 8), 1916: (15, 9), 1920: (16, 0), 1921: (16, 1), 1922: (16, 2), 1923: (16, 3), 1924: (16, 4), 1925: (16, 5), 1926: (16, 6), 1927: (16, 7), 1928: (16, 8), 1929: (16, 10), 1930: (17, 0)} def _parse_compiler_version(defines): try: if '__LCC__' in defines and '__e2k__' in defines: compiler = MCST_LCC version = int(defines['__LCC__']) major = int(version / 100) minor = int(version % 100) patch = int(defines['__LCC_MINOR__']) elif '__INTEL_COMPILER' in defines: compiler = INTEL version = int(defines['__INTEL_COMPILER']) major = int(version / 100) minor = int(version % 100) patch = int(defines['__INTEL_COMPILER_UPDATE']) elif '__clang__' in defines: compiler = APPLE_CLANG if '__apple_build_version__' in defines else CLANG major = int(defines['__clang_major__']) minor = int(defines['__clang_minor__']) patch = int(defines['__clang_patchlevel__']) elif '__SUNPRO_C' in defines or '__SUNPRO_CC' in defines: # In particular, the value of __SUNPRO_CC, which is a three-digit hex number. # The first digit is the major release. The second digit is the minor release. # The third digit is the micro release. For example, C++ 5.9 is 0x590. compiler = SUNCC define = '__SUNPRO_C' if '__SUNPRO_C' in defines else '__SUNPRO_CC' version = int(defines[define], 16) major = (version >> 8) & 0xF minor = (version >> 4) & 0xF patch = version & 0xF # MSVC goes after Clang and Intel, as they may define _MSC_VER elif '_MSC_VER' in defines: version = int(defines['_MSC_VER']) full_version = 0 if '_MSC_FULL_VER' in defines: full_version = int(defines['_MSC_FULL_VER']) # Visual Studio 2022 onwards, detect as a new compiler "msvc" if version >= 1930: compiler = MSVC major = int(version / 100) minor = int(version % 100) patch = int(full_version % 100000) else: compiler = VISUAL_STUDIO # map _MSC_VER into conan-friendly Visual Studio version # currently, conan uses major only, but here we store minor for the future as well # https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=vs-2019 major, minor = MSVC_TO_VS_VERSION.get(version) # special cases 19.8 and 19.9, 19.10 and 19.11 if (major, minor) == (16, 8) and full_version >= 192829500: major, minor = 16, 9 if (major, minor) == (16, 10) and full_version >= 192930100: major, minor = 16, 11 patch = 0 # GCC must be the last try, as other compilers may define __GNUC__ for compatibility elif '__GNUC__' in defines: if '__llvm__' in defines: compiler = LLVM_GCC elif '__QNX__' in defines: compiler = QCC else: compiler = GCC major = int(defines['__GNUC__']) minor = int(defines['__GNUC_MINOR__']) patch = int(defines['__GNUC_PATCHLEVEL__']) else: return UNKNOWN_COMPILER return CompilerId(compiler, major, minor, patch) except KeyError: return UNKNOWN_COMPILER except ValueError: return UNKNOWN_COMPILER except TypeError: return UNKNOWN_COMPILER def detect_compiler_id(executable, runner=None): runner = runner or ConanRunner() # use a temporary file, as /dev/null might not be available on all platforms tmpdir = tempfile.mkdtemp() tmpname = os.path.join(tmpdir, "temp.c") with open(tmpname, "wb") as f: f.write(b"\n") cmd = os.path.join(tmpdir, "file.cmd") with open(cmd, "wb") as f: f.write(b"echo off\nset MSC_CMD_FLAGS\n") detectors = [ # "-dM" generate list of #define directives # "-E" run only preprocessor # "-x c" compiler as C code # the output is of lines in form of "#define name value" "-dM -E -x c", "--driver-mode=g++ -dM -E -x c", # clang-cl "-c -xdumpmacros", # SunCC, # cl (Visual Studio, MSVC) # "/nologo" Suppress Startup Banner # "/E" Preprocess to stdout # "/B1" C front-end # "/c" Compile Without Linking # "/TC" Specify Source File Type '/nologo /E /B1 "%s" /c /TC' % cmd, "/QdM /E /TC" # icc (Intel) on Windows, "-Wp,-dM -E -x c" # QNX QCC ] try: for detector in detectors: command = '%s %s "%s"' % (executable, detector, tmpname) result = StringIO() if 0 == runner(command, output=result): output = result.getvalue() defines = dict() for line in output.splitlines(): tokens = line.split(' ', 3) if len(tokens) == 3 and tokens[0] == '#define': defines[tokens[1]] = tokens[2] # MSVC dumps macro definitions in single line: # "MSC_CMD_FLAGS=-D_MSC_VER=1921 -Ze" elif line.startswith("MSC_CMD_FLAGS="): line = line[len("MSC_CMD_FLAGS="):].rstrip() defines = dict() tokens = line.split() for token in tokens: if token.startswith("-D") or token.startswith("/D"): token = token[2:] if '=' in token: name, value = token.split('=', 2) else: name, value = token, '1' defines[name] = value break compiler = _parse_compiler_version(defines) if compiler == UNKNOWN_COMPILER: continue return compiler return UNKNOWN_COMPILER finally: try: rmdir(tmpdir) except OSError: pass
092fd67ed334bb3399c9ae96c5673c7487a8ca76
31bb411ccdc1581e5a5c9e8acd7fc7c5ffde1067
/prosper/datareader/intrinio/auth.py
e80a448395a989d2f2f94b1c20e579d053708ca7
[ "MIT" ]
permissive
EVEprosper/ProsperDatareader
c58b645bab80cbb946cfddd657921a9dadbf403b
31f0d77074c21222161774f4d653326925611167
refs/heads/master
2021-01-01T19:45:39.506553
2018-06-13T16:18:03
2018-06-13T16:18:03
98,676,957
0
1
MIT
2019-01-22T06:09:17
2017-07-28T18:32:41
Python
UTF-8
Python
false
false
2,983
py
"""prosper.datareader.intrinio.auth: handle authentication/validation""" import requests from .. import exceptions from .. import config BASE_URL = 'https://api.intrinio.com/' class IntrinioHelper(object): """parent class for handling requests to Intrininio Notes: See https://intrinio.com/account for account keys Args: username (str): username for direct-auth password (str): password for direct-auth public_key (str): API key for indirect access Raises: InvalidAuth: will not be able to access Intrinio feeds """ def __init__(self, username='', password='', public_key='',): self.__user = username self.__password = password self.__public_key = public_key if not bool(self): raise exceptions.InvalidAuth('Lacking required authentication') def request(self, route, params=None, headers=None): """empty metaclass for handling requests""" raise NotImplementedError() def __bool__(self): """validate acceptable auth pattern""" if all([self.__user, self.__password, self.__public_key]): # either/or, not both auth types return False if self.__user and self.__password: # direct auth method self.request = self._direct_auth_request return True if self.__public_key: # public-key method self.request = self._public_key_request return True return False def _direct_auth_request(self, route, params=None, headers=None): """handle HTTP request for direct-auth Args: url (str): url of endpoint to fetch params (dict): param args for endpoint request headers (dict): headers for endpoint request Returns: dict: JSON-parsed response from endpoint Raises: requests.exceptions: connection/HTTP errors """ req = requests.get( url=BASE_URL + route, params=params, headers=headers, auth=(self.__user, self.__password), ) req.raise_for_status() return req.json() def _public_key_request(self, route, params=None, headers=None): """handle HTTP request for public-key Args: url (str): url of endpoint to fetch params (dict): param args for endpoint request headers (dict): headers for endpoint request Returns: dict: JSON-parsed response from endpoint Raises: requests.exceptions: connection/HTTP errors """ if not headers: headers = {} headers = {**headers, 'X-Authorization-Public-Key':self.__public_key} req = requests.get( url=BASE_URL + route, params=params, headers=headers, ) req.raise_for_status() return req.json()
739a10dd59b002a18843a90b852d29a3bd234b9b
e41b573b7d2822ba00123e28d1ad6fe39db0631f
/portal/editstore/decorators.py
b12b9ac81dbf47941368253f1213fefb119f6633
[]
no_license
epodreczniki/epodreczniki-portal
1e7fc583bd24dc6962fefdc2a2002835a39e122d
3f3d033c87a186d43cecd119ffe1172d7720c638
refs/heads/master
2021-01-16T21:46:12.400414
2017-01-31T21:24:35
2017-01-31T21:24:35
64,475,412
1
0
null
null
null
null
UTF-8
Python
false
false
3,246
py
# coding=utf-8 from __future__ import absolute_import from django.shortcuts import render from store.exceptions import NiceException import functools from editstore.objects import drivers, SpaceDriver from editstore import models from django.shortcuts import get_object_or_404 from editstore import exceptions from common.utils import wrap_nice_exceptions from django.shortcuts import redirect from common import messages from surround.django.logging import setupModuleLogger setupModuleLogger(globals()) wrap_edition_errors = wrap_nice_exceptions def fetch_from_dict(kwargs, key): value = kwargs[key] del kwargs[key] return value def space_method(must_have_write=None, must_have_read=True): def decorator(view): @functools.wraps(view) def wrapper(request, **kwargs): spaceid = fetch_from_dict(kwargs, 'spaceid') space = get_object_or_404(models.Space, identifier=spaceid) space_driver = SpaceDriver.bind_db_object(space, user=request.user) kwargs['space_driver'] = space_driver if must_have_read is True: space_driver.raise_for_read_perm() if must_have_write is True: space_driver.raise_for_write_perm() return view(request, **kwargs) return wrapper return decorator def driver_method(must_exist=True, must_have_write=None, must_have_read=True, category=None, use_space=True, redirect_missing=False): def decorator(view): @functools.wraps(view) def wrapper(request, **kwargs): if use_space: space = get_object_or_404(models.Space, identifier=fetch_from_dict(kwargs, 'spaceid')) else: space = None driver = drivers.bind( fetch_from_dict(kwargs, 'category') if category is None else category, fetch_from_dict(kwargs, 'identifier'), fetch_from_dict(kwargs, 'version'), request.user, space=space, ) if must_exist is True: try: driver.raise_for_exists() except exceptions.DoesNotExist as e: if redirect_missing and request.method == 'GET': driver_class = drivers.get(driver.category) messages.info(request, u'%s %s, wersja %s nie znajduje się w edycji online' % (driver_class.nice_name, driver.identifier, driver.version), extra_tags='danger') return redirect('editres.views.listing', driver.spaceid, driver.category) raise if use_space: driver.raise_for_space() if must_exist is False: if driver.exists: raise exceptions.ObjectAlreadyExist('%s %s/%s already exists' % (driver.category, driver.identifier, driver.version)) if must_have_read is True: driver.raise_for_read_perm() if must_have_write is True: driver.raise_for_write_perm() kwargs['driver'] = driver return view(request, **kwargs) return wrapper return decorator
0b7c4c174ac6c7f498f46996277dc543c4576816
7969cea981b2d2c665b62c4de58c2d9556bfeaad
/original/test_new_vctk.py
3ba4d093058763ef3f014e46af880a1b0c508a41
[]
no_license
xcmyz/Forced-Alignment
106dc73072d34bb07e881ee310e2a4a327230214
c20dd4c892c39b5d6a0ee6bef673ac523621f15e
refs/heads/master
2020-05-02T03:52:30.079472
2019-04-17T09:40:48
2019-04-17T09:40:48
177,738,186
2
0
null
null
null
null
UTF-8
Python
false
false
585
py
import os from nnmnkwii.datasets import vctk import hparams as hp # speakers = vctk.available_speakers # print(speakers) # print(len(speakers)) speakers = list() for file in os.listdir(os.path.join(hp.vctk_processed, "wav48")): speakers.append(str(file[1:4])) # print(speakers) # print(len(speakers)) td = vctk.TranscriptionDataSource(hp.vctk_processed, speakers=speakers) transcriptions = td.collect_files() wav_paths = vctk.WavFileDataSource( hp.vctk_processed, speakers=speakers).collect_files() print(transcriptions[32306]) print(wav_paths[32306])
f3abd2898ef25b92b7c5f64799adadc6acde5e1d
5783be589f9f6ab590ea097eb9b84fa3786617e4
/Trie/contacts_list.py
31c37f25db381989e9aad83a48ec1dcf4f978847
[ "Apache-2.0" ]
permissive
suyash248/ds_algo
5751e46ba4b959f0dd3f6843800f3e21d52100ac
1ca9470c33236016cbb88a38b2f19db41535e457
refs/heads/master
2022-12-10T10:39:16.135888
2022-12-06T16:45:25
2022-12-06T16:45:25
58,738,512
8
4
null
null
null
null
UTF-8
Python
false
false
5,179
py
# https://www.youtube.com/watch?v=vlYZb68kAY0 - Contacts list # Insert and search costs O(key_length), however the memory requirements of Trie is O(ALPHABET_SIZE * key_length * N) # where N is number of keys in Trie. # https://www.youtube.com/watch?v=AXjmTQ8LEoI class ContactNode(object): def __init__(self): self.children = {} self.endOfWord = False # Count of words (leaf nodes) starting from this node. It will help to find out the number of words/count starting with some prefix. self.wordsNum = 0 def __str__(self): return "Children: {} | {}".format(self.children.keys(), self.endOfWord) class Trie(object): def __init__(self): self.__root__ = ContactNode() # Time complexity: O(length_of_word) def insert(self, word): cur = self.__root__ for ch in word: child = cur.children.get(ch, None) if child is None: child = ContactNode() cur.children[ch] = child child.wordsNum += 1 cur = child cur.endOfWord = True # Time complexity: O(length_of_word) def search(self, word): cur = self.__root__ for ch in word: child = cur.children.get(ch, None) if child is None: return False cur = child return cur.endOfWord def prefix_search_count(self, prefix): cur = self.__root__ for ch in prefix: child = cur.children.get(ch, None) if child is None: return 0 cur = child return cur.wordsNum # Time complexity: O(length_of_word) def __delete__(self, word, cur, index=0): if index == len(word): if cur.endOfWord: cur.endOfWord = False # Mark `endOfWord` as we're going to delete this. return len( cur.children) == 0 # If there are no children, delete this node (True means node will be deleted later) return False ch = word[index] child = cur.children.get(ch, None) # No need to check if this word exists or not as we've already checked it before calling this method. cur.wordsNum -= 1 shouldRemove = self.__delete__(word, child, index=index + 1) # Removing node from memory (i.e. parent's `children' dict) if this is the only node remaining in `children1 dict. if shouldRemove: # Delete this node from memory, i.e. remove node corresponding to key(ch) from it's parent's `children` dict cur.children.pop(ch) # If parent's `children` dict becomes empty then parent is also a candidate for removal, return `True` in that case. return len(cur.children) == 0 return False def delete(self, word): if self.search(word): self.__delete__(word, self.__root__) def __prefix_search__(self, prefix, joint_node): for ch, child_node in joint_node.children.items(): prefix = prefix + ch if child_node.endOfWord: print prefix self.__prefix_search__(prefix, child_node) prefix = prefix[:-1] # Backtracking def prefix_search(self, prefix): cur = self.__root__ # Traverse till last character in `prefix` for ch in prefix: child = cur.children.get(ch, None) if child is None: return None cur = child self.__prefix_search__(prefix, cur) if __name__ == '__main__': trie = Trie() choices = { 1: "Add contact", 2: "Search contact", 3: "Prefix search(startswith) count", 4: "Prefix search(startswith)", 5: "Delete contact", 6: "Exit" } choices = '\n'.join(['{}. {}'.format(k, v) for k, v in choices.items()]) while True: print("\n" + choices + "\n") try: choice = int(input("Enter your choice - ")) or 0 except: choice = 0 if choice == 1: word = input("Please enter a contact name to be inserted - ") trie.insert(word) elif choice == 2: word = input("Please enter contact name to be searched - ") is_present = trie.search(word) print("{} is {}present".format(word, "" if is_present else "not ")) elif choice == 3: prefix = input("Please enter a contact name/prefix to be searched - ") wordsNum = trie.prefix_search_count(prefix) print("There are {} contact(s) starting with prefix {}".format(wordsNum, prefix)) elif choice == 4: prefix = input("Please enter a contact name/prefix to be searched - ") print("Contact(s) starting with prefix {} are -".format(prefix)) trie.prefix_search(prefix) elif choice == 5: word = input("Please enter a word/sequence to be deleted - ") trie.delete(word) elif choice == 6: print("Thank you!") break else: print("Invalid choice") continue
2bb7c7ba3061c50db496fcc55f5566792482e2cd
65c8a6a7af2ee8cdf3866d012ea814887bd68a26
/ppro360_automation/Ppro360/CoachingAndTriadCoaching_Pages/RapidFireProcessConfirmation.py
0a3d8240f845597bb551d6c2ea4dd50383a5257f
[]
no_license
1282270620/automation_test
9b3c595c3f7a139ded0a638ae4bcf31e0b7f9686
3faf86f0d641089eaf27eba906d22157dd2c1f5d
refs/heads/master
2020-04-01T06:35:33.873989
2018-10-21T03:05:17
2018-10-21T03:05:17
152,954,477
0
0
null
null
null
null
UTF-8
Python
false
false
3,478
py
''' Created on 20171101 @author: lei.tan ''' from selenium.webdriver.common.by import By from Tablet_pages import BasePage class RapidFireProcessConfirmation(BasePage.Action): def __init__(self): self.callRecordingNumber_loc=(By.XPATH,"//*[@id='container']/div/section/div/form/div/div[3]/div[2]/div/div/input") self.KPIcheckbox_path="//*[@id='container']/div/section/div/form/div[2]/div[1]/div/table/tbody/tr[4]/td[%d]/i" self.comments_path="//*[@id='container']/div/section/div/form/div[2]/div[%d]/div/textarea" self.comments_title_path="//*[@id='container']/div/section/div/form/div[2]/div[%d]/label" self.scoreinput_path="//*[@id='container']/div/section/div/form/div[2]/div[%d]/div/div[4]/input" self.scoreballstataus_path="//*[@id='container']/div/section/div/form/div[2]/div[%d]/div/div[4]/i" self.overallscore_loc=(By.XPATH,"//*[@id='container']/div/section/div/form/div[2]/label/div[2]/input") self.overallball_loc=(By.XPATH,"//*[@id='container']/div/section/div/form/div[2]/label/div[2]/i") def click_KPIcheckbox (self, checkboxorderindex): self.KPIcheckbox_loc=(By.XPATH,self.KPIcheckbox_path %checkboxorderindex) self.find_element(*self.KPIcheckbox_loc).click() def input_callRecordingNumber (self,text): self.find_element(*self.callRecordingNumber_loc).send_keys(text); def input_comments(self,lineindex,text): self.comments_loc=(By.XPATH,self.comments_path %lineindex) self.Input_text(text,*self.comments_loc) def get_comments(self,lineindex): self.comments_loc=(By.XPATH,self.comments_path %lineindex ) return self.find_element(*self.comments_loc).get_attribute("value") def comments_disabled(self,lineindex): self.comments_loc=(By.XPATH,self.comments_path %lineindex ) flag=self.find_element(*self.comments_loc).get_attribute("disabled") return flag def get_commentsBoxtitle(self,lineindex): self.comments_title_loc=(By.XPATH,self.comments_title_path %lineindex) return self.find_element(*self.comments_title_loc).text def input_scoreinput(self,lineindex,text): self.scoreinput_loc=(By.XPATH,self.scoreinput_path %lineindex) self.Input_text(text,*self.scoreinput_loc) def get_scoreinput(self,lineindex): self.scoreinput_loc=(By.XPATH,self.scoreinput_path %lineindex ) return self.find_element(*self.scoreinput_loc).get_attribute("value") def scoreinput_disabled(self,lineindex): self.scoreinput_loc=(By.XPATH,self.scoreinput_path %lineindex ) flag=self.find_element(*self.scoreinput_loc).get_attribute("disabled") return flag def get_scoreballstataus(self,lineindex): scoreballstataus_loc=(By.XPATH,self.scoreballstataus_path %lineindex ) scoreballstataus=self.find_element(*scoreballstataus_loc).get_attribute("class") return scoreballstataus def get_overallscore(self): return self.find_element(*self.overallscore_loc).get_attribute("value") def overallscore_disabled(self): flag=self.find_element(*self.overallscore_loc).get_attribute("disabled") return flag def get_overallballstataus(self): scoreballstataus=self.find_element(*self.overallball_loc).get_attribute("class") return scoreballstataus
c218c71173502582b74a6b241a8f7da1b3befe41
4c3e2557044884be630d3c6c47c3e446f951c681
/Contest/ABC020/B.py
29b372eb99969ecea9bb9383c5018b6e223e5b8f
[]
no_license
monda00/AtCoder
01bdf89338c22f1792fde7f85728e01d97e5fd34
abf947f2cdfe87486ad8935ba078918d4809573a
refs/heads/master
2021-11-10T00:54:01.144582
2021-11-07T13:24:03
2021-11-07T13:24:03
186,128,070
0
0
null
null
null
null
UTF-8
Python
false
false
54
py
a, b = input().split() ab = int(a + b) print(ab * 2)
f2ec15ec6b195fffb34cf7280adecd51ca8ee052
95d1dd5758076c0a9740d545a6ef2b5e5bb8c120
/PY/basic/class_inherit.py
98146eaa6d42f48c981e6d630f45405486b34194
[]
no_license
icoding2016/study
639cb0ad2fe80f43b6c93c4415dc6e8a11390c85
11618c34156544f26b3b27886b55c771305b2328
refs/heads/master
2023-08-31T14:15:42.796754
2023-08-31T05:28:38
2023-08-31T05:28:38
117,061,872
2
0
null
null
null
null
UTF-8
Python
false
false
1,631
py
#!/usr/bin/python from __future__ import print_function class B(object): class_var = None def __init__(self): print("Class B init..") self.inst_var = 0 def func(self): print("B::func()") print("class_var=%s" % self.class_var) print("inst_var=%s" % self.inst_var) def show(self): print("B::show()") print("class_var=%s" % self.class_var) print("inst_var=%s" % self.inst_var) class B1(B): def __init__(self): print("Class B1 init..") self.inst_var = 1 def func(self): print("B1::func()") class B2(B): def __init__(self): super(B2, self).__init__() print("base::__init__ called before Class B2 init..") self.inst_var = 2 # initiate the instance's inst_var, not changing the base instance's inst_var def func(self): print("B2::func(), then explicitly call base.func()") super(B2, self).func() def changeSelfClassVar(self): self.class_var = 2 # this add a var to the instance and assign 2, not changing the B::class_var print("B2: self.class_var -> %s" % self.class_var) def changeClassVar(self): B.class_var = 22 # this modifies the 'class var' (static) print("B2: class_var -> %s" % B.class_var) if "__main__" in __name__: print("-"*20) b = B() b.func() print("-"*20) b1 = B1() b1.func() print("-"*20) b2 = B2() b2.func() print("-"*10) b2.changeSelfClassVar() b.show() # self.inst_var still None, 'static' B.class_var not changed. b2.changeClassVar() b.show()
f967c5af25bac400dae4bde6a3438947838cd97e
e35eb92b5ab6547119585004b9eea3cafe948050
/efsw/storage/errors.py
84ab6044f4679693c7697a6ed29b48ba498314da
[]
no_license
einsfr/mmkit
0a084db85b2cf5ba268e692676095d768733f387
f12bc2f83254a3123e02abdc105816cc04c438b5
refs/heads/master
2020-12-31T05:56:19.287611
2016-06-10T05:56:58
2016-06-10T05:56:58
29,473,203
0
0
null
null
null
null
UTF-8
Python
false
false
838
py
FILE_DOES_NOT_EXIST_IN_STORAGE = 'В хранилище "{0}" отсутствует файл "{1}".' STORAGE_DOES_NOT_CONTAIN_FILE = 'Файл "{0}" не принадлежит хранилищу "{1}".' FILE_ALREADY_EXISTS_IN_STORAGE = 'Файл "{0}" уже существует в хранилище "{1}".' STORAGE_ROOT_NOT_FOUND = 'Корневая папка хранилищ "{0}" не существует.' STORAGE_ROOT_REWRITE_FORBIDDEN = 'Storage\'s root directory can\'t be rewritten if application is in production ' \ 'environment.' STORAGE_BASE_DIR_REWRITE_FORBIDDEN = 'Storage\'s base directory can\'t be rewritten if application is in production ' \ 'environment.' STORAGE_BASE_DIR_NOT_FOUND = 'Storage\'s "{0}" base directory "{1}" doesn\'t exist.'
283f427e9d9fd76dffc9aa0194a13ceee65c1eed
62e58c051128baef9452e7e0eb0b5a83367add26
/x12/6010/210006010.py
9c9a3fead2b5be7e1936e8c84d815fd4b8fdba06
[]
no_license
dougvanhorn/bots-grammars
2eb6c0a6b5231c14a6faf194b932aa614809076c
09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d
refs/heads/master
2021-05-16T12:55:58.022904
2019-05-17T15:22:23
2019-05-17T15:22:23
105,274,633
0
0
null
2017-09-29T13:21:21
2017-09-29T13:21:21
null
UTF-8
Python
false
false
2,639
py
from bots.botsconfig import * from records006010 import recorddefs syntax = { 'version': '00601', 'functionalgroup': 'IM', } structure = [ {ID: 'ST', MIN: 1, MAX: 1, LEVEL: [ {ID: 'B3', MIN: 1, MAX: 1}, {ID: 'C2', MIN: 0, MAX: 1}, {ID: 'C3', MIN: 0, MAX: 1}, {ID: 'ITD', MIN: 0, MAX: 1}, {ID: 'L11', MIN: 0, MAX: 300}, {ID: 'G62', MIN: 0, MAX: 6}, {ID: 'R3', MIN: 0, MAX: 12}, {ID: 'H3', MIN: 0, MAX: 6}, {ID: 'K1', MIN: 0, MAX: 10}, {ID: 'N1', MIN: 0, MAX: 10, LEVEL: [ {ID: 'N2', MIN: 0, MAX: 1}, {ID: 'N3', MIN: 0, MAX: 2}, {ID: 'N4', MIN: 0, MAX: 1}, {ID: 'L11', MIN: 0, MAX: 5}, ]}, {ID: 'N7', MIN: 0, MAX: 10, LEVEL: [ {ID: 'M7', MIN: 0, MAX: 2}, ]}, {ID: 'OID', MIN: 0, MAX: 999999, LEVEL: [ {ID: 'SDQ', MIN: 0, MAX: 10}, ]}, {ID: 'S5', MIN: 0, MAX: 999, LEVEL: [ {ID: 'L11', MIN: 0, MAX: 10}, {ID: 'G62', MIN: 0, MAX: 10}, {ID: 'H3', MIN: 0, MAX: 6}, {ID: 'OID', MIN: 0, MAX: 999999, LEVEL: [ {ID: 'SDQ', MIN: 0, MAX: 10}, ]}, {ID: 'N1', MIN: 0, MAX: 2, LEVEL: [ {ID: 'N2', MIN: 0, MAX: 1}, {ID: 'N3', MIN: 0, MAX: 2}, {ID: 'N4', MIN: 0, MAX: 1}, {ID: 'L11', MIN: 0, MAX: 5}, {ID: 'N7', MIN: 0, MAX: 10, LEVEL: [ {ID: 'M7', MIN: 0, MAX: 2}, ]}, ]}, ]}, {ID: 'LX', MIN: 0, MAX: 99999, LEVEL: [ {ID: 'L11', MIN: 0, MAX: 20}, {ID: 'L5', MIN: 0, MAX: 30}, {ID: 'H1', MIN: 0, MAX: 3}, {ID: 'H2', MIN: 0, MAX: 2}, {ID: 'L0', MIN: 0, MAX: 10}, {ID: 'L1', MIN: 0, MAX: 50}, {ID: 'L4', MIN: 0, MAX: 10}, {ID: 'L7', MIN: 0, MAX: 10}, {ID: 'K1', MIN: 0, MAX: 10}, {ID: 'OID', MIN: 0, MAX: 999999, LEVEL: [ {ID: 'SDQ', MIN: 0, MAX: 10}, ]}, {ID: 'N1', MIN: 0, MAX: 999999, LEVEL: [ {ID: 'N2', MIN: 0, MAX: 1}, {ID: 'N3', MIN: 0, MAX: 2}, {ID: 'N4', MIN: 0, MAX: 1}, {ID: 'L11', MIN: 0, MAX: 10}, {ID: 'CD3', MIN: 0, MAX: 999999, LEVEL: [ {ID: 'L11', MIN: 0, MAX: 20}, {ID: 'H6', MIN: 0, MAX: 10}, {ID: 'L9', MIN: 0, MAX: 50}, {ID: 'POD', MIN: 0, MAX: 1}, {ID: 'G62', MIN: 0, MAX: 1}, ]}, {ID: 'OID', MIN: 0, MAX: 999999, LEVEL: [ {ID: 'SDQ', MIN: 0, MAX: 10}, ]}, ]}, ]}, {ID: 'L3', MIN: 0, MAX: 1}, {ID: 'SE', MIN: 1, MAX: 1}, ]} ]
262e5a8fc1b3277a125ac7ac66fefddc56cae93a
a457e3284fa1f32257969a72c69082dd0179eb73
/gladweb/config.py
ef8979cda314e9b8cbea6d22467ff25691cdb8b3
[]
no_license
slow2go/glad-web
19377a6f17f19a4ebc46bc9c61afc9f709f628b0
13f8674c9602d1288b5de9437cf618e835fcac4e
refs/heads/master
2021-01-24T08:29:43.615111
2017-05-22T14:29:30
2017-05-22T14:29:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
880
py
# --- # Default Configuration # --- import os import gladweb.cache base_path = os.path.abspath(os.path.join(os.path.split(__file__)[0], '..')) # --- # Flask # --- # This key MUST be changed before you make a site public, as it is used # to sign the secure cookies used for sessions. SECRET_KEY = 'ChangeMeOrGetHacked' # --- # Glad Web # --- # A cache, which will be used to store/retrieve various files. CACHE = gladweb.cache.FileCache(os.path.join(base_path, 'cache')) # Path to a folder which will be used to store generation results TEMP = os.path.join(base_path, 'temp') # Generate static html files for /generated # the webserver needs to be configured to serve /generated instead of passing # requests through to glad-web. # Note: /generated/icons still needs to be served by glad-web FREEZE = True try: from local_config import * except ImportError: pass
b182d112f6cb1b8565fb48e838a02291e2d64987
2bcc421ee345b00cf805c543b37d18b5d019dc04
/adafruit-circuitpython-bundle-6.x-mpy-20201126/examples/azureiot_central_properties.py
415f9b7095f77f7c046958466f0ecc7f3a5f28bd
[]
no_license
saewoonam/sc-current-source-titano
5a1ad46889c1b09c168424901fd71cb4eab5c61b
1c136aa8b61268d9ac0b5a682b30ece70ab87663
refs/heads/main
2023-03-02T22:12:26.685537
2021-02-09T03:28:01
2021-02-09T03:28:01
317,299,900
0
2
null
null
null
null
UTF-8
Python
false
false
4,963
py
import random import time import board import busio from digitalio import DigitalInOut import neopixel from adafruit_esp32spi import adafruit_esp32spi, adafruit_esp32spi_wifimanager import adafruit_esp32spi.adafruit_esp32spi_socket as socket from adafruit_ntp import NTP # Get wifi details and more from a secrets.py file try: from secrets import secrets except ImportError: print("WiFi secrets are kept in secrets.py, please add them there!") raise # ESP32 Setup try: esp32_cs = DigitalInOut(board.ESP_CS) esp32_ready = DigitalInOut(board.ESP_BUSY) esp32_reset = DigitalInOut(board.ESP_RESET) except AttributeError: esp32_cs = DigitalInOut(board.D13) esp32_ready = DigitalInOut(board.D11) esp32_reset = DigitalInOut(board.D12) spi = busio.SPI(board.SCK, board.MOSI, board.MISO) esp = adafruit_esp32spi.ESP_SPIcontrol(spi, esp32_cs, esp32_ready, esp32_reset) """Use below for Most Boards""" status_light = neopixel.NeoPixel(board.NEOPIXEL, 1, brightness=0.2) # Uncomment for Most Boards """Uncomment below for ItsyBitsy M4""" # status_light = dotstar.DotStar(board.APA102_SCK, board.APA102_MOSI, 1, brightness=0.2) # Uncomment below for an externally defined RGB LED # import adafruit_rgbled # from adafruit_esp32spi import PWMOut # RED_LED = PWMOut.PWMOut(esp, 26) # GREEN_LED = PWMOut.PWMOut(esp, 27) # BLUE_LED = PWMOut.PWMOut(esp, 25) # status_light = adafruit_rgbled.RGBLED(RED_LED, BLUE_LED, GREEN_LED) wifi = adafruit_esp32spi_wifimanager.ESPSPI_WiFiManager(esp, secrets, status_light) print("Connecting to WiFi...") wifi.connect() print("Connected to WiFi!") print("Getting the time...") ntp = NTP(esp) # Wait for a valid time to be received while not ntp.valid_time: time.sleep(5) ntp.set_time() print("Time:", str(time.time())) # To use Azure IoT Central, you will need to create an IoT Central app. # You can either create a free tier app that will live for 7 days without an Azure subscription, # Or a standard tier app that will last for ever with an Azure subscription. # The standard tiers are free for up to 2 devices # # If you don't have an Azure subscription: # # If you are a student, head to https://aka.ms/FreeStudentAzure and sign up, validating with your # student email address. This will give you $100 of Azure credit and free tiers of a load of # service, renewable each year you are a student # # If you are not a student, head to https://aka.ms/FreeAz and sign up to get $200 of credit for 30 # days, as well as free tiers of a load of services # # Create an Azure IoT Central app by following these instructions: https://aka.ms/CreateIoTCentralApp # Add a device template with telemetry, properties and commands, as well as a view to visualize the # telemetry and execute commands, and a form to set properties. # # Next create a device using the device template, and select Connect to get the device connection details. # Add the connection details to your secrets.py file, using the following values: # # 'id_scope' - the devices ID scope # 'device_id' - the devices device id # 'key' - the devices primary key # # The adafruit-circuitpython-azureiot library depends on the following libraries: # # From the Adafruit CircuitPython Bundle (https://github.com/adafruit/Adafruit_CircuitPython_Bundle): # * adafruit-circuitpython-minimqtt # * adafruit-circuitpython-requests from adafruit_azureiot import IoTCentralDevice # Create an IoT Hub device client and connect device = IoTCentralDevice(socket, esp, secrets["id_scope"], secrets["device_id"], secrets["key"]) # Subscribe to property changes # Properties can be updated either in code, or by adding a form to the view # in the device template, and setting the value on the dashboard for the device def property_changed(property_name, property_value, version): print("Property", property_name, "updated to", str(property_value), "version", str(version)) # Subscribe to the property changed event device.on_property_changed = property_changed print("Connecting to Azure IoT Central...") # Connect to IoT Central device.connect() print("Connected to Azure IoT Central!") message_counter = 60 while True: try: # Send property values every minute # You can see the values in the devices dashboard if message_counter >= 60: device.send_property("Desired_Temperature", random.randint(0, 50)) message_counter = 0 else: message_counter = message_counter + 1 # Poll every second for messages from the cloud device.loop() except (ValueError, RuntimeError) as e: print("Connection error, reconnecting\n", str(e)) # If we lose connectivity, reset the wifi and reconnect wifi.reset() wifi.connect() device.reconnect() continue time.sleep(1)
73a1f841632a9f0870b9f634bf909faf5101b1ad
f7ea41fc9d1b23fa5da8cfa52d6767df8d914128
/tests/parser/cwrjson/encoder/test_json.py
2e16e8037aaf468ff0dc43df28ba66bb0143d55a
[ "MIT" ]
permissive
gitter-badger/CWR-DataApi
f0d903558e688f10aba996b624f5f860c2d12f3c
ba2011bccd2a5046d9d200c2377daf003cf4b9bc
refs/heads/master
2020-12-11T07:59:13.882298
2015-06-01T10:16:21
2015-06-01T10:16:21
37,245,502
0
0
null
2015-06-11T07:16:04
2015-06-11T07:16:04
null
UTF-8
Python
false
false
13,565
py
# -*- coding: utf-8 -*- import unittest import datetime import json from cwr.parser.encoder.cwrjson import JSONEncoder from cwr.file import FileTag, CWRFile from cwr.group import GroupHeader, GroupTrailer, Group from cwr.work import WorkRecord from cwr.agreement import AgreementRecord from cwr.transmission import TransmissionTrailer, TransmissionHeader, \ Transmission """ Group from dictionary encoding tests. The following cases are tested: """ __author__ = 'Bernardo Martínez Garrido' __license__ = 'MIT' __status__ = 'Development' class TestFileJSONEncoding(unittest.TestCase): def setUp(self): self._encoder = JSONEncoder() def test_file_agreement(self): tag = self._get_file_tag() transmission = self._get_transmission_agreement() data = CWRFile(tag, transmission) encoded = self._encoder.encode(data) expected = json.loads( '{"transmission": {"header": {"creation_date_time": "2003-02-16", "sender_name": "SENDER", "sender_id": "ABC334", "sender_type": "SO", "record_type": "HDR", "edi_standard": "01.10", "transmission_date": "2003-02-17", "character_set": "ASCII"}, "groups": [{"group_trailer": {"record_count": 20, "record_type": "GRT", "group_id": 3, "transaction_count": 15}, "transactions": [[{"sales_manufacture_clause": "M", "date_of_signature": "2003-02-17", "prior_royalty_start_date": "2003-02-19", "advance_given": true, "retention_end_date": "2003-02-18", "international_standard_code": "DFG135", "prior_royalty_status": "D", "agreement_end_date": "2003-02-16", "record_type": "AGR", "shares_change": true, "post_term_collection_status": "D", "agreement_type": "OS", "submitter_agreement_n": "AB12", "society_assigned_agreement_n": "DF35", "record_sequence_n": 15, "agreement_start_date": "2003-02-15", "transaction_sequence_n": 3, "post_term_collection_end_date": "2003-02-20", "number_of_works": 12}], [{"sales_manufacture_clause": "M", "date_of_signature": "2003-02-17", "prior_royalty_start_date": "2003-02-19", "advance_given": true, "retention_end_date": "2003-02-18", "international_standard_code": "DFG135", "prior_royalty_status": "D", "agreement_end_date": "2003-02-16", "record_type": "AGR", "shares_change": true, "post_term_collection_status": "D", "agreement_type": "OS", "submitter_agreement_n": "AB12", "society_assigned_agreement_n": "DF35", "record_sequence_n": 15, "agreement_start_date": "2003-02-15", "transaction_sequence_n": 3, "post_term_collection_end_date": "2003-02-20", "number_of_works": 12}]], "group_header": {"record_type": "GRH", "version_number": "02.10", "group_id": 3, "batch_request_id": 15, "transaction_type": "AGR"}}, {"group_trailer": {"record_count": 20, "record_type": "GRT", "group_id": 3, "transaction_count": 15}, "transactions": [[{"sales_manufacture_clause": "M", "date_of_signature": "2003-02-17", "prior_royalty_start_date": "2003-02-19", "advance_given": true, "retention_end_date": "2003-02-18", "international_standard_code": "DFG135", "prior_royalty_status": "D", "agreement_end_date": "2003-02-16", "record_type": "AGR", "shares_change": true, "post_term_collection_status": "D", "agreement_type": "OS", "submitter_agreement_n": "AB12", "society_assigned_agreement_n": "DF35", "record_sequence_n": 15, "agreement_start_date": "2003-02-15", "transaction_sequence_n": 3, "post_term_collection_end_date": "2003-02-20", "number_of_works": 12}], [{"sales_manufacture_clause": "M", "date_of_signature": "2003-02-17", "prior_royalty_start_date": "2003-02-19", "advance_given": true, "retention_end_date": "2003-02-18", "international_standard_code": "DFG135", "prior_royalty_status": "D", "agreement_end_date": "2003-02-16", "record_type": "AGR", "shares_change": true, "post_term_collection_status": "D", "agreement_type": "OS", "submitter_agreement_n": "AB12", "society_assigned_agreement_n": "DF35", "record_sequence_n": 15, "agreement_start_date": "2003-02-15", "transaction_sequence_n": 3, "post_term_collection_end_date": "2003-02-20", "number_of_works": 12}]], "group_header": {"record_type": "GRH", "version_number": "02.10", "group_id": 3, "batch_request_id": 15, "transaction_type": "AGR"}}], "trailer": {"record_type": "TRL", "group_count": 155, "record_count": 568, "transaction_count": 245}}, "tag": {"sequence_n": 123, "receiver": "RCV", "sender": "SND", "version": 2.1, "year": 2015}}') self.assertEqual(expected, json.loads(encoded)) def test_file_work_with_nones(self): tag = self._get_file_tag() transmission = self._get_transmission_work() data = CWRFile(tag, transmission) encoded = self._encoder.encode(data) expected = json.loads( '{"transmission": {"header": {"creation_date_time": "2003-02-16", "sender_name": "SENDER", "sender_id": "ABC334", "sender_type": "SO", "record_type": "HDR", "edi_standard": "01.10", "transmission_date": "2003-02-17", "character_set": "ASCII"}, "groups": [{"group_trailer": {"record_count": 20, "record_type": "GRT", "group_id": 3, "transaction_count": 15}, "transactions": [[{"opus_number": "OP35", "recorded_indicator": "Y", "contact_id": "123CONTACT", "record_sequence_n": 15, "music_arrangement": "ORI", "language_code": "ES", "duration": "01:12:00", "contact_name": "THE CONTACT", "composite_type": "MED", "lyric_adaptation": "MOD", "title": "TITLE", "transaction_sequence_n": 3, "excerpt_type": "MOV", "submitter_work_n": "ABC123", "priority_flag": "Y", "copyright_number": "ABDF146", "text_music_relationship": "MTX", "work_type": "BL", "grand_rights_indicator": true, "date_publication_printed_edition": "2003-02-16", "musical_work_distribution_category": "SER", "catalogue_number": "GGH97", "composite_component_count": 5, "exceptional_clause": "Y", "record_type": "NWR", "iswc": null, "version_type": "ORI", "copyright_date": "2003-02-17"}]], "group_header": {"record_type": "GRH", "version_number": "02.10", "group_id": 3, "batch_request_id": 15, "transaction_type": "NWR"}}], "trailer": {"record_type": "TRL", "group_count": 155, "record_count": 568, "transaction_count": 245}}, "tag": {"sequence_n": 123, "receiver": "RCV", "sender": "SND", "version": 2.1, "year": 2015}}') self.assertEqual(expected, json.loads(encoded)) def _get_file_tag(self): return FileTag(year=2015, sequence_n=123, sender='SND', receiver='RCV', version=2.1) def _get_transmission_agreement(self): header = TransmissionHeader(record_type='HDR', sender_id='ABC334', sender_name='SENDER', sender_type='SO', creation_date_time=datetime.datetime.strptime( '20030216', '%Y%m%d').date(), transmission_date=datetime.datetime.strptime( '20030217', '%Y%m%d').date(), edi_standard='01.10', character_set='ASCII') trailer = TransmissionTrailer(record_type='TRL', group_count=155, transaction_count=245, record_count=568) groups = [self._get_group_agreement(), self._get_group_agreement()] return Transmission(header, trailer, groups) def _get_transmission_work(self): header = TransmissionHeader(record_type='HDR', sender_id='ABC334', sender_name='SENDER', sender_type='SO', creation_date_time=datetime.datetime.strptime( '20030216', '%Y%m%d').date(), transmission_date=datetime.datetime.strptime( '20030217', '%Y%m%d').date(), edi_standard='01.10', character_set='ASCII') trailer = TransmissionTrailer(record_type='TRL', group_count=155, transaction_count=245, record_count=568) groups = [self._get_group_work()] return Transmission(header, trailer, groups) def _get_group_agreement(self): header = GroupHeader(record_type='GRH', group_id=3, transaction_type='AGR', version_number='02.10', batch_request_id=15) trailer = GroupTrailer(record_type='GRT', group_id=3, transaction_count=15, record_count=20) transactions = [self._get_transaction_agreement(), self._get_transaction_agreement()] return Group(header, trailer, transactions) def _get_group_work(self): header = GroupHeader(record_type='GRH', group_id=3, transaction_type='NWR', version_number='02.10', batch_request_id=15) trailer = GroupTrailer(record_type='GRT', group_id=3, transaction_count=15, record_count=20) transactions = [self._get_transaction_work()] return Group(header, trailer, transactions) def _get_transaction_agreement(self): return [self._get_agreement()] def _get_transaction_work(self): return [self._get_work()] def _get_agreement(self): return AgreementRecord(record_type='AGR', transaction_sequence_n=3, record_sequence_n=15, submitter_agreement_n='AB12', agreement_type='OS', agreement_start_date=datetime.datetime.strptime( '20030215', '%Y%m%d').date(), number_of_works=12, prior_royalty_status='D', post_term_collection_status='D', international_standard_code='DFG135', society_assigned_agreement_n='DF35', sales_manufacture_clause='M', agreement_end_date=datetime.datetime.strptime( '20030216', '%Y%m%d').date(), date_of_signature=datetime.datetime.strptime( '20030217', '%Y%m%d').date(), retention_end_date=datetime.datetime.strptime( '20030218', '%Y%m%d').date(), prior_royalty_start_date=datetime.datetime.strptime( '20030219', '%Y%m%d').date(), post_term_collection_end_date=datetime.datetime.strptime( '20030220', '%Y%m%d').date(), shares_change=True, advance_given=True) def _get_work(self): return WorkRecord(record_type='NWR', transaction_sequence_n=3, record_sequence_n=15, submitter_work_n='ABC123', title='TITLE', version_type='ORI', musical_work_distribution_category='SER', date_publication_printed_edition=datetime.datetime.strptime( '20030216', '%Y%m%d').date(), text_music_relationship='MTX', language_code='ES', copyright_number='ABDF146', copyright_date=datetime.datetime.strptime('20030217', '%Y%m%d').date(), music_arrangement='ORI', lyric_adaptation='MOD', excerpt_type='MOV', composite_type='MED', composite_component_count=5, iswc=None, work_type='BL', duration=datetime.datetime.strptime('011200', '%H%M%S').time(), catalogue_number='GGH97', opus_number='OP35', contact_id='123CONTACT', contact_name='THE CONTACT', recorded_indicator='Y', priority_flag='Y', exceptional_clause='Y', grand_rights_indicator=True) class TestFileJSONEncodingInvalid(unittest.TestCase): def setUp(self): self._encoder = JSONEncoder() def test_none(self): self.assertRaises(AttributeError, self._encoder.encode, None) def test_string(self): self.assertRaises(AttributeError, self._encoder.encode, 'abc')
c2ea836a58ec6f9d02d3d631bdecf55d3db16ccf
88307f29f2930213819b2a21ac328ee52e5d8d65
/tests/benchmark.py
52a684fb04421ac6481101c185ec87ab22b3704e
[ "BSD-3-Clause" ]
permissive
ChristopherBradley/cogent3
7dc6524d66687402d2bd48c07ca68b41133e9f00
4b4c0fbc77f50aebd74ecf44a6d1777b2e2c0fbb
refs/heads/master
2023-02-27T00:58:29.796585
2020-11-09T04:13:51
2020-11-09T04:13:51
219,615,537
0
0
BSD-3-Clause
2023-02-21T20:03:32
2019-11-04T23:22:58
Python
UTF-8
Python
false
false
5,641
py
#!/usr/bin/env python import sys # ,hotshot from cogent3 import load_aligned_seqs, load_tree from cogent3.evolve.substitution_model import ( TimeReversibleCodon, TimeReversibleDinucleotide, TimeReversibleNucleotide, ) from cogent3.maths import optimisers from cogent3.util import parallel __author__ = "Peter Maxwell and Gavin Huttley" __copyright__ = "Copyright 2007-2020, The Cogent Project" __credits__ = ["Peter Maxwell", "Gavin Huttley"] __license__ = "BSD-3" __version__ = "2020.7.2a" __maintainer__ = "Gavin Huttley" __email__ = "[email protected]" __status__ = "Production" ALIGNMENT = load_aligned_seqs(filename="data/brca1.fasta") TREE = load_tree(filename="data/murphy.tree") def subtree(size): names = ALIGNMENT.names[:size] assert len(names) == size tree = TREE.get_sub_tree(names) # .balanced() return names, tree def brca_test(subMod, names, tree, length, par_rules, **kw): # names = ALIGNMENT.names[:taxa] # assert len(names) == taxa tree = TREE.get_sub_tree(names) # .balanced() aln = ALIGNMENT.take_seqs(names).omit_gap_pos()[:length] assert len(aln) == length, (len(aln), length) # the_tree_analysis = LikelihoodFunction(treeobj = tree, submodelobj = subMod, alignobj = aln) par_controller = subMod.make_likelihood_function(tree, **kw) for par_rule in par_rules: par_controller.set_param_rule(**par_rule) # lf = par_controller.make_calculator(aln) return (par_controller, aln) def measure_evals_per_sec(pc, aln): pc.set_alignment(aln) return pc.measure_evals_per_second(time_limit=2.0, wall=False) def makePC(modelClass, parameterisation, length, taxa, tree, opt_mprobs, **kw): modelClass = eval(modelClass) if parameterisation is not None: predicates = {"silly": silly_predicate} par_rules = [{"par_name": "silly", "is_independent": parameterisation}] else: predicates = {} par_rules = [] subMod = modelClass( equal_motif_probs=True, optimise_motif_probs=opt_mprobs, predicates=predicates, recode_gaps=True, mprob_model="conditional", ) (pc, aln) = brca_test(subMod, taxa, tree, length, par_rules, **kw) return (pc, aln) def quiet(f, *args, **kw): import io import sys temp = io.StringIO() _stdout = sys.stdout try: sys.stdout = temp result = f(*args, **kw) finally: # pass sys.stdout = _stdout return result def evals_per_sec(*args): pc, aln = makePC(*args) # quiet(makeLF, *args) speed1 = measure_evals_per_sec(pc, aln) speed = str(int(speed1)) return speed class CompareImplementations(object): def __init__(self, switch): self.switch = switch def __call__(self, *args): self.switch(0) (pc, aln) = quiet(makePC, *args) speed1 = measure_evals_per_sec(pc, aln) self.switch(1) (pc, aln) = quiet(makePC, *args) speed2 = measure_evals_per_sec(pc, aln) if speed1 < speed2: speed = "+%2.1f" % (speed2 / speed1) else: speed = "-%2.1f" % (speed1 / speed2) if speed in ["+1.0", "-1.0"]: speed = "" return speed def benchmarks(test): alphabets = ["Nucleotide", "Dinucleotide", "Codon"] sequence_lengths = [18, 2004] treesizes = [5, 20] for (optimise_motifs, parameterisation) in [ (False, "global"), (False, "local"), (True, "global"), ]: print(parameterisation, ["", "opt motifs"][optimise_motifs]) print(" " * 14, end=" ") wcol = 5 * len(sequence_lengths) + 2 for alphabet in alphabets: print(str(alphabet).ljust(wcol), end=" ") print() print("%-15s" % "", end=" ") # "length" for alphabet in alphabets: for sequence_length in sequence_lengths: print("%4s" % sequence_length, end=" ") print(" ", end=" ") print() print( " " * 12 + ( " | ".join( [""] + ["-" * (len(sequence_lengths) * 5) for alphabet in alphabets] + [""] ) ) ) for treesize in treesizes: print(("%4s taxa | " % treesize), end=" ") (taxa, tree) = subtree(treesize) for alphabet in alphabets: for sequence_length in sequence_lengths: speed = test( alphabet, parameterisation == "local", sequence_length, taxa, tree, optimise_motifs, ) print("%4s" % speed, end=" ") print("| ", end=" ") print() print() print() def silly_predicate(a, b): return a.count("A") > a.count("T") or b.count("A") > b.count("T") # def asym_predicate((a,b)): # print a, b, 'a' in a # return 'a' in a # mA = Codon() # mA.setPredicates({'asym': asym_predicate}) def exponentiator_switch(switch): import cogent3.evolve.substitution_calculation cogent3.evolve.substitution_calculation.use_new = switch if "relative" in sys.argv: test = CompareImplementations(exponentiator_switch) else: test = evals_per_sec parallel.inefficiency_forgiven = True if parallel.get_rank() > 0: # benchmarks(test) quiet(benchmarks, test) else: try: benchmarks(test) except KeyboardInterrupt: print(" OK")
1ac63a541e9a8dce7c61fe484cbb580d7979038e
0737f5a9e19cc14692c8bf99dc349ae856a20b0c
/replay_buffer.py
8f793775a62d5ab3e9a96878a951fc17eebfd190
[]
no_license
takuseno/unreal
37fd0c0b7613182f1abb5d55b5d0f8564acf25c2
864cfbc1edf56510c69ef3809ae0adc6cb129017
refs/heads/master
2020-03-22T19:55:25.246229
2018-08-07T09:03:52
2018-08-07T09:03:52
140,560,691
1
1
null
null
null
null
UTF-8
Python
false
false
4,188
py
from collections import deque from random import sample, randrange, random import uuid class ReplayBuffer: def __init__(self, capacity=2e3): self.capacity = capacity self.ids = [] self.transitions = {} self.rewarding_states = {} self.non_rewarding_states = {} self.episode_terminal_ids = [] # ((s_t-2, s_t-1, s_t), a_t-1, r_t, a_t, r_t+1, s_t+1, t_t+1) def add(self, obs_t, action_tm1, reward_t, action_t, reward_tp1, obs_tp1, terminal): # create unique id id = uuid.uuid4() self.ids.append(id) # remove oldest transision if len(self.transitions.keys()) > self.capacity: self.remove(self.ids[0]) # for value function replay and others transition = dict( obs_t=obs_t[-1], action_tm1=action_tm1, reward_t=reward_t, action_t=action_t, reward_tp1=reward_tp1, obs_tp1=obs_tp1 ) self.transitions[id] = transition # for reward prediction reward_prediction_dict = dict(obs_t=obs_t, reward_tp1=reward_tp1) if reward_tp1 == 0.0: self.non_rewarding_states[id] = reward_prediction_dict else: self.rewarding_states[id] = reward_prediction_dict # add episode terminal id if terminal: self.episode_terminal_ids.append(id) def remove(self, id): if id in self.ids: self.ids.remove(id) self.transitions.pop(id) if id in self.episode_terminal_ids: self.episode_terminal_ids.remove(id) if id in self.rewarding_states: self.rewarding_states.pop(id) if id in self.non_rewarding_states: self.non_rewarding_states.pop(id) def sample_rp(self): prob = random() if prob > 0.5 and len(self.rewarding_states.values()) != 0: transition = sample(list(self.rewarding_states.values()), 1)[0] else: transition = sample(list(self.non_rewarding_states.values()), 1)[0] reward = transition['reward_tp1'] if reward == 0.0: reward_class = 0 elif reward > 0.0: reward_class = 1 else: reward_class = 2 return transition['obs_t'], reward_class def sample_sequence(self, n): if len(self.episode_terminal_ids) > 0: # get terminal index episode_index = randrange(len(self.episode_terminal_ids)) id = self.episode_terminal_ids[episode_index] end_index = self.ids.index(id) # get start index if episode_index == 0: start_index = 0 else: prev_id = self.episode_terminal_ids[episode_index - 1] start_index = self.ids.index(prev_id) + 1 else: # no episode ends yet end_index = len(self.ids) - 1 start_index = 0 # get trajectory length = end_index - start_index + 1 if length > n: sample_start_index = randrange(length - n + 1) + start_index sample_end_index = sample_start_index + n - 1 else: sample_start_index = start_index sample_end_index = end_index transitions = list(self.transitions.values()) sampled_transitions = transitions[sample_start_index:sample_end_index+1] is_terminal = self.ids[sample_end_index] in self.episode_terminal_ids return sampled_transitions, is_terminal def sample_vr(self, n): transitions, is_terminal = self.sample_sequence(n) # format results obs_t = [] actions_tm1 = [] rewards_t = [] for transition in transitions: obs_t.append(transition['obs_t']) actions_tm1.append(transition['action_tm1']) rewards_t.append(transition['reward_t']) obs_t.append(transitions[-1]['obs_tp1']) actions_tm1.append(transitions[-1]['action_t']) rewards_t.append(transitions[-1]['reward_tp1']) return obs_t, actions_tm1, rewards_t, is_terminal
ec771792c99b81d60de883ad609af2084995cd10
a5c4ea16042a8078e360c32636c00e3163ac99a8
/Pytorch_Tutorial/08_transfer_learning/custompytorch/utils/helpers.py
29f3ab0c8ddc604babb84d5d48f924c624f60e47
[]
no_license
lykhahaha/Mine
3b74571b116f72ee17721038ca4c58796610cedd
1439e7b161a7cd612b0d6fa4403b4c8c61648060
refs/heads/master
2020-07-15T05:16:13.808047
2019-06-01T07:30:01
2019-06-01T07:30:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,219
py
import torch import time import copy import matplotlib.pyplot as plt import numpy as np def train_model(model, dataloaders, dataset_sizes, criterion, optimizer, scheduler=None, num_epochs=25): """ Scheduling the learning rate Saving the best model Arguments: model: nn Modules dataloaders: {'train': torch.utils.data.DataLoader, 'val': torch.utils.data.DataLoader} dataset_sizes: {'train': dataset_sizes of train, 'test': dataset_sizes of test} """ device = torch.device('cuda:0') if torch.cuda.is_available() else 'cpu' best_model_wts = copy.deepcopy(model.state_dict()) best_val_acc = 0. for e in range(num_epochs): start = time.time() statistics = { 'train': { 'loss': 0., 'acc': 0. }, 'val': { 'loss':0., 'acc': 0. } } for phase in ['train', 'val']: if phase == 'train': if scheduler: scheduler.step() model.train() # set model to training mode else: model.eval() # set model to evaluate mode # loop over dataloader for inputs, labels in dataloaders[phase]: inputs, labels = inputs.to(device), labels.to(device) # Zero out parameter gradients optimizer.zero_grad() # Forward pass, track history in train phase with torch.set_grad_enabled(phase=='train'): outputs = model(inputs) _, preds = torch.max(outputs, dim=1) # torch.max return 2 tensors: first is max value, second is argmax value loss = criterion(outputs, labels) if phase == 'train': loss.backward() optimizer.step() statistics[phase]['loss'] += loss.item() * inputs.size(0) statistics[phase]['acc'] += (preds == labels.data).sum().item() statistics[phase] = {key: statistics[phase][key]/dataset_sizes[phase] for key in statistics[phase].keys()} time_elapsed = time.time() - start print(f"[INFO]Epoch {e+1}/{num_epochs} - {time_elapsed:.2f}s - Loss: {statistics['train']['loss']:.5f}, Accuracy: {statistics['train']['acc']:.5f}, Validation loss: {statistics['val']['loss']:.5f}, Validation accuracy: {statistics['val']['acc']:.5f}") if best_val_acc < statistics['val']['acc']: best_val_acc = statistics['val']['acc'] best_model_wts = copy.deepcopy(model.state_dict()) # load best weights model.load_state_dict(best_model_wts) return model def imshow(inp, title=None): """ Imshow for Tensor """ inp = inp.permute(1, 2, 0).numpy() mean = np.array([0.485, 0.456, 0.406]) std = np.array([0.229, 0.224, 0.225]) inp = std * inp + mean inp = np.clip(inp, 0, 1) plt.imshow(inp) if title: plt.title(title) def visualize_model(model, dataloaders, class_names, file_names=None, num_images=6): """ Generic function to display predictions for a few images Arguments: class_names: ['ant', 'bee'] """ device = torch.device('cuda:0') if torch.cuda.is_available() else 'cpu' model.eval() fig = plt.figure() image_num = 0 with torch.no_grad(): for i, (inputs, labels) in enumerate(dataloaders['val']): inputs, labels = inputs.to(device), labels.to(device) outputs = model(inputs) _, preds = torch.max(outputs, dim=1) for j in range(inputs.size(0)): image_num += 1 if j == num_images: if file_names: fig.savefig(file_names) plt.close(fig) else: plt.imshow(fig) model.train() return ax = plt.subplot(num_images//2, 2, image_num) ax.axis('off') ax.set_title(f'Predicted: {class_names[preds[j]]}') imshow(inputs.cpu().data[j])
41bd11bb5664129a74675694664f8bf656e63cb7
19a4b375a3f232ed7ddddd56745f63d1949c4d78
/train.py
914108df1d11ec3c5b44d92b147972567397dfd3
[]
no_license
AotY/ask39-cm
949131b963b986ab2314088198e96fec5997574d
b586a2221edf72a5666cd1cb83bfb91dae5496e5
refs/heads/master
2020-04-12T09:14:54.055829
2019-01-12T08:27:37
2019-01-12T08:27:37
162,396,337
0
0
null
null
null
null
UTF-8
Python
false
false
13,376
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # Copyright © 2018 LeonTao # import os import sys import time import math import argparse import torch import torch.nn.functional as F from tqdm import tqdm from modules.optim import ScheduledOptimizer from modules.early_stopping import EarlyStopping from vocab import Vocab from vocab import PAD_ID from cm_model import CMModel from dataset import load_data, build_dataloader from misc.utils import generate_texts, save_generated_texts # Parse argument for language to train parser = argparse.ArgumentParser() parser.add_argument('--data_path', type=str, help='') parser.add_argument('--data_dir', type=str, help='') parser.add_argument('--vocab_path', type=str, help='') parser.add_argument('--vocab_size', type=int, help='') parser.add_argument('--embedding_size', type=int) parser.add_argument('--hidden_size', type=int) parser.add_argument('--bidirectional', action='store_true') parser.add_argument('--enc_num_layers', type=int) parser.add_argument('--dec_num_layers', type=int) parser.add_argument('--dropout', type=float) parser.add_argument('--teacher_forcing_ratio', type=float, default=0.5) parser.add_argument('--share_embedding', action='store_true') parser.add_argument('--tied', action='store_true') parser.add_argument('--max_grad_norm', type=float, default=5.0) parser.add_argument('--lr', type=float, default=0.001) parser.add_argument('--min_len', type=int, default=5) parser.add_argument('--q_max_len', type=int, default=60) parser.add_argument('--r_max_len', type=int, default=55) parser.add_argument('--beam_size', type=int, default=10) parser.add_argument('--batch_size', type=int, help='') parser.add_argument('--valid_split', type=float, default=0.08) parser.add_argument('--test_split', type=int, default=5) parser.add_argument('--epochs', type=int, default=20) parser.add_argument('--start_epoch', type=int, default=1) parser.add_argument('--lr_patience', type=int, help='Number of epochs with no improvement after which learning rate will be reduced') parser.add_argument('--es_patience', type=int, help='early stopping patience.') parser.add_argument('--device', type=str, help='cpu or cuda') parser.add_argument('--save_model', type=str, help='save path') parser.add_argument('--save_mode', type=str, choices=['all', 'best'], default='best') parser.add_argument('--checkpoint', type=str, help='checkpoint path') parser.add_argument('--smoothing', action='store_true') parser.add_argument('--log', type=str, help='save log.') parser.add_argument('--seed', type=str, help='random seed') parser.add_argument('--mode', type=str, help='train, eval, infer') args = parser.parse_args() print(' '.join(sys.argv)) torch.random.manual_seed(args.seed) device = torch.device(args.device) print('device: {}'.format(device)) # load vocab vocab = Vocab() vocab.load(args.vocab_path) args.vocab_size = int(vocab.size) print('vocab size: ', args.vocab_size) # load data datas = load_data(args, vocab) # dataset, data_load train_data, valid_data, test_data = build_dataloader(args, datas) # model model = CMModel( args, device ).to(device) print(model) # optimizer # optimizer = optim.Adam(model.parameters(), lr=args.lr) optim = torch.optim.Adam( model.parameters(), args.lr, betas=(0.9, 0.98), eps=1e-09 ) # scheduler = torch.optim.lr_scheduler.StepLR(optim, step_size=2, gamma=0.5) scheduler = torch.optim.lr_scheduler.ReduceLROnPlateau( optim, mode='min', factor=0.1, patience=args.lr_patience ) optimizer = ScheduledOptimizer( optim, scheduler, args.max_grad_norm ) # early stopping early_stopping = EarlyStopping( type='min', min_delta=0.001, patience=args.es_patience ) # train epochs def train_epochs(): ''' Start training ''' log_train_file = None log_valid_file = None if args.log: log_train_file = os.path.join(args.log, 'train.log') log_valid_file = os.path.join(args.log, 'valid.log') print('[Info] Training performance will be written to file: {} and {}'.format( log_train_file, log_valid_file)) with open(log_train_file, 'w') as log_tf, \ open(log_valid_file, 'w') as log_vf: log_tf.write('epoch,loss,ppl,accuracy\n') log_vf.write('epoch,loss,ppl,accuracy\n') valid_accus = [] for epoch in range(args.start_epoch, args.epochs + 1): print('[ Epoch', epoch, ']') start = time.time() train_loss, train_accu = train(epoch) print(' (Training) ppl: {ppl: 8.5f}, accuracy: {accu:3.3f} %, ' 'elapse: {elapse:3.3f} min'.format( ppl=math.exp(min(train_loss, 100)), accu=100*train_accu, elapse=(time.time()-start)/60) ) start = time.time() valid_loss, valid_accu = eval(epoch) print(' (Validation) ppl: {ppl: 8.5f}, accuracy: {accu:3.3f} %, ' 'elapse: {elapse:3.3f} min'.format( ppl=math.exp(min(valid_loss, 100)), accu=100*valid_accu, elapse=(time.time()-start)/60) ) valid_accus += [valid_accu] # is early_stopping is_stop = early_stopping.step(valid_loss) checkpoint = { 'model': model.state_dict(), 'settings': args, 'epoch': epoch, 'optimizer': optimizer.optimizer.state_dict(), # 'early_stopping': early_stopping, 'valid_loss': valid_loss, 'valid_accu': valid_accu } if args.save_model: if args.save_mode == 'all': model_name = os.path.join( args.save_model, 'accu_{accu:3.3f}.pth'.format(accu=100*valid_accu) ) torch.save(checkpoint, model_name) elif args.save_mode == 'best': model_name = os.path.join(args.save_model, 'best.pth') if valid_accu >= max(valid_accus): torch.save(checkpoint, model_name) print(' - [Info] The checkpoint file has been updated.') if log_train_file and log_valid_file: with open(log_train_file, 'a') as log_tf, open(log_valid_file, 'a') as log_vf: log_tf.write('{epoch}, {loss: 8.5f}, {ppl: 8.5f}, {accu:3.3f}\n'.format( epoch=epoch, loss=train_loss, ppl=math.exp(min(train_loss, 100)), accu=100*train_accu) ) log_vf.write('{epoch}, {loss: 8.5f}, {ppl: 8.5f}, {accu:3.3f}\n'.format( epoch=epoch, loss=valid_loss, ppl=math.exp(min(valid_loss, 100)), accu=100*valid_accu) ) if is_stop: print('Early Stopping.\n') sys.exit(0) # train def train(epoch): ''' Epoch operation in training phase''' model.train() total_loss = 0 n_word_total = 0 n_word_correct = 0 for batch in tqdm( train_data, mininterval=2, desc=' (Training: %d) ' % epoch, leave=False): # prepare data enc_inputs, dec_inputs, enc_lengths, dec_lengths = map( lambda x: x.to(device), batch) # [batch_size, max_len] dec_targets = dec_inputs[1:, :] dec_inputs = dec_inputs[:-1, :] # print('enc_inputs: ', enc_inputs.shape) # print(enc_inputs) # print(enc_lengths) # print('dec_inputs: ', dec_inputs.shape) # print('dec_targets: ', dec_targets.shape) # forward optimizer.zero_grad() dec_outputs = model( enc_inputs, enc_lengths, dec_inputs, dec_lengths ) # backward loss, n_correct = cal_performance( dec_outputs, dec_targets, smoothing=args.smoothing ) loss.backward() # update parameters optimizer.step() # note keeping total_loss += loss.item() non_pad_mask = dec_targets.ne(PAD_ID) n_word = non_pad_mask.sum().item() n_word_total += n_word n_word_correct += n_correct loss_per_word = total_loss/n_word_total accuracy = n_word_correct/n_word_total return loss_per_word, accuracy def eval(epoch): ''' Epoch operation in evaluation phase ''' model.eval() total_loss = 0 n_word_total = 0 n_word_correct = 0 with torch.no_grad(): for batch in tqdm( valid_data, mininterval=2, desc=' (Validation: %d) ' % epoch, leave=False): enc_inputs, dec_inputs, enc_lengths, dec_lengths = map( lambda x: x.to(device), batch) dec_targets = dec_inputs[1:, :] dec_inputs = dec_inputs[:-1, :] dec_outputs = model( enc_inputs, enc_lengths, dec_inputs, dec_lengths ) # backward loss, n_correct = cal_performance( dec_outputs, dec_targets, smoothing=False ) # note keeping total_loss += loss.item() non_pad_mask = dec_targets.ne(PAD_ID) n_word = non_pad_mask.sum().item() n_word_total += n_word n_word_correct += n_correct loss_per_word = total_loss/n_word_total accuracy = n_word_correct/n_word_total return loss_per_word, accuracy def infer(epoch): ''' Epoch operation in infer phase ''' model.eval() total_loss = 0 n_word_total = 0 n_word_correct = 0 with torch.no_grad(): for batch in tqdm( test_data, mininterval=2, desc=' (INFER: %d) ' % epoch, leave=False): enc_inputs, dec_inputs, enc_lengths, dec_lengths = map( lambda x: x.to(device), batch) dec_targets = dec_inputs[1:, :] dec_inputs = dec_inputs[:-1, :] greedy_outputs, beam_outputs, beam_length = model.decode( enc_inputs, enc_lengths, ) # [batch_size, max_len] enc_texts = generate_texts( vocab, args.batch_size, enc_inputs.transpose(0, 1), decode_type='greedy') # [batch_size, max_len] dec_texts = generate_texts( vocab, args.batch_size, dec_targets.transpose(0, 1), decode_type='greedy') # [batch_size, max_len] greedy_texts = generate_texts( vocab, args.batch_size, greedy_outputs, decode_type='greedy') # [batch_size, topk, max_len] beam_texts = generate_texts( vocab, args.batch_size, beam_outputs, decode_type='beam_search') save_path = os.path.join(args.data_dir, 'generated/%d.txt' % epoch) save_generated_texts(epoch, enc_texts, dec_texts, greedy_texts, beam_texts, save_path) def cal_performance(pred, gold, smoothing=False): ''' Apply label smoothing if needed ''' # pred: [max_len * batch_size, vocab_size] # gold: [max_len, batch_size] loss = cal_loss(pred, gold, smoothing) pred = pred.max(1)[1] gold = gold.contiguous().view(-1) non_pad_mask = gold.ne(PAD_ID) n_correct = pred.eq(gold) n_correct = n_correct.masked_select(non_pad_mask).sum().item() return loss, n_correct def cal_loss(pred, gold, smoothing): ''' Calculate cross entropy loss, apply label smoothing if needed. ''' # [max_len * batch_size] gold = gold.contiguous().view(-1) if smoothing: eps = 0.1 n_class = pred.size(1) one_hot = torch.zeros_like(pred).scatter(1, gold.view(-1, 1), 1) one_hot = one_hot * (1 - eps) + (1 - one_hot) * eps / (n_class - 1) log_prb = F.log_softmax(pred, dim=1) non_pad_mask = gold.ne(PAD_ID) loss = -(one_hot * log_prb).sum(dim=1) loss = loss.masked_select(non_pad_mask).sum() # average later else: loss = F.cross_entropy( pred, gold, ignore_index=PAD_ID, reduction='sum') return loss if __name__ == '__main__': mode = args.mode if args.checkpoint: print('load checkpoint...') checkpoint = torch.load(args.checkpoint) model.load_state_dict(checkpoint['model']) optimizer.optimizer.load_state_dict(checkpoint['optimizer']) # early_stopping = checkpoint['early_stopping'] args = checkpoint['settings'] epoch = checkpoint['epoch'] args.start_epoch = epoch + 1 valid_loss = checkpoint['valid_loss'] valid_accu = checkpoint['valid_accu'] print( ' - (checkpoint) epoch: {epoch: d} ppl: {ppl: 8.5f}, accuracy: {accu:3.3f} %'. format( epoch=epoch, ppl=math.exp(min(valid_loss, 100)), accu=100*valid_accu, ) ) args.mode = mode if args.mode == 'train': train_epochs() elif args.mode == 'eval': eval(epoch) elif args.mode == 'infer': infer(epoch)
65faef840d04bdeb7155de6e7e23e1f6a184626b
4bf067cd4fa1cee2891c54b02fafcaca28e8227a
/random.py
5dffcfd8d8ead06c246861f051676c2e77a62e0b
[]
no_license
c1c51/Python
e19dd8e0d90ec5015c87cd9f113c79aea7b25111
6dfa8ffa94d92e8741217ae09f265680e4e44951
refs/heads/master
2020-03-09T19:06:33.997743
2018-04-10T14:49:01
2018-04-10T14:49:01
128,949,484
0
0
null
null
null
null
UTF-8
Python
false
false
333
py
import Queue import threading import urllib2 # called by each thread def get_url(q, url): q.put(urllib2.urlopen(url).read()) theurls = ["http://google.com", "http://yahoo.com"] q = Queue.Queue() for u in theurls: t = threading.Thread(target=get_url, args = (q,u)) t.daemon = True t.start() s = q.get() print (s)
e06919dd2a9bbd247c1840da35f544f13f1c92bb
36a7c6c092799d9550233be9c735964768f34f09
/EVSCapp/permissions.py
e6f4ad1effbded5fa92093c5e13393f9be30bfdf
[]
no_license
AmirIdris/EVSCProject
eea215f8480fdcee54cc2cce0a675621c8c487bb
ed994c240924e6c30626b7e8a8020480c8112c4e
refs/heads/master
2023-07-28T00:12:56.857669
2021-09-07T21:10:58
2021-09-07T21:10:58
393,363,817
0
1
null
2021-09-07T21:10:58
2021-08-06T12:01:30
CSS
UTF-8
Python
false
false
271
py
from rest_framework import permissions class IsOwnerOrReadOnly(permissions.BasePermission): def has_object_permission(self, request, view, obj): if request.method in permissions.SAFE_METHODS: return True return obj.user == request.user
5e277ac73b8593875d3614ad8691df57cb8aa2fb
ba0cbdae81c171bd4be7b12c0594de72bd6d625a
/MyToontown/py2/toontown/minigame/DistributedTagTreasure.pyc.py
48111c1e609a7eb84bfa86c60461bd082ade4002
[]
no_license
sweep41/Toontown-2016
65985f198fa32a832e762fa9c59e59606d6a40a3
7732fb2c27001264e6dd652c057b3dc41f9c8a7d
refs/heads/master
2021-01-23T16:04:45.264205
2017-06-04T02:47:34
2017-06-04T02:47:34
93,279,679
0
0
null
null
null
null
UTF-8
Python
false
false
1,019
py
# 2013.08.22 22:21:41 Pacific Daylight Time # Embedded file name: toontown.minigame.DistributedTagTreasure from toontown.safezone import DistributedTreasure class DistributedTagTreasure(DistributedTreasure.DistributedTreasure): __module__ = __name__ def __init__(self, cr): DistributedTreasure.DistributedTreasure.__init__(self, cr) self.modelPath = 'phase_4/models/props/icecream' self.grabSoundPath = 'phase_4/audio/sfx/SZ_DD_treasure.mp3' self.accept('minigameOffstage', self.handleMinigameOffstage) def handleEnterSphere(self, collEntry): if not base.localAvatar.isIt: self.d_requestGrab() return None def handleMinigameOffstage(self): self.nodePath.reparentTo(hidden) # okay decompyling C:\Users\Maverick\Documents\Visual Studio 2010\Projects\Unfreezer\py2\toontown\minigame\DistributedTagTreasure.pyc # decompiled 1 files: 1 okay, 0 failed, 0 verify failed # 2013.08.22 22:21:41 Pacific Daylight Time
23207e111a4e7e07a5d636cb6326493693f5b3c4
532ca0c5361b54970bc435232e2a6d079c49aecd
/03_Conditionals and Control Flow/01_Conditionals and Control Flow/04_How the Tables Have Turned.py
761dda428d2ddf39b1b6f433d981dd3583040f68
[]
no_license
haveano/codeacademy-python_v1
dc5484e8df73b9a15ffce835dde625b6454c8302
10e6fb2974e1c47f380bb6a33c50b171ecfbf50f
refs/heads/master
2021-01-11T16:45:57.337493
2017-05-30T10:04:08
2017-05-30T10:04:08
79,660,536
0
0
null
null
null
null
UTF-8
Python
false
false
812
py
""" How the Tables Have Turned Comparisons result in either True or False, which are booleans as we learned before in this exercise. # Make me true! bool_one = 3 < 5 Let's switch it up: we'll give the boolean, and you'll write the expression, just like the example above. Instructions For each boolean value in the editor, write an expression that evaluates to that value. Remember, comparators are: ==, !=, >, >=, <, and <=. Use at least three different ones! Don't just use True and False! That's cheating! """ # Create comparative statements as appropriate on the lines below! # Make me true! bool_one = 3 < 5 # We already did this one for you! # Make me false! bool_two = 13 != 14-1 # Make me true! bool_three = 13 !=14-2 # Make me false! bool_four = 13 >= 14 # Make me true! bool_five = 13 <= 13
5befbb260c9b7b8ba459e5e42945153549916fbe
b17448d7eb36796700594794d79aeaf8438a81a2
/test.py
2af94baf00b7aaf4627e112ee25582d8ff5835e7
[]
no_license
whsasf/WuKong
f422a5547531ffadb13061ccbb504389b2cb07c6
9aabae849671c5b3eb1178d80586d74fcd11d6f7
refs/heads/master
2020-03-16T06:33:55.204243
2018-06-18T10:15:06
2018-06-18T10:15:06
129,723,556
0
0
null
null
null
null
UTF-8
Python
false
false
90
py
#!/usr/bin/python3 import basic_class basic_class.mylogger_summary.summary('zfxfdsfdsf')
fa24099fb4c61a922ec7e32ecb388a6cac3cd988
f2889a13368b59d8b82f7def1a31a6277b6518b7
/309.py
da9a1c3ac6e5917c4c8a202bed12b01b6642673d
[]
no_license
htl1126/leetcode
dacde03de5c9c967e527c4c3b29a4547154e11b3
c33559dc5e0bf6879bb3462ab65a9446a66d19f6
refs/heads/master
2023-09-01T14:57:57.302544
2023-08-25T15:50:56
2023-08-25T15:50:56
29,514,867
7
1
null
null
null
null
UTF-8
Python
false
false
746
py
# ref: https://leetcode.com/discuss/71391/easiest-java-solution-with # -explanations class Solution(object): def maxProfit(self, prices): """ :type prices: List[int] :rtype: int """ if len(prices) < 2: return 0 b0 = -prices[0] # max profit for buying at 0 b1 = b0 # max profit for buying at 1 s0, s1, s2 = 0, 0, 0 # max profit for buying at i, i - 1, i - 2 for i in xrange(1, len(prices)): b0 = max(b1, s2 - prices[i]) s0 = max(s1, b1 + prices[i]) b1 = b0 s2 = s1 s1 = s0 return s0 if __name__ == '__main__': sol = Solution() print sol.maxProfit([1, 2, 3, 0, 2])
468fdc36ae7001294a1493c1070b5c443b66e893
bc97d423d19756fbf33affd4ed98d4628d8878b3
/my_project/itproger/main/urls.py
49b1548ce7162c1a6ed6511e5d6aa41220dc9528
[]
no_license
David-Hakobyan1/MY_Django
40d63232805679bb5416d12a4ebba94fcb097959
fdcd61a76d131ca47a203bc291212494c3587637
refs/heads/main
2023-06-19T15:58:42.315023
2021-07-18T09:55:28
2021-07-18T09:55:28
381,956,110
0
0
null
null
null
null
UTF-8
Python
false
false
290
py
from django.urls import path from . import views urlpatterns = [ path('',views.index,name='index'), path('create',views.create,name='create'), path('read',views.read,name='read'), path('update',views.update,name='update'), path('delete',views.delete,name='delete'), ]
41b9e07b0f50c84b875fe7ebec63fa52d0d3f16a
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Pdf_docx_pptx_xlsx_epub_png/source/reportlab/graphics/charts/doughnut.py
f1228d0ce2b235500bc67db072a493cfe263dcd1
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
15,376
py
#Copyright ReportLab Europe Ltd. 2000-2017 #see license.txt for license details #history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/graphics/charts/doughnut.py # doughnut chart __version__='3.3.0' __doc__="""Doughnut chart Produces a circular chart like the doughnut charts produced by Excel. Can handle multiple series (which produce concentric 'rings' in the chart). """ import copy from math import sin, cos, pi from reportlab.lib import colors from reportlab.lib.validators import isColor, isNumber, isListOfNumbersOrNone,\ isListOfNumbers, isColorOrNone, isString,\ isListOfStringsOrNone, OneOf, SequenceOf,\ isBoolean, isListOfColors,\ isNoneOrListOfNoneOrStrings,\ isNoneOrListOfNoneOrNumbers,\ isNumberOrNone from reportlab.lib.attrmap import * from reportlab.pdfgen.canvas import Canvas from reportlab.graphics.shapes import Group, Drawing, Line, Rect, Polygon, Ellipse, \ Wedge, String, SolidShape, UserNode, STATE_DEFAULTS from reportlab.graphics.widgetbase import Widget, TypedPropertyCollection, PropHolder from reportlab.graphics.charts.piecharts import AbstractPieChart, WedgeProperties, _addWedgeLabel, fixLabelOverlaps from reportlab.graphics.charts.textlabels import Label from reportlab.graphics.widgets.markers import Marker from functools import reduce class SectorProperties(WedgeProperties): """This holds descriptive information about the sectors in a doughnut chart. It is not to be confused with the 'sector itself'; this just holds a recipe for how to format one, and does not allow you to hack the angles. It can format a genuine Sector object for you with its format method. """ _attrMap = AttrMap(BASE=WedgeProperties, ) class Doughnut(AbstractPieChart): _attrMap = AttrMap( x = AttrMapValue(isNumber, desc='X position of the chart within its container.'), y = AttrMapValue(isNumber, desc='Y position of the chart within its container.'), width = AttrMapValue(isNumber, desc='width of doughnut bounding box. Need not be same as width.'), height = AttrMapValue(isNumber, desc='height of doughnut bounding box. Need not be same as height.'), data = AttrMapValue(None, desc='list of numbers defining sector sizes; need not sum to 1'), labels = AttrMapValue(isListOfStringsOrNone, desc="optional list of labels to use for each data point"), startAngle = AttrMapValue(isNumber, desc="angle of first slice; like the compass, 0 is due North"), direction = AttrMapValue(OneOf('clockwise', 'anticlockwise'), desc="'clockwise' or 'anticlockwise'"), slices = AttrMapValue(None, desc="collection of sector descriptor objects"), simpleLabels = AttrMapValue(isBoolean, desc="If true(default) use String not super duper WedgeLabel"), # advanced usage checkLabelOverlap = AttrMapValue(isBoolean, desc="If true check and attempt to fix\n standard label overlaps(default off)",advancedUsage=1), sideLabels = AttrMapValue(isBoolean, desc="If true attempt to make chart with labels along side and pointers", advancedUsage=1) ) def __init__(self): self.x = 0 self.y = 0 self.width = 100 self.height = 100 self.data = [1,1] self.labels = None # or list of strings self.startAngle = 90 self.direction = "clockwise" self.simpleLabels = 1 self.checkLabelOverlap = 0 self.sideLabels = 0 self.slices = TypedPropertyCollection(SectorProperties) self.slices[0].fillColor = colors.darkcyan self.slices[1].fillColor = colors.blueviolet self.slices[2].fillColor = colors.blue self.slices[3].fillColor = colors.cyan self.slices[4].fillColor = colors.pink self.slices[5].fillColor = colors.magenta self.slices[6].fillColor = colors.yellow def demo(self): d = Drawing(200, 100) dn = Doughnut() dn.x = 50 dn.y = 10 dn.width = 100 dn.height = 80 dn.data = [10,20,30,40,50,60] dn.labels = ['a','b','c','d','e','f'] dn.slices.strokeWidth=0.5 dn.slices[3].popout = 10 dn.slices[3].strokeWidth = 2 dn.slices[3].strokeDashArray = [2,2] dn.slices[3].labelRadius = 1.75 dn.slices[3].fontColor = colors.red dn.slices[0].fillColor = colors.darkcyan dn.slices[1].fillColor = colors.blueviolet dn.slices[2].fillColor = colors.blue dn.slices[3].fillColor = colors.cyan dn.slices[4].fillColor = colors.aquamarine dn.slices[5].fillColor = colors.cadetblue dn.slices[6].fillColor = colors.lightcoral d.add(dn) return d def normalizeData(self, data=None): from operator import add sum = float(reduce(add,data,0)) return abs(sum)>=1e-8 and list(map(lambda x,f=360./sum: f*x, data)) or len(data)*[0] def makeSectors(self): # normalize slice data if isinstance(self.data,(list,tuple)) and isinstance(self.data[0],(list,tuple)): #it's a nested list, more than one sequence normData = [] n = [] for l in self.data: t = self.normalizeData(l) normData.append(t) n.append(len(t)) self._seriesCount = max(n) else: normData = self.normalizeData(self.data) n = len(normData) self._seriesCount = n #labels checkLabelOverlap = self.checkLabelOverlap L = [] L_add = L.append if self.labels is None: labels = [] if not isinstance(n,(list,tuple)): labels = [''] * n else: for m in n: labels = list(labels) + [''] * m else: labels = self.labels #there's no point in raising errors for less than enough labels if #we silently create all for the extreme case of no labels. if not isinstance(n,(list,tuple)): i = n-len(labels) if i>0: labels = list(labels) + [''] * i else: tlab = 0 for m in n: tlab += m i = tlab-len(labels) if i>0: labels = list(labels) + [''] * i xradius = self.width/2.0 yradius = self.height/2.0 centerx = self.x + xradius centery = self.y + yradius if self.direction == "anticlockwise": whichWay = 1 else: whichWay = -1 g = Group() startAngle = self.startAngle #% 360 styleCount = len(self.slices) if isinstance(self.data[0],(list,tuple)): #multi-series doughnut ndata = len(self.data) yir = (yradius/2.5)/ndata xir = (xradius/2.5)/ndata ydr = (yradius-yir)/ndata xdr = (xradius-xir)/ndata for sn,series in enumerate(normData): for i,angle in enumerate(series): endAngle = (startAngle + (angle * whichWay)) #% 360 if abs(startAngle-endAngle)<1e-5: startAngle = endAngle continue if startAngle < endAngle: a1 = startAngle a2 = endAngle else: a1 = endAngle a2 = startAngle startAngle = endAngle #if we didn't use %stylecount here we'd end up with the later sectors #all having the default style sectorStyle = self.slices[i%styleCount] # is it a popout? cx, cy = centerx, centery if sectorStyle.popout != 0: # pop out the sector averageAngle = (a1+a2)/2.0 aveAngleRadians = averageAngle * pi/180.0 popdistance = sectorStyle.popout cx = centerx + popdistance * cos(aveAngleRadians) cy = centery + popdistance * sin(aveAngleRadians) yr1 = yir+sn*ydr yr = yr1 + ydr xr1 = xir+sn*xdr xr = xr1 + xdr if isinstance(n,(list,tuple)): theSector = Wedge(cx, cy, xr, a1, a2, yradius=yr, radius1=xr1, yradius1=yr1) else: theSector = Wedge(cx, cy, xr, a1, a2, yradius=yr, radius1=xr1, yradius1=yr1, annular=True) theSector.fillColor = sectorStyle.fillColor theSector.strokeColor = sectorStyle.strokeColor theSector.strokeWidth = sectorStyle.strokeWidth theSector.strokeDashArray = sectorStyle.strokeDashArray g.add(theSector) if sn == 0: text = self.getSeriesName(i,'') if text: averageAngle = (a1+a2)/2.0 aveAngleRadians = averageAngle*pi/180.0 labelRadius = sectorStyle.labelRadius rx = xradius*labelRadius ry = yradius*labelRadius labelX = centerx + (0.5 * self.width * cos(aveAngleRadians) * labelRadius) labelY = centery + (0.5 * self.height * sin(aveAngleRadians) * labelRadius) l = _addWedgeLabel(self,text,averageAngle,labelX,labelY,sectorStyle) if checkLabelOverlap: l._origdata = { 'x': labelX, 'y':labelY, 'angle': averageAngle, 'rx': rx, 'ry':ry, 'cx':cx, 'cy':cy, 'bounds': l.getBounds(), } L_add(l) else: #single series doughnut yir = yradius/2.5 xir = xradius/2.5 for i,angle in enumerate(normData): endAngle = (startAngle + (angle * whichWay)) #% 360 if abs(startAngle-endAngle)<1e-5: startAngle = endAngle continue if startAngle < endAngle: a1 = startAngle a2 = endAngle else: a1 = endAngle a2 = startAngle startAngle = endAngle #if we didn't use %stylecount here we'd end up with the later sectors #all having the default style sectorStyle = self.slices[i%styleCount] # is it a popout? cx, cy = centerx, centery if sectorStyle.popout != 0: # pop out the sector averageAngle = (a1+a2)/2.0 aveAngleRadians = averageAngle * pi/180.0 popdistance = sectorStyle.popout cx = centerx + popdistance * cos(aveAngleRadians) cy = centery + popdistance * sin(aveAngleRadians) if n > 1: theSector = Wedge(cx, cy, xradius, a1, a2, yradius=yradius, radius1=xir, yradius1=yir) elif n==1: theSector = Wedge(cx, cy, xradius, a1, a2, yradius=yradius, radius1=xir, yradius1=yir, annular=True) theSector.fillColor = sectorStyle.fillColor theSector.strokeColor = sectorStyle.strokeColor theSector.strokeWidth = sectorStyle.strokeWidth theSector.strokeDashArray = sectorStyle.strokeDashArray g.add(theSector) # now draw a label if labels[i] != "": averageAngle = (a1+a2)/2.0 aveAngleRadians = averageAngle*pi/180.0 labelRadius = sectorStyle.labelRadius labelX = centerx + (0.5 * self.width * cos(aveAngleRadians) * labelRadius) labelY = centery + (0.5 * self.height * sin(aveAngleRadians) * labelRadius) rx = xradius*labelRadius ry = yradius*labelRadius l = _addWedgeLabel(self,labels[i],averageAngle,labelX,labelY,sectorStyle) if checkLabelOverlap: l._origdata = { 'x': labelX, 'y':labelY, 'angle': averageAngle, 'rx': rx, 'ry':ry, 'cx':cx, 'cy':cy, 'bounds': l.getBounds(), } L_add(l) if checkLabelOverlap and L: fixLabelOverlaps(L) for l in L: g.add(l) return g def draw(self): g = Group() g.add(self.makeSectors()) return g def sample1(): "Make up something from the individual Sectors" d = Drawing(400, 400) g = Group() s1 = Wedge(centerx=200, centery=200, radius=150, startangledegrees=0, endangledegrees=120, radius1=100) s1.fillColor=colors.red s1.strokeColor=None d.add(s1) s2 = Wedge(centerx=200, centery=200, radius=150, startangledegrees=120, endangledegrees=240, radius1=100) s2.fillColor=colors.green s2.strokeColor=None d.add(s2) s3 = Wedge(centerx=200, centery=200, radius=150, startangledegrees=240, endangledegrees=260, radius1=100) s3.fillColor=colors.blue s3.strokeColor=None d.add(s3) s4 = Wedge(centerx=200, centery=200, radius=150, startangledegrees=260, endangledegrees=360, radius1=100) s4.fillColor=colors.gray s4.strokeColor=None d.add(s4) return d def sample2(): "Make a simple demo" d = Drawing(400, 400) dn = Doughnut() dn.x = 50 dn.y = 50 dn.width = 300 dn.height = 300 dn.data = [10,20,30,40,50,60] d.add(dn) return d def sample3(): "Make a more complex demo" d = Drawing(400, 400) dn = Doughnut() dn.x = 50 dn.y = 50 dn.width = 300 dn.height = 300 dn.data = [[10,20,30,40,50,60], [10,20,30,40]] dn.labels = ['a','b','c','d','e','f'] d.add(dn) return d def sample4(): "Make a more complex demo with Label Overlap fixing" d = Drawing(400, 400) dn = Doughnut() dn.x = 50 dn.y = 50 dn.width = 300 dn.height = 300 dn.data = [[10,20,30,40,50,60], [10,20,30,40]] dn.labels = ['a','b','c','d','e','f'] dn.checkLabelOverlap = True d.add(dn) return d if __name__=='__main__': from reportlab.graphics.renderPDF import drawToFile d = sample1() drawToFile(d, 'doughnut1.pdf') d = sample2() drawToFile(d, 'doughnut2.pdf') d = sample3() drawToFile(d, 'doughnut3.pdf')
f17fd9f2d917793ba4512aa37f689ece8ed71944
48832d27da16256ee62c364add45f21b968ee669
/res/scripts/client/gui/scaleform/genconsts/quests_season_awards_types.py
556871ca4a30e5a322e6482ad59791a4ee691bce
[]
no_license
webiumsk/WOT-0.9.15.1
0752d5bbd7c6fafdd7f714af939ae7bcf654faf7
17ca3550fef25e430534d079876a14fbbcccb9b4
refs/heads/master
2021-01-20T18:24:10.349144
2016-08-04T18:08:34
2016-08-04T18:08:34
64,955,694
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
496
py
# 2016.08.04 19:52:02 Střední Evropa (letní čas) # Embedded file name: scripts/client/gui/Scaleform/genConsts/QUESTS_SEASON_AWARDS_TYPES.py class QUESTS_SEASON_AWARDS_TYPES(object): VEHICLE = 1 FEMALE_TANKMAN = 2 COMMENDATION_LISTS = 3 # okay decompyling c:\Users\PC\wotsources\files\originals\res\scripts\client\gui\scaleform\genconsts\quests_season_awards_types.pyc # decompiled 1 files: 1 okay, 0 failed, 0 verify failed # 2016.08.04 19:52:02 Střední Evropa (letní čas)
53e57c810578fe9bfb63bc0c3c4a5616ac1b4306
70d39e4ee19154a62e8c82467ef75b601e584738
/docker/mac-robber.py
2503134682dfb5d51eb85125c86ad0210ea31582
[]
no_license
babywyrm/sysadmin
6f2724be13ae7e5b9372278856a8c072073beffb
2a5f3d29c7529bc917d4ff9be03af30ec23948a5
refs/heads/master
2023-08-16T03:50:38.717442
2023-08-16T03:05:55
2023-08-16T03:05:55
210,228,940
10
5
null
2023-05-01T23:15:31
2019-09-22T23:42:50
PowerShell
UTF-8
Python
false
false
5,827
py
#!/usr/bin/env python # # Author: Jim Clausing # Date: 2017-09-01 # Version: 1.2.0 # # Desc: rewrite of the sleithkit mac-robber in Python # Unlinke the TSK version, this one can actually includes the MD5 & inode number # though I still return a 0 in the MD5 column for non-regular files, but calculating # hashes likely will modify atime, so it is turned off by default # # Note: in Python 2.7.x, st_ino, st_dev, st_nlink, st_uid, and st_gid are dummy variables # on Windows systems. This is apparently fixed in current Python 3 versions. # On *ALL* systems, os.stat does not return btime, so we put 0 there. :-( # # A useful way to use this on a live Linux system is with read-only --bind mounts # # # mount --bind / /mnt # # mount -o ro,remount,bind /mnt # # ./mac-robber.py -5 -x /mnt/tmp -r /mnt -m system-foo:/ /mnt # # This gets us hashes, but because the bind mount is read-only doesn't update atimes # # Copyright (c) 2017 AT&T Open Source. All rights reserved. # import os import sys import argparse import hashlib from stat import * __version_info__ = (1,2,3) __version__ = ".".join(map(str, __version_info__)) def mode_to_string(mode): lookup = ['---','--x','-w-','-wx','r--','r-x','rw-','rwx'] if S_ISDIR(mode): mode_str = 'd' elif S_ISCHR(mode): mode_str = 'c' elif S_ISBLK(mode): mode_str = 'b' elif S_ISREG(mode): mode_str = '-' elif S_ISFIFO(mode): mode_str = 'p' elif S_ISLNK(mode): mode_str = 'l' elif S_ISSOCK: mode_str = 's' own_mode = lookup[(mode & 0700)>>6] if mode & 04000: if mode & 0100: own_mode = own_mode.replace('x','s') else: own_mode = own_mode[:1] + 'S' mode_str = mode_str + own_mode grp_mode = lookup[(mode & 070)>>3] if mode & 02000: if mode & 010: grp_mode = grp_mode.replace('x','s') else: grp_mode = grp_mode[:1] + 'S' mode_str = mode_str + own_mode oth_mode = lookup[(mode & 07)] if mode & 01000: if mode & 01: oth_mode = oth_mode.replace('x','t') else: oth_mode = oth_mode[:1] + 'T' mode_str = mode_str + oth_mode return mode_str def process_item(dirpath,item): md5 = hashlib.md5() fname = os.path.join(dirpath,item) if args.exclude and (fname in args.exclude or dirpath in args.exclude): return try: if os.path.islink(fname): status = os.lstat(fname) else: status = os.stat(fname) except IOError: return except OSError: return if args.hashes and S_ISREG(status.st_mode): try: if not (fname.find('/proc/') != -1 and fname.endswith('/kcore')) and status.st_size > 0: with open(fname, "rb") as f: for block in iter(lambda: f.read(65536), b""): md5.update(block) md5str = md5.hexdigest() elif status.st_size == 0: md5str = "d41d8cd98f00b204e9800998ecf8427e" else: md5str = "0" except IOError: md5str = "0" else: md5str = "0" mode = mode_to_string(status.st_mode) if os.path.islink(fname) and status.st_size > 0: mode = mode + ' -> ' + os.readlink(fname) if sys.version_info<(2,7,0): mtime = '%20.9f' % (status.st_mtime) atime = '%20.9f' % (status.st_atime) ctime = '%20.9f' % (status.st_mtime) else: mtime = '{:20.9f}'.format(status.st_mtime) atime = '{:20.9f}'.format(status.st_atime) ctime = '{:20.9f}'.format(status.st_mtime) btime = 0 size = status.st_size uid = status.st_uid gid = status.st_gid inode = status.st_ino if args.rmprefix: if fname.startswith(args.rmprefix): fname = fname[len(args.rmprefix):] if args.prefix: if fname.find('/') == 0: fname = args.prefix + fname else: fname = args.prefix + '/' + fname return md5str+'|'+fname+'|'+str(inode)+'|'+mode+'|'+str(uid)+'|'+str(gid)+'|'+str(size)+'|'+atime+'|'+mtime+'|'+ctime+'|'+str(btime) if sys.version_info<(2,6,0): sys.stderr.write("Not tested on versions earlier than 2.6\n") exit(1) parser = argparse.ArgumentParser(description='collect data on files') parser.add_argument('directories', metavar='DIR', nargs='+', help='directories to traverse') parser.add_argument('-m','--prefix', metavar='PREFIX', help='prefix string') parser.add_argument('-5','--hashes', action='store_true', help='do MD5 calculation (disabled by default)', default=False) parser.add_argument('-x','--exclude', metavar='EXCLUDE', action='append', help='directory trees or files to exclude, does not handle file extensions or regex', default=[]) parser.add_argument('-r','--rmprefix', metavar='RMPREFIX', help='prefix to remove, useful when using read-only --bind mount to prevent atime updates') parser.add_argument('-V','--version', action='version', help='print version number', version='%(prog)s v{version}'.format(version= __version__)) args = parser.parse_args() for directory in args.directories: for dirpath,dirs,files in os.walk(directory): dirs[:] = [d for d in dirs if d not in args.exclude] for directory in dirs: outstr = process_item(dirpath,directory) if outstr is not None: print outstr sys.stdout.flush() for filename in files: if filename in args.exclude: continue outstr = process_item(dirpath,filename) if outstr is not None: print outstr sys.stdout.flush() #########################################
d4323a8fa1e1648c6105fb1c105c9320a7657887
90d3b9467dcc6763865cad90a04a247cafcf5862
/shopee/child_app/transport/urls.py
2623f3b186fcd57a552bb35e8ab754ee8ca7fb7d
[]
no_license
vandat9xhn/django_1
0fa51515549eab04c27bdfeaf9e43650fe44dc70
6669e172d6b5a2a729dd31ea43d6c08f76b6e19c
refs/heads/master
2023-06-23T19:46:26.558871
2021-07-26T15:11:12
2021-07-26T15:11:12
375,704,827
1
0
null
null
null
null
UTF-8
Python
false
false
131
py
from django.urls import path # from . import views # urlpatterns = [ path('transport-l/', views.TransportViewL.as_view()), ]
62e9919f8fe5745cb117876ae51196d4b4bc314f
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_029/ch178_2020_08_14_14_38_35_094615.py
bfc04d96c2b6f66c5cb150cd9294fc1f83977d91
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
337
py
def junta_nomes(a,b,c):     lis = []     for i in a:         if len(a) != 0:             for d in c:                 lis.append(i+''+d)     for e in b:         if len(b) != 0:             for f in c:                 lis.append(i+''+f)     return lis
25cd32fcfa59a1dd6d38c88daf0e48f1bd5f8283
32a81b96a631fa5f7cd3e1da79499b36f1cbbf86
/src/artifice/scraper/config/settings.py
aa602920a6b6d62fb2e9637ebe0dae41b8846510
[]
no_license
minelminel/celery-rabbitmq-example
f4e696f24d924395d09934a33fba9ea9ca065603
4eccabf46aec855cfa4738a06a992f71232d6364
refs/heads/master
2020-07-01T11:44:43.656850
2019-08-30T04:08:13
2019-08-30T04:08:13
201,165,312
0
0
null
2019-08-30T04:08:13
2019-08-08T02:48:51
Python
UTF-8
Python
false
false
3,758
py
try: import configparser except ImportError: configparser = None import os import logging log = logging.getLogger(__name__) loc = os.path.dirname(os.path.abspath(__file__)) class Settings(object): """ The settings can be changed by setting up a config file. For an example of a config file, see `scraper.cfg` in the main-directory. """ def __init__(self): """ Sets the default values for the project """ # BASE_DIR:///artifice/scraper/ self.BASE_DIR = os.path.dirname(loc) # prototypes self._eth0 = '0.0.0.0' self._exposed_port = 8080 self._db_name = 'site.db' self._redis_pword = 'password' self._redis_host = 'localhost' self._redis_port = 6379 self._celery_broker_uname = 'michael' self._celery_broker_pword = 'michael123' self._celery_broker_host = 'localhost' self._celery_broker_virtual_host = 'michael_vhost' # flask self.TESTING = False self.URL_PREFIX = '' self.FLASK_PORT = self._exposed_port self.FLASK_HOST = '0.0.0.0' self.FLASK_DEBUG = False self.FLASK_USE_RELOADER = False self.FLASK_THREADED = True # logging self.LOG_FILE = 'flask.log' self.LOG_LEVEL = 'INFO' self.CELERY_LOG_LEVEL = 'ERROR' self.CELERY_LOG_FILE = 'celery.log' self.STDOUT = True # database self.DROP_TABLES = True self.SQLALCHEMY_TRACK_MODIFICATIONS = False self.SQLALCHEMY_DATABASE_URI = 'sqlite:///{}'.format( os.path.join(self.BASE_DIR, self._db_name)) # redis self.REDIS_URL = 'redis://{}:@{}:{}/0'.format( self._redis_pword, self._redis_host, self._redis_port) self.REDIS_HIT_COUNTER = 'HIT_COUNTER' # defaults self.ARGS_DEFAULT_LIMIT = 10 self.ARGS_DEFAULT_STATUS = ['READY', 'TASKED', 'DONE'] self.SUPERVISOR_ENABLED = True self.SUPERVISOR_DEBUG = False self.SUPERVISOR_POLITE = 1 # celery self.CELERY_WORKERS = 8 self.CELERY_MODULE = 'background' self.CELERY_BROKER = 'amqp://{}:{}@{}/{}'.format( self._celery_broker_uname, self._celery_broker_pword, self._celery_broker_host, self._celery_broker_virtual_host) self.CELERY_BACKEND = 'rpc://' self.CELERY_INCLUDE = ['artifice.scraper.background.tasks'] # endpoints self.URL_FOR_STATUS = 'http://{}:{}/status'.format(self._eth0, self._exposed_port) self.URL_FOR_QUEUE = 'http://{}:{}/queue'.format(self._eth0, self._exposed_port) self.URL_FOR_CONTENT = 'http://{}:{}/content'.format(self._eth0, self._exposed_port) def init_from(self, file=None, envvar=None, log_verbose=False): if envvar: file = os.getenv(envvar) if log_verbose: log.info("Running with config from: " + (str(file))) if not file: return try: parser = configparser.RawConfigParser() parser.read(file) # parse prototypes # parse flask # parse logging # parse database # parse redis # parse defaults # parse celery # parse endpoints except AttributeError: log.info("Cannot use configparser in Python2.7") raise
f355b0f96a8d88e8aad867f986f3cfa6975d11e8
e7af5a3e76e674be0a85628067fa494348d45123
/Python-for-Finance-Second-Edition-master/Chapter01/c1_04_def_pv_funtion.py
0b20696756b3ed519e37d740043058e85838ece9
[ "MIT" ]
permissive
SeyedShobeiri/Work
8321ead6f11de8297fa18d70a450602f700f26fb
f758e758106fbd53236a7fadae42e4ec6a4e8244
refs/heads/master
2022-07-25T02:33:25.852521
2020-05-17T16:11:27
2020-05-17T16:11:27
264,706,380
0
1
null
null
null
null
UTF-8
Python
false
false
330
py
# -*- coding: utf-8 -*- """ Name : c1_04_def_pv_function.py Book : Python for Finance (2nd ed.) Publisher: Packt Publishing Ltd. Author : Yuxing Yan Date : 6/6/2017 email : [email protected] [email protected] """ def pv_f(pv,r,n): return pv/(1+r)**n # pv=pv_f(100,0.1,2) print(pv)
a84c8d31de4dc825e18cbe3145a69c31faa63f3c
6d6bebce1a3d819c28cf583f3c46c8235ffccfd2
/WildlifeObservations/observations/migrations/0008_taxonomysubfamily.py
91c79afbcb1c9ad4a2816de568ceb34033315e61
[ "MIT" ]
permissive
jen-thomas/wildlife-observations
7a20366164d467d73c44e8c844cc99fe26716152
e6a6b6594e60fe080f253481720d80a38a9f7411
refs/heads/main
2023-05-25T17:20:15.506403
2023-05-16T13:03:05
2023-05-16T13:03:05
450,234,890
0
0
null
null
null
null
UTF-8
Python
false
false
824
py
# Generated by Django 3.2.11 on 2022-05-05 08:14 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('observations', '0007_alter_identification_confidence'), ] operations = [ migrations.CreateModel( name='TaxonomySubfamily', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('subfamily', models.CharField(max_length=255, unique=True)), ('family', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='observations.taxonomyfamily')), ], options={ 'verbose_name_plural': 'Taxonomy subfamilies', }, ), ]
c7d8f13bd8fb9ab354250cbb8f69282bb7f5d574
8362a53892f45a1a7adcca7da5cd6827bd5c55fd
/tests/test_database.py
89f622e5642f98b20ec639311a2fc9d55c641d1c
[ "MIT" ]
permissive
accent-starlette/starlette-core
1a414969ae05ba90c96f184a206c0eb97c1d33fc
88e94be0cc65e457e32f2586a3c8860c6c08fca9
refs/heads/master
2022-01-27T07:57:50.570112
2022-01-04T16:39:26
2022-01-04T16:39:26
185,164,201
13
7
MIT
2021-12-10T12:03:59
2019-05-06T09:19:57
Python
UTF-8
Python
false
false
3,037
py
import pytest import sqlalchemy as sa from starlette.exceptions import HTTPException from starlette_core.database import Base, Session class User(Base): name = sa.Column(sa.String(50)) def test_database(db): # connects ok db.engine.connect() # can create tables db.create_all() assert "user" in db.engine.table_names() # can drop tables db.drop_all() assert [] == db.engine.table_names() def test_database__truncate_of_db(db): db.create_all() user = User(name="bill") user.save() assert User.query.count() == 1 db.truncate_all(force=True) assert User.query.count() == 0 def test_session(db): db.create_all() # basic session usage user = User(name="bill") session = Session() session.add(user) session.commit() session.close() def test_declarative_base__save(db): db.create_all() user = User(name="ted") user.save() assert User.query.get(user.id) == user def test_declarative_base__delete(db): db.create_all() user = User(name="ted") user.save() user.delete() assert User.query.get(user.id) is None def test_declarative_base__refresh_from_db(db): db.create_all() user = User(name="ted") user.save() user.name = "sam" user.refresh_from_db() assert user.name == "ted" def test_declarative_base__can_be_deleted(db): class OrderA(Base): user_id = sa.Column(sa.Integer, sa.ForeignKey(User.id)) class OrderB(Base): user_id = sa.Column( sa.Integer, sa.ForeignKey(User.id, ondelete="SET NULL"), nullable=True ) class OrderC(Base): user_id = sa.Column(sa.Integer, sa.ForeignKey(User.id, ondelete="CASCADE")) class OrderD(Base): user_id = sa.Column(sa.Integer, sa.ForeignKey(User.id, ondelete="RESTRICT")) db.create_all() user = User(name="ted") user.save() assert user.can_be_deleted() # default order = OrderA(user_id=user.id) order.save() assert not user.can_be_deleted() order.delete() assert user.can_be_deleted() # set null order = OrderB(user_id=user.id) order.save() assert user.can_be_deleted() # cascade order = OrderC(user_id=user.id) order.save() assert user.can_be_deleted() # restrict order = OrderD(user_id=user.id) order.save() assert not user.can_be_deleted() order.delete() assert user.can_be_deleted() def test_declarative_base__repr(db): db.create_all() user = User() assert user.__tablename__ == "user" assert repr(user) == f"<User, id={user.id}>" assert str(user) == f"<User, id={user.id}>" def test_declarative_base__query(db): db.create_all() user = User(name="ted") user.save() # get_or_404 assert User.query.get_or_404(user.id) == user # get_or_404 raises http exception when no result found with pytest.raises(HTTPException) as e: User.query.get_or_404(1000) assert e.value.status_code == 404
fe65d3c37aaddf2a65dd606f8793933918d36b7a
bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d
/lib/googlecloudsdk/command_lib/util/concepts/presentation_specs.py
5ce3f81bfe836ac2d6f02210bc819c33c953c394
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
google-cloud-sdk-unofficial/google-cloud-sdk
05fbb473d629195f25887fc5bfaa712f2cbc0a24
392abf004b16203030e6efd2f0af24db7c8d669e
refs/heads/master
2023-08-31T05:40:41.317697
2023-08-23T18:23:16
2023-08-23T18:23:16
335,182,594
9
2
NOASSERTION
2022-10-29T20:49:13
2021-02-02T05:47:30
Python
UTF-8
Python
false
false
12,018
py
# -*- coding: utf-8 -*- # # Copyright 2018 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Classes to define how concept args are added to argparse. A PresentationSpec is used to define how a concept spec is presented in an individual command, such as its help text. ResourcePresentationSpecs are used for resource specs. """ from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals from googlecloudsdk.calliope.concepts import util from googlecloudsdk.command_lib.util.concepts import info_holders class PresentationSpec(object): """Class that defines how concept arguments are presented in a command. Attributes: name: str, the name of the main arg for the concept. Can be positional or flag style (UPPER_SNAKE_CASE or --lower-train-case). concept_spec: googlecloudsdk.calliope.concepts.ConceptSpec, The spec that specifies the concept. group_help: str, the help text for the entire arg group. prefixes: bool, whether to use prefixes before the attribute flags, such as `--myresource-project`. required: bool, whether the anchor argument should be required. If True, the command will fail at argparse time if the anchor argument isn't given. plural: bool, True if the resource will be parsed as a list, False otherwise. group: the parser or subparser for a Calliope command that the resource arguments should be added to. If not provided, will be added to the main parser. attribute_to_args_map: {str: str}, dict of attribute names to names of associated arguments. hidden: bool, True if the arguments should be hidden. """ def __init__(self, name, concept_spec, group_help, prefixes=False, required=False, flag_name_overrides=None, plural=False, group=None, hidden=False): """Initializes a ResourcePresentationSpec. Args: name: str, the name of the main arg for the concept. concept_spec: googlecloudsdk.calliope.concepts.ConceptSpec, The spec that specifies the concept. group_help: str, the help text for the entire arg group. prefixes: bool, whether to use prefixes before the attribute flags, such as `--myresource-project`. This will match the "name" (in flag format). required: bool, whether the anchor argument should be required. flag_name_overrides: {str: str}, dict of attribute names to the desired flag name. To remove a flag altogether, use '' as its rename value. plural: bool, True if the resource will be parsed as a list, False otherwise. group: the parser or subparser for a Calliope command that the resource arguments should be added to. If not provided, will be added to the main parser. hidden: bool, True if the arguments should be hidden. """ self.name = name self._concept_spec = concept_spec self.group_help = group_help self.prefixes = prefixes self.required = required self.plural = plural self.group = group self._attribute_to_args_map = self._GetAttributeToArgsMap( flag_name_overrides) self.hidden = hidden @property def concept_spec(self): """The ConceptSpec associated with the PresentationSpec. Returns: (googlecloudsdk.calliope.concepts.ConceptSpec) the concept spec. """ return self._concept_spec @property def attribute_to_args_map(self): """The map of attribute names to associated args. Returns: {str: str}, the map. """ return self._attribute_to_args_map def _GenerateInfo(self, fallthroughs_map): """Generate a ConceptInfo object for the ConceptParser. Must be overridden in subclasses. Args: fallthroughs_map: {str: [googlecloudsdk.calliope.concepts.deps. _FallthroughBase]}, dict keyed by attribute name to lists of fallthroughs. Returns: info_holders.ConceptInfo, the ConceptInfo object. """ raise NotImplementedError def _GetAttributeToArgsMap(self, flag_name_overrides): """Generate a map of attributes to primary arg names. Must be overridden in subclasses. Args: flag_name_overrides: {str: str}, the dict of flags to overridden names. Returns: {str: str}, dict from attribute names to arg names. """ raise NotImplementedError class ResourcePresentationSpec(PresentationSpec): """Class that specifies how resource arguments are presented in a command.""" def _ValidateFlagNameOverrides(self, flag_name_overrides): if not flag_name_overrides: return for attribute_name in flag_name_overrides.keys(): for attribute in self.concept_spec.attributes: if attribute.name == attribute_name: break else: raise ValueError( 'Attempting to override the name for an attribute not present in ' 'the concept: [{}]. Available attributes: [{}]'.format( attribute_name, ', '.join([attribute.name for attribute in self.concept_spec.attributes]))) def _GetAttributeToArgsMap(self, flag_name_overrides): self._ValidateFlagNameOverrides(flag_name_overrides) # Create a rename map for the attributes to their flags. attribute_to_args_map = {} for i, attribute in enumerate(self._concept_spec.attributes): is_anchor = i == len(self._concept_spec.attributes) - 1 name = self.GetFlagName( attribute.name, self.name, flag_name_overrides, self.prefixes, is_anchor=is_anchor) if name: attribute_to_args_map[attribute.name] = name return attribute_to_args_map @staticmethod def GetFlagName(attribute_name, presentation_name, flag_name_overrides=None, prefixes=False, is_anchor=False): """Gets the flag name for a given attribute name. Returns a flag name for an attribute, adding prefixes as necessary or using overrides if an override map is provided. Args: attribute_name: str, the name of the attribute to base the flag name on. presentation_name: str, the anchor argument name of the resource the attribute belongs to (e.g. '--foo'). flag_name_overrides: {str: str}, a dict of attribute names to exact string of the flag name to use for the attribute. None if no overrides. prefixes: bool, whether to use the resource name as a prefix for the flag. is_anchor: bool, True if this it he anchor flag, False otherwise. Returns: (str) the name of the flag. """ flag_name_overrides = flag_name_overrides or {} if attribute_name in flag_name_overrides: return flag_name_overrides.get(attribute_name) if attribute_name == 'project': return '' if is_anchor: return presentation_name prefix = util.PREFIX if prefixes: if presentation_name.startswith(util.PREFIX): prefix += presentation_name[len(util.PREFIX):] + '-' else: prefix += presentation_name.lower().replace('_', '-') + '-' return prefix + attribute_name def _GenerateInfo(self, fallthroughs_map): """Gets the ResourceInfo object for the ConceptParser. Args: fallthroughs_map: {str: [googlecloudsdk.calliope.concepts.deps. _FallthroughBase]}, dict keyed by attribute name to lists of fallthroughs. Returns: info_holders.ResourceInfo, the ResourceInfo object. """ return info_holders.ResourceInfo( self.name, self.concept_spec, self.group_help, self.attribute_to_args_map, fallthroughs_map, required=self.required, plural=self.plural, group=self.group, hidden=self.hidden) def __eq__(self, other): if not isinstance(other, type(self)): return False return (self.name == other.name and self.concept_spec == other.concept_spec and self.group_help == other.group_help and self.prefixes == other.prefixes and self.plural == other.plural and self.required == other.required and self.group == other.group and self.hidden == other.hidden) # Currently no other type of multitype concepts have been implemented. class MultitypeResourcePresentationSpec(PresentationSpec): """A resource-specific presentation spec.""" def _GetAttributeToArgsMap(self, flag_name_overrides): # Create a rename map for the attributes to their flags. attribute_to_args_map = {} leaf_anchors = [a for a in self._concept_spec.attributes if self._concept_spec.IsLeafAnchor(a)] for attribute in self._concept_spec.attributes: is_anchor = [attribute] == leaf_anchors name = self.GetFlagName( attribute.name, self.name, flag_name_overrides=flag_name_overrides, prefixes=self.prefixes, is_anchor=is_anchor) if name: attribute_to_args_map[attribute.name] = name return attribute_to_args_map @staticmethod def GetFlagName(attribute_name, presentation_name, flag_name_overrides=None, prefixes=False, is_anchor=False): """Gets the flag name for a given attribute name. Returns a flag name for an attribute, adding prefixes as necessary or using overrides if an override map is provided. Args: attribute_name: str, the name of the attribute to base the flag name on. presentation_name: str, the anchor argument name of the resource the attribute belongs to (e.g. '--foo'). flag_name_overrides: {str: str}, a dict of attribute names to exact string of the flag name to use for the attribute. None if no overrides. prefixes: bool, whether to use the resource name as a prefix for the flag. is_anchor: bool, True if this is the anchor flag, False otherwise. Returns: (str) the name of the flag. """ flag_name_overrides = flag_name_overrides or {} if attribute_name in flag_name_overrides: return flag_name_overrides.get(attribute_name) if is_anchor: return presentation_name if attribute_name == 'project': return '' if prefixes: return util.FlagNameFormat('-'.join([presentation_name, attribute_name])) return util.FlagNameFormat(attribute_name) def _GenerateInfo(self, fallthroughs_map): """Gets the MultitypeResourceInfo object for the ConceptParser. Args: fallthroughs_map: {str: [googlecloudsdk.calliope.concepts.deps. _FallthroughBase]}, dict keyed by attribute name to lists of fallthroughs. Returns: info_holders.MultitypeResourceInfo, the ResourceInfo object. """ return info_holders.MultitypeResourceInfo( self.name, self.concept_spec, self.group_help, self.attribute_to_args_map, fallthroughs_map, required=self.required, plural=self.plural, group=self.group) def __eq__(self, other): if not isinstance(other, type(self)): return False return (self.name == other.name and self.concept_spec == other.concept_spec and self.group_help == other.group_help and self.prefixes == other.prefixes and self.plural == other.plural and self.required == other.required and self.group == other.group and self.hidden == other.hidden)
aea0c877e69fd3729d376aef2e6ea5374f0287ca
5ec06dab1409d790496ce082dacb321392b32fe9
/clients/python-flask/generated/openapi_server/models/org_apache_sling_jcr_resource_internal_jcr_resource_resolver_factory_impl_properties.py
65ecabe223fe97999649b8c3603c5f29dc1f1a3b
[ "Apache-2.0" ]
permissive
shinesolutions/swagger-aem-osgi
e9d2385f44bee70e5bbdc0d577e99a9f2525266f
c2f6e076971d2592c1cbd3f70695c679e807396b
refs/heads/master
2022-10-29T13:07:40.422092
2021-04-09T07:46:03
2021-04-09T07:46:03
190,217,155
3
3
Apache-2.0
2022-10-05T03:26:20
2019-06-04T14:23:28
null
UTF-8
Python
false
false
38,540
py
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from openapi_server.models.base_model_ import Model from openapi_server.models.config_node_property_array import ConfigNodePropertyArray # noqa: F401,E501 from openapi_server.models.config_node_property_boolean import ConfigNodePropertyBoolean # noqa: F401,E501 from openapi_server.models.config_node_property_integer import ConfigNodePropertyInteger # noqa: F401,E501 from openapi_server.models.config_node_property_string import ConfigNodePropertyString # noqa: F401,E501 from openapi_server import util class OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties(Model): """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). Do not edit the class manually. """ def __init__(self, resource_resolver_searchpath: ConfigNodePropertyArray=None, resource_resolver_manglenamespaces: ConfigNodePropertyBoolean=None, resource_resolver_allow_direct: ConfigNodePropertyBoolean=None, resource_resolver_required_providers: ConfigNodePropertyArray=None, resource_resolver_required_providernames: ConfigNodePropertyArray=None, resource_resolver_virtual: ConfigNodePropertyArray=None, resource_resolver_mapping: ConfigNodePropertyArray=None, resource_resolver_map_location: ConfigNodePropertyString=None, resource_resolver_map_observation: ConfigNodePropertyArray=None, resource_resolver_default_vanity_redirect_status: ConfigNodePropertyInteger=None, resource_resolver_enable_vanitypath: ConfigNodePropertyBoolean=None, resource_resolver_vanitypath_max_entries: ConfigNodePropertyInteger=None, resource_resolver_vanitypath_max_entries_startup: ConfigNodePropertyBoolean=None, resource_resolver_vanitypath_bloomfilter_max_bytes: ConfigNodePropertyInteger=None, resource_resolver_optimize_alias_resolution: ConfigNodePropertyBoolean=None, resource_resolver_vanitypath_whitelist: ConfigNodePropertyArray=None, resource_resolver_vanitypath_blacklist: ConfigNodePropertyArray=None, resource_resolver_vanity_precedence: ConfigNodePropertyBoolean=None, resource_resolver_providerhandling_paranoid: ConfigNodePropertyBoolean=None, resource_resolver_log_closing: ConfigNodePropertyBoolean=None, resource_resolver_log_unclosed: ConfigNodePropertyBoolean=None): # noqa: E501 """OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties - a model defined in OpenAPI :param resource_resolver_searchpath: The resource_resolver_searchpath of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :type resource_resolver_searchpath: ConfigNodePropertyArray :param resource_resolver_manglenamespaces: The resource_resolver_manglenamespaces of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :type resource_resolver_manglenamespaces: ConfigNodePropertyBoolean :param resource_resolver_allow_direct: The resource_resolver_allow_direct of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :type resource_resolver_allow_direct: ConfigNodePropertyBoolean :param resource_resolver_required_providers: The resource_resolver_required_providers of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :type resource_resolver_required_providers: ConfigNodePropertyArray :param resource_resolver_required_providernames: The resource_resolver_required_providernames of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :type resource_resolver_required_providernames: ConfigNodePropertyArray :param resource_resolver_virtual: The resource_resolver_virtual of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :type resource_resolver_virtual: ConfigNodePropertyArray :param resource_resolver_mapping: The resource_resolver_mapping of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :type resource_resolver_mapping: ConfigNodePropertyArray :param resource_resolver_map_location: The resource_resolver_map_location of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :type resource_resolver_map_location: ConfigNodePropertyString :param resource_resolver_map_observation: The resource_resolver_map_observation of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :type resource_resolver_map_observation: ConfigNodePropertyArray :param resource_resolver_default_vanity_redirect_status: The resource_resolver_default_vanity_redirect_status of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :type resource_resolver_default_vanity_redirect_status: ConfigNodePropertyInteger :param resource_resolver_enable_vanitypath: The resource_resolver_enable_vanitypath of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :type resource_resolver_enable_vanitypath: ConfigNodePropertyBoolean :param resource_resolver_vanitypath_max_entries: The resource_resolver_vanitypath_max_entries of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :type resource_resolver_vanitypath_max_entries: ConfigNodePropertyInteger :param resource_resolver_vanitypath_max_entries_startup: The resource_resolver_vanitypath_max_entries_startup of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :type resource_resolver_vanitypath_max_entries_startup: ConfigNodePropertyBoolean :param resource_resolver_vanitypath_bloomfilter_max_bytes: The resource_resolver_vanitypath_bloomfilter_max_bytes of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :type resource_resolver_vanitypath_bloomfilter_max_bytes: ConfigNodePropertyInteger :param resource_resolver_optimize_alias_resolution: The resource_resolver_optimize_alias_resolution of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :type resource_resolver_optimize_alias_resolution: ConfigNodePropertyBoolean :param resource_resolver_vanitypath_whitelist: The resource_resolver_vanitypath_whitelist of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :type resource_resolver_vanitypath_whitelist: ConfigNodePropertyArray :param resource_resolver_vanitypath_blacklist: The resource_resolver_vanitypath_blacklist of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :type resource_resolver_vanitypath_blacklist: ConfigNodePropertyArray :param resource_resolver_vanity_precedence: The resource_resolver_vanity_precedence of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :type resource_resolver_vanity_precedence: ConfigNodePropertyBoolean :param resource_resolver_providerhandling_paranoid: The resource_resolver_providerhandling_paranoid of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :type resource_resolver_providerhandling_paranoid: ConfigNodePropertyBoolean :param resource_resolver_log_closing: The resource_resolver_log_closing of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :type resource_resolver_log_closing: ConfigNodePropertyBoolean :param resource_resolver_log_unclosed: The resource_resolver_log_unclosed of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :type resource_resolver_log_unclosed: ConfigNodePropertyBoolean """ self.openapi_types = { 'resource_resolver_searchpath': ConfigNodePropertyArray, 'resource_resolver_manglenamespaces': ConfigNodePropertyBoolean, 'resource_resolver_allow_direct': ConfigNodePropertyBoolean, 'resource_resolver_required_providers': ConfigNodePropertyArray, 'resource_resolver_required_providernames': ConfigNodePropertyArray, 'resource_resolver_virtual': ConfigNodePropertyArray, 'resource_resolver_mapping': ConfigNodePropertyArray, 'resource_resolver_map_location': ConfigNodePropertyString, 'resource_resolver_map_observation': ConfigNodePropertyArray, 'resource_resolver_default_vanity_redirect_status': ConfigNodePropertyInteger, 'resource_resolver_enable_vanitypath': ConfigNodePropertyBoolean, 'resource_resolver_vanitypath_max_entries': ConfigNodePropertyInteger, 'resource_resolver_vanitypath_max_entries_startup': ConfigNodePropertyBoolean, 'resource_resolver_vanitypath_bloomfilter_max_bytes': ConfigNodePropertyInteger, 'resource_resolver_optimize_alias_resolution': ConfigNodePropertyBoolean, 'resource_resolver_vanitypath_whitelist': ConfigNodePropertyArray, 'resource_resolver_vanitypath_blacklist': ConfigNodePropertyArray, 'resource_resolver_vanity_precedence': ConfigNodePropertyBoolean, 'resource_resolver_providerhandling_paranoid': ConfigNodePropertyBoolean, 'resource_resolver_log_closing': ConfigNodePropertyBoolean, 'resource_resolver_log_unclosed': ConfigNodePropertyBoolean } self.attribute_map = { 'resource_resolver_searchpath': 'resource.resolver.searchpath', 'resource_resolver_manglenamespaces': 'resource.resolver.manglenamespaces', 'resource_resolver_allow_direct': 'resource.resolver.allowDirect', 'resource_resolver_required_providers': 'resource.resolver.required.providers', 'resource_resolver_required_providernames': 'resource.resolver.required.providernames', 'resource_resolver_virtual': 'resource.resolver.virtual', 'resource_resolver_mapping': 'resource.resolver.mapping', 'resource_resolver_map_location': 'resource.resolver.map.location', 'resource_resolver_map_observation': 'resource.resolver.map.observation', 'resource_resolver_default_vanity_redirect_status': 'resource.resolver.default.vanity.redirect.status', 'resource_resolver_enable_vanitypath': 'resource.resolver.enable.vanitypath', 'resource_resolver_vanitypath_max_entries': 'resource.resolver.vanitypath.maxEntries', 'resource_resolver_vanitypath_max_entries_startup': 'resource.resolver.vanitypath.maxEntries.startup', 'resource_resolver_vanitypath_bloomfilter_max_bytes': 'resource.resolver.vanitypath.bloomfilter.maxBytes', 'resource_resolver_optimize_alias_resolution': 'resource.resolver.optimize.alias.resolution', 'resource_resolver_vanitypath_whitelist': 'resource.resolver.vanitypath.whitelist', 'resource_resolver_vanitypath_blacklist': 'resource.resolver.vanitypath.blacklist', 'resource_resolver_vanity_precedence': 'resource.resolver.vanity.precedence', 'resource_resolver_providerhandling_paranoid': 'resource.resolver.providerhandling.paranoid', 'resource_resolver_log_closing': 'resource.resolver.log.closing', 'resource_resolver_log_unclosed': 'resource.resolver.log.unclosed' } self._resource_resolver_searchpath = resource_resolver_searchpath self._resource_resolver_manglenamespaces = resource_resolver_manglenamespaces self._resource_resolver_allow_direct = resource_resolver_allow_direct self._resource_resolver_required_providers = resource_resolver_required_providers self._resource_resolver_required_providernames = resource_resolver_required_providernames self._resource_resolver_virtual = resource_resolver_virtual self._resource_resolver_mapping = resource_resolver_mapping self._resource_resolver_map_location = resource_resolver_map_location self._resource_resolver_map_observation = resource_resolver_map_observation self._resource_resolver_default_vanity_redirect_status = resource_resolver_default_vanity_redirect_status self._resource_resolver_enable_vanitypath = resource_resolver_enable_vanitypath self._resource_resolver_vanitypath_max_entries = resource_resolver_vanitypath_max_entries self._resource_resolver_vanitypath_max_entries_startup = resource_resolver_vanitypath_max_entries_startup self._resource_resolver_vanitypath_bloomfilter_max_bytes = resource_resolver_vanitypath_bloomfilter_max_bytes self._resource_resolver_optimize_alias_resolution = resource_resolver_optimize_alias_resolution self._resource_resolver_vanitypath_whitelist = resource_resolver_vanitypath_whitelist self._resource_resolver_vanitypath_blacklist = resource_resolver_vanitypath_blacklist self._resource_resolver_vanity_precedence = resource_resolver_vanity_precedence self._resource_resolver_providerhandling_paranoid = resource_resolver_providerhandling_paranoid self._resource_resolver_log_closing = resource_resolver_log_closing self._resource_resolver_log_unclosed = resource_resolver_log_unclosed @classmethod def from_dict(cls, dikt) -> 'OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties': """Returns the dict as a model :param dikt: A dict. :type: dict :return: The orgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. # noqa: E501 :rtype: OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties """ return util.deserialize_model(dikt, cls) @property def resource_resolver_searchpath(self) -> ConfigNodePropertyArray: """Gets the resource_resolver_searchpath of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :return: The resource_resolver_searchpath of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :rtype: ConfigNodePropertyArray """ return self._resource_resolver_searchpath @resource_resolver_searchpath.setter def resource_resolver_searchpath(self, resource_resolver_searchpath: ConfigNodePropertyArray): """Sets the resource_resolver_searchpath of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :param resource_resolver_searchpath: The resource_resolver_searchpath of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :type resource_resolver_searchpath: ConfigNodePropertyArray """ self._resource_resolver_searchpath = resource_resolver_searchpath @property def resource_resolver_manglenamespaces(self) -> ConfigNodePropertyBoolean: """Gets the resource_resolver_manglenamespaces of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :return: The resource_resolver_manglenamespaces of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :rtype: ConfigNodePropertyBoolean """ return self._resource_resolver_manglenamespaces @resource_resolver_manglenamespaces.setter def resource_resolver_manglenamespaces(self, resource_resolver_manglenamespaces: ConfigNodePropertyBoolean): """Sets the resource_resolver_manglenamespaces of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :param resource_resolver_manglenamespaces: The resource_resolver_manglenamespaces of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :type resource_resolver_manglenamespaces: ConfigNodePropertyBoolean """ self._resource_resolver_manglenamespaces = resource_resolver_manglenamespaces @property def resource_resolver_allow_direct(self) -> ConfigNodePropertyBoolean: """Gets the resource_resolver_allow_direct of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :return: The resource_resolver_allow_direct of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :rtype: ConfigNodePropertyBoolean """ return self._resource_resolver_allow_direct @resource_resolver_allow_direct.setter def resource_resolver_allow_direct(self, resource_resolver_allow_direct: ConfigNodePropertyBoolean): """Sets the resource_resolver_allow_direct of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :param resource_resolver_allow_direct: The resource_resolver_allow_direct of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :type resource_resolver_allow_direct: ConfigNodePropertyBoolean """ self._resource_resolver_allow_direct = resource_resolver_allow_direct @property def resource_resolver_required_providers(self) -> ConfigNodePropertyArray: """Gets the resource_resolver_required_providers of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :return: The resource_resolver_required_providers of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :rtype: ConfigNodePropertyArray """ return self._resource_resolver_required_providers @resource_resolver_required_providers.setter def resource_resolver_required_providers(self, resource_resolver_required_providers: ConfigNodePropertyArray): """Sets the resource_resolver_required_providers of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :param resource_resolver_required_providers: The resource_resolver_required_providers of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :type resource_resolver_required_providers: ConfigNodePropertyArray """ self._resource_resolver_required_providers = resource_resolver_required_providers @property def resource_resolver_required_providernames(self) -> ConfigNodePropertyArray: """Gets the resource_resolver_required_providernames of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :return: The resource_resolver_required_providernames of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :rtype: ConfigNodePropertyArray """ return self._resource_resolver_required_providernames @resource_resolver_required_providernames.setter def resource_resolver_required_providernames(self, resource_resolver_required_providernames: ConfigNodePropertyArray): """Sets the resource_resolver_required_providernames of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :param resource_resolver_required_providernames: The resource_resolver_required_providernames of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :type resource_resolver_required_providernames: ConfigNodePropertyArray """ self._resource_resolver_required_providernames = resource_resolver_required_providernames @property def resource_resolver_virtual(self) -> ConfigNodePropertyArray: """Gets the resource_resolver_virtual of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :return: The resource_resolver_virtual of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :rtype: ConfigNodePropertyArray """ return self._resource_resolver_virtual @resource_resolver_virtual.setter def resource_resolver_virtual(self, resource_resolver_virtual: ConfigNodePropertyArray): """Sets the resource_resolver_virtual of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :param resource_resolver_virtual: The resource_resolver_virtual of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :type resource_resolver_virtual: ConfigNodePropertyArray """ self._resource_resolver_virtual = resource_resolver_virtual @property def resource_resolver_mapping(self) -> ConfigNodePropertyArray: """Gets the resource_resolver_mapping of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :return: The resource_resolver_mapping of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :rtype: ConfigNodePropertyArray """ return self._resource_resolver_mapping @resource_resolver_mapping.setter def resource_resolver_mapping(self, resource_resolver_mapping: ConfigNodePropertyArray): """Sets the resource_resolver_mapping of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :param resource_resolver_mapping: The resource_resolver_mapping of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :type resource_resolver_mapping: ConfigNodePropertyArray """ self._resource_resolver_mapping = resource_resolver_mapping @property def resource_resolver_map_location(self) -> ConfigNodePropertyString: """Gets the resource_resolver_map_location of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :return: The resource_resolver_map_location of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :rtype: ConfigNodePropertyString """ return self._resource_resolver_map_location @resource_resolver_map_location.setter def resource_resolver_map_location(self, resource_resolver_map_location: ConfigNodePropertyString): """Sets the resource_resolver_map_location of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :param resource_resolver_map_location: The resource_resolver_map_location of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :type resource_resolver_map_location: ConfigNodePropertyString """ self._resource_resolver_map_location = resource_resolver_map_location @property def resource_resolver_map_observation(self) -> ConfigNodePropertyArray: """Gets the resource_resolver_map_observation of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :return: The resource_resolver_map_observation of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :rtype: ConfigNodePropertyArray """ return self._resource_resolver_map_observation @resource_resolver_map_observation.setter def resource_resolver_map_observation(self, resource_resolver_map_observation: ConfigNodePropertyArray): """Sets the resource_resolver_map_observation of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :param resource_resolver_map_observation: The resource_resolver_map_observation of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :type resource_resolver_map_observation: ConfigNodePropertyArray """ self._resource_resolver_map_observation = resource_resolver_map_observation @property def resource_resolver_default_vanity_redirect_status(self) -> ConfigNodePropertyInteger: """Gets the resource_resolver_default_vanity_redirect_status of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :return: The resource_resolver_default_vanity_redirect_status of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :rtype: ConfigNodePropertyInteger """ return self._resource_resolver_default_vanity_redirect_status @resource_resolver_default_vanity_redirect_status.setter def resource_resolver_default_vanity_redirect_status(self, resource_resolver_default_vanity_redirect_status: ConfigNodePropertyInteger): """Sets the resource_resolver_default_vanity_redirect_status of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :param resource_resolver_default_vanity_redirect_status: The resource_resolver_default_vanity_redirect_status of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :type resource_resolver_default_vanity_redirect_status: ConfigNodePropertyInteger """ self._resource_resolver_default_vanity_redirect_status = resource_resolver_default_vanity_redirect_status @property def resource_resolver_enable_vanitypath(self) -> ConfigNodePropertyBoolean: """Gets the resource_resolver_enable_vanitypath of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :return: The resource_resolver_enable_vanitypath of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :rtype: ConfigNodePropertyBoolean """ return self._resource_resolver_enable_vanitypath @resource_resolver_enable_vanitypath.setter def resource_resolver_enable_vanitypath(self, resource_resolver_enable_vanitypath: ConfigNodePropertyBoolean): """Sets the resource_resolver_enable_vanitypath of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :param resource_resolver_enable_vanitypath: The resource_resolver_enable_vanitypath of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :type resource_resolver_enable_vanitypath: ConfigNodePropertyBoolean """ self._resource_resolver_enable_vanitypath = resource_resolver_enable_vanitypath @property def resource_resolver_vanitypath_max_entries(self) -> ConfigNodePropertyInteger: """Gets the resource_resolver_vanitypath_max_entries of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :return: The resource_resolver_vanitypath_max_entries of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :rtype: ConfigNodePropertyInteger """ return self._resource_resolver_vanitypath_max_entries @resource_resolver_vanitypath_max_entries.setter def resource_resolver_vanitypath_max_entries(self, resource_resolver_vanitypath_max_entries: ConfigNodePropertyInteger): """Sets the resource_resolver_vanitypath_max_entries of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :param resource_resolver_vanitypath_max_entries: The resource_resolver_vanitypath_max_entries of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :type resource_resolver_vanitypath_max_entries: ConfigNodePropertyInteger """ self._resource_resolver_vanitypath_max_entries = resource_resolver_vanitypath_max_entries @property def resource_resolver_vanitypath_max_entries_startup(self) -> ConfigNodePropertyBoolean: """Gets the resource_resolver_vanitypath_max_entries_startup of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :return: The resource_resolver_vanitypath_max_entries_startup of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :rtype: ConfigNodePropertyBoolean """ return self._resource_resolver_vanitypath_max_entries_startup @resource_resolver_vanitypath_max_entries_startup.setter def resource_resolver_vanitypath_max_entries_startup(self, resource_resolver_vanitypath_max_entries_startup: ConfigNodePropertyBoolean): """Sets the resource_resolver_vanitypath_max_entries_startup of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :param resource_resolver_vanitypath_max_entries_startup: The resource_resolver_vanitypath_max_entries_startup of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :type resource_resolver_vanitypath_max_entries_startup: ConfigNodePropertyBoolean """ self._resource_resolver_vanitypath_max_entries_startup = resource_resolver_vanitypath_max_entries_startup @property def resource_resolver_vanitypath_bloomfilter_max_bytes(self) -> ConfigNodePropertyInteger: """Gets the resource_resolver_vanitypath_bloomfilter_max_bytes of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :return: The resource_resolver_vanitypath_bloomfilter_max_bytes of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :rtype: ConfigNodePropertyInteger """ return self._resource_resolver_vanitypath_bloomfilter_max_bytes @resource_resolver_vanitypath_bloomfilter_max_bytes.setter def resource_resolver_vanitypath_bloomfilter_max_bytes(self, resource_resolver_vanitypath_bloomfilter_max_bytes: ConfigNodePropertyInteger): """Sets the resource_resolver_vanitypath_bloomfilter_max_bytes of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :param resource_resolver_vanitypath_bloomfilter_max_bytes: The resource_resolver_vanitypath_bloomfilter_max_bytes of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :type resource_resolver_vanitypath_bloomfilter_max_bytes: ConfigNodePropertyInteger """ self._resource_resolver_vanitypath_bloomfilter_max_bytes = resource_resolver_vanitypath_bloomfilter_max_bytes @property def resource_resolver_optimize_alias_resolution(self) -> ConfigNodePropertyBoolean: """Gets the resource_resolver_optimize_alias_resolution of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :return: The resource_resolver_optimize_alias_resolution of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :rtype: ConfigNodePropertyBoolean """ return self._resource_resolver_optimize_alias_resolution @resource_resolver_optimize_alias_resolution.setter def resource_resolver_optimize_alias_resolution(self, resource_resolver_optimize_alias_resolution: ConfigNodePropertyBoolean): """Sets the resource_resolver_optimize_alias_resolution of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :param resource_resolver_optimize_alias_resolution: The resource_resolver_optimize_alias_resolution of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :type resource_resolver_optimize_alias_resolution: ConfigNodePropertyBoolean """ self._resource_resolver_optimize_alias_resolution = resource_resolver_optimize_alias_resolution @property def resource_resolver_vanitypath_whitelist(self) -> ConfigNodePropertyArray: """Gets the resource_resolver_vanitypath_whitelist of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :return: The resource_resolver_vanitypath_whitelist of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :rtype: ConfigNodePropertyArray """ return self._resource_resolver_vanitypath_whitelist @resource_resolver_vanitypath_whitelist.setter def resource_resolver_vanitypath_whitelist(self, resource_resolver_vanitypath_whitelist: ConfigNodePropertyArray): """Sets the resource_resolver_vanitypath_whitelist of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :param resource_resolver_vanitypath_whitelist: The resource_resolver_vanitypath_whitelist of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :type resource_resolver_vanitypath_whitelist: ConfigNodePropertyArray """ self._resource_resolver_vanitypath_whitelist = resource_resolver_vanitypath_whitelist @property def resource_resolver_vanitypath_blacklist(self) -> ConfigNodePropertyArray: """Gets the resource_resolver_vanitypath_blacklist of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :return: The resource_resolver_vanitypath_blacklist of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :rtype: ConfigNodePropertyArray """ return self._resource_resolver_vanitypath_blacklist @resource_resolver_vanitypath_blacklist.setter def resource_resolver_vanitypath_blacklist(self, resource_resolver_vanitypath_blacklist: ConfigNodePropertyArray): """Sets the resource_resolver_vanitypath_blacklist of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :param resource_resolver_vanitypath_blacklist: The resource_resolver_vanitypath_blacklist of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :type resource_resolver_vanitypath_blacklist: ConfigNodePropertyArray """ self._resource_resolver_vanitypath_blacklist = resource_resolver_vanitypath_blacklist @property def resource_resolver_vanity_precedence(self) -> ConfigNodePropertyBoolean: """Gets the resource_resolver_vanity_precedence of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :return: The resource_resolver_vanity_precedence of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :rtype: ConfigNodePropertyBoolean """ return self._resource_resolver_vanity_precedence @resource_resolver_vanity_precedence.setter def resource_resolver_vanity_precedence(self, resource_resolver_vanity_precedence: ConfigNodePropertyBoolean): """Sets the resource_resolver_vanity_precedence of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :param resource_resolver_vanity_precedence: The resource_resolver_vanity_precedence of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :type resource_resolver_vanity_precedence: ConfigNodePropertyBoolean """ self._resource_resolver_vanity_precedence = resource_resolver_vanity_precedence @property def resource_resolver_providerhandling_paranoid(self) -> ConfigNodePropertyBoolean: """Gets the resource_resolver_providerhandling_paranoid of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :return: The resource_resolver_providerhandling_paranoid of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :rtype: ConfigNodePropertyBoolean """ return self._resource_resolver_providerhandling_paranoid @resource_resolver_providerhandling_paranoid.setter def resource_resolver_providerhandling_paranoid(self, resource_resolver_providerhandling_paranoid: ConfigNodePropertyBoolean): """Sets the resource_resolver_providerhandling_paranoid of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :param resource_resolver_providerhandling_paranoid: The resource_resolver_providerhandling_paranoid of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :type resource_resolver_providerhandling_paranoid: ConfigNodePropertyBoolean """ self._resource_resolver_providerhandling_paranoid = resource_resolver_providerhandling_paranoid @property def resource_resolver_log_closing(self) -> ConfigNodePropertyBoolean: """Gets the resource_resolver_log_closing of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :return: The resource_resolver_log_closing of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :rtype: ConfigNodePropertyBoolean """ return self._resource_resolver_log_closing @resource_resolver_log_closing.setter def resource_resolver_log_closing(self, resource_resolver_log_closing: ConfigNodePropertyBoolean): """Sets the resource_resolver_log_closing of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :param resource_resolver_log_closing: The resource_resolver_log_closing of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :type resource_resolver_log_closing: ConfigNodePropertyBoolean """ self._resource_resolver_log_closing = resource_resolver_log_closing @property def resource_resolver_log_unclosed(self) -> ConfigNodePropertyBoolean: """Gets the resource_resolver_log_unclosed of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :return: The resource_resolver_log_unclosed of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :rtype: ConfigNodePropertyBoolean """ return self._resource_resolver_log_unclosed @resource_resolver_log_unclosed.setter def resource_resolver_log_unclosed(self, resource_resolver_log_unclosed: ConfigNodePropertyBoolean): """Sets the resource_resolver_log_unclosed of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :param resource_resolver_log_unclosed: The resource_resolver_log_unclosed of this OrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImplProperties. :type resource_resolver_log_unclosed: ConfigNodePropertyBoolean """ self._resource_resolver_log_unclosed = resource_resolver_log_unclosed