blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72e2390c7ee30d02a56fbd20e227c1eca6df95c8 | c4b03df88a7efa181fcabec14f8cc06c6b76ba33 | /tree/avl.py | 33ea27cfa4e11fbd45394f7b80387a5c33d8cb4d | [] | no_license | psr1981/data-structure-and-algorithms | 3e7cf17c5575487876aed23dced0519151f8f068 | 2b638ad76067b4a57bd6a57d6ec94c4527252e87 | refs/heads/master | 2020-03-21T14:55:40.969364 | 2018-09-25T18:22:49 | 2018-09-25T18:22:49 | 138,683,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,767 | py | # @Author - Pradeep Singh Rajpoot
def height(node):
result = -1
if node is not None:
result = node.height
return result
def updateHeight(node):
if node is not None:
node.height = max(height(node.left), height(node.right)) + 1
def balanceFactor(node):
return (height(node.left) - height(node.right))
class AVLNode:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
self.parent = None
self.height = -1;
# Credits - Code taken from MIT 6.001 course (thx erik demaine)
def _str(self):
"""Internal method for ASCII art."""
label = str(self.data)
#label = str(self.data) + ' (' + str(self.height) + ') bf=' + str( balanceFactor(self) )
if self.left is None:
left_lines, left_pos, left_width = [], 0, 0
else:
left_lines, left_pos, left_width = self.left._str()
if self.right is None:
right_lines, right_pos, right_width = [], 0, 0
else:
right_lines, right_pos, right_width = self.right._str()
middle = max(right_pos + left_width - left_pos + 1, len(label), 2)
pos = left_pos + middle // 2
width = left_pos + middle + right_width - right_pos
while len(left_lines) < len(right_lines):
left_lines.append(' ' * left_width)
while len(right_lines) < len(left_lines):
right_lines.append(' ' * right_width)
if (middle - len(label)) % 2 == 1 and self.parent is not None and self is self.parent.left and len(label) < middle:
label += '.'
label = label.center(middle, '.')
if label[0] == '.': label = ' ' + label[1:]
if label[-1] == '.': label = label[:-1] + ' '
lines = [' ' * left_pos + label + ' ' * (right_width - right_pos),
' ' * left_pos + '/' + ' ' * (middle-2) +
'\\' + ' ' * (right_width - right_pos)] + \
[left_line + ' ' * (width - left_width - right_width) + right_line
for left_line, right_line in zip(left_lines, right_lines)]
return lines, pos, width
def __str__(self):
return '\n'.join(self._str()[0])
class AVL:
def __init__(self):
self.root = None;
def insertNode(self, node, root = None):
if root == None:
root = self.root
if self.root == None:
self.root = node
root = node
elif node.data < root.data:
if root.left == None:
node.parent = root;
root.left = node
self.rebalance(node);
else:
self.insertNode(node, root.left)
elif node.data > root.data:
if root.right == None:
node.parent = root;
root.right = node
self.rebalance(node);
else:
self.insertNode(node, root.right)
updateHeight(node);
updateHeight(root);
def rebalance(self, node):
#print('rebalance-' + str(node.data))
while node is not None:
updateHeight(node);
if height(node.left) >= 2 + height(node.right):
if height(node.left.left) >= height(node.left.right):
self.rightRightRotate(node);
else:
self.leftRightRotate(node);
elif height(node.right) >= 2 + height(node.left):
if height(node.right.right) >= height(node.right.left):
self.leftLeftRotate(node);
else:
self.rightLeftRotate(node);
node = node.parent
def leftLeftRotate(self, x):
y = x.right
y.parent = x.parent
if y.parent is None:
self.root = y
else:
if y.parent.left is x:
y.parent.left = y
elif y.parent.right is x:
y.parent.right = y
x.right = y.left
if x.right is not None:
x.right.parent = x
y.left = x
x.parent = y
updateHeight(x);
updateHeight(y);
def rightRightRotate(self, x):
y = x.left
y.parent = x.parent
if y.parent is None:
self.root = y
else:
if y.parent.left is x:
y.parent.left = y
elif y.parent.right is x:
y.parent.right = y
x.left = y.right
if x.left is not None:
x.left.parent = x
y.right = x
x.parent = y
updateHeight(x);
updateHeight(y);
# def leftLeftRotate(self, node):
# p = node.right
# print(p)
# print(p.data);
# print(p.left);
# node.right = p.left
# p.left = node
#
# node.height = max(height(node.left), height(node.right)) + 1
# p.height = max(height(p.left), node.height) +1 ;
#
# return p
#
# def rightRightRotate(self, node):
# p = node.left
# node.left = p.right
# p.right = node
#
# node.height = max(height(node.left), height(node.right)) + 1
# p.height = max(height(p.right), node.height) + 1
#
# return p
def leftRightRotate(self, node):
self.rightRightRotate(node.left)
self.leftLeftRotate(node)
def rightLeftRotate(self, node):
self.leftLeftRotate(node.right)
self.rightRightRotate(node);
tree1 = AVL();
tree1.insertNode(AVLNode(20))
tree1.insertNode(AVLNode(40))
tree1.insertNode(AVLNode(60))
print (tree1.root)
print()
tree1.insertNode(AVLNode(70))
print (tree1.root);
print()
tree1.insertNode(AVLNode(80))
print (tree1.root);
print()
#tree1.preOrderTraversal(tree1.root)
| [
"pradeep.s.rajpoot@gmail.com"
] | pradeep.s.rajpoot@gmail.com |
06282fd67700f384cd14626b35f346831d7d359f | d44c98714764e403863e5a93e120c24da3da9fb6 | /bot-worldcup.py | b5e4ca680d166825010eea313fae0478d69702d6 | [] | no_license | marquesborges/worldCup | 0db724e46fd19132fa8db489e6bb2dce62a76e1e | bd5b91da364ae6f09d19758264ac0ef914fd03a2 | refs/heads/master | 2022-12-17T22:18:10.817649 | 2019-06-16T17:37:25 | 2019-06-16T17:37:25 | 137,523,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,224 | py | #!/usr/bin/env python
import os
import logging
from telegram import constants, ParseMode
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
from datetime import datetime
from telegram.error import BadRequest
import time
import worldcup
import pytz
global UPD, ACCESS, TOKEN, PORT
WC = worldcup.WorldCup()
def get_match(bot, update, args):
try:
result = False
match_str = ""
in_line = False
if (len(args) > 0):
arguments = " ".join(list(a for a in args))
if (arguments in WC.matches.days_of_match):
match_list = WC.match_by_date(arguments)
elif (arguments in worldcup.stage_name.values()):
in_line = True
match_list = WC.match_by_phase(arguments)
else:
match_list = WC.match_by_team(arguments)
match_str = load_match_formated(match_list, result, change_line=in_line, curr_match=False)
else:
match_str = load_match_formated(WC.matches.matches, result, change_line=True, curr_match=False)
if (len(match_str) > constants.MAX_MESSAGE_LENGTH) or ("#" in match_str):
for txt in match_str.split("#"):
if (txt != ""):
bot.send_message(chat_id=update.message.chat_id,
text=txt)
else:
if (match_str != ""):
bot.send_message(chat_id=update.message.chat_id,
text=match_str)
else:
bot.send_message(chat_id=update.message.chat_id,
text="Nenhuma partida prevista.")
except Exception as e:
print("Método: {}-Erro: {}".format("get_match",str(e)))
def get_classif_group(bot, update, args):
try:
grp = None
if (len(args) > 0):
grp = args[0]
WC.group_classification(group=grp)
classification = ""
group_before = ""
rank = 1
for wc in WC.classification:
if (wc["group"] != group_before) and (group_before != "geral"):
if (grp == "geral"):
classification += "\n`Seleção PT VT EM DE GP GC SG`\n"
group_before = "geral"
else:
classification += "\n`Grupo {} PT VT EM DE GP GC SG`\n".format(wc["group"])
group_before = (wc["group"])
rank = 1
classification += "`{}.{}{}{}{}{}{}{}{}{}`\n".format(rank,
wc["flag"],
wc["code"].ljust(3),
str(wc["statistic"]["points"]).rjust(3),
str(wc["statistic"]["wins"]).rjust(3),
str(wc["statistic"]["draws"]).rjust(3),
str(wc["statistic"]["losses"]).rjust(3),
str(wc["statistic"]["goals_for"]).rjust(3),
str(wc["statistic"]["goals_against"]).rjust(3),
str(wc["statistic"]["goals_differential"]).rjust(3))
rank += 1
bot.send_message(chat_id=update.message.chat_id,
text=classification,
parse_mode=ParseMode.MARKDOWN)
except Exception as e:
print("Método: {}-Erro: {}".format("get_classif_group",str(e)))
def load_current_match(bot, job):
try:
WC.get_current_matches()
if (len(WC.current_matches) > 0):
WC.MATCH_IN_PROGRESS = True
for match in WC.current_matches:
if (match["status"] == "in progress"):
match_str = load_match_formated([match], result=False, change_line=False, curr_match=True)
bot.send_message(chat_id=job.context, text=match_str, parse_mode=ParseMode.MARKDOWN)
if (match["time_match"] == "half-time"):
job.interval = WC.MATCH_INTERVAL + 30
else:
job.interval = WC.CURR_MATCH_MONITOR
else:
if (WC.MATCH_IN_PROGRESS == True):
WC.load_all_matches()
WC.load_match_results()
match = list()
for i in WC.MATCH_IN_PROGRESS_ID:
match.append(WC.matches.matches[i])
match_str = "Fim de Partida\n"
match_str += load_match_formated(match, result=False, change_line=False, curr_match=False)
bot.send_message(chat_id=job.context, text=match_str, parse_mode=ParseMode.MARKDOWN)
job.schedule_removal()
WC.get_next_match()
match = WC.next_match
if (len(match) > 0):
if (len(match) == 1):
match_str = "Próxima partida\n"
else:
match_str = "Próximas partidas\n"
match_str += load_match_formated(match, result=False, change_line=False, curr_match=False)
else:
match_str = "Nenhuma partida prevista."
bot.send_message(chat_id=job.context, text=match_str)
except Exception as e:
print("Método: {}-Erro: {}".format("load_current_match",str(e)))
job.schedule_removal()
def current_match(bot, update, job_queue):
try:
job_queue.run_repeating(load_current_match, interval=WC.CURR_MATCH_MONITOR, first=0, context=update.message.chat_id)
except Exception as e:
print("Método: {}-Erro: {}".format("current_match",str(e)))
def update_matches(bot, update):
try:
bot.send_message(chat_id=update.message.chat_id, text="Atualizando partidas...")
WC.load_all_matches()
bot.send_message(chat_id=update.message.chat_id, text="Atualizando resultados...")
WC.load_match_results()
bot.send_message(chat_id=update.message.chat_id, text="Resultados atualizados com sucesso.")
except Exception as e:
print("Método: {}-Erro: {}".format("update_matches",str(e)))
def load_match_formated(matches_list, result=False, change_line=False, curr_match=False):
try:
match_str = ""
for match in sorted(matches_list, key=lambda k: (datetime.strptime(k["date"],"%d/%m/%Y"), datetime.strptime(k["time"], "%H:%M"))):
if (result == True) and (match["score1"] == None):
continue
match_str += "Fase: {}".format(match["phase"])
if (match["phase"] == "Primeira Fase"):
match_str += " - Grupo {}".format(match["home_team"]["group"])
## Date/Time of Match ##
if (curr_match == True):
if (match["status"] == "in progress"):
if (WC.MATCH_IN_OVERTIME == True):
match_str += "\nProrrogação: {}"
else:
match_str += "\nPartida em andamento: {}"
if (match["time_match"] == "half-time"):
match_str = match_str.format("Intervalo")
elif (match["time_match"] == "penalties"):
match_str = match_str.format("Disp.Penalti")
else:
match_str = match_str.format(match["time_match"])
match_str += "\n{} - {} às {}\n".format(match["wday"],
match["date"],
match["time"])
## Match's Team ##
match_str += "{} {} {} X {} {} {}\n".format(match["home_team"]["flag"],
match["home_team"]["pt_name"],
match["home_goals"],
match["away_goals"],
match["away_team"]["flag"],
match["away_team"]["pt_name"])
## Penalties ##
if (match["home_penalties"] != None) and ((match["home_penalties"] != 0) or (match["away_penalties"] != 0)):
match_str += "Penalti: {}({}) X ({}){}\n".format(match["home_team"]["flag"],
match["home_penalties"],
match["away_penalties"],
match["away_team"]["flag"])
## Team's Events ##
goals = list()
for g in match["home_event"]:
goals.append(g["player"] + " " + g["time"])
if (len(goals) > 0):
match_str += "{}({})\n".format(match["home_team"]["code"],
",".join(goals))
goals = list()
for g in match["away_event"]:
goals.append(g["player"] + " " + g["time"])
if (len(goals) > 0):
match_str += "{}({})\n".format(match["away_team"]["code"],
",".join(goals))
## Locality ##
match_str += "Estádio: %s\n" % (match["stadium"])
match_str += "Cidade: %s\n" % (match["city"])
if (change_line == True):
match_str += "#"
else:
match_str += "\n"
return match_str
except Exception as e:
print("Método: {}-Erro: {}".format("load_match_formated",str(e)))
def welcome_msg(bot, update):
try:
txt = "Bem vindo *{}* *{}*,\n".format(update.message.from_user["first_name"],
update.message.from_user["last_name"])
txt += "As informações da _Copa do Mundo 2018_ já estão disponíveis.\n"
txt += "Para facilitar vou lhe encaminhar os comandos..."
bot.send_message(chat_id=update.message.chat_id, text=txt, parse_mode=ParseMode.MARKDOWN)
menu_list(bot, update)
except Exception as e:
print("Método: {}-Erro: {}".format("welcome_msg",str(e)))
def menu_list(bot, update):
try:
txt = "Opções disponíveis:\n"
txt += "*/partida*: todas as partidas do campeonato. Utilize as 'keywords': \n"
for phase in worldcup.stage_name.values():
txt += " {}\n".format(phase)
txt += "...ou informe o nome de alguma seleção ou data da partida.\n\n"
txt += "*/grupo*: classificação de todos os grupos ou do grupo informado ou geral.\n\n"
txt += "*/jogo*: partidas em andamento e, caso não tenha nenhuma, apresenta a(s) próxima(s) partida(s).\n\n"
txt += "*/atualizar*: atualiza as partidas e respectivos resultados."
bot.send_message(chat_id=update.message.chat_id, text=txt, parse_mode=ParseMode.MARKDOWN)
except Exception as e:
print("Método: {}-Erro: {}".format("update_matches",str(e)))
def load_all_dispatcher():
try:
dispatcher = UPD.dispatcher
start_handler= CommandHandler('start', welcome_msg)
dispatcher.add_handler(start_handler)
match_handler= CommandHandler('partida', get_match, pass_args=True)
dispatcher.add_handler(match_handler)
class_handler= CommandHandler(['classificação', 'classificacao', 'grupos', 'grupo'], get_classif_group, pass_args=True)
dispatcher.add_handler(class_handler)
currMatch_handler= CommandHandler('jogo', current_match, pass_job_queue=True)
dispatcher.add_handler(currMatch_handler)
update_handler= CommandHandler('atualizar', update_matches)
dispatcher.add_handler(update_handler)
menu_handler= CommandHandler('menu', menu_list)
dispatcher.add_handler(menu_handler)
except Exception as e:
print("Método: {}-Erro: {}".format("load_all_dispatcher",str(e)))
if (__name__ == '__main__'):
try:
ACCESS = os.environ["TELEGRAM_SERVER"]
TOKEN = os.environ['TELEGRAM_TOKEN']
PORT = int(os.environ.get('PORT',os.environ['TELEGRAM_PORT']))
UPD = Updater(TOKEN)
load_all_dispatcher()
if (ACCESS == "HEROKU"):
HEROKU_URL = os.environ['HEROKU_URL']
UPD.start_webhook(listen='0.0.0.0',
port=PORT,
url_path=TOKEN)
UPD.bot.set_webhook(HEROKU_URL + TOKEN)
UPD.idle()
else:
UPD.start_polling()
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
level=logging.INFO)
except Exception as e:
print("Método: {}-Erro: {}".format("main",str(e)))
| [
"noreply@github.com"
] | noreply@github.com |
e0c354c9d5853e24028e9a469174f6465fecf32c | ed8b899c547c6e2bf797af86dde2f9f0716cbd58 | /commentapp/migrations/0002_alter_comment_article.py | 7f3a2592aa6f2ffae6bb9520776623372f16fd61 | [] | no_license | lauren0914/web1 | 85492a3a0f506a0b409760258355131c3ca3a182 | 1323d041cea3fea2f414f8268b43346b691b8161 | refs/heads/master | 2023-08-22T09:57:34.508724 | 2021-09-29T02:30:08 | 2021-09-29T02:30:08 | 381,958,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | # Generated by Django 3.2.4 on 2021-08-09 07:59
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('articleapp', '0001_initial'),
('commentapp', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='comment',
name='article',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='comment', to='articleapp.article'),
),
]
| [
"cofks05@likelion.org"
] | cofks05@likelion.org |
58023b6b2a082680fe88fc376cba496e96ea4338 | c66b7ebf39e6db00eb77fa073d3e1ebc2d7ffdb4 | /tests/unit/cfngin/actions/test_diff.py | 390bf9251380def973fa3b0bb10e1c9b3acc40d8 | [
"Apache-2.0"
] | permissive | twitty-onica/runway | a32590e9dee6a4b2d9ead6edc7e6cebb9a94e55c | e292c7b770fa639d3ed834cf041a7d7641f7f160 | refs/heads/master | 2022-12-14T00:43:02.481292 | 2020-08-28T16:04:37 | 2020-08-28T16:04:37 | 292,922,402 | 0 | 0 | Apache-2.0 | 2020-09-04T18:43:39 | 2020-09-04T18:43:38 | null | UTF-8 | Python | false | false | 3,174 | py | """Tests for runway.cfngin.actions.diff."""
import unittest
from operator import attrgetter
from runway.cfngin.actions.diff import DictValue, diff_dictionaries, diff_parameters
class TestDictValueFormat(unittest.TestCase):
"""Tests for runway.cfngin.actions.diff.DictValue."""
def test_status(self):
"""Test status."""
added = DictValue("k0", None, "value_0")
self.assertEqual(added.status(), DictValue.ADDED)
removed = DictValue("k1", "value_1", None)
self.assertEqual(removed.status(), DictValue.REMOVED)
modified = DictValue("k2", "value_1", "value_2")
self.assertEqual(modified.status(), DictValue.MODIFIED)
unmodified = DictValue("k3", "value_1", "value_1")
self.assertEqual(unmodified.status(), DictValue.UNMODIFIED)
def test_format(self):
"""Test format."""
added = DictValue("k0", None, "value_0")
self.assertEqual(added.changes(), ["+%s = %s" % (added.key, added.new_value)])
removed = DictValue("k1", "value_1", None)
self.assertEqual(
removed.changes(), ["-%s = %s" % (removed.key, removed.old_value)]
)
modified = DictValue("k2", "value_1", "value_2")
self.assertEqual(
modified.changes(),
[
"-%s = %s" % (modified.key, modified.old_value),
"+%s = %s" % (modified.key, modified.new_value),
],
)
unmodified = DictValue("k3", "value_1", "value_1")
self.assertEqual(
unmodified.changes(), [" %s = %s" % (unmodified.key, unmodified.old_value)]
)
self.assertEqual(
unmodified.changes(), [" %s = %s" % (unmodified.key, unmodified.new_value)]
)
class TestDiffDictionary(unittest.TestCase):
"""Tests for runway.cfngin.actions.diff.diff_dictionaries."""
def test_diff_dictionaries(self):
"""Test diff dictionaries."""
old_dict = {
"a": "Apple",
"b": "Banana",
"c": "Corn",
}
new_dict = {
"a": "Apple",
"b": "Bob",
"d": "Doug",
}
[count, changes] = diff_dictionaries(old_dict, new_dict)
self.assertEqual(count, 3)
expected_output = [
DictValue("a", "Apple", "Apple"),
DictValue("b", "Banana", "Bob"),
DictValue("c", "Corn", None),
DictValue("d", None, "Doug"),
]
expected_output.sort(key=attrgetter("key"))
# compare all the outputs to the expected change
for expected_change in expected_output:
change = changes.pop(0)
self.assertEqual(change, expected_change)
# No extra output
self.assertEqual(len(changes), 0)
class TestDiffParameters(unittest.TestCase):
"""Tests for runway.cfngin.actions.diff.diff_parameters."""
def test_diff_parameters_no_changes(self):
"""Test diff parameters no changes."""
old_params = {"a": "Apple"}
new_params = {"a": "Apple"}
param_diffs = diff_parameters(old_params, new_params)
self.assertEqual(param_diffs, [])
| [
"noreply@github.com"
] | noreply@github.com |
18b77fc500605fe96728f05442bbf4864981f738 | 790dc38dd5428f84363dbc696591dc33d76f7c49 | /main.py | 02119eb99a695c86e0c90b9ae29198d2b7aa6c4d | [] | no_license | antoniodimariano/personal-sorting-hat | 3723c9a34bef973f753c49579555f693724cdbe4 | bc07be60f59b2460cfb0c663494d2fbbb5e825ea | refs/heads/master | 2023-06-18T04:06:40.638473 | 2021-07-19T09:22:01 | 2021-07-19T09:22:01 | 235,334,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | # Created by Antonio Di Mariano (antonio.dimariano@gmail.com) at 2019-09-03
from classes.Questions import Questions
if __name__ == "__main__":
questions = Questions()
print("You have been assigned to the category :",questions.record_answers(questions.run_questions()))
| [
"hellbreak@Antonios-MacBook-Pro.local"
] | hellbreak@Antonios-MacBook-Pro.local |
9b1fbe5600b7322f49bc1c05a6ab3c1035972d4d | e288dd6e3edbe2e77a970719ea943a98c629d2e2 | /stackdio/api/environments/tasks.py | e774089765937867e957f17e4651402aec083649 | [
"Apache-2.0"
] | permissive | Harrison-Miller/stackdio | b308db4cfd68e9900e08867726b779e334f2334a | b12975737a0962c748b3da375609f7db9c8842f3 | refs/heads/master | 2021-01-25T07:49:08.369918 | 2017-05-14T04:31:09 | 2017-05-14T04:31:09 | 93,666,368 | 0 | 0 | null | 2017-06-07T18:23:56 | 2017-06-07T18:23:56 | null | UTF-8 | Python | false | false | 11,435 | py | # -*- coding: utf-8 -*-
# Copyright 2017, Digital Reasoning
#
# 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.
#
from __future__ import unicode_literals
import logging
from functools import wraps
import salt.client
import six
from celery import shared_task
from django.conf import settings
from stackdio.api.environments import utils
from stackdio.api.environments.exceptions import EnvironmentTaskException
from stackdio.api.environments.models import Environment
from stackdio.core.constants import Activity, ComponentStatus
from stackdio.core.utils import auto_retry
from stackdio.salt.utils.client import (
StackdioLocalClient,
StackdioRunnerClient,
StackdioSaltClientException,
)
logger = logging.getLogger(__name__)
def environment_task(*args, **kwargs):
"""
Create an environment celery task that performs some common functionality and handles errors
"""
final_task = kwargs.pop('final_task', False)
def wrapped(func):
# Pass the args from environment_task to shared_task
@shared_task(*args, **kwargs)
@wraps(func)
def task(environment_name, *task_args, **task_kwargs):
try:
environment = Environment.objects.get(name=environment_name)
except Environment.DoesNotExist:
raise ValueError('No environment found with name {}'.format(environment_name))
try:
# Call our actual task function and catch some common errors
func(environment, *task_args, **task_kwargs)
if not final_task:
# Everything went OK, set back to queued
environment.activity = Activity.QUEUED
environment.save()
except EnvironmentTaskException as e:
environment.activity = Activity.IDLE
environment.save()
logger.exception(e)
raise
except Exception as e:
environment.activity = Activity.IDLE
environment.save()
logger.exception(e)
raise
return task
return wrapped
@environment_task(name='environments.sync_all')
def sync_all(environment):
logger.info('Syncing all salt systems for environment: {0!r}'.format(environment))
client = salt.client.LocalClient(settings.STACKDIO_CONFIG.salt_master_config)
ret = client.cmd_iter('env:environments.{}'.format(environment.name),
'saltutil.sync_all',
expr_form='grain')
result = {}
for res in ret:
for host, data in res.items():
result[host] = data
for host, data in result.items():
if 'retcode' not in data:
logger.warning('Host {0} missing a retcode... assuming failure'.format(host))
if data.get('retcode', 1) != 0:
err_msg = six.text_type(data['ret'])
raise EnvironmentTaskException('Error syncing salt data: {0!r}'.format(err_msg))
@environment_task(name='environments.highstate')
def highstate(environment, max_attempts=3):
"""
Executes the state.highstate function on the environment using the default
stackdio top file. That top tile will only target the 'base'
environment and core states for the environment. These core states are
purposely separate from others to provision hosts with things that
stackdio needs.
"""
environment.activity = Activity.PROVISIONING
environment.save()
logger.info('Running core provisioning for environment: {0!r}'.format(environment))
# Set up logging for this task
root_dir = environment.get_root_directory()
log_dir = environment.get_log_directory()
# Build up our highstate function
@auto_retry('highstate', max_attempts, EnvironmentTaskException)
def do_highstate(attempt=None):
logger.info('Task {0} try #{1} for environment {2!r}'.format(
highstate.name,
attempt,
environment))
# Use our fancy context manager that handles logging for us
with StackdioLocalClient(run_type='provisioning',
root_dir=root_dir,
log_dir=log_dir) as client:
results = client.run('env:environments.{}'.format(environment.name),
'state.highstate',
expr_form='grain')
if results['failed']:
raise EnvironmentTaskException(
'Core provisioning errors on hosts: '
'{0}. Please see the provisioning errors API '
'or the log file for more details.'.format(', '.join(results['failed_hosts']))
)
# Call our highstate. Will raise the appropriate exception if it fails.
do_highstate()
@environment_task(name='environments.propagate_ssh')
def propagate_ssh(environment, max_attempts=3):
"""
Similar to environments.highstate, except we only run `core.stackdio_users`
instead of `core.*`. This is useful so that ssh keys can be added to
hosts without having to completely re run provisioning.
"""
environment.activity = Activity.PROVISIONING
environment.save()
logger.info('Propagating ssh keys on environment: {0!r}'.format(environment))
# Set up logging for this task
root_dir = environment.get_root_directory()
log_dir = environment.get_log_directory()
@auto_retry('propagate_ssh', max_attempts, EnvironmentTaskException)
def do_propagate_ssh(attempt=None):
logger.info('Task {0} try #{1} for environment {2!r}'.format(
propagate_ssh.name,
attempt,
environment))
# Use our fancy context manager that handles logging for us
with StackdioLocalClient(run_type='propagate-ssh',
root_dir=root_dir,
log_dir=log_dir) as client:
results = client.run('env:environments.{}'.format(environment.name),
'state.sls',
arg=['core.stackdio_users'],
expr_form='grain')
if results['failed']:
raise EnvironmentTaskException(
'SSH key propagation errors on hosts: '
'{0}. Please see the provisioning errors API '
'or the log file for more details.'.format(', '.join(results['failed_hosts']))
)
# Call our function
do_propagate_ssh()
@environment_task(name='environments.orchestrate')
def orchestrate(environment, max_attempts=3):
"""
Executes the runners.state.orchestrate function with the
orchestrate sls specified on the environment.
"""
environment.activity = Activity.ORCHESTRATING
environment.save()
logger.info('Executing orchestration for environment: {0!r}'.format(environment))
# Set up logging for this task
root_dir = environment.get_root_directory()
log_dir = environment.get_log_directory()
@auto_retry('orchestrate', max_attempts, EnvironmentTaskException)
def do_orchestrate(attempt=None):
logger.info('Task {0} try #{1} for environment {2!r}'.format(
orchestrate.name,
attempt,
environment))
with StackdioRunnerClient(run_type='orchestration',
root_dir=root_dir,
log_dir=log_dir) as client:
try:
result = client.orchestrate(arg=[
environment.orchestrate_sls_path,
'environments.{0}'.format(environment.name),
])
except StackdioSaltClientException as e:
raise EnvironmentTaskException('Orchestration failed: {}'.format(six.text_type(e)))
# Set the statuses
utils.set_component_statuses(environment, result)
if result['failed']:
err_msg = 'Orchestration errors on components: ' \
'{0}. Please see the orchestration errors ' \
'API or the orchestration log file for more ' \
'details.'.format(', '.join(result['failed_sls']))
raise EnvironmentTaskException(err_msg)
# Call our function
do_orchestrate()
@environment_task(name='environments.single_sls')
def single_sls(environment, component, host_target, max_attempts=3):
environment.activity = Activity.ORCHESTRATING
environment.save()
logger.info('Executing single sls {0} for environment: {1!r}'.format(component, environment))
# Set up logging for this task
root_dir = environment.get_root_directory()
log_dir = environment.get_log_directory()
if host_target:
target = '{0} and G@env:environments.{1}'.format(host_target, environment.name)
expr_form = 'compound'
else:
target = 'env:environments.{0}'.format(environment.name)
expr_form = 'grain'
@auto_retry('single_sls', max_attempts, EnvironmentTaskException)
def do_single_sls(attempt=None):
logger.info('Task {0} try #{1} for environment {2!r}'.format(
single_sls.name,
attempt,
environment,
))
with StackdioLocalClient(run_type='single-sls',
root_dir=root_dir,
log_dir=log_dir) as client:
results = client.run(
target,
'state.sls',
arg=[
component,
'environments.{0}'.format(environment.name),
],
expr_form=expr_form,
)
if results['failed']:
raise EnvironmentTaskException(
'Single SLS {} errors on hosts: '
'{}. Please see the provisioning errors API '
'or the log file for more details.'.format(
component,
', '.join(results['failed_hosts']),
)
)
if results['succeeded_hosts']:
environment.set_component_status(component, ComponentStatus.SUCCEEDED,
results['succeeded_hosts'])
if results['failed_hosts']:
environment.set_component_status(component, ComponentStatus.FAILED,
results['failed_hosts'])
# Call our function
do_single_sls()
@environment_task(name='environments.finish_environment', final_task=True)
def finish_environment(environment):
logger.info('Finishing environment: {0!r}'.format(environment))
# Update activity
environment.activity = Activity.IDLE
environment.save()
| [
"clark.perkins@digitalreasoning.com"
] | clark.perkins@digitalreasoning.com |
2229d4df4a6585402d2b9b02a44445d1e7e39d2e | 71f55955d7115763f9267704328f8c738aafaa15 | /euca2ools/commands/iam/addrolepolicy.py | bb9e1d6ddeabb20857861ae24bcc791d2dbbad40 | [
"BSD-2-Clause"
] | permissive | fr33jc/euca2ools | 66da4a866e9a0873ce225f9f931019b0bbd82fff | f4d8052000601e59e4e7d4dec4aa4094df4e39a0 | refs/heads/master | 2021-01-21T08:20:44.646393 | 2015-05-07T06:16:30 | 2015-05-07T06:26:57 | 35,200,788 | 0 | 0 | null | 2015-05-07T05:34:42 | 2015-05-07T05:34:42 | null | UTF-8 | Python | false | false | 3,335 | py | # Copyright 2014 Eucalyptus Systems, Inc.
#
# Redistribution and use of this software in source and binary forms,
# with or without modification, are permitted provided that the following
# conditions are met:
#
# Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import json
from requestbuilder import Arg
from euca2ools.commands.iam import IAMRequest, AS_ACCOUNT
from euca2ools.commands.iam.putrolepolicy import PutRolePolicy
from euca2ools.util import build_iam_policy
class AddRolePolicy(IAMRequest):
DESCRIPTION = ('Add a new policy to a role. To add more complex policies '
'than this tool supports, see euare-roleuploadpolicy.')
ARGS = [Arg('-r', '--role-name', metavar='ROLE', required=True,
help='role to attach the policy to (required)'),
Arg('-p', '--policy-name', metavar='POLICY', required=True,
help='name of the new policy (required)'),
Arg('-e', '--effect', choices=('Allow', 'Deny'), required=True,
help='whether the new policy should Allow or Deny (required)'),
Arg('-a', '--action', dest='actions', action='append',
required=True, help='''action(s) the policy should apply to
(at least one required)'''),
Arg('-c', '--resource', dest='resources', action='append',
required=True, help='''resource(s) the policy should apply to
(at least one required)'''),
Arg('-o', '--output', action='store_true',
help='also display the newly-created policy'),
AS_ACCOUNT]
def main(self):
policy = build_iam_policy(self.args['effect'], self.args['resources'],
self.args['actions'])
policy_doc = json.dumps(policy)
req = PutRolePolicy.from_other(
self, RoleName=self.args['role_name'],
PolicyName=self.args['policy_name'],
PolicyDocument=policy_doc,
DelegateAccount=self.params['DelegateAccount'])
response = req.main()
response['PolicyDocument'] = policy_doc
return response
def print_result(self, result):
if self.args['output']:
print result['PolicyDocument']
| [
"gholms@devzero.com"
] | gholms@devzero.com |
7d3017c69e6db92f6d7ff484edd070171d37b872 | 4e6116b09e2d9dc7fd5e4ad1d0d380764c6e5760 | /toolkit/tests/tokens_api_test_base.py | 1d4d81bb34eae5f41be72026d37992b418707f1f | [
"Apache-2.0"
] | permissive | GPCsolutions/enterprise-toolkit | cf0696c345b1dd2081727482f219eba96cd8acfa | 06b10e4fe8b404d0335ef132514605cf8b72a376 | refs/heads/master | 2020-12-31T05:39:47.071906 | 2014-03-27T18:28:42 | 2014-03-27T18:28:42 | 19,369,815 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,075 | 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.
"""Test apps security token API.
To see even more detail (output) during tests:
Set _ENABLE_VERBOSE_LOGGING=True
"""
import unittest
# setup_path required to allow imports from component dirs (e.g. utils)
# and lib (where the OAuth and Google API Python Client modules reside).
import setup_path # pylint: disable=unused-import,g-bad-import-order
from admin_sdk_directory_api import tokens_api
from apiary_mocks import MockDirectoryServiceObject
from mock import patch
from test_utils import PrintMocker
from utils import log_utils
_ENABLE_VERBOSE_LOGGING = False # Set to True to see verbose internal logs.
class TokensApiPrintTokensTestBase(unittest.TestCase):
"""Base class for token printing test classes."""
@patch('admin_sdk_directory_api.tokens_api.build', autospec=True)
def setUp(self, mock_ApiclientDiscoveryBuildFn):
"""Setup mocks to simulate Apiary token returns from Apps Security.
We avoid mocking details because we wrapped the Apiary services in an
api layer that can be mocked easily.
Args:
mock_ApiclientDiscoveryBuildFn: mock object to stub the build function.
"""
log_utils.SetupLogging(verbose_flag=_ENABLE_VERBOSE_LOGGING)
mock_ApiclientDiscoveryBuildFn.return_value = MockDirectoryServiceObject()
self._tokens_api = tokens_api.TokensApiWrapper(http=None)
self._new_stdout = PrintMocker.MockStdOut()
def tearDown(self):
"""Restore stdout to normal."""
PrintMocker.RestoreStdOut()
| [
"truty@google.com"
] | truty@google.com |
f87e480ec25290060bd12e93fd8a82fc83356d3b | 01e0a6b634f34a5cddd0616e05fb6b3b67936b3a | /Ejercicios/26_poo_iii.py | 6132a95ce033dbafa45f35c04837062f2ecb0a3d | [] | no_license | jask05/PythonCourse | a586913297d1f3a85f6b7130e3d36ad70cdd1217 | e5e0671557054d82a5690b07753713a31c0a10fa | refs/heads/master | 2020-04-28T12:55:11.197060 | 2019-09-30T09:25:08 | 2019-09-30T09:25:08 | 175,291,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | # -*- coding: utf-8 -*-
class Coche():
# Propiedades
largoChasis = 250
anchoChasis = 120
ruedas = 4
enmarcha = False
# Métodos (Comportamiento)
def arrancar(self):
self.enmarcha = True
def estado(self):
if self.enmarcha:
return "Mi coche está en marcha"
else:
return "El coche está parado"
# Estados
miCoche = Coche() # Instanciar/ejemplarizar una clase
print("El largo del coche es:",miCoche.largoChasis)
print("El coche tiene:",miCoche.ruedas)
"""
Cuando se instancia, "miCoche" viaja y se instancia en "self" (por parámetro, viaja el propio objeto).
Cuando se pone especifica "self.enmarcha" se traduciría como "miCoche.enmarcha=True"
"""
miCoche.arrancar()
print(miCoche.estado())
| [
"jask.zemula@gmail.com"
] | jask.zemula@gmail.com |
53ba235d34525ea0cf44500e09ba61d5b77c0cce | 43cf365ddcf2e761098c200eb50c1e3337927137 | /pyProcess/OldScripts/avgWallUnits.py | 0bea1bd5122adc35acd40b9e0dbc10523e6db46f | [] | no_license | rpt1g12/pyTandem | 0fe753d7f1791b69f296835423ceb775b5219956 | 290dbb54b08f01d9a7ca68b78c9e54e55877cf0d | refs/heads/master | 2020-05-21T12:32:23.317670 | 2018-08-25T13:15:34 | 2018-08-25T13:15:34 | 48,549,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | import numpy as np
import matplotlib.pyplot as plt
from lib.myPlots import *
#%%
cs='y'
dataset='wallUnits/6blocks/4A15W11AoA20/'+cs+'+.dat'
x,wu=np.loadtxt(dataset,skiprows=1,unpack=True)
#%%
fig=plt.figure()
ax=fig.add_subplot(111)
skip=5;ncol=1
ax.plot(x,wu,markevery=skip,label=cs+'+')
ax.set_xlabel(r'$x/L_c$')
ax.set_ylabel(r'$<'+cs+'^+>$')
handle,labels=ax.get_legend_handles_labels()
legend=ax.legend(handle,labels,bbox_to_anchor=(1,1),ncol=ncol)
ax.grid(True)
ax.figure.show()
path='wallUnits/clean/AoA20/'
#plt.savefig(savepath,dpi=300)
#savePlotFile(path=path+cs+'Plus.dat',vary=labels) | [
"rpt1g12@soton.ac.uk"
] | rpt1g12@soton.ac.uk |
fdf5b089bedb50f027fe295664b779f0d6e7114f | 6df6f63d532b74c5a0dc627c15804124da3e0482 | /main_app/models.py | 221c21828edbf0f02655f1ae33a0a9ccb216a7dd | [] | no_license | rmiller999/react-pokedex | 8831a07dab1da64d6edaa43c884d130e3c93a22c | b887dd2648e0af98e40eef183e4af43cf5b61c41 | refs/heads/master | 2023-01-30T11:00:06.280994 | 2019-08-23T05:02:06 | 2019-08-23T05:02:06 | 201,997,335 | 0 | 0 | null | 2023-01-04T06:59:48 | 2019-08-12T19:40:32 | JavaScript | UTF-8 | Python | false | false | 172 | py | from django.db import models
# Create your models here.
class Pokemon(models.Model):
name = models.CharField(max_length=100)
def __str__(self):
return {self.name} | [
"rmiller9@Reids-MacBook-Air.local"
] | rmiller9@Reids-MacBook-Air.local |
fb0cfa84b9580619c89ff2d3e25023083135ceae | 2a38b08e2c91fdb09364e1cd9b3c897198dea6b4 | /networking/network1.py | c8543f56caa2791448dc4d8f57e702b6c9e13a65 | [] | no_license | vedang-jammy/Python-Programs | fcf14209f102ed2d7cb8259e6ac917b5d06eedab | ae98514f168307727cc27206712d35c8fbf9c2a0 | refs/heads/master | 2023-05-31T12:50:37.135724 | 2021-06-13T09:49:30 | 2021-06-13T09:49:30 | 340,009,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # this is modified version of network.py
import urllib.request, urllib.parse, urllib.error
fileHandler = urllib.request.urlopen("http://data.pr4e.org/romeo.txt")
# we can use this document as a file
count = dict()
for line in fileHandler:
print(line.decode().strip())
words = line.decode().split()
for word in words:
count[word] = count.get(word, 0) + 1
print(count)
| [
"upadhyevedang18@gmail.com"
] | upadhyevedang18@gmail.com |
2a3f06373320ecc765b4bb93855f011b6abd1874 | 8773e8c9b9a0a6e407f91b6f7c6321141d7e8356 | /P0028.py | b36e66bdef3c5322dae8da2cc24b78e41d00f479 | [] | no_license | westgate458/LeetCode | 1836bb21e8dd95386ccab390f5fd04567a429a02 | 36d7f9e967a62db77622e0888f61999d7f37579a | refs/heads/master | 2021-12-28T04:16:36.875737 | 2021-12-17T05:48:09 | 2021-12-17T05:48:09 | 152,928,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,687 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 7 21:30:22 2018
@author: Tianqi Guo
"""
class Solution(object):
def strStr(self, haystack, needle):
"""
:type haystack: str
:type needle: str
:rtype: int
"""
# length of two strings
lh = len(haystack)
ln = len(needle)
# deal with trivial cases
if (ln == 0):
return 0
if (lh < ln):
return -1
# start searching from start
p = 0
# stop when remaining substring not long enough
while p <= lh-ln:
# find next position of the first character
# in the remaining substring
pp = haystack[p:].find(needle[0])
# if first character exists in remaining substring
# and remaining substring long enough
if (pp != -1) and (p+pp+ln <= lh):
# check if target is found
if haystack[p+pp:p+pp+ln] == needle:
# return current position
return p + pp
else:
# if not found update starting position
# as the one after current position of found first character
p = p + pp + 1
else:
# if first character does not exist in remaining substring
# return -1
return -1
# return default result (not found)
return -1
haystack = "a"
needle = "a"
test = Solution()
p = test.strStr(haystack, needle)
print(p) | [
"tqguo246@gmail.com"
] | tqguo246@gmail.com |
3698ec458f30fc42dbbe567a111d402876e8d3ba | e753345f25fc4190f05e931f940d063ff082f34c | /Saket_Working/Template/Part 1 - Data Preprocessing/sak_data_preprocessing_template.py | bc8d4d38019a231352a4290a0768690cb17b3161 | [] | no_license | SaketVats95/DS_ML_Learning | 5aac976c063610a316aeea80549f3bf17121cb68 | b9e86203bc2df1d1e03d1c8fcef6eeca4f2c2826 | refs/heads/master | 2021-01-03T04:47:49.241529 | 2020-02-12T06:07:45 | 2020-02-12T06:07:45 | 239,929,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 1 15:44:42 2020
@author: saket.vats
"""
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
dataset=pd.read_csv('Data.csv')
X= dataset.iloc[:,:-1].values
y= dataset.iloc[:,3].values
#Taking care of missing data
from sklearn.impute import SimpleImputer
imputer = SimpleImputer(missing_values=np.nan, strategy='mean')
imputer=imputer.fit(X[:,1:3])
X[:,1:3]= imputer.transform(X[:,1:3])
#Taking care of categorical Data
from sklearn.preprocessing import LabelEncoder,OneHotEncoder
from sklearn.compose import ColumnTransformer
labelEncoding_X=LabelEncoder()
X[:,0]=labelEncoding_X.fit_transform(X[:,0])
onehotEncoder_X = ColumnTransformer(
[('one_hot_encoder', OneHotEncoder(categories='auto'), [0])], # The column numbers to be transformed (here is [0] but can be [0, 1, 3])
remainder='passthrough' # Leave the rest of the columns untouched
)
X=onehotEncoder_X.fit_transform(X)
| [
"saketvatslpu@gmail.com"
] | saketvatslpu@gmail.com |
3dd9d0da36c9a8bc32c438aa0d4031cdf81d88f1 | 0805772a2e66c658fcbd178d25f3f13a80dc0af1 | /myapp/models.py | 389955ad0bd5de7ddad9845211f241758cca7f41 | [] | no_license | tianfanw/django_project | 9106ff3e00296ace26355305ac8f62642d57f57d | 082859b870d2d59625d72dbe38b90fc6652350f8 | refs/heads/master | 2016-09-06T00:22:51.502464 | 2014-11-22T09:10:19 | 2014-11-22T09:10:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | from django.db import models
# Create your models here.
class Event(models.Model):
id = models.IntegerField(primary_key=True)
title = models.CharField(max_length=200,null=True)
venue = models.CharField(max_length=100,null=True)
primaryPerformer = models.CharField(max_length=200,null=True)
secondaryPerformer = models.CharField(max_length=200,null=True)
grouping = models.CharField(max_length=100,null=True)
class Listing(models.Model):
id = models.IntegerField(primary_key=True)
event = models.ForeignKey(Event)
quantity = models.IntegerField()
zoneId = models.IntegerField(null=True)
zoneName = models.CharField(max_length=200,null=True)
sectionId = models.IntegerField(null=True)
sectionName = models.CharField(max_length=200,null=True)
row = models.CharField(max_length=200)
seatNumbers = models.CharField(max_length=200)
currentPrice = models.FloatField(null=True)
class SoldTicket(models.Model):
listingId = models.IntegerField()
event = models.ForeignKey(Event)
zoneId = models.IntegerField(null=True)
zoneName = models.CharField(max_length=200,null=True)
sectionId = models.IntegerField(null=True)
sectionName = models.CharField(max_length=200,null=True)
row = models.CharField(max_length=200)
seatNumber = models.CharField(max_length=200,null=True)
currentPrice = models.FloatField(null=True)
| [
"tianfanw@gmail.com"
] | tianfanw@gmail.com |
8f3dc9a51853abad1b28cf699f8bdb8a1893060c | b917298d1da552da9767f74dac810b1c7728fc4a | /Pydoodles/Phonesearch/call logs/phonesearch.py | 76ae7a904fa6c3e1962916864f25546757381514 | [] | no_license | ajhurst95/personal_archive | 0eb4e6fba9dd32f9c42c0267d5911e90a233c870 | 45728d7926781234b7d0e669bc438ceef60492af | refs/heads/master | 2022-12-10T09:12:17.745140 | 2022-12-09T19:40:24 | 2022-12-09T19:40:24 | 97,041,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | import csv
import os
number1 = '14042731048'
number2 = '13104800010'
number3 = '16054754700'
number4 = '17202230164'
number5 = '4042145819'
call_log = '3695.csv'
##with open(call_log, 'r') as csvfile:
## reader = csv.reader(csvfile)
##
## for line in csvfile: ##7 and 8 are the indexes for caller and callee
## if number1 == line[7] or \
## number2 == line[7] or \
## number3 == line[7] or \
## number1 == line[8] or \
## number2 == line[8] or \
## number3 == line[8]:
## print(line)
## else:
## print('didn\'t find anything!')
csvfile = csv.reader(open(call_log, 'r'), delimiter=',')
for row in csvfile:
if number1 == row[7] or \
number2 == row[7] or \
number3 == row[7] or \
number1 == row[8] or \
number2 == row[8] or \
number3 == row[8] or \
number4 == row[7] or\
number4 == row[8] or\
number5 == row[7] or\
number5 == row[8]:
print(row)
print('all done')
| [
"noreply@github.com"
] | noreply@github.com |
a8fe19a5ebd13e3f499880b38d3a0c9b3e2e1a01 | 77c641fd0708b279dddbe01f6af32a8531b93185 | /marketsim/gen/_out/orderbook/_TwoWayLink.py | 32086a419dd50f0c39f7d88416660a33f3316484 | [] | no_license | abensrhir/marketsimulator | aea286afd2bb2e0c8a547bfa879601aef21c0cd5 | f9f55c72fb34cdbec42b96737ca20839f26c6299 | refs/heads/master | 2020-12-13T20:55:55.795344 | 2014-02-24T22:52:24 | 2014-02-24T22:52:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,564 | py | from marketsim import registry
from marketsim.gen._out._itwowaylink import ITwoWayLink
from marketsim.gen._intrinsic.orderbook.link import _TwoWayLink_Impl
from marketsim.gen._out._ilink import ILink
@registry.expose(["Asset", "TwoWayLink"])
class TwoWayLink_ILinkILink(ITwoWayLink,_TwoWayLink_Impl):
""" (normally between a trader and a market).
Ensures that sending packets via links preserves their order.
Holds two one-way links in opposite directions.
"""
def __init__(self, up = None, down = None):
from marketsim.gen._out.orderbook._link import Link_IObservableFloat as _orderbook_Link_IObservableFloat
from marketsim import rtti
self.up = up if up is not None else _orderbook_Link_IObservableFloat()
self.down = down if down is not None else _orderbook_Link_IObservableFloat()
rtti.check_fields(self)
_TwoWayLink_Impl.__init__(self)
@property
def label(self):
return repr(self)
_properties = {
'up' : ILink,
'down' : ILink
}
def __repr__(self):
return "TwoWayLink(%(up)s, %(down)s)" % self.__dict__
def TwoWayLink(up = None,down = None):
from marketsim.gen._out._ilink import ILink
from marketsim import rtti
if up is None or rtti.can_be_casted(up, ILink):
if down is None or rtti.can_be_casted(down, ILink):
return TwoWayLink_ILinkILink(up,down)
raise Exception('Cannot find suitable overload for TwoWayLink('+str(up) +':'+ str(type(up))+','+str(down) +':'+ str(type(down))+')')
| [
"anton.kolotaev@gmail.com"
] | anton.kolotaev@gmail.com |
4adcfd595197df3f2ce242669e3c597ba48b4670 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/aio/operations/_express_route_ports_operations.py | be712ee91b79cf9c38e4d15ed2135405fdc6f98d | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 27,188 | 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 ExpressRoutePortsOperations:
"""ExpressRoutePortsOperations 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.v2020_03_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 _delete_initial(
self,
resource_group_name: str,
express_route_port_name: str,
**kwargs
) -> 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 = "2020-03-01"
accept = "application/json"
# Construct URL
url = self._delete_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'expressRoutePortName': self._serialize.url("express_route_port_name", express_route_port_name, '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.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/ExpressRoutePorts/{expressRoutePortName}'} # type: ignore
async def begin_delete(
self,
resource_group_name: str,
express_route_port_name: str,
**kwargs
) -> AsyncLROPoller[None]:
"""Deletes the specified ExpressRoutePort resource.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param express_route_port_name: The name of the ExpressRoutePort resource.
:type express_route_port_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: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or 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,
express_route_port_name=express_route_port_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 = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'expressRoutePortName': self._serialize.url("express_route_port_name", express_route_port_name, '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/ExpressRoutePorts/{expressRoutePortName}'} # type: ignore
async def get(
self,
resource_group_name: str,
express_route_port_name: str,
**kwargs
) -> "_models.ExpressRoutePort":
"""Retrieves the requested ExpressRoutePort resource.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param express_route_port_name: The name of ExpressRoutePort.
:type express_route_port_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: ExpressRoutePort, or the result of cls(response)
:rtype: ~azure.mgmt.network.v2020_03_01.models.ExpressRoutePort
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.ExpressRoutePort"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-03-01"
accept = "application/json"
# Construct URL
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'expressRoutePortName': self._serialize.url("express_route_port_name", express_route_port_name, '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('ExpressRoutePort', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}'} # type: ignore
async def _create_or_update_initial(
self,
resource_group_name: str,
express_route_port_name: str,
parameters: "_models.ExpressRoutePort",
**kwargs
) -> "_models.ExpressRoutePort":
cls = kwargs.pop('cls', None) # type: ClsType["_models.ExpressRoutePort"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-03-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
# Construct URL
url = self._create_or_update_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'expressRoutePortName': self._serialize.url("express_route_port_name", express_route_port_name, '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, 'ExpressRoutePort')
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('ExpressRoutePort', pipeline_response)
if response.status_code == 201:
deserialized = self._deserialize('ExpressRoutePort', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}'} # type: ignore
async def begin_create_or_update(
self,
resource_group_name: str,
express_route_port_name: str,
parameters: "_models.ExpressRoutePort",
**kwargs
) -> AsyncLROPoller["_models.ExpressRoutePort"]:
"""Creates or updates the specified ExpressRoutePort resource.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param express_route_port_name: The name of the ExpressRoutePort resource.
:type express_route_port_name: str
:param parameters: Parameters supplied to the create ExpressRoutePort operation.
:type parameters: ~azure.mgmt.network.v2020_03_01.models.ExpressRoutePort
: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: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or 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 ExpressRoutePort or the result of cls(response)
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.v2020_03_01.models.ExpressRoutePort]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
cls = kwargs.pop('cls', None) # type: ClsType["_models.ExpressRoutePort"]
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,
express_route_port_name=express_route_port_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('ExpressRoutePort', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'expressRoutePortName': self._serialize.url("express_route_port_name", express_route_port_name, 'str'),
}
if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, 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/ExpressRoutePorts/{expressRoutePortName}'} # type: ignore
async def update_tags(
self,
resource_group_name: str,
express_route_port_name: str,
parameters: "_models.TagsObject",
**kwargs
) -> "_models.ExpressRoutePort":
"""Update ExpressRoutePort tags.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param express_route_port_name: The name of the ExpressRoutePort resource.
:type express_route_port_name: str
:param parameters: Parameters supplied to update ExpressRoutePort resource tags.
:type parameters: ~azure.mgmt.network.v2020_03_01.models.TagsObject
:keyword callable cls: A custom type or function that will be passed the direct response
:return: ExpressRoutePort, or the result of cls(response)
:rtype: ~azure.mgmt.network.v2020_03_01.models.ExpressRoutePort
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.ExpressRoutePort"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-03-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
# Construct URL
url = self.update_tags.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'expressRoutePortName': self._serialize.url("express_route_port_name", express_route_port_name, '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('ExpressRoutePort', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized
update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}'} # type: ignore
def list_by_resource_group(
self,
resource_group_name: str,
**kwargs
) -> AsyncIterable["_models.ExpressRoutePortListResult"]:
"""List all the ExpressRoutePort resources in the specified 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 ExpressRoutePortListResult or the result of cls(response)
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.v2020_03_01.models.ExpressRoutePortListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.ExpressRoutePortListResult"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-03-01"
accept = "application/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_by_resource_group.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, '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('ExpressRoutePortListResult', 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_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts'} # type: ignore
def list(
self,
**kwargs
) -> AsyncIterable["_models.ExpressRoutePortListResult"]:
"""List all the ExpressRoutePort resources in the specified subscription.
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either ExpressRoutePortListResult or the result of cls(response)
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.v2020_03_01.models.ExpressRoutePortListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.ExpressRoutePortListResult"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-03-01"
accept = "application/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 = {
'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('ExpressRoutePortListResult', 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}/providers/Microsoft.Network/ExpressRoutePorts'} # type: ignore
| [
"noreply@github.com"
] | noreply@github.com |
91f76447f4b10b8571bd0098c0c41d061d1e356c | c0fa2d375f10526afb1575afb6197a7786c1dc8e | /main.py | d1e3523af99541d1b2bed4832e5b77448c63233c | [] | no_license | carlakim/DeSoft | 896e972f40b48c86b05c2f3f976f84b7723ac432 | fd165b857e02a37f398bb20349234f97c4b278fe | refs/heads/master | 2021-01-22T20:19:25.518517 | 2017-03-17T14:40:42 | 2017-03-17T14:40:42 | 85,313,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | from aluno1 import ler_numeros
from aluno2 import maior
n=10
lista = ler_numeros(n)
print("O maior numero desta lista é {0}".format(maior(lista))) | [
"Phelipe@navesmuller.com.br"
] | Phelipe@navesmuller.com.br |
31566c0e018785f9e8a5b44c34f68ea1f76595a7 | 1b6e72c903e1cfeec6e15e344dea041f00a89ee9 | /PulsedDepositionApparatusv2/Legacy/killall.py | 47e74117532a7c70901a4b332be55b710076512b | [
"MIT"
] | permissive | illyanyc/HydrophobicGlassStudies | 057ea816b249367a3a23ebedee71f07f084da506 | 9aaf9269e54ccf6d33525b7b548664d54b77298a | refs/heads/main | 2023-05-12T03:03:46.654300 | 2021-06-08T00:11:44 | 2021-06-08T00:11:44 | 374,827,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | import RPi.GPIO as GPIO
import time
import datetime
import os
import glob
import time
import readtemp
import peltiercontrol as p
import datalogger as d
p.finish(True) | [
"illya@illyas-MBP.lan1"
] | illya@illyas-MBP.lan1 |
223d15aa59b73791af3a6b0a32075d3e44e5e0e1 | 12c41119156dd3783c3801e07f5f973289f26bb0 | /aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/ModifyInstanceCrossBackupPolicyRequest.py | 73f1bb1dc4142387214d25bfcc8845befb0ee4b4 | [
"Apache-2.0"
] | permissive | toywei/aliyun-openapi-python-sdk | bfe0893da38af9b222ce072fd7587d5b6cdce204 | ce8f683e3201fca8c473512267f50a34f71e31d3 | refs/heads/master | 2020-08-07T23:42:00.053692 | 2019-10-08T08:50:21 | 2019-10-08T08:50:21 | 213,626,962 | 1 | 0 | NOASSERTION | 2019-10-08T11:43:15 | 2019-10-08T11:43:15 | null | UTF-8 | Python | false | false | 3,625 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
from aliyunsdkcore.request import RpcRequest
class ModifyInstanceCrossBackupPolicyRequest(RpcRequest):
def __init__(self):
RpcRequest.__init__(self, 'Rds', '2014-08-15', 'ModifyInstanceCrossBackupPolicy','rds')
def get_ResourceOwnerId(self):
return self.get_query_params().get('ResourceOwnerId')
def set_ResourceOwnerId(self,ResourceOwnerId):
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
def get_RetentType(self):
return self.get_query_params().get('RetentType')
def set_RetentType(self,RetentType):
self.add_query_param('RetentType',RetentType)
def get_BackupEnabled(self):
return self.get_query_params().get('BackupEnabled')
def set_BackupEnabled(self,BackupEnabled):
self.add_query_param('BackupEnabled',BackupEnabled)
def get_RelService(self):
return self.get_query_params().get('RelService')
def set_RelService(self,RelService):
self.add_query_param('RelService',RelService)
def get_StorageType(self):
return self.get_query_params().get('StorageType')
def set_StorageType(self,StorageType):
self.add_query_param('StorageType',StorageType)
def get_Endpoint(self):
return self.get_query_params().get('Endpoint')
def set_Endpoint(self,Endpoint):
self.add_query_param('Endpoint',Endpoint)
def get_DBInstanceId(self):
return self.get_query_params().get('DBInstanceId')
def set_DBInstanceId(self,DBInstanceId):
self.add_query_param('DBInstanceId',DBInstanceId)
def get_Retention(self):
return self.get_query_params().get('Retention')
def set_Retention(self,Retention):
self.add_query_param('Retention',Retention)
def get_ResourceOwnerAccount(self):
return self.get_query_params().get('ResourceOwnerAccount')
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
def get_CrossBackupType(self):
return self.get_query_params().get('CrossBackupType')
def set_CrossBackupType(self,CrossBackupType):
self.add_query_param('CrossBackupType',CrossBackupType)
def get_LogBackupEnabled(self):
return self.get_query_params().get('LogBackupEnabled')
def set_LogBackupEnabled(self,LogBackupEnabled):
self.add_query_param('LogBackupEnabled',LogBackupEnabled)
def get_OwnerId(self):
return self.get_query_params().get('OwnerId')
def set_OwnerId(self,OwnerId):
self.add_query_param('OwnerId',OwnerId)
def get_CrossBackupRegion(self):
return self.get_query_params().get('CrossBackupRegion')
def set_CrossBackupRegion(self,CrossBackupRegion):
self.add_query_param('CrossBackupRegion',CrossBackupRegion)
def get_StorageOwner(self):
return self.get_query_params().get('StorageOwner')
def set_StorageOwner(self,StorageOwner):
self.add_query_param('StorageOwner',StorageOwner) | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
264424d1370438442f2db7b23258504c679a9c80 | cd19cbd422a4b9913f84cc9806f3d239413865c9 | /worldcup.py | e3cb21cb888b670e3a9f49a203673d84ce831f0a | [
"MIT"
] | permissive | ynouri/world-cup-predictions | ca03bc8e2f69e1a7f66a30c46d27b42b711fa973 | eb59b4ccc503dbda5c0dc92a994b48b6f6ee5eaf | refs/heads/master | 2020-03-19T10:27:22.355625 | 2018-06-14T03:57:36 | 2018-06-14T03:57:36 | 136,371,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,017 | py | import pandas as pd
import numpy as np
import tabulate as tblt
from tabulate import tabulate
import itertools
import operator
from gamepredictor import RandomGamePredictor
class WorldCup(object):
"""World cup object."""
def __init__(self, filename):
"""Initialize world cup with a file containing groups and teams."""
df = pd.read_csv(filename, index_col='Group')
group_ids = 'ABCDEFGH'
self.groups = []
for id in group_ids:
teams = df.loc[id].Team.values
self.groups.append(Group(id, teams))
def play(self, game_predictor=None):
"""Play all the games of the world cup."""
for g in self.groups:
g.play(game_predictor)
def get_game(self, team_1, team_2):
"""Return a game object by team names."""
game = None
for g in self.groups:
game = g.get_game(team_1, team_2)
if game:
break
return game
def print_game_results(self):
"""Pretty print the game results for all the groups."""
for g in self.groups:
g.print_game_results()
print("\n")
class Group(object):
"""Represents a world cup group."""
def __init__(self, id, teams):
"""Initialize a group."""
self.id = id
self.teams = teams
self.games = []
self.initialize_games()
def initialize_games(self):
"""Initialize all the games of the group."""
for (team_1, team_2) in itertools.combinations(self.teams, 2):
self.games.append(Game(team_1, team_2))
def play(self, game_predictor=None):
"""Play all the games of the group."""
for g in self.games:
g.play(game_predictor)
def get_rankings(self):
"""Return the rankings of the group."""
n = len(self.teams)
points = dict(zip(self.teams, np.zeros(n)))
for g in self.games:
t1, t2 = g.get_teams()
pts1, pts2 = g.get_points()
points[t1] += pts1
points[t2] += pts2
rankings = sorted(points.items(),
key=operator.itemgetter(1),
reverse=True)
return rankings
def get_game(self, team_1, team_2):
"""Return a game object by team names."""
game = None
for g in self.games:
teams = g.get_teams()
if (teams == (team_1, team_2) or teams == (team_2, team_1)):
game = g
break
return game
def print_game_results(self):
"""Pretty print all the group game results."""
tblt.PRESERVE_WHITESPACE = True
game_results = [
("{:13}".format(g.team_1),
"{:13}".format(g.team_2),
"{} - {}".format(g.score[0], g.score[1]),
"{:17}".format(g.win_expectancy_formatted())
) for g in self.games]
headers = ("Team 1", "Team 2", "Score", "Elo Win Expect.")
group_name = "Group {}".format(self.id)
group = tabulate([["{:13}".format(group_name)]], tablefmt='psql')
tab = tabulate(game_results, headers=headers, tablefmt='psql')
print(group + "\r" + tab)
class Game(object):
"""Represents a world cup game, either in group or knockout stage."""
def __init__(self, team_1, team_2):
"""Initialize a game."""
self.team_1 = team_1
self.team_2 = team_2
self.score = (0, 0)
def get_teams(self):
"""Return a tuple of the two teams."""
return (self.team_1, self.team_2)
def play(self, game_predictor=None):
"""Play a game and record the score."""
if not game_predictor:
game_predictor = RandomGamePredictor(1000)
self.score = game_predictor.predict_game(self)
return self.score
def get_points(self):
"""Return the points gained by each team."""
s = self.score
if s[0] == s[1]: # This is a draw
return (1, 1)
elif s[0] > s[1]: # Team 1 wins
return (2, 0)
elif s[0] < s[1]: # Team 2 wins
return (0, 2)
def win_expectancy(self):
"""Return the win expectancy of team 1."""
(rating_1, rating_2) = self.get_teams_elo_ratings()
dr = rating_1 - rating_2
win_expectancy = 1 / (10**(-dr/400) + 1)
return win_expectancy
def win_expectancy_formatted(self):
"""Return the win expectancy conveniently formatted."""
we = self.win_expectancy()
if we >= 0.50:
return "{:.0f}% {}".format(we * 100, self.team_1)
else:
return "{:.0f}% {}".format((1-we) * 100, self.team_2)
def get_teams_elo_ratings(self):
"""Return the teams Elo ratings."""
ratings = pd.read_csv("elo_ratings.csv", index_col=0)
rating_1 = ratings.loc[self.team_1].values[0]
rating_2 = ratings.loc[self.team_2].values[0]
return (rating_1, rating_2)
| [
"ynouri@users.noreply.github.com"
] | ynouri@users.noreply.github.com |
15f6d7e9aba3fd053cd2be88a93241d0200b514f | 82acb29e50a51a566167aad6d9f43f93dd1c1efb | /lun.py | d6f950f3ab76f3229d44dc648ffc109aa58435ab | [] | no_license | jkbm/apparts | 302131e067d25f4065712320627d963713d1e36e | 5cc0ddcd9321ca714241e663d576a845a7aaf83d | refs/heads/master | 2020-03-26T22:15:26.101314 | 2018-09-21T09:54:20 | 2018-09-21T09:54:20 | 145,444,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import requests
from bs4 import BeautifulSoup as bs
import json
import csv
from yattag import Doc
import webbrowser
import os
from datetime import datetime
import re
url = "https://www.lun.ua/%D0%B0%D1%80%D0%B5%D0%BD%D0%B4%D0%B0-%D0%BA%D0%B2%D0%B0%D1%80%D1%82%D0%B8%D1%80-%D0%BA%D0%B8%D0%B5%D0%B2?roomCount=2&priceMin=7000&priceMax=8000"
r = requests.get(url)
soup = bs(r.content, "html.parser")
offers = soup.find_all('article')
offers_data = []
for article in offers:
offers_data.append(article.find(class_=re.compile("^jss16+"))) | [
"bigman_jk@hotmail.com"
] | bigman_jk@hotmail.com |
7ad28146b9b1c4cc875ead23d72cd414c02dcce8 | 9ad3803c73867cc66956c53aa0e0f023c2e9b7a9 | /django_demo/wsgi.py | aa566590005f56055dd6fe4568f6002e5d0f76d2 | [] | no_license | pcloth/api-shop | 2f9d963971ab0eae8db7e48cfaac984ba104d079 | 6cae15e057172b33ec7d9b3317d033e7ceae71e1 | refs/heads/master | 2023-07-22T09:00:39.018633 | 2023-07-07T07:36:27 | 2023-07-07T07:36:27 | 165,461,139 | 43 | 4 | null | 2023-03-06T04:46:13 | 2019-01-13T03:21:05 | Python | UTF-8 | Python | false | false | 415 | py | """
WSGI config for django_demo project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_demo.settings')
application = get_wsgi_application()
| [
"pcloth@gmail.com"
] | pcloth@gmail.com |
531a90f48670b96708ad059976d2ba5bf25937fd | cbadf1c08435abc91bd221d2fd9d096717685cc0 | /cses/introductory/t1068/task.py | 4d13a4212760b1f74adb4ec357a1211f2f7534e6 | [] | no_license | x3mka/code-contests-python | 9b54738941187284e1f70aad850ae1016ca6cd39 | 57f473ca84735f9312913967e20a3ac0da32baa8 | refs/heads/master | 2022-09-01T20:39:05.329559 | 2022-08-04T13:05:22 | 2022-08-04T13:05:22 | 263,626,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | import sys
def rs(): return sys.stdin.readline().rstrip()
def ri(): return int(sys.stdin.readline())
def ria(): return list(map(int, sys.stdin.readline().split()))
def ws(s): sys.stdout.write(s); sys.stdout.write('\n')
def wi(n): sys.stdout.write(str(n)); sys.stdout.write('\n')
def wia(a, sep=' '): sys.stdout.write(sep.join([str(x) for x in a])); sys.stdout.write('\n')
def solve(n, k):
return 0
def main():
n = ri()
res = []
while n > 1:
res.append(n)
if n % 2 == 0:
n //= 2
else:
n = n * 3 + 1
res.append(1)
wia(res)
if __name__ == '__main__':
main()
| [
"bdimonik@gmail.com"
] | bdimonik@gmail.com |
32bdf45230b74244e48175681dbda1abdb4f6883 | 54c95eb01f63d349b4ff24ee8674cb302f1dd4e3 | /pythonplots/fourierstuff/snrangerealtwo2.py | 8e3913c2be216daca7f39ca2c15b10c7966e6cc0 | [] | no_license | RichardKul/thesis | 4b77129fe9ab87fda0a346dbfa0aa4053a628e39 | 88217953f416bbe3c7c7616179755c83de416592 | refs/heads/master | 2022-11-18T16:33:57.488802 | 2020-07-16T09:35:30 | 2020-07-16T09:35:30 | 197,007,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,914 | py | #!usr/bin/python3
import matplotlib
matplotlib.use("agg")
import numpy as np
import matplotlib.pyplot as plt
from scipy.fftpack import fft, ifft
from scipy.optimize import curve_fit
#matplotlib.rcParams.update({'font.size': 14})
def barrier(a,b,x):
return a * x + b
def r(r0,a,b,t,D):
return r0*np.exp(-barrier(a,b,t)/D)
def snr(r0p,r0m,ap,am,bp,bm,cp,cm,t,D,av,v0):
return (qr(r0m,am,bm,cm,t,D)*(qr(r0p,ap,bp,cp,t,D)+qr(r0m,am,bm,cm,t,D))/(v0**2*qr(r0p,ap,bp,cp,t,D)))*((((2*ap*t+bp)-(2*am*t+bm))*qr(r0p,ap,bp,cp,t,D)*v0)/(D*(qr(r0p,ap,bp,cp,t,D)+qr(r0m,am,bm,cm,t,D)))+av)**2
def qbarrier(x,a,b,c):
return a*x**2+b*x+c
def qr(r0,a,b,c,t,D):
return r0*np.exp(-qbarrier(t,a,b,c)/D)
def deff(x,rp,rm,v0,av):
return ((v0+av*x)**2*rp*rm)/((rp+rm)**3)
def fano(x,rp,rm,v0,av):
return (2*(v0+av*x)*rp)/((rp+rm)**2)
def func(x, a, b):
return a * np.exp(-b * x)
def deffana(r0p,r0m,ap,am,bp,bm,t,D,av,v0):
return ((barrier(av,v0,t))**2*r(r0p,ap,bp,t,D)*r(r0m,am,bm,t,D))/((r(r0p,ap,bp,t,D)+r(r0m,am,bm,t,D))**3)
def deffqana(r0p,r0m,ap,am,bp,bm,cp,cm,t,D,av,v0):
return ((barrier(av,v0,t))**2*qr(r0p,ap,bp,cp,t,D)*qr(r0m,am,bm,cm,t,D))/((qr(r0p,ap,bp,cp,t,D)+qr(r0m,am,bm,cm,t,D))**3)
def fanoana(r0p,r0m,ap,am,bp,bm,t,D,av,v0):
return (2*barrier(av,v0,t)*r(r0p,ap,bp,t,D))/((r(r0p,ap,bp,t,D)+r(r0m,am,bm,t,D))**2)
def vana(r0p,r0m,ap,am,bp,bm,t,D,av,v0):
return barrier(av,v0,t)*r(r0m,am,bm,t,D)/(r(r0p,ap,bp,t,D)+r(r0m,am,bm,t,D))
def vqana(r0p,r0m,ap,am,bp,bm,cp,cm,t,D,av,v0):
return barrier(av,v0,t)*qr(r0m,am,bm,cm,t,D)/(qr(r0p,ap,bp,cp,t,D)+qr(r0m,am,bm,cm,t,D))
date3='realfast11jjem2sh'
date2='realfast19jjem2st'
ivalues=20
l=5
D1=[35]
D3=[40,50]
D2=[45]
Dvar=[30]
D=D1+D2+D3+Dvar
Da=np.array(D)
btoeq=np.zeros((l,ivalues))
eqtob=np.zeros((l,ivalues))
params=np.zeros((4,ivalues))
paramsav=np.zeros((4,ivalues))
params2=np.zeros(4)
paramsq=np.zeros(6)
for k2 in range(0,ivalues):
x=[]
ratefile = open('/home/richard/mastergit/pythonplots/arrhenius_analytics/rate%s%d.txt' %('new'+date3+'new'+date2,k2),'r')
for k4 in ratefile:
row=k4.split()
x.append(float(row[0]))
ax=np.array(x)
for k in range(0,l):
btoeq[k][k2]=1/ax[k]
eqtob[k][k2]=1/ax[k+l]
av=0.013
v0=0.0637
xs=np.zeros(l)
for b in range(0,l):
xs[b]=100/Da[b]
for k2 in range(0,ivalues):
popt,pcov = curve_fit(func, xs, btoeq[:,k2])
params[0][k2]=popt[0]
params[1][k2]=popt[1]
popt,pcov = curve_fit(func, xs, eqtob[:,k2])
params[2][k2]=popt[0]
params[3][k2]=popt[1]
rbte=np.mean(params[0,:])
retb=np.mean(params[2,:])
istart=1
xnew=np.arange(-5+istart,-5+istart+ivalues)*0.02
popt,pcov = curve_fit(qbarrier, xnew, params[1,:])
paramsq[0]=popt[0]
paramsq[1]=popt[1]
paramsq[2]=popt[2]
popt,pcov = curve_fit(qbarrier, xnew, params[3,:])
paramsq[3]=popt[0]
paramsq[4]=popt[1]
paramsq[5]=popt[2]
bp = 1.74
ap = 5.64
r0p = 0.0075
bm = 3.15
am = -10.76
r0m = 0.012
date=['realfast13aem2n4','realfast13aem2n4','realfast9aem2sh','realfast9aem2sh']
D=[25,30,35,45]
l=len(D)
points=1000000
length=500000
ivalues=20
SNR=np.zeros((l,ivalues))
scale=np.zeros((l,ivalues))
ii=0
for m in range(0,l):
c=D[m]
for z in range(1,21):
file=open('/home/richard/outhome/spike%s%d%d.txt' %(date[m],c,z),"r")
x,y=[],[]
for k in file:
row=k.split()
x.append(float(row[0]))
y.append(float(row[1]))
ax=np.array(x)
ay=np.array(y)
param=open('/home/richard/outhome/param%s%d%d.txt' %(date[m],c,z),"r")
ll=0
name,value=[],[]
for k in param:
row=k.split()
lp=len(row)
if ll<1:
for jj in range(0,lp):
name.append(row[jj])
else:
for kk in range(0,lp):
value.append(float(row[kk]))
ll=ll+1
dt=value[name.index('dt')]
N=value[name.index('N')]-value[name.index('Neq')]
repetitions=value[name.index('repetitions')]
epsilon=value[name.index('epsilon')]
omega=value[name.index('omega')]
T=N*repetitions*dt
scale[ii][z-1]=epsilon**2*T
omegaind=round(omega*T)
SNR[ii][z-1]=ay[omegaind]/np.mean([ay[omegaind-1],ay[omegaind-2],ay[omegaind+1],ay[omegaind+2],ay[omegaind-3]])
ii=ii+1
snrealfile=open('snrealfile2.txt','w')
for n in range(0,l):
for m in range(0,ivalues):
snrealfile.write('%.6f '%((SNR[n][m]-1)/scale[n][m]))
snrealfile.write('\n')
snrealfile.close()
#files=open('/home/richard/NetBeansProjects/oup/xtraje6newwcav2.txt',"r")
#sx,sy=[],[]
#for ks in files:
# rows=ks.split()
# sx.append(float(rows[0]))
# sy.append(float(rows[1]))
#sax=np.array(sx)
#say=np.array(sy)
#sax2=np.zeros(length)
#say2=np.zeros(length)
#for l in range(0,length):
# sax2[l]=sax[l]
# say2[l]=say[l]
#plt.figure()
#plt.xlabel('time')
#plt.ylabel('position')
#plt.xlim(0,10)
#plt.plot(ax,ay)
#plt.plot(ax,aa)
#plt.savefig('oub.pdf')
#ys = fft(ay)
#for l in range(0,length):
# S[l]=abs(ys[l])*abs(ys[l])/T
#omega=np.arange(0,length)*2*np.pi/T
plt.figure()
plt.xlabel('bias current I $[\mu A/cm^2]$')
plt.ylabel('Signal-to-noise ratio SNR')
t=np.arange(-0.1,0.3,0.01)
xs=np.arange(-0.08,0.32,0.02)
plt.yscale('log')
#plt.xscale('log')
#plt.xlim(4*10**(-3),5*10**3)
plt.ylim(1.5*10**(-5),7*10**(-2))
#colorv=['g','y','b','r','c']
for n in range(0,l):
plt.plot(xs,abs(SNR[n,:]-1)/scale[n,:],label='D=%.2f' %(D[n]*0.01))
#for n in range(0,l):
# plt.plot(t,snr(rbte,retb,paramsq[0],paramsq[3],paramsq[1],paramsq[4],paramsq[2],paramsq[5],t,Dtot[n]*0.01,av,v0)/8,colorv[n])
plt.plot([0.163, 0.163], [3*10**(-5), 5*10**(-2)], color='black', linestyle='-',label='$I_{crit}$')
plt.plot([0.06, 0.06], [3*10**(-5), 5*10**(-2)], color='black', linestyle='--',label='$I_{max}$')
#plt.plot([-0.02, -0.02], [10**(-7), 10], color='black', linestyle='-')
#plt.plot(xs,SNR[2,:],label='D=3')
#plt.plot(xs,SNR[1,:],label='D=2.5')
#handles, labels = plt.gca().get_legend_handles_labels()
#order = [0,2,1]
#plt.legend([handles[idx] for idx in order],[labels[idx] for idx in order])
#plt.plot(sax2,say2/T2,label='e6')
plt.legend()
plt.tight_layout()
plt.savefig('snrealonly2crit5max.pdf')
| [
"richard@alte.Kiste"
] | richard@alte.Kiste |
e13bb901cd9df199f3950410297a9737603a5b53 | 72052cdedd5b0cf0952b005eb0045c437224e337 | /Day6b.py | fe9c6610683c9c21ec1d1af88856d23b022fb117 | [] | no_license | jefallon/adventofcode2020 | d0489394d5c90ba0bb638a60b7397a7028e1f699 | 4bb3339a2dfd551ca38872052be6bc68ab1ce1cd | refs/heads/master | 2023-02-03T13:42:55.610375 | 2020-12-25T23:08:31 | 2020-12-25T23:08:31 | 318,025,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | def groups_sum(infile):
yes_sum = 0
with open(infile, 'r') as f:
this_group = set('abcdefghijklmnopqrstuvwxyz')
for row in f:
responses = row.strip()
if responses == '':
yes_sum += len(this_group)
this_group = set('abcdefghijklmnopqrstuvwxyz')
else:
this_group.intersection_update(set(responses))
yes_sum += len(this_group)
return yes_sum
if __name__ == '__main__':
infile = 'Advent6.txt'
print(groups_sum(infile))
| [
"fallonje@adelphia.net"
] | fallonje@adelphia.net |
5194708e4cb011418ca453bde54265f86a22abd6 | fd48fba90bb227017ac2da9786d59f9b9130aaf0 | /digsby/src/gui/uberwidgets/formattedinput2/FormattedExpandoTextCtrl.py | eb6cbfe7288e350f9b8f5536a12e7a9dc75c2ac0 | [
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | niterain/digsby | bb05b959c66b957237be68cd8576e3a7c0f7c693 | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | refs/heads/master | 2021-01-18T10:07:10.244382 | 2013-11-03T02:48:25 | 2013-11-03T02:48:25 | 5,991,568 | 1 | 0 | null | 2013-11-03T02:48:26 | 2012-09-28T02:24:50 | Python | UTF-8 | Python | false | false | 8,255 | py | '''
Prepares FormattedExpandoTextCtrl and FormattedTextCtrl dependant on platform
On Windows includes spellcheck mixin while on Mac it does not because spellcheck is provided by the OS
'''
from gui.uberwidgets.formattedinput2.fromattedinputevents import TextFormatChangedEvent
import wx
wxMSW = 'wxMSW' in wx.PlatformInfo
wxMac = 'wxMac' in wx.PlatformInfo
formattedstyle = (wx.TE_RICH2 | wx.TE_MULTILINE | wx.TE_CHARWRAP | wx.NO_BORDER | wx.WANTS_CHARS | wx.TE_NOHIDESEL)
from gui.textutil import default_font
from gui.uberwidgets.umenu import UMenu
from util.primitives.fmtstr import fmtstr, FormattingException
from cgui import InputBox
from cgui import ExpandoTextCtrl, EVT_ETC_LAYOUT_NEEDED
FONT_FLAGS = (wx.TEXT_ATTR_FONT_FACE | wx.TEXT_ATTR_FONT_SIZE | wx.TEXT_ATTR_FONT_WEIGHT | wx.TEXT_ATTR_FONT_ITALIC | wx.TEXT_ATTR_FONT_UNDERLINE)
class FormattingInterface(object):
'''
Interface to add text formatting related methods to a TextField object
'''
SetFormat = None
def default_attrs(self):
return wx.TextAttr(wx.BLACK, wx.WHITE, default_font())
def __init__(self, multiFormat = True, format = None):
self.MultiFormat(multiFormat)
self.BindEvents()
self.SetFormat(format if format is not None else self.default_attrs())
def GetFormat(self):
# FIXME: We need to get the style flags working right under OS X Cocoa
# Right now it seems you need to have at least
attrs = self.GetStyle(self.GetInsertionPoint())[1]
if attrs.IsDefault(): # this will return wx.NullFont, not a very useful thing to use
return self.default_attrs()
return attrs
def SetFormat_Single(self, textattr):
'''
Set format for the entire text content
'''
self.SetStyle(0, self.GetLastPosition(), textattr)
self.SetDefaultStyle(textattr)
def SetFormat_Multi(self, textattr):
'''
Set format for just the current selection
'''
start, end = self.GetSelection()
self.SetStyle(start, end, textattr)
def MultiFormat(self, multi):
'''
Turn MultiFormat support for a field on and off
'''
self.isMultiFormat = multi
if multi:
self.SetFormat = self.SetFormat_Multi
else:
self.SetFormat = self.SetFormat_Single
def ApplyStyle(self, **format):
'''
Set the font style using human readable key words and simple values
@param textcolor: wx.Color
@param bgcolor: wx.Color
@param facename: String
@param pointsize: int
@param bold: Bool
@param italic: Bool
@param underline: Bool
'''
textattr = self.GetFormat()
font = textattr.GetFont()
flags = 0
if 'textcolor' in format:
flags |= wx.TEXT_ATTR_TEXT_COLOUR
textattr.SetTextColour(format['textcolor'])
if 'bgcolor' in format:
flags |= wx.TEXT_ATTR_BACKGROUND_COLOUR
textattr.SetBackgroundColour(format['bgcolor'])
if 'facename' in format:
flags |= wx.TEXT_ATTR_FONT_FACE
font.SetFaceName(format['facename'])
if 'pointsize' in format:
flags |= wx.TEXT_ATTR_FONT_SIZE
font.SetPointSize(format['pointsize'])
if 'bold' in format:
flags |= wx.TEXT_ATTR_FONT_WEIGHT
font.SetWeight(wx.FONTWEIGHT_BOLD if format['bold'] else wx.NORMAL,)
if 'italic' in format:
flags |= wx.TEXT_ATTR_FONT_ITALIC
font.SetStyle(wx.FONTSTYLE_ITALIC if format['italic'] else wx.FONTSTYLE_NORMAL)
if 'underline' in format:
flags |= wx.TEXT_ATTR_FONT_UNDERLINE
font.SetUnderlined(format['underline'])
if flags & FONT_FLAGS:
textattr.SetFont(font)
textattr.SetFlags(flags)
self.SetFormat(textattr)
self.SetFocus()
self.AddPendingEvent(TextFormatChangedEvent(self.Id, EventObject = self))
def GenMenu(self):
m = UMenu(self)
# spelling suggestions and options
if isinstance(self, SpellCheckTextCtrlMixin):
if self.AddSuggestionsToMenu(m):
m.AddSep()
m.AddItem(_('Cut'), id = wx.ID_CUT, callback = self.Cut)
m.AddItem(_('Copy'), id = wx.ID_COPY, callback = self.Copy)
m.AddItem(_('Paste'), id = wx.ID_PASTE, callback = self.Paste)
m.AddSep()
m.AddItem(_('Select All'), id = wx.ID_SELECTALL, callback = lambda: self.SetSelection(0, self.GetLastPosition()))
m.AddSep()
from gui.toolbox import add_rtl_checkbox
add_rtl_checkbox(self, m)
return m
def BindEvents(self):
def OnContextMenu(event):
pt = self.ScreenToClient(wx.GetMousePosition())
ht = self.HitTest(pt)
self.SetInsertionPoint(self.XYToPosition(ht[1], ht[2]))
menu = self.GenMenu()
menu.PopupMenu()
Bind = self.Bind
if not wxMac:
Bind(wx.EVT_CONTEXT_MENU, OnContextMenu)
def _expand_event(self):
if wx.IsDestroyed(self):
return
self.AddPendingEvent(wx.CommandEvent(EVT_ETC_LAYOUT_NEEDED, self.Id))
if wxMSW:
from gui.spellchecktextctrlmixin import SpellCheckTextCtrlMixin
class FormattedExpandoTextCtrl(ExpandoTextCtrl, SpellCheckTextCtrlMixin, FormattingInterface):
def __init__(self, parent, style = 0, value = '', multiFormat = True, format = None, validator = wx.DefaultValidator):
ExpandoTextCtrl.__init__(self, parent, wx.ID_ANY, value, wx.DefaultPosition, wx.DefaultSize, style | formattedstyle, validator, value)
FormattingInterface.__init__(self, multiFormat, format)
SpellCheckTextCtrlMixin.__init__(self)
def ForceExpandEvent(self):
_expand_event(self)
class FormattedTextCtrl(InputBox, SpellCheckTextCtrlMixin, FormattingInterface):
def __init__(self, parent, style = 0, value = '', multiFormat = True, format = None, validator = wx.DefaultValidator):
InputBox.__init__(self, parent, wx.ID_ANY, value, wx.DefaultPosition, wx.DefaultSize, style | formattedstyle, validator, value)
FormattingInterface.__init__(self, multiFormat, format)
SpellCheckTextCtrlMixin.__init__(self)
else:
class FormattedExpandoTextCtrl(ExpandoTextCtrl, FormattingInterface):
def __init__(self, parent, style = 0, value = '', multiFormat = True, format = None, validator = wx.DefaultValidator):
ExpandoTextCtrl.__init__(self, parent, wx.ID_ANY, value, wx.DefaultPosition, wx.DefaultSize, style | formattedstyle, validator, value)
FormattingInterface.__init__(self, multiFormat, format)
def HitTestSuggestions(self, *a, **k):
return -1, []
def GetWordAtPosition(self, *a, **k):
return None
def GetReqHeight(self):
return self.GetBestSize().y
def ForceExpandEvent(self):
_expand_event(self)
class FormattedTextCtrl(InputBox, FormattingInterface):
def __init__(self, parent, style = 0, value = '', multiFormat = True, format = None, validator = wx.DefaultValidator):
InputBox.__init__(self, parent, wx.ID_ANY, value, wx.DefaultPosition, wx.DefaultSize, style | formattedstyle, validator, value)
FormattingInterface.__init__(self, multiFormat, format)
def GetReqHeight(self):
return self.GetBestSize().y
def add_rtf_methods(cls):
def GetFormattedValue(self):
if wxMSW:
rtf, plaintext = cls.GetRTF(self), cls.GetValue(self)
return fmtstr(rtf=rtf, plaintext=plaintext)
else:
return fmtstr(plaintext=cls.GetValue(self))
cls.GetFormattedValue = GetFormattedValue
def SetFormattedValue(self, fmtstr):
try:
rtf = fmtstr.format_as('rtf')
except FormattingException:
cls.SetValue(self, fmtstr.format_as('plaintext'))
else:
cls.SetRTF(self, rtf)
cls.SetFormattedValue = SetFormattedValue
add_rtf_methods(FormattedExpandoTextCtrl)
add_rtf_methods(FormattedTextCtrl)
| [
"mdougherty@tagged.com"
] | mdougherty@tagged.com |
b186256f20c492cec5e909922ed7a5ab603e0044 | 3fd8a3e3f37f9db258df63d8565239b8b8be0f24 | /basic_python/try_range.py | 6b594db09eecc7eed9296be9b513002ca6b94dc2 | [] | no_license | raveena17/workout_problems | 713a3e1a6ec513c1ee8b878519171150c6858aa4 | 004812cb7abf096d6f5d20181a29c16f8daaac55 | refs/heads/master | 2021-03-12T19:27:08.013266 | 2017-09-08T16:11:32 | 2017-09-08T16:11:32 | 102,878,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | a=['apple','mango','orange','banana']
for k in range(len(a)):
print k,a[k]
| [
"linuxuser@5gws004-linux.fifthgentech.local"
] | linuxuser@5gws004-linux.fifthgentech.local |
29290a0c6d157dc20436ef2e1f2a9d22a7b614e2 | feffb06476500658b4bb5d09adc029db96d33b1d | /Algorithms/Python/Recursion/Nth-catalan.py | dd82ecf08b8ab2295b7693f9be4cdd51ec65985a | [
"MIT"
] | permissive | sahanal-2603/Hacktoberfest-2021 | a24d08b7d1acfb066c27d6d0ddbf42dda030a9a2 | edb49ba000a5827564f5902a48d7e85f2b398e15 | refs/heads/main | 2023-08-25T19:45:04.210869 | 2021-10-04T20:00:21 | 2021-10-04T20:00:21 | 413,565,017 | 1 | 0 | MIT | 2021-10-04T19:57:29 | 2021-10-04T19:57:29 | null | UTF-8 | Python | false | false | 588 | py | # A dynamic programming based function to find nth
# Catalan number
def catalan(n):
if (n == 0 or n == 1):
return 1
catalan =[0]*(n+1)
catalan[0] = 1
catalan[1] = 1
for i in range(2, n + 1):
for j in range(i):
catalan[i] += catalan[j]* catalan[i-j-1]
return catalan[n]
for i in range(10):
print(catalan(i), end=" ")
'''
# A recursive function to
# find nth catalan number
def catalan(n):
if n <= 1: # Base Case
return 1
res = 0
for i in range(n):
res += catalan(i) * catalan(n-i-1)
return res
for i in range(10):
print catalan(i),
'''
| [
"jagjit.waris@gmail.com"
] | jagjit.waris@gmail.com |
c38f64648780fe24938819e7a021e775e5b9144a | 2aba3c043ce4ef934adce0f65bd589268ec443c5 | /codility/lessons/lesson15/abs_distinct.py | 20cee5b98361ce77f0c60a5866368cb270aedd84 | [] | no_license | kambehmw/algorithm_python | 4f66593b77039d90515d1fcbecacdab8c811b92f | 17222399dcc92fd8f908e5774a9883e2e89c486e | refs/heads/master | 2020-06-02T12:44:11.322356 | 2020-05-18T13:22:05 | 2020-05-18T13:22:05 | 191,157,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | def solution(A):
result = set()
for a in A:
if abs(a) not in result:
result.add(abs(a))
return len(result)
if __name__ == '__main__':
A = [-5, -3, -1, 0, 3, 6]
print(solution(A)) | [
"kanbe.hmw@gmail.com"
] | kanbe.hmw@gmail.com |
9cf3b3f27866c7a5cfbda59ec62d4b8f31c6c2b2 | 339376b825d7de150103d5e5f51c6f420bcf1236 | /oauth2/src/oauth2helpers/__init__.py | f32b622f42e79601c8553ec392ad3e5dfa3b5203 | [] | no_license | pshenyaga/python-playground | b1b268bf114c5022b358b8c08440aa49ad7370b5 | 2620664607443b3f1b679e9d1e840c64cd6fd544 | refs/heads/main | 2023-04-16T04:34:19.061967 | 2021-04-22T22:36:38 | 2021-04-22T22:36:38 | 331,105,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from .utils import (
build_url,
encode_client_credential,
decode_client_credential
)
__all__ = ['build_url', 'encode_client_credential', 'decode_client_credential'] | [
"afw@afw.net.ua"
] | afw@afw.net.ua |
6c140f4bf44f22f4502a8fa0fb63036e50dd0e0e | 0f258170c095d70cdeec1ab3c851c0a3f85c4e10 | /5-conditional/hello.py | 41e5d1b09208128ce8536ddab168b4a3cc1f3fea | [] | no_license | ruzguz/python-stuff | a45b54ef4f3a45c45bce52158b32470eff2fe00b | f5e30b875a68d9666c067e31ebec893a06ba3c5b | refs/heads/master | 2022-09-05T00:09:26.383209 | 2020-05-28T21:12:32 | 2020-05-28T21:12:32 | 261,858,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | def say_hello(age):
if age >= 18:
print('Hello sir')
else:
print('Hey kid')
def main():
age = int(input('How old are you?: '))
say_hello(age)
if __name__ == '__main__':
main()
| [
"rusbenguzman@gmail.com"
] | rusbenguzman@gmail.com |
10769c7f2b8f859c8a61606f6b4dee0687b7b409 | a8ec1d646d2d114f47ff1af81091bf4889d46d71 | /NestingDepthCodeJam2020.py | 713d5ee32e7e6ca4615586a2b8e28773b1a45acb | [] | no_license | rabahbedirina/GoogleCodingCompetition | 3fc579de4694771b472211f188482db8242b572d | 79b75df7ad6d9702358852c50a5a719c7a838b30 | refs/heads/master | 2022-04-12T00:08:26.661866 | 2020-04-05T11:35:35 | 2020-04-05T11:35:35 | 250,253,829 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | def main():
s = input()
y, l = '', 0
for i in s:
i = int(i)
for j in range(i-l):
y += '('
for j in range(l-i):
y += ')'
y += str(i)
l = i
for i in range(l):
y += ')'
return y
t = int(input())
for i in range(t):
print("Case #{}: {}".format(i+1, main()))
| [
"bedirina.rabah1993@gmail.com"
] | bedirina.rabah1993@gmail.com |
0abe73b62ca03e646118a8c8c2a50338dd5c2238 | 8291b4790bf9c1381c599177e9adf994cf71ad46 | /checkout/migrations/0002_auto_20180822_1357.py | 1624937ce1b6feb51dfb2a3148e2dd82be5de34b | [] | no_license | ringhio79/ecommerce | 06dc5edaed7d74c4ed8b05a9d964ebbbed040b17 | 6668c72e7daa954d260113bd6f0d9f959e7fc411 | refs/heads/master | 2020-03-26T21:22:15.175594 | 2018-08-24T15:10:12 | 2018-08-24T15:10:12 | 145,383,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | # Generated by Django 2.0.6 on 2018-08-22 13:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('checkout', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='order',
name='date',
field=models.DateField(auto_now_add=True),
),
migrations.AlterField(
model_name='order',
name='street_address_2',
field=models.CharField(blank=True, max_length=40),
),
migrations.AlterField(
model_name='orderlineitem',
name='order',
field=models.ForeignKey(on_delete='models.CASCADE', related_name='line_items', to='checkout.Order'),
),
migrations.AlterField(
model_name='orderlineitem',
name='product',
field=models.ForeignKey(on_delete='models.CASCADE', related_name='orders', to='products.Product'),
),
]
| [
"gigi108@gmail.com"
] | gigi108@gmail.com |
a65f673d101d1225381df4757e6710a796a2a320 | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/networkx/algorithms/bipartite/projection.py | ffa5405958ff0e3d50185832e1b21f40ec34067e | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,002 | py | """One-mode (unipartite) projections of bipartite graphs."""
import networkx as nx
from networkx.utils import not_implemented_for
__all__ = [
"project",
"projected_graph",
"weighted_projected_graph",
"collaboration_weighted_projected_graph",
"overlap_weighted_projected_graph",
"generic_weighted_projected_graph",
]
def projected_graph(B, nodes, multigraph=False):
r"""Returns the projection of B onto one of its node sets.
Returns the graph G that is the projection of the bipartite graph B
onto the specified nodes. They retain their attributes and are connected
in G if they have a common neighbor in B.
Parameters
----------
B : NetworkX graph
The input graph should be bipartite.
nodes : list or iterable
Nodes to project onto (the "bottom" nodes).
multigraph: bool (default=False)
If True return a multigraph where the multiple edges represent multiple
shared neighbors. They edge key in the multigraph is assigned to the
label of the neighbor.
Returns
-------
Graph : NetworkX graph or multigraph
A graph that is the projection onto the given nodes.
Examples
--------
>>> from networkx.algorithms import bipartite
>>> B = nx.path_graph(4)
>>> G = bipartite.projected_graph(B, [1, 3])
>>> list(G)
[1, 3]
>>> list(G.edges())
[(1, 3)]
If nodes `a`, and `b` are connected through both nodes 1 and 2 then
building a multigraph results in two edges in the projection onto
[`a`, `b`]:
>>> B = nx.Graph()
>>> B.add_edges_from([("a", 1), ("b", 1), ("a", 2), ("b", 2)])
>>> G = bipartite.projected_graph(B, ["a", "b"], multigraph=True)
>>> print([sorted((u, v)) for u, v in G.edges()])
[['a', 'b'], ['a', 'b']]
Notes
-----
No attempt is made to verify that the input graph B is bipartite.
Returns a simple graph that is the projection of the bipartite graph B
onto the set of nodes given in list nodes. If multigraph=True then
a multigraph is returned with an edge for every shared neighbor.
Directed graphs are allowed as input. The output will also then
be a directed graph with edges if there is a directed path between
the nodes.
The graph and node properties are (shallow) copied to the projected graph.
See :mod:`bipartite documentation <networkx.algorithms.bipartite>`
for further details on how bipartite graphs are handled in NetworkX.
See Also
--------
is_bipartite,
is_bipartite_node_set,
sets,
weighted_projected_graph,
collaboration_weighted_projected_graph,
overlap_weighted_projected_graph,
generic_weighted_projected_graph
"""
if B.is_multigraph():
raise nx.NetworkXError("not defined for multigraphs")
if B.is_directed():
directed = True
if multigraph:
G = nx.MultiDiGraph()
else:
G = nx.DiGraph()
else:
directed = False
if multigraph:
G = nx.MultiGraph()
else:
G = nx.Graph()
G.graph.update(B.graph)
G.add_nodes_from((n, B.nodes[n]) for n in nodes)
for u in nodes:
nbrs2 = {v for nbr in B[u] for v in B[nbr] if v != u}
if multigraph:
for n in nbrs2:
if directed:
links = set(B[u]) & set(B.pred[n])
else:
links = set(B[u]) & set(B[n])
for l in links:
if not G.has_edge(u, n, l):
G.add_edge(u, n, key=l)
else:
G.add_edges_from((u, n) for n in nbrs2)
return G
@not_implemented_for("multigraph")
def weighted_projected_graph(B, nodes, ratio=False):
r"""Returns a weighted projection of B onto one of its node sets.
The weighted projected graph is the projection of the bipartite
network B onto the specified nodes with weights representing the
number of shared neighbors or the ratio between actual shared
neighbors and possible shared neighbors if ``ratio is True`` [1]_.
The nodes retain their attributes and are connected in the resulting
graph if they have an edge to a common node in the original graph.
Parameters
----------
B : NetworkX graph
The input graph should be bipartite.
nodes : list or iterable
Nodes to project onto (the "bottom" nodes).
ratio: Bool (default=False)
If True, edge weight is the ratio between actual shared neighbors
and maximum possible shared neighbors (i.e., the size of the other
node set). If False, edges weight is the number of shared neighbors.
Returns
-------
Graph : NetworkX graph
A graph that is the projection onto the given nodes.
Examples
--------
>>> from networkx.algorithms import bipartite
>>> B = nx.path_graph(4)
>>> G = bipartite.weighted_projected_graph(B, [1, 3])
>>> list(G)
[1, 3]
>>> list(G.edges(data=True))
[(1, 3, {'weight': 1})]
>>> G = bipartite.weighted_projected_graph(B, [1, 3], ratio=True)
>>> list(G.edges(data=True))
[(1, 3, {'weight': 0.5})]
Notes
-----
No attempt is made to verify that the input graph B is bipartite.
The graph and node properties are (shallow) copied to the projected graph.
See :mod:`bipartite documentation <networkx.algorithms.bipartite>`
for further details on how bipartite graphs are handled in NetworkX.
See Also
--------
is_bipartite,
is_bipartite_node_set,
sets,
collaboration_weighted_projected_graph,
overlap_weighted_projected_graph,
generic_weighted_projected_graph
projected_graph
References
----------
.. [1] Borgatti, S.P. and Halgin, D. In press. "Analyzing Affiliation
Networks". In Carrington, P. and Scott, J. (eds) The Sage Handbook
of Social Network Analysis. Sage Publications.
"""
if B.is_directed():
pred = B.pred
G = nx.DiGraph()
else:
pred = B.adj
G = nx.Graph()
G.graph.update(B.graph)
G.add_nodes_from((n, B.nodes[n]) for n in nodes)
n_top = float(len(B) - len(nodes))
for u in nodes:
unbrs = set(B[u])
nbrs2 = {n for nbr in unbrs for n in B[nbr]} - {u}
for v in nbrs2:
vnbrs = set(pred[v])
common = unbrs & vnbrs
if not ratio:
weight = len(common)
else:
weight = len(common) / n_top
G.add_edge(u, v, weight=weight)
return G
@not_implemented_for("multigraph")
def collaboration_weighted_projected_graph(B, nodes):
r"""Newman's weighted projection of B onto one of its node sets.
The collaboration weighted projection is the projection of the
bipartite network B onto the specified nodes with weights assigned
using Newman's collaboration model [1]_:
.. math::
w_{u, v} = \sum_k \frac{\delta_{u}^{k} \delta_{v}^{k}}{d_k - 1}
where `u` and `v` are nodes from the bottom bipartite node set,
and `k` is a node of the top node set.
The value `d_k` is the degree of node `k` in the bipartite
network and `\delta_{u}^{k}` is 1 if node `u` is
linked to node `k` in the original bipartite graph or 0 otherwise.
The nodes retain their attributes and are connected in the resulting
graph if have an edge to a common node in the original bipartite
graph.
Parameters
----------
B : NetworkX graph
The input graph should be bipartite.
nodes : list or iterable
Nodes to project onto (the "bottom" nodes).
Returns
-------
Graph : NetworkX graph
A graph that is the projection onto the given nodes.
Examples
--------
>>> from networkx.algorithms import bipartite
>>> B = nx.path_graph(5)
>>> B.add_edge(1, 5)
>>> G = bipartite.collaboration_weighted_projected_graph(B, [0, 2, 4, 5])
>>> list(G)
[0, 2, 4, 5]
>>> for edge in sorted(G.edges(data=True)):
... print(edge)
...
(0, 2, {'weight': 0.5})
(0, 5, {'weight': 0.5})
(2, 4, {'weight': 1.0})
(2, 5, {'weight': 0.5})
Notes
-----
No attempt is made to verify that the input graph B is bipartite.
The graph and node properties are (shallow) copied to the projected graph.
See :mod:`bipartite documentation <networkx.algorithms.bipartite>`
for further details on how bipartite graphs are handled in NetworkX.
See Also
--------
is_bipartite,
is_bipartite_node_set,
sets,
weighted_projected_graph,
overlap_weighted_projected_graph,
generic_weighted_projected_graph,
projected_graph
References
----------
.. [1] Scientific collaboration networks: II.
Shortest paths, weighted networks, and centrality,
M. E. J. Newman, Phys. Rev. E 64, 016132 (2001).
"""
if B.is_directed():
pred = B.pred
G = nx.DiGraph()
else:
pred = B.adj
G = nx.Graph()
G.graph.update(B.graph)
G.add_nodes_from((n, B.nodes[n]) for n in nodes)
for u in nodes:
unbrs = set(B[u])
nbrs2 = {n for nbr in unbrs for n in B[nbr] if n != u}
for v in nbrs2:
vnbrs = set(pred[v])
common_degree = (len(B[n]) for n in unbrs & vnbrs)
weight = sum(1.0 / (deg - 1) for deg in common_degree if deg > 1)
G.add_edge(u, v, weight=weight)
return G
@not_implemented_for("multigraph")
def overlap_weighted_projected_graph(B, nodes, jaccard=True):
r"""Overlap weighted projection of B onto one of its node sets.
The overlap weighted projection is the projection of the bipartite
network B onto the specified nodes with weights representing
the Jaccard index between the neighborhoods of the two nodes in the
original bipartite network [1]_:
.. math::
w_{v, u} = \frac{|N(u) \cap N(v)|}{|N(u) \cup N(v)|}
or if the parameter 'jaccard' is False, the fraction of common
neighbors by minimum of both nodes degree in the original
bipartite graph [1]_:
.. math::
w_{v, u} = \frac{|N(u) \cap N(v)|}{min(|N(u)|, |N(v)|)}
The nodes retain their attributes and are connected in the resulting
graph if have an edge to a common node in the original bipartite graph.
Parameters
----------
B : NetworkX graph
The input graph should be bipartite.
nodes : list or iterable
Nodes to project onto (the "bottom" nodes).
jaccard: Bool (default=True)
Returns
-------
Graph : NetworkX graph
A graph that is the projection onto the given nodes.
Examples
--------
>>> from networkx.algorithms import bipartite
>>> B = nx.path_graph(5)
>>> nodes = [0, 2, 4]
>>> G = bipartite.overlap_weighted_projected_graph(B, nodes)
>>> list(G)
[0, 2, 4]
>>> list(G.edges(data=True))
[(0, 2, {'weight': 0.5}), (2, 4, {'weight': 0.5})]
>>> G = bipartite.overlap_weighted_projected_graph(B, nodes, jaccard=False)
>>> list(G.edges(data=True))
[(0, 2, {'weight': 1.0}), (2, 4, {'weight': 1.0})]
Notes
-----
No attempt is made to verify that the input graph B is bipartite.
The graph and node properties are (shallow) copied to the projected graph.
See :mod:`bipartite documentation <networkx.algorithms.bipartite>`
for further details on how bipartite graphs are handled in NetworkX.
See Also
--------
is_bipartite,
is_bipartite_node_set,
sets,
weighted_projected_graph,
collaboration_weighted_projected_graph,
generic_weighted_projected_graph,
projected_graph
References
----------
.. [1] Borgatti, S.P. and Halgin, D. In press. Analyzing Affiliation
Networks. In Carrington, P. and Scott, J. (eds) The Sage Handbook
of Social Network Analysis. Sage Publications.
"""
if B.is_directed():
pred = B.pred
G = nx.DiGraph()
else:
pred = B.adj
G = nx.Graph()
G.graph.update(B.graph)
G.add_nodes_from((n, B.nodes[n]) for n in nodes)
for u in nodes:
unbrs = set(B[u])
nbrs2 = {n for nbr in unbrs for n in B[nbr]} - {u}
for v in nbrs2:
vnbrs = set(pred[v])
if jaccard:
wt = float(len(unbrs & vnbrs)) / len(unbrs | vnbrs)
else:
wt = float(len(unbrs & vnbrs)) / min(len(unbrs), len(vnbrs))
G.add_edge(u, v, weight=wt)
return G
@not_implemented_for("multigraph")
def generic_weighted_projected_graph(B, nodes, weight_function=None):
r"""Weighted projection of B with a user-specified weight function.
The bipartite network B is projected on to the specified nodes
with weights computed by a user-specified function. This function
must accept as a parameter the neighborhood sets of two nodes and
return an integer or a float.
The nodes retain their attributes and are connected in the resulting graph
if they have an edge to a common node in the original graph.
Parameters
----------
B : NetworkX graph
The input graph should be bipartite.
nodes : list or iterable
Nodes to project onto (the "bottom" nodes).
weight_function : function
This function must accept as parameters the same input graph
that this function, and two nodes; and return an integer or a float.
The default function computes the number of shared neighbors.
Returns
-------
Graph : NetworkX graph
A graph that is the projection onto the given nodes.
Examples
--------
>>> from networkx.algorithms import bipartite
>>> # Define some custom weight functions
>>> def jaccard(G, u, v):
... unbrs = set(G[u])
... vnbrs = set(G[v])
... return float(len(unbrs & vnbrs)) / len(unbrs | vnbrs)
...
>>> def my_weight(G, u, v, weight="weight"):
... w = 0
... for nbr in set(G[u]) & set(G[v]):
... w += G[u][nbr].get(weight, 1) + G[v][nbr].get(weight, 1)
... return w
...
>>> # A complete bipartite graph with 4 nodes and 4 edges
>>> B = nx.complete_bipartite_graph(2, 2)
>>> # Add some arbitrary weight to the edges
>>> for i, (u, v) in enumerate(B.edges()):
... B.edges[u, v]["weight"] = i + 1
...
>>> for edge in B.edges(data=True):
... print(edge)
...
(0, 2, {'weight': 1})
(0, 3, {'weight': 2})
(1, 2, {'weight': 3})
(1, 3, {'weight': 4})
>>> # By default, the weight is the number of shared neighbors
>>> G = bipartite.generic_weighted_projected_graph(B, [0, 1])
>>> print(list(G.edges(data=True)))
[(0, 1, {'weight': 2})]
>>> # To specify a custom weight function use the weight_function parameter
>>> G = bipartite.generic_weighted_projected_graph(
... B, [0, 1], weight_function=jaccard
... )
>>> print(list(G.edges(data=True)))
[(0, 1, {'weight': 1.0})]
>>> G = bipartite.generic_weighted_projected_graph(
... B, [0, 1], weight_function=my_weight
... )
>>> print(list(G.edges(data=True)))
[(0, 1, {'weight': 10})]
Notes
-----
No attempt is made to verify that the input graph B is bipartite.
The graph and node properties are (shallow) copied to the projected graph.
See :mod:`bipartite documentation <networkx.algorithms.bipartite>`
for further details on how bipartite graphs are handled in NetworkX.
See Also
--------
is_bipartite,
is_bipartite_node_set,
sets,
weighted_projected_graph,
collaboration_weighted_projected_graph,
overlap_weighted_projected_graph,
projected_graph
"""
if B.is_directed():
pred = B.pred
G = nx.DiGraph()
else:
pred = B.adj
G = nx.Graph()
if weight_function is None:
def weight_function(G, u, v):
# Notice that we use set(pred[v]) for handling the directed case.
return len(set(G[u]) & set(pred[v]))
G.graph.update(B.graph)
G.add_nodes_from((n, B.nodes[n]) for n in nodes)
for u in nodes:
nbrs2 = {n for nbr in set(B[u]) for n in B[nbr]} - {u}
for v in nbrs2:
weight = weight_function(B, u, v)
G.add_edge(u, v, weight=weight)
return G
def project(B, nodes, create_using=None):
return projected_graph(B, nodes)
| [
"msaineti@icloud.com"
] | msaineti@icloud.com |
06359a46755e79ec9b1f40bdeec2baacb9150793 | c1490a5749a8ae541834cc132561b6a846acdba7 | /python/examples/computational_cost.py | a7793c51364b8f34390f2d64fc2b1237d6a1bfd9 | [] | no_license | allera/One_Dim_Mixture_Models | 446c3c47d8a04862882ef40bd39af94089f93a54 | 6df8b73c8289c7f28e8ec0bd2f58e7a9ca477758 | refs/heads/master | 2021-06-01T22:43:21.329610 | 2020-11-16T18:43:41 | 2020-11-16T18:43:41 | 150,863,801 | 0 | 1 | null | 2018-09-29T13:41:48 | 2018-09-29T12:49:19 | Matlab | UTF-8 | Python | false | false | 3,682 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 13 11:51:35 2020
@author: alblle
"""
#Example script to launch fit 1 dimensional mixture model.
#Add the toolbox to path
import time
import os
import sys
import numpy as np
toolbox_path = "../code"
sys.path.append(os.path.join(os.path.abspath(toolbox_path)))
#Add the toolbox to path
#Generate some data
generate_new_data=1
if generate_new_data==1:
from generate_data_vector2 import generate_data_vector
data_vector=generate_data_vector(3, 50000, [0,3,-3], [1,1,1], [0.9, 0.05, 0.05])
else:
import scipy.io as sio
sio.loadmat('data_vector.mat')
#Generate some data
#Define options for the mixture model fit
Inferences_possibilities=['Method of moments','Maximum Likelihood','Variational Bayes']
Number_of_Components=3
#Each component can be Gauss, Gamma, InvGamma, -Gamma, -InvGamma
init_params=[0,1,5,2,-5,2]
init_pi=np.ones(3);
init_pi=np.divide(init_pi,3)
maxits=300
tol=0.00000001
opts={'Inference':Inference,'Number_of_Components':Number_of_Components,'Components_Model':Components_Model,
'init_params':init_params,'maxits':maxits,'tol':tol,'init_pi':init_pi}
# CALL TO FIT MIXTURE MODEL
from Mixture_Model_1Dim import Mixture_Model_1Dim
Components_Model=['Gauss','Gamma','-Gamma']
for inference in range(3):
Inference =Inferences_possibilities[inference]
t = time.time()
Model = Mixture_Model_1Dim(data_vector, opts)
elapsed = time.time() - t
print(elapsed)
print(Model['its'])
Components_Model=['Gauss','InvGamma','-InvGamma']
for inference in range(3):
Inference =Inferences_possibilities[inference]
t = time.time()
Model = Mixture_Model_1Dim(data_vector, opts)
elapsed = time.time() - t
print(elapsed)
print(Model['its'])
#print Model['Mixing Prop.']
# CALL TO FIT MIXTURE MODEL
plotme=0
if plotme:
# Plot the resulting fit on a histogram of the data
import numpy as np
from alb_MM_functions import invgam
from alb_MM_functions import gam
from scipy.stats import norm
T=10000
my_range=np.linspace(-10,10,T)
PLTS=np.zeros([Number_of_Components,T])
for k in range(Number_of_Components):
if Components_Model[k]=='Gauss':
PLTS[k,:]=np.multiply( Model['Mixing Prop.'][k],norm.pdf(my_range,Model['mu1'][k],np.sqrt(np.divide(1,Model['taus1'][k])) ) )
elif Components_Model[k]=='InvGamma':
PLTS[k,:]=np.multiply( Model['Mixing Prop.'][k],invgam(my_range,Model['shapes'][k],Model['scales'][k]))
PLTS[k,my_range<0]=0
elif Components_Model[k]=='Gamma':
PLTS[k,:]=np.multiply( Model['Mixing Prop.'][k],gam(my_range,Model['shapes'][k],np.divide(1,Model['rates'][k])))
PLTS[k,my_range<0]=0
elif Components_Model[2]=='-InvGamma':
PLTS[k,:]=np.multiply( Model['Mixing Prop.'][k],invgam(-my_range,Model['shapes'][k],Model['scales'][k]))
PLTS[k,my_range>0]=0
elif Components_Model[2]=='-Gamma':
PLTS[k,:]=np.multiply( Model['Mixing Prop.'][k],gam(-my_range,Model['shapes'][k],np.divide(1,Model['rates'][k])))
PLTS[k,my_range>0]=0
import matplotlib.pyplot as plt
plt.hist(data_vector,bins=50,density=True,alpha=1, color='g')
for k in range(Number_of_Components):
plt.plot(my_range, PLTS[k,:], 'k', linewidth=2)
plt.plot(my_range,np.sum(PLTS,0), 'r', linewidth=2)
plt.show()
plt.clf()
plt.plot(Model['Likelihood'])
| [
"llera.a1@gmail.com"
] | llera.a1@gmail.com |
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:jose@example.com" ] }, { "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:aliya@example.com" ] } ] } ] }
For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
logging. It also exempts jose@example.com from DATA_READ logging, and
aliya@example.com 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:jose@example.com" ] }, { "log_type": "DATA_WRITE", } ] } This enables
'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com 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, `alice@example.com` .
* `serviceAccount:{emailid}`: An email address that represents a service
account. For example, `my-other-app@appspot.gserviceaccount.com`. *
`group:{emailid}`: An email address that represents a Google group. For
example, `admins@example.com`. * `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:
user@example.com.
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:mike@example.com", "group:admins@example.com",
"domain:google.com", "serviceAccount:my-other-
app@appspot.gserviceaccount.com" ] }, { "role": "roles/viewer", "members":
["user:sean@example.com"] } ] } **YAML Example** bindings: - members: -
user:mike@example.com - group:admins@example.com - domain:google.com -
serviceAccount:my-other-app@appspot.gserviceaccount.com role: roles/owner -
members: - user:sean@example.com 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)
| [
"l.bidigare.curtis@gmail.com"
] | l.bidigare.curtis@gmail.com |
c4a9b3675da0722f28aae39e7cee2bec07ee8c33 | e9c46b7cfaf7621cf6d496883eb1a5f4aff31f39 | /pages/choices.py | b456a74b4d46524799e011f6de7c25adf626a376 | [] | no_license | dancecentreuk/balletdanceuk | c9d069e41d4ad95c5dbbb2c8970d5aba081c3558 | 75253e5b4a7fc1bafc915c2fb2dee097294b37f7 | refs/heads/main | 2023-04-01T21:29:19.054513 | 2021-04-01T12:17:21 | 2021-04-01T12:17:21 | 341,219,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | day_choices = [
('sunday', 'Sunday'),
('monday', 'Monday'),
('tuesday', 'Tuesday'),
('wednesday', 'Wednesday'),
('thursday', 'Thursday'),
('friday', 'Friday'),
('saturday', 'Saturday'),
]
course_level_choices = [
('complete_beginners', 'Complete Beginners'),
('beginners', 'Beginners'),
('general', 'General'),
('intermediate', 'Intermediate'),
('advanced', 'Advanced'),
('Professional', 'Professional'),
]
location_choices = [
('brighton', 'Brighton'),
('leeds', 'Leeds'),
('liverpool', 'Liverpool'),
('manchester', 'Manchester'),
('nottingham', 'Nottingham'),
('portsmouth', 'Portsmouth'),
('reading', 'Reading'),
]
age_choices = [
('toddlers', 'Toddlers'),
('children', 'Children'),
('teens', 'Teens'),
('adults', 'Adults')
]
account_type_choice = [
('is_dancer', 'Dance Teacher or Dancer'),
('is_employer', 'Everyone Else'),
]
gender_choices = [
('M', 'Male'),
('F', 'Female'),
]
mail_category_choices = [
('talent', 'talent'),
('venue', 'venue'),
('jobs', 'jobs'),
('course', 'course'),
('general', 'general')
] | [
"dcuk@dcuks-MacBook-Pro-2.local"
] | dcuk@dcuks-MacBook-Pro-2.local |
1c3101c740b69674dae5334b10892e27236535b0 | 6b9dcb377e0a6054e21acb04a5088a7c1609c392 | /Demo4/4-9-5filter.py | 8732e92392e54e484f2e3af46831e777aed0f164 | [] | no_license | Link-Secret/Python-Learn | d8c0bc0e7cec6e9b606ed049fca69ab3d1ef54b7 | 1ad5fc135cbfd825dad47885d55cbe93eb3cb757 | refs/heads/master | 2020-03-07T17:01:02.400240 | 2018-06-13T10:03:47 | 2018-06-13T10:03:47 | 127,597,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | #@Time : 2018/4/9 19:13
#@Author: zjl
#@File : 4-9-5filter.py
import MySQLdb
#获取连接
try:
conn = MySQLdb.connect(
host = '127.0.0.1',
user = 'root',
password = 'admin',
db = 'news',
port = 3306,
charset = 'utf8'
)
# 获取数据
cursor = conn.cursor()
cursor.execute("select * from news")
rest = cursor.fetchone()
print(rest)
# 关闭连接
conn.close()
except MySQLdb.Error as e:
print('Error: %s' % e) | [
"zj1078184113@163.com"
] | zj1078184113@163.com |
b1008c588c7b60744b49bb7d13d27106d8254a1c | 07fd5c5bd9318d746f740cb8872a6952e04469c5 | /mp3scrub/netquery/googquery.py | e5ee75db99f93c80805097b9b07d8f6b6b3e8e48 | [
"MIT"
] | permissive | sgoranson/mp3scrub | 5437d8c8114bf2c9156de8fdad29b80136da0cbc | 3439e3af7d4ec5a3e032da38eed6227f14a83c28 | refs/heads/master | 2021-01-17T12:31:39.026947 | 2013-12-22T03:23:53 | 2013-12-22T03:28:40 | 15,369,579 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,388 | py | '''Module to use google to fix spelling in artist names.
This is risky, but it works surprisingly well. You do a query for 'artistname wiki',
and 90% of the time the first hit will be the wikipedia page for that artist with
perfect spelling. Of course you need to validate that it's the page you think it is,
but if it's not, you just move on and let musicbrainz take care of the track instead.
Why not use last.fm? because it just doesn't work that well for spelling mistakes. e.g.
go to last.fm, type in 'ozzy osborne', and observe the poor results.
'''
import urllib2
import simplejson
import types, sys, urllib
import re, unicodedata
from mp3scrub.util import mylog, strtool
def trav(x):
'''debug function for json output'''
if isinstance(x, types.ListType):
ret = ''
for i in x:
ret += (trav(i) + ' ')
return ret
elif isinstance(x, types.DictType):
ret = ''
for k,v in x.items():
ret += ('%s => %s\n\n' % (k, trav(v)))
return ret
else:
return x
def getresp(search_str):
'''do the low level HTTP query'''
results = None
q = urllib.urlencode({'q' : search_str})
url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&' + q
mylog.DBG1(9,'googURL: %s' % url)
try:
request = urllib2.Request(
url, None, {'Referer': 'http://1024.us'})
response = urllib2.urlopen(request)
# Process the JSON string.
results = simplejson.load(response)
response.close()
except urllib2.URLError:
mylog.ERR('google query failed...possible connection down')
return results
def googquery(search_str):
'''do a query for "artist_str wiki", get back json results, and
loop through the results till we find a legit wiki page.
returns '' if not found, corrected artistStr if found
'''
ret_obj = ''
net_error = False
results = getresp(search_str + ' wiki')
if results:
resp = results.get(u'responseData')
if resp:
reslist = resp.get(u'results')
if reslist:
found = False
for res in reslist:
title = res.get(u'titleNoFormatting')
mylog.DBG(title)
found = re.search('wikipedia', title, re.IGNORECASE)
if found:
trim = re.search(r'(.*?)\s+\-\s+W', title)
if trim:
ret_obj = trim.group(1)
ret_obj = re.sub(r'\(.*?\)', '', ret_obj).strip()
break
else:
mylog.ERR('no trim in wikistr %s', search_str)
if not found:
mylog.ERR('no wikistr for \'%s\'' % search_str)
else:
mylog.ERR('no results for \'%s\'' % search_str)
else:
mylog.ERR('no responsedata for \'%s\'' % search_str)
else:
net_error = True
return (net_error, strtool.unescape((ret_obj)))
if __name__ == '__main__':
werd = ''
try:
werd = sys.argv[1]
except IndexError:
print >> sys.stderr, 'usage: %s searchstr' % sys.argv[0]
exit(1)
res = googquery(werd)
print res.encode('utf-8')
| [
"steve@stevegoranson.com"
] | steve@stevegoranson.com |
38f36446c414d92ef4f6c1fd6834fa08bdef9ce0 | 444af3ec948c29a76d1810555ea562f2be8d4db2 | /recognize_faces_image.py | 651de509f50d24a6cc5f65ad11b5efbe792c6515 | [] | no_license | alinasomcutean/Face-recognition | 5fc117de8943970955bc53ff4ff6987dd2cbe3fb | 6e35de01dc93178bc14868309d099e859f83ebce | refs/heads/main | 2023-03-26T02:40:32.712521 | 2021-03-25T20:00:15 | 2021-03-25T20:00:15 | 351,560,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,122 | py | import face_recognition
import pickle
import cv2
import tkinter as tk
from tkinter import filedialog
#Load the known faces
print("[INFO] loading encodings...")
with open("encodings.pickle", 'rb') as pickle_file:
data = pickle.load(pickle_file)
#Hide the root window
root = tk.Tk()
root.withdraw()
#Load the input image
path = filedialog.askopenfilename()
image = cv2.imread(path)
h, w, _ = image.shape
if h > 800 and w > 600:
image = cv2.resize(image, (800, 600), interpolation = cv2.INTER_AREA)
#Detect the bounding box for each face in the image and compute facial embeddings for each one
print("[INFO] recognizing faces...")
boxes = face_recognition.face_locations(image, model="cnn")
encodings = face_recognition.face_encodings(image, boxes)
#Initialize the list of names for each face detected
names = []
#Loop over the facial embeddings
for encoding in encodings:
#Attempt to match each face in the input image to our known encodings
matches = face_recognition.compare_faces(data["encodings"], encoding)
name = "Unknown"
#Check to see if we have found a match
if True in matches:
#Find the indexes of all matched faces
#Then count the total no of times each face was matched
matchedIndex = [i for (i,b) in enumerate(matches) if b]
counts = {}
#Loop over the matched indexes and count each recognized face
for i in matchedIndex:
name = data["names"][i]
counts[name] = counts.get(name, 0) + 1
#Find the face recognized max
name = max(counts, key=counts.get)
#Update the list of names
names.append(name)
#Loop over the recognized faces
for ((top, right, bottom, left), name) in zip(boxes, names):
#Draw the predicted face name on the image
cv2.rectangle(image, (left, top), (right, bottom), (0, 255, 0), 2)
if top - 15 > 15 : y = top - 15
else: y = top + 15
cv2.putText(image, name, (left, y), cv2.FONT_HERSHEY_SIMPLEX, 0.75, (0, 255, 0), 2)
#Show the image
cv2.imshow("Image", image)
cv2.waitKey(0) | [
"noreply@github.com"
] | noreply@github.com |
01b19ec146d5cbebdd184e6ccca4d544340f07fc | 1c19a34c8032b61ca1c5264ca4528e76a5c7c3ce | /UI_part/JIRA_E-Streamer/JIRA_Handle.py | 45aab0df5281f86b629a37557dd87f9084f24ae5 | [] | no_license | hyun-kyungjoon/python_tool | e1bcbb24d311a7b22d34cb2b1fc38d8d58f01a92 | 9d402da410c539e9a0b66cafa0be63499c758c9e | refs/heads/master | 2021-01-20T01:35:19.804465 | 2017-04-06T11:57:01 | 2017-04-06T11:57:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,768 | py | from jira.client import JIRA
import jira.config
from Dev_Master import Dev_Meta
import xml.etree.ElementTree as ET
from xml.etree.ElementTree import Element, SubElement, dump, ElementTree
event = 'dev' ## dev / release
dev_local_path = 'd://project//python//JIRA_Estreamer//'
def GetPath():
global event, dev_local_path
if event == 'dev':
return dev_local_path
else:
return ''
#jira_usr = jira.config.get_jira('hlm')
# HLM Dev. Tracker
hlm_dev_url = "http://hlm.lge.com/issue"
# HLM Q Tracker
hlm_q_url = "http://hlm.lge.com/qi"
# Project Id
# project_id = 'SSP'
project_id = 'ESTREAMER'
# jira issue query
jql_default = 'project='+project_id+' and '
jql_model_issue = jql_default+'filter in (L17_ESTREAMER_D_VA_실물검증)'
jql_test_issue = jql_default+'filter in (L17_ESTREAMER_D_VA_실물확인)'
jql_spec_issue = jql_default+'filter in (L17_ESTREAMER_D_VA_SPEC확인)'
#jql_model_issue = jql_default+'filter in (L17_ESTREAMER_D_VA_실물검증_TEST)'
#jql_test_issue = jql_default+'filter in (L17_ESTREAMER_D_VA_실물확인_TEST)'
#jql_spec_issue = jql_default+'filter in (L17_ESTREAMER_D_VA_SPEC확인_TEST)'
# E-Streamer S/W 담당자 : JIRA reporter & default assignee
estreamer_sw = 'gayoung.lee'
#estreamer_sw = 'ybin.cho'
# Jira Login을 위한 session file name
session_file_name = 'jira_session.xml'
# Jira 에서 issue 조회 시 maxResult개수를 지정해야 한다
# @ jira_tracker.search_issues [default:50]
maxResult = 200
# Fileter : 실물검증TEST -> 실물검증
# project_id = 'SSP' -> 'ESTREAMER'
# filter name : L17_ESTREAMER_D_VA_XXXX_TEST -> L17_ESTREAMER_D_VA_XXXX
class JIRA_Handler:
main_issue_watchers = ['ybin.cho'] #, 'gayoung.lee']
def __init__(self, tracker):
# jira server url
global hlm_dev_url, hlm_q_url
global project_id
global jql_model_issue, jql_test_issue, jql_spec_issue
global estreamer_sw
global session_file_name
global GetPath
global maxResult
self.maxResultJira = maxResult
self.jira_id=''
self.pwd=''
#exception : default DEV tracker
if tracker.lower()=="q":
self.url = hlm_q_url
elif tracker.lower()=="dev":
self.url = hlm_dev_url
else: #default dev tracker
self.url = hlm_dev_url
self.issue_template = {'project':{"key":project_id}
,"assignee":{"name":estreamer_sw}
,'summary': '[Estreamer검증]'
,'description':'Test 중'
,'issuetype':{'name':'Request'}}
self.jira=None
self.jira_project_id = project_id
self.jql_model = jql_model_issue
self.jql_test = jql_test_issue
self.jql_spec = jql_spec_issue
self.session_file = GetPath()+session_file_name
print("JIRA handler init.")
def saveSession(self):
## check login success
if self.jira is None:
return
session = Element('Session')
server = Element('jira_url')
server.text = self.url
session.append(server)
account_id = Element('id')
account_id.text = self.jira_id
session.append(account_id)
account_pwd = Element('passwd')
account_pwd.text = self.pwd
session.append(account_pwd)
## create or save session file
ElementTree(session).write(self.session_file)
def clearSession(self):
try:
tree = ET.parse(self.session_file)
except FileNotFoundError:
# need to do nothing
return
session = Element('Session')
## create or save session file
## write empty session tag to xml
ElementTree(session).write(self.session_file)
# local session file을 이용한 Login
# Main의 slotLogin 과 동일한 동작 수행
def sessionLogin(self, main_ui):
try:
tree = ET.parse(self.session_file)
except FileNotFoundError:
print(session_file)
main_ui.setNeedLoginState(True)
return
root = tree.getroot()
url = ''
jira_id = ''
pwd = ''
try:
url = root.find('jira_url').text
jira_id = root.find('id').text
pwd = root.find('passwd').text
self.jira = JIRA(server=url, basic_auth=(jira_id, pwd))
except:
print("login failed")
main_ui.setNeedLoginState(True)
return
else:
## login success
self.url = url
main_ui.jira_tracker = self.jira
users = self.jira.search_users(jira_id)
if len(users)==1: ## found user
main_ui.login_user = users[0]
main_ui.lblUserName.setText(users[0].displayName)
self.jira_id = jira_id
self.pwd = pwd
main_ui.setNeedLoginState(False)
else:
# 가능한 상황은 아니라고 생각되지만 예외처리는 코딩해두도록 한다
main_ui.lblUserName.setText('')
main_ui.login_user = None
main_ui.setNeedLoginState(True)
return
return
# text widget의 id와 passwd를 이용한 login
def login(self, jira_id, pwd, isSaveAccount):
self.jira_id = jira_id
self.pwd = pwd
try:
self.jira = JIRA(server=self.url, basic_auth=(jira_id, pwd))
except:
return "failed"
else:
## save session of login info to local file
if isSaveAccount:
self.saveSession()
users = self.jira.search_users(jira_id)
if len(users)==1: ## found user
return users[0]
return None
def concateModelNameForSummary(self, model_data):
return (self.issue_template['summary']
+"["+model_data[Dev_Meta.idxRegion]+"] "
+ model_data[Dev_Meta.idxModelName])
def getFieldsForModelIssue(self, dev_version, model_data):
tracker = self.jira
new_issue = self.issue_template.copy()
new_issue['summary'] = self.concateModelNameForSummary(model_data)
#new_issue['labels'].append(dev_version)
new_issue['labels']=["실물검증"]
new_issue['description']= '''
개발 Master Ver. : {ver}\n
엑셀 행 번호: {row}\n
Model Name : {model}\n
DV 시작 : {dv_start}\n
DV 종료 : {dv_end}\n
담당자 ===========\n
SW : 이가영Y\n
HW PL : {hwpl}\n
기획 : {plan}
'''.format(ver=dev_version, row=model_data[len(model_data)-1], model=model_data[Dev_Meta.idxModelName], \
hwpl= model_data[Dev_Meta.idxHwPL], plan=model_data[Dev_Meta.idxHwPL+1], \
dv_start=model_data[Dev_Meta.idxDvStart], dv_end=model_data[Dev_Meta.idxDvEnd])
return new_issue
def getFieldsForSpecCheckIssue(self, model_data, parent_issue):
if parent_issue is None:
# model issue (parent issue)가 생성 실패되었음
return None
tracker = self.jira
new_issue = self.issue_template.copy()
new_issue['summary'] = self.concateModelNameForSummary(model_data)+ ' Spec. 확인 요청'
model_name = model_data[Dev_Meta.idxModelName]
new_issue['labels']=["실물검증"]
new_issue['description']= '''
모델 : {color:red}'''+model_name+'{color}\n'
new_issue['description']+= '''
상기 모델에 대해 E-Streamer 적용되어야 할 Spec. 모델명 확인 요청 드립니다.\n
Spec. 모델명이란 E-Streamer Spec. Sheet 상에 지역 탭에 정의된 'Model Name' 항목을 의미합니다.\n
모델에 대한 정보는 본 이슈의 상위 이슈를 참조하세요.\n
E-Streamer Spec. Sheet 기준 적용 모델명을 comment에 기입 후 Resolve 부탁 드립니다.'''
new_issue['issuetype'] = {'name' : 'Sub-task'}
new_issue['parent'] = {'id' : parent_issue.key}
return new_issue
def getFieldsForTestIssue(self, model_data, parent_issue):
if parent_issue is None:
# model issue (parent issue)가 생성 실패되었음
return None
tracker = self.jira
new_issue = self.issue_template.copy()
new_issue['summary'] = self.concateModelNameForSummary(model_data)+ ' 실물 확인'
model_name = model_data[Dev_Meta.idxModelName]
new_issue['description']= '''
모델 : {color:red}'''+model_name+'{color}\n'
new_issue['description']+= '''
유첨 E-Streamer 적용 결과 이미지 참조하시어 실물 점검 부탁 드립니다.\n
모델 정보는 상위 이슈 참조하세요.\n
Comment 확인하시어 지역(Area) 내 전 국가 실물 확인 후 Resolve 부탁 드립니다.\n
PPM 포맷 이미지 뷰어는 알씨 등이 지원하고 있으며 아래 사이트에서도 쉽게 다운로드 가능합니다.\n
: http://free-ppm-viewer.en.informer.com/\n
: 캡쳐 파일 바로 열기에 문제가 있을 경우 이미지 파일을 로컬에 저장 후 열어주세요.\n'''
new_issue['issuetype'] = {'name' : 'Sub-task'}
new_issue['parent'] = {'id' : parent_issue.key}
return new_issue
def inquiryModelIssue(self, model_name):
tracker = self.jira
result_list = tracker.search_issues(self.jql_model+' AND summary~"'+model_name+'"')
if len(result_list)!=1:
print("search failed !. number of result length : "+len(result_list))
return None
return result_list[0]
def inquiryTestIssue(self, model_name):
tracker = self.jira
result_list = tracker.search_issues(self.jql_test+' AND summary~"'+model_name+'"')
if len(result_list)!=1:
print("search failed !. number of result length : "+len(result_list))
return None
return result_list[0]
def inquirySpecConfirmIssue(self, model_name):
tracker = self.jira
result_list = tracker.search_issues(self.jql_spec+' AND summary~"'+model_name+'"')
if len(result_list)!=1:
print("search failed !. number of result length : "+len(result_list))
return None
return result_list[0]
def resolveIssueForDroppedModel(self, ver, issue_key):
tracker = self.jira
try:
issue = tracker.issue(issue_key)
status_name = issue.fields.status.name
except:
return
comment_body = '개발 Master '+ver+' 에서 본 모델 Drop되어 Resolve 합니다.'
if status_name != 'Resolved' and status_name != 'Closed':
tracker.transition_issue(issue, 'Resolve Issue', comment=comment_body)
def createModelIssueAndSubTasks(self, dev_version, model):
try:
## 1) create model issue
print('start get fields of model issue')
model_fields = self.getFieldsForModelIssue(dev_version, model)
print('complete get fields of model issue')
model_issue = self.jira.create_issue(fields=model_fields)
print('complete create model issue')
## 2) create spec.확인 issue
spec_fields = self.getFieldsForSpecCheckIssue(model, model_issue)
self.jira.create_issue(fields=spec_fields)
## 3) create 실물확인 issue
test_fields = self.getFieldsForTestIssue(model, model_issue)
self.jira.create_issue(fields=test_fields)
except:
print("failed to create model issues : "+model[Dev_Meta.idxModelName])
if model_issue is not None:
model_issue.delete()
return False
else:
return True
# issue = jira_usr.issue("ESTREAMER-127")
# project = jira_usr.project("ESTREAMER")
#
#
# rawdata = issue.raw
#
#
#
# print(rawdata)
# import re
# from jira import JIRA
#
# options = {'server': 'http://hlm.lge.com/qi/'}
# jira = JIRA(options)
#
# projects = jira.projects();
#
# print("projects type : "+type(projects))
#
# issue = jira.issue('ESTREAMER-127')
# print("issue type : "+type(issue))
| [
"ybin.cho@lge.com"
] | ybin.cho@lge.com |
bde9614f239a47ba1a067267cc1afeecb5cb536b | 23242d04c73078e4c95b0e9f10055a4fddd7dcc7 | /space_invaders_V2.py | 7f7940d9e1d722fd2f43912942b75a71b71d763b | [] | no_license | BogdanAlinTudorache/Space-Invaders | f8780b187b56d629687a45edd5f8c52da50c1c8c | 50617e95d5e2acb445edb5da09d9ff32b012ba41 | refs/heads/master | 2021-01-16T12:01:25.628108 | 2020-03-05T13:08:53 | 2020-03-05T13:08:53 | 243,112,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,178 | py | import turtle
import os
import math
import random
# Set up the screen
wn = turtle.Screen()
wn.bgcolor("black")
wn.title("Space Invaders")
wn.bgpic("space_invaders_background.gif")
# Register the shapes
turtle.register_shape("invader.gif")
turtle.register_shape("player.gif")
# Draw border
border_pen = turtle.Turtle()
border_pen.speed(0)
border_pen.color("white")
border_pen.penup()
border_pen.setposition(-300, -300)
border_pen.pendown()
border_pen.pensize(3)
for side in range(4):
border_pen.fd(600)
border_pen.lt(90)
border_pen.hideturtle()
# Set the score to 0
score = 0
# Draw Score
score_pen = turtle.Turtle()
score_pen.speed(0)
score_pen.color("white")
score_pen.penup()
score_pen.setposition(-290, 280)
scorestring = "Score: %s" %score
score_pen.write(scorestring, False, align="left", font=("Arial", 14, "normal"))
score_pen.hideturtle()
# Create the Player turtle
player = turtle.Turtle()
player.penup()
player.color("blue")
player.shape("player.gif")
player.speed(0)
player.setposition(0, -250)
player.setheading(90)
playerspeed = 15
# Choose the number of enemies
number_of_enemies = 7
# Create an empty list of enemies
enemies = []
# Add enemies to the list
for i in range(number_of_enemies):
enemies.append(turtle.Turtle())
# Draw the enemies
for enemy in enemies:
enemy.color("red")
enemy.shape("invader.gif")
enemy.penup()
enemy.speed(0)
x = random.randint(-200, 200)
y = random.randint(100, 250)
enemy.setposition(x, y)
enemyspeed = 4
# Create the player's bullet
bullet = turtle.Turtle()
bullet.penup()
bullet.color("yellow")
bullet.shape("triangle")
bullet.speed(0)
bullet.setheading(90)
bullet.shapesize(0.5, 0.5)
bullet.hideturtle()
bulletspeed = 20
# Define bullet state
# ready - ready to fire
# fire - bullet is firing
bulletstate = "ready"
bulletcount = 0
# Move the player left and right
def move_left():
x = player.xcor()
x -= playerspeed
if x < -280:
x = - 280
player.setx(x)
def move_right():
x = player.xcor()
x += playerspeed
if x > 280:
x = 280
player.setx(x)
def fire_bullet():
# Declare bulletstate as a global if it needs changed
global bulletstate, bulletcount
bulletcount += 1
if bulletstate == "ready" or bulletcount > 1 :
bulletstate = "fire"
# Move the bullet to the just above the player
x = player.xcor()
y = player.ycor() + 10
bullet.setposition(x, y)
bullet.showturtle()
def finish():
# Draw END
the_end = turtle.Turtle()
the_end.speed(0)
the_end.color("white")
the_end.penup()
the_end.setposition(-250, 0)
scorestring = "GAME OVER"
the_end.write(scorestring, False, align="left", font=("Tahoma", 70, "normal"))
the_end.hideturtle()
def isCollision(t1, t2):
distance = math.sqrt(math.pow(t1.xcor() - t2.xcor(), 2) + math.pow(t1.ycor() - t2.ycor(), 2))
if distance < 20:
return True
else:
return False
# Create keyboard bindings
turtle.listen()
turtle.onkey(move_left, "Left")
turtle.onkey(move_right, "Right")
turtle.onkey(fire_bullet, "space")
# Main game loop
while True:
for enemy in enemies:
# Move the enemy
x = enemy.xcor()
x += enemyspeed
enemy.setx(x)
#If enemy reaches the bottom line, player loses
if enemy.ycor() < -260:
player.hideturtle()
enemy.hideturtle()
bullet.hideturtle()
finish()
break
# Move the enemy until it touches the wall then down
if enemy.xcor() > 280:
# Moves all enemies down
for e in enemies:
y = e.ycor()
y -= 40
e.sety(y)
# Changes direction
enemyspeed *= -1
if enemy.xcor() < -280:
#Moves all enemies down
for e in enemies:
y = e.ycor()
y -= 40
e.sety(y)
# changes direction
enemyspeed *= -1
# Check for a collision between the bullet and the enemy
if isCollision(bullet, enemy):
# Reset the bullet
bullet.hideturtle()
bulletstate = "ready"
bullet.setposition(0, -400)
# Reset the enemy
x = random.randint(-200, 200)
y = random.randint(100, 250)
enemy.setposition(x, y)
# Update the score
score += 10
scorestring = "Score: %s" %score
score_pen.clear()
score_pen.write(scorestring, False, align="left", font=("Arial", 14, "normal"))
if isCollision(player, enemy):
player.hideturtle()
enemy.hideturtle()
bullet.hideturtle()
finish()
break
# Move the bullet
if bulletstate == "fire" and bulletcount > 1:
y = bullet.ycor()
y += bulletspeed
bullet.sety(y)
# Check to see if the bullet has gone to the top and if there is only one bullet
if ( bullet.ycor() > 275 ):
bullet.hideturtle()
bulletstate = "ready"
bulletcount = 0
wn.mainloop()
| [
"noreply@github.com"
] | noreply@github.com |
ba17588ca0116a8d16f4f1bf0ed182cd3cb96544 | 0675200b43186d0e8d98e4eb9c510c23fd05dc8a | /app/routes.py | 60bac18a45ea771bbcd872ab8d53116141b6b15b | [] | no_license | JBrandt72/microblog | aee395d50d5b100328b13bdd51bca36a3f92de19 | 0261cf723fbf8079ce0ba2d04f65c75a5896f348 | refs/heads/master | 2020-03-30T16:55:15.170741 | 2018-10-12T16:24:04 | 2018-10-12T16:24:04 | 151,432,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | from flask import render_template, flash, redirect, url_for
from app import app
from app.forms import LoginForm
@app.route('/')
@app.route('/index')
def index():
user = {'username': 'Jon'}
posts = [
{
'author': {'username': 'Jim'},
'body': 'Beautiful day in Providence!'
},
{
'author': {'username': 'Susan'},
'body': 'The Avengers movie was super cool!'
}
]
return render_template('index.html', title='Home', user=user, posts=posts)
@app.route('/login', methods=['GET', 'POST'])
def login():
form = LoginForm()
if form.validate_on_submit():
flash('Login requested for user {}, remember_me={}'.format(
form.username.data, form.remember_me.data))
return redirect(url_for('index'))
return render_template('login.html', title='Sign In', form=form) | [
"jbrandt@email.neit.edu"
] | jbrandt@email.neit.edu |
df64cb7361564855cae451d0263c6295b72ca23b | 8041be6ff906459b4703e2c195f00c450143c669 | /estrutura_de_repeticao_exercicio45.py | fbdd0cc596a485f61c6ec535fa0f25a275e7212d | [] | no_license | Braitiner/Exercicios-wiki.python | 7718826bed5477601b6a478878a2dfc17c940576 | 0af856ace1ccf5a85b67796e0b04ec70525255e6 | refs/heads/master | 2022-12-15T00:47:14.492879 | 2020-09-22T00:18:29 | 2020-09-22T00:18:29 | 279,133,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,978 | py | # Desenvolver um programa para verificar a nota do aluno em uma prova com 10 questões, o programa deve perguntar ao
# aluno a resposta de cada questão e ao final comparar com o gabarito da prova e assim calcular o total de acertos e a
# nota (atribuir 1 ponto por resposta certa). Após cada aluno utilizar o sistema deve ser feita uma pergunta se outro
# aluno vai utilizar o sistema. Após todos os alunos terem respondido informar:
# a. Maior e Menor Acerto;
# b. Total de Alunos que utilizaram o sistema;
# c. A Média das Notas da Turma
print('Informe o gabarito da prova:')
p1 = str(input('01: ')).strip().upper()[0]
p2 = str(input('02: ')).strip().upper()[0]
p3 = str(input('03: ')).strip().upper()[0]
p4 = str(input('04: ')).strip().upper()[0]
p5 = str(input('05: ')).strip().upper()[0]
p6 = str(input('06: ')).strip().upper()[0]
p7 = str(input('07: ')).strip().upper()[0]
p8 = str(input('08: ')).strip().upper()[0]
p9 = str(input('09: ')).strip().upper()[0]
p10 = str(input('10: ')).strip().upper()[0]
cont = soma = maior = 0
menor = 11
while True:
r1 = r2 = r3 = r4 = r5 = r6 = r7 = r8 = r9 = r10 = ''
for c in range(1, 11):
print(f'Questão {c}')
alternativa = str(input('Alternativa:\n[A]\n[B]\n[C]\n[D]\n[E]\n>> ')).strip().upper()[0]
while alternativa not in 'ABCDE':
print('AVISO - alternativa invalida.')
alternativa = str(input('Alternativa:\n[A]\n[B]\n[C]\n[D]\n[E]\n>> ')).strip().upper()[0]
if c == 1:
r1 = alternativa
if c == 2:
r2 = alternativa
if c == 3:
r3 = alternativa
if c == 4:
r4 = alternativa
if c == 5:
r5 = alternativa
if c == 6:
r6 = alternativa
if c == 7:
r7 = alternativa
if c == 8:
r8 = alternativa
if c == 9:
r9 = alternativa
if c == 10:
r10 = alternativa
acertos = 0
if r1 == p1:
acertos += 1
if r2 == p2:
acertos += 1
if r3 == p3:
acertos += 1
if r4 == p4:
acertos += 1
if r5 == p5:
acertos += 1
if r6 == p6:
acertos += 1
if r7 == p7:
acertos += 1
if r8 == p8:
acertos += 1
if r9 == p9:
acertos += 1
if r10 == p10:
acertos += 1
print(acertos)
cont += 1
soma += acertos
sair = str(input('Deseja realizar um novo lançamento: [S/N]')).strip().upper()[0]
while sair not in 'SN':
print('AVISO - Escolha S para sim e N para não.')
sair = str(input('Deseja realizar um novo lançamento: [S/N]')).strip().upper()[0]
if sair == 'N':
break
if maior < acertos:
maior = acertos
if menor > acertos:
menor = acertos
print(f'Total de avaliações {cont}\nMaior nota {maior}\nMenor nota {menor}\nNota média {soma/cont:.2f}')
| [
"noreply@github.com"
] | noreply@github.com |
edfb4f54710c83ec623aba5916e44070aaf95dec | 5db5f9fafe47d2b6448c51a47d49ec0e18a7fe50 | /app.py | c849d8a402ac3b575ac3ade7107361421481e90f | [] | no_license | pepetikesavasiddhardha/leafdiseaseclassification1 | 91508df127d5dd8b7306db002ef453312c997d3f | a545c0fe36fbbd1d30d22b378050dc336f9c49b9 | refs/heads/main | 2023-04-21T02:15:12.847775 | 2021-05-01T08:58:51 | 2021-05-01T08:58:51 | 363,364,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py |
import streamlit as st
import io
import numpy as np
from PIL import Image
import tensorflow as tf
import efficientnet.tf.keras as efn
st.title('plant leaf disease classification')
st.write('based on image uploaded we will tell it is healthy or not')
gpus=tf.config.experimental.list_physical_devices("GPU")
if gpus:
tf.config.experimental.set_memory_growth(gpus[0],True)
#some times cant load cnn type of errors may arise that can be solved by above 2 lines of code
model=tf.keras.models.load_model(r"C:\Users\PVSKSIDDHARDHA\model.h5")
#uploading file
upload_file=st.file_uploader('choose file from device',type=['png','jpg'])
predictions_map={0:'healthy_one',1:'multiple diseases',2:'has rust',3:'has scab'}
if upload_file is not None:
image=Image.open(io.BytesIO(upload_file.read()))
#this prints image which we uploaded
st.image(image,use_column_width=True)
resized_image=np.array(image.resize((512,512)))/255.0
#adding batch_dimension
images_batch=resized_image[np.newaxis,:,:,:]
predictions_array=model.predict(images_batch)
predictions=np.argmax(predictions_array)
results=f"The plant has {predictions_map[predictions]} with probability of {int(predictions_array[0][predictions]*100)}%"
if predictions==0:
st.success(results)
else:
st.error(results)
#this makes image size in allignment with above lines and image wont be that big
#above process convert image into io bytes for reading and preprocessing etc it will be useful
#but have to convert to numpy array for ml operations
| [
"noreply@github.com"
] | noreply@github.com |
eedea1cecfb829ca82ec3dea0000b3273d0dd90c | d15b5986ec50381d6f587d83e43d94be5776fff2 | /domain_checks/bs_mapping_check.py | 4109ad6a7378eeb3f01141747358b811c6e6f9b9 | [] | no_license | JenkeScheen/hydra_quintup_analyses | db61b3f504dfb28c55ebdbfda3d29d8c163c12ed | 560b68b5cf5893f98325aa3a2dab4ccf93daf101 | refs/heads/main | 2023-04-02T20:45:11.370122 | 2021-03-26T13:07:03 | 2021-03-26T13:07:03 | 348,379,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,395 | py | #!/bin/python
import glob
import csv
import re
import pandas as pd
import itertools
import numpy as np
from tqdm.notebook import tqdm
import csv
import matplotlib.pyplot as plt
import seaborn as sns
plot_kwds = {'alpha' : 0.5, 's' : 80, 'linewidths':0}
from collections import defaultdict
from rdkit import Chem, RDLogger
RDLogger.DisableLog('rdApp.warning')
from rdkit.Chem import Draw, rdFMCS
from rdkit.Chem import rdRGroupDecomposition, AllChem, rdmolops
from rdkit.Chem import rdqueries
from rdkit.Chem import rdDepictor, rdmolfiles
from rdkit.Chem.Draw import rdMolDraw2D
from rdkit import Geometry
rdDepictor.SetPreferCoordGen(True)
from rdkit.Chem.Draw import IPythonConsole
quints_infos = pd.read_csv("output/quints_infos.csv", names=["set", "pertname", "pertsmarts", "num_ha", "sem"])
quints_infos.sort_values(by="sem")
def mol_with_atom_index(mol):
for atom in mol.GetAtoms():
atom.SetAtomMapNum(atom.GetIdx())
return mol
def plotInfo(ligname1, ligname2):
"""Plots pert mols with atom indices and atom mappings with and without sanitisation."""
mol1 = BSS.IO.readPDB("./quintup_ligands/ligand_files/{}.pdb".format(ligname1))[0]
mol2 = BSS.IO.readPDB("./quintup_ligands/ligand_files/{}.pdb".format(ligname2))[0]
mol1_r = Chem.SDMolSupplier("./quintup_ligands/sdffiles/{}.sdf".format(ligname1))[0]
mol2_r = Chem.SDMolSupplier("./quintup_ligands/sdffiles/{}.sdf".format(ligname2))[0]
mol1_r = rdmolops.AddHs(mol1_r)
mol2_r = rdmolops.AddHs(mol2_r)
AllChem.Compute2DCoords(mol1_r)
AllChem.Compute2DCoords(mol2_r)
mapping = BSS.Align.matchAtoms(mol1, mol2)
mapping_s = BSS.Align.matchAtoms(mol1, mol2, sanitize=True)
if mapping != mapping_s:
return True
else:
return False
#plot_perts(quints_infos.sort_values(by="sem", ascending=False).head(200))
handled = []
with open("to_do_sims/mapping_mismatches", "r") as writefile:
writer = csv.writer(writefile)
for pert in tqdm(quints_infos["pertname"].values):
if not pert in handled:
mismatch = plotInfo(pert.split("~")[0], pert.split("~")[1])
if mismatch:
# write pert to file.
writer.writerow(pert)
# make sure we don't do the same pert again (or the inverse of it).
handled.append(pert)
handled.append(pert.split("~")[1]+"~"+pert.split("~")[0]) | [
"jscheen@MacBook-Pro-e8cc"
] | jscheen@MacBook-Pro-e8cc |
056be8efb36068c83860f67d71de013dbd5b6822 | b14a6b2b78e2441dd872c42018b4fec25d10189e | /restapi/tests/test_urls.py | 7e9ff1fec1f221365855a8574a84fdf441c2da95 | [] | no_license | Maxim-Shirokov/pets-api | 59d163e82f7fea354edd3c72efed10a34ab6362e | a41931551e282c0273631488923246f317f624d2 | refs/heads/main | 2023-06-03T06:31:54.620225 | 2021-06-20T15:48:35 | 2021-06-20T15:48:35 | 375,979,424 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,904 | py | from django.test import TestCase, Client, override_settings
from rest_framework import status
@override_settings(API_KEY='1')
class HeaderTest(TestCase):
client = Client()
def test_get_with_bad_header(self):
response = self.client.get('/pets', HTTP_X_API_KEY='2')
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
def test_post_with_bad_header(self):
response = self.client.post('/pets', HTTP_X_API_KEY='2')
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
def test_delete_with_bad_header(self):
response = self.client.delete('/pets', HTTP_X_API_KEY='2')
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
def test_post_photo_with_bad_header(self):
response = self.client.post('/pets/1/photo', HTTP_X_API_KEY='2')
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
def test_get_with_good_header(self):
response = self.client.get('/pets', HTTP_X_API_KEY='1')
self.assertEqual(response.status_code, status.HTTP_200_OK)
def test_post_with_good_header(self):
"""Должен возвращать 400, т.к не были переданы обязательные параметры: name, type"""
response = self.client.post('/pets', HTTP_X_API_KEY='1')
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
def test_delete_with_good_header(self):
response = self.client.delete('/pets', HTTP_X_API_KEY='1')
self.assertEqual(response.status_code, status.HTTP_200_OK)
def test_post_photo_with_good_header(self):
"""Должен возвращать 400, т.к id=1 некорретный uuid"""
response = self.client.post('/pets/1/photo', HTTP_X_API_KEY='1')
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
| [
"maxim.shirokov547@gmail.com"
] | maxim.shirokov547@gmail.com |
96195a397e80348016e9ddf846478112f9dadba0 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2018_02_01/models/connectivity_parameters_py3.py | 2f6d375168c517e8f45f0201c2a3c695caf2c4b8 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 2,034 | 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 msrest.serialization import Model
class ConnectivityParameters(Model):
"""Parameters that determine how the connectivity check will be performed.
All required parameters must be populated in order to send to Azure.
:param source: Required.
:type source: ~azure.mgmt.network.v2018_02_01.models.ConnectivitySource
:param destination: Required.
:type destination:
~azure.mgmt.network.v2018_02_01.models.ConnectivityDestination
:param protocol: Network protocol. Possible values include: 'Tcp', 'Http',
'Https', 'Icmp'
:type protocol: str or ~azure.mgmt.network.v2018_02_01.models.Protocol
:param protocol_configuration:
:type protocol_configuration:
~azure.mgmt.network.v2018_02_01.models.ProtocolConfiguration
"""
_validation = {
'source': {'required': True},
'destination': {'required': True},
}
_attribute_map = {
'source': {'key': 'source', 'type': 'ConnectivitySource'},
'destination': {'key': 'destination', 'type': 'ConnectivityDestination'},
'protocol': {'key': 'protocol', 'type': 'str'},
'protocol_configuration': {'key': 'protocolConfiguration', 'type': 'ProtocolConfiguration'},
}
def __init__(self, *, source, destination, protocol=None, protocol_configuration=None, **kwargs) -> None:
super(ConnectivityParameters, self).__init__(**kwargs)
self.source = source
self.destination = destination
self.protocol = protocol
self.protocol_configuration = protocol_configuration
| [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
d57c34be95b4a4e63226be4b67e05cb99573eb54 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03326/s618374476.py | ab457fda2c9fc24c21e8f4fbf5a51f82f641ff89 | [] | 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 | 1,134 | py | import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from heapq import heapify, heappop, heappush
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def S_MAP(): return map(str, input().split())
def LIST(): return list(map(int, input().split()))
def S_LIST(): return list(map(str, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7
N, M = MAP()
L = [LIST() for i in range(N)]
# L = [-1, 1] #生成する数字
num = 3 #生成するビット数
bit_list = list(product([-1, 1], repeat=num))
# print(bit_list)
ans = 0
for a, b, c in bit_list:
tmp = [a * x + b * y + c * z for x, y, z in L]
tmp.sort(reverse=True)
selected = sum(tmp[0:M])
if ans < selected:
ans = selected
# ans.append(sum(tmp[0:M]))
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a0df33525ec555366deabc675e47f9436e3b0b04 | f1e3fcea27e12a8cb46fae8a5d50170760aa522d | /pyqt/QFileDialog.py | 8b2729aefebbba4bf6dedd5958b8a3e619e0f4a4 | [] | no_license | ithuanhuan/Demo | 972973293fd0444819cd6cd096628ab7d04731d1 | 131ef91732e23d6bbeaa63191b348867ab2a817f | refs/heads/master | 2020-03-10T07:05:21.703768 | 2018-10-15T10:23:34 | 2018-10-15T10:23:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,804 | py | import sys
from PyQt5.QtWidgets import (QMainWindow, QTextEdit,
QAction, QFileDialog, QApplication)
from PyQt5.QtGui import QIcon
class Example(QMainWindow):
def __init__(self):
super().__init__()
self.my_UI()
def my_UI(self):
self.textEdit = QTextEdit() # 增加文本编辑器
self.setCentralWidget(self.textEdit) # 设置为中心布局
self.statusBar() # 增加状态栏
openFile = QAction(QIcon('open.png'), '打开', self) # 增加打开文件动作
openFile.setShortcut('Ctrl+O') # 连接快捷键
openFile.setStatusTip('打开新文件') # 显示状态栏提示
openFile.triggered.connect(self.showDialog) # 触发则连接showDialog方法
menubar = self.menuBar() # 增加菜单栏
fileMenu = menubar.addMenu('&文件') # 增加菜单
fileMenu.addAction(openFile) # 菜单里增加动作
self.setGeometry(300, 300, 350, 300)
self.setWindowTitle('文件对话框')
self.show()
def showDialog(self):
fname = QFileDialog.getOpenFileName(self, 'Open file', '/Users/huan/code/PycharmProjects/PedestrianDetection')
# 弹出文件选择框
# 第一个字符串参数是getOpenFileName()方法的标题。第二个字符串参数
# 指定了对话框的工作目录。默认的,文件过滤器设置成All files (*)。
if fname[0]:
f = open(fname[0], 'r')
with f:
data = f.read()
self.textEdit.setText(data)
# 选中文件后,读出文件的内容,并设置成文本编辑框组件的显示文本
if __name__ == '__main__':
app = QApplication(sys.argv)
ex = Example()
sys.exit(app.exec_())
| [
"huan@huan.local"
] | huan@huan.local |
7d84fefe93739d237883d208b8b777c2c474ae3a | e910e8cf8fdd8b3bba13690ee30cbf5c3eb4b834 | /Proj_4.py | 155035b0d6e490514e0f08b8d70eb4b09ba265d6 | [] | no_license | WizzCodes/Guess-the-number-game | 6dbaad25a7773dadc979c2c99627cb0768b1ff52 | 05f772ecb3d43533549cc3108a5514187b881087 | refs/heads/main | 2023-05-03T16:22:47.209555 | 2021-05-29T07:35:26 | 2021-05-29T07:35:26 | 371,909,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | n = 18
Number_of_guesses = 1
print("Number of guesses is limited to only 9 times:")
while (Number_of_guesses <= 9):
guess_number = int(input("Guess the number:\n"))
if guess_number <= 15:
print("You enter the less number, please enter the greater number. \n")
elif guess_number < 18:
print("You enter the lesser number but too close to the number, \n")
elif guess_number > 18 and guess_number <= 23:
print("You enter greater number but too close too the number, \n")
elif guess_number >= 23:
print("You enter the greater number, \n")
else:
print("You won the game\n")
print(Number_of_guesses, "No. of guesses he took to complete the game")
break
print(9-Number_of_guesses, "No.of guesses left")
Number_of_guesses = Number_of_guesses + 1
if(Number_of_guesses>9):
print("Game over, better luck next time")
break
| [
"noreply@github.com"
] | noreply@github.com |
d2929105719c49431e5aeed995945ebba0a3bbef | bc9c9689b3a9c2fa48816479bd9771d7729cdc3e | /week-04/day-03/countletter/test_count_letter.py | a345f90855f1dfb1b1815ba52171e4c859e2ffb8 | [] | no_license | green-fox-academy/Atis0505 | 565666d0edd78406e1f1eff237a8e67d966411c6 | 63939f821805aa2a5525d8eed55e1c8ab2945a4f | refs/heads/master | 2021-09-09T18:42:45.937310 | 2018-03-18T23:28:42 | 2018-03-18T23:28:42 | 102,183,981 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | import unittest
import count_letter
class CountLetterTest(unittest.TestCase):
def test_empty_input(self):
self.assertEqual(count_letter.count_letter(""), {})
def test_one_letter(self):
self.assertEqual(count_letter.count_letter("a"), {"a":1})
def test_two_letters(self):
self.assertEqual(count_letter.count_letter("ab"), {"a":1, "b":1})
def test_same_letters(self):
self.assertEqual(count_letter.count_letter("aa"), {"a":2})
def test_lot_letters(self):
self.assertEqual(count_letter.count_letter("aaabbbbb"), {"a":3, "b":5})
if __name__ == "__main__":
unittest.main() | [
"attilakorom2014@gmail.com"
] | attilakorom2014@gmail.com |
7460a0a34fdbc43ad3c9250eb52a22cceb8e8eb3 | bacb1fcaad4e3768e3a86429087aed62d6843ead | /user_service/db/user_models/migrations/0004_auto_20180708_0211.py | 19f3ea7affe8ec47291429c5adc71234b7e009c3 | [] | no_license | rkiranpatil42/User_service_Quora | 7a8bd0e32ccc2363dd707872d92812513cd46ff2 | 8596f8878eae3b30e674ff549979c36d1e9cf748 | refs/heads/master | 2020-04-08T02:00:58.040559 | 2018-11-24T09:03:44 | 2018-11-24T09:03:44 | 158,919,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-07-08 02:11
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_models', '0003_auto_20180706_1324'),
]
operations = [
migrations.AlterField(
model_name='loginentry',
name='auth_token',
field=models.CharField(default=b'd867dede-05c7-49b1-b900-2c157210079e', max_length=512),
),
migrations.AlterField(
model_name='loginentry',
name='login_time',
field=models.DateTimeField(default=datetime.datetime(2018, 7, 8, 2, 11, 36, 44001)),
),
migrations.AlterField(
model_name='user',
name='created_on',
field=models.DateTimeField(default=datetime.datetime(2018, 7, 8, 2, 11, 36, 42735)),
),
]
| [
"hemantb@redbytes.in"
] | hemantb@redbytes.in |
65fe7515c297c9d067a2c31ceefa1027b85d2ccf | e1cb2182417f1869feddff37a9aa7d3c3571f5f2 | /fall-2017/Machine Learning-CSCI 5622-001/assignments/hw1/knn/cross_validation.py | 206531e09d09f3a4283ef26d6b325fac1a4cbfa5 | [] | no_license | kumarbhrgv/KNN | 7911622b8cd0b1be1ff4638d9190b8c51a013a72 | 94562a313c8e05dd3a2f0872a0c7ca57c7e6ab96 | refs/heads/master | 2021-07-08T14:45:30.542751 | 2017-10-05T18:53:10 | 2017-10-05T18:53:10 | 105,927,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,677 | py | import argparse
import random
from collections import namedtuple
import numpy as np
from knn import Knearest, Numbers
import math
random.seed(20170830)
SplitIndices = namedtuple("SplitIndices", ["train", "test"])
def split_cv(length, num_folds):
splits = []
indices = list(range(length))
random.shuffle(indices)
k =0
number_in_fold = length/num_folds
for i in range(0,num_folds):
random.shuffle(indices)
train= []
test = indices[int(i* number_in_fold) : int((i+1)* number_in_fold) ]
for j in range(length):
if(j not in test):
train.append(j)
random.shuffle(train)
split = SplitIndices(train,test)
splits.append(split)
return splits
def cv_performance(x, y, num_folds, k):
length = len(y)
splits = split_cv(length, num_folds)
accuracy_array = []
for split in splits:
x_train = []
y_train = []
x_test = []
y_test = []
for i in split.train:
x_train.append(x[i])
y_train.append(y[i])
for i in split.test:
y_test.append(y[i])
x_test.append(x[i])
knn = Knearest(np.array(x_train),np.array(y_train), k)
confusion = knn.confusion_matrix(np.array(x_test),np.array(y_test))
accuracy_array.append(knn.accuracy(confusion))
return np.mean(accuracy_array)
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='KNN classifier options')
parser.add_argument('--limit', type=int, default=-1,
help="Restrict training to this many examples")
parser.add_argument('--num_folds', type=int, default=-1,
help="Number of folds for cross validations")
args = parser.parse_args()
data = Numbers("../data/mnist.pkl.gz")
x, y = data.train_x, data.train_y
if args.limit > 0:
x, y = x[:args.limit], y[:args.limit]
best_k, best_accuracy = -1, 0
num_folds = args.num_folds
if num_folds >0 :
print ("Number of folds chosen: ",num_folds)
else:
print(" Default Number of folds: ",5)
num_folds =5
for k in [1,3,5,7,9,11,15]:
accuracy = cv_performance(x, y, num_folds, k)
print("%d-nearest neighber accuracy: %f" % (k, accuracy))
if accuracy > best_accuracy:
best_accuracy, best_k = accuracy, k
print ("best_accuracy : %f, best_k : %d" %(best_accuracy,best_k))
knn = Knearest(x, y, best_k)
confusion = knn.confusion_matrix(data.test_x, data.test_y)
accuracy = knn.accuracy(confusion)
print("Accuracy for chosen best k= %d: %f" % (best_k, accuracy)) | [
"kumarbhrgv201@gmail.com"
] | kumarbhrgv201@gmail.com |
b3124a2f09fa421c83aa822d4f66ed4f2b74533c | aad5f4c9e86192804441639c9edd2fe376e82df7 | /Machine Learning A-Z/Section 8 - Decision Tree Regression/Decision_Tree_Regression1.py | d1cddb73cecea08bed85f39d98700240fbdaf794 | [] | no_license | abkedar/Machine-Learning-A-Z | 376df394a38d7dc1d08707dceb2373aebf8d5b29 | 2dec5556179a6b2179d50c6b12f796884099a0e8 | refs/heads/master | 2021-05-05T06:15:31.250479 | 2018-04-13T06:34:45 | 2018-04-13T06:34:45 | 118,793,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 07 15:49:20 2017
@author: kd
"""
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Position_Salaries.csv')
X = dataset.iloc[:, 1:2].values
y = dataset.iloc[:, 2].values
# Splitting the dataset into the Training set and Test set
"""from sklearn.cross_validation import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = 0.2, random_state = 0)"""
# Feature Scaling
"""from sklearn.preprocessing import StandardScaler
sc_X = StandardScaler()
X_train = sc_X.fit_transform(X_train)
X_test = sc_X.transform(X_test)
sc_y = StandardScaler()
y_train = sc_y.fit_transform(y_train)"""
# Fitting the Decision Tree Regression Model to the dataset
from sklearn.tree import DecisionTreeRegressor
regressor = DecisionTreeRegressor(random_state = 0)
regressor.fit(X, y)
# Create your regressor here
# Predicting a new result
y_pred = regressor.predict(6.5)
# Visualising the Decision Tree Regression results
"""plt.scatter(X, y, color = 'red')
plt.plot(X, regressor.predict(X), color = 'blue')
plt.title('Truth or Bluff (Decision Tree Regression)')
plt.xlabel('Position level')
plt.ylabel('Salary')
plt.show()# Importing the libraries"""
# Visualising the Decision Tree Regression results (for higher resolution and smoother curve)
X_grid = np.arange(min(X), max(X), 0.01)
X_grid = X_grid.reshape((len(X_grid), 1))
plt.scatter(X, y, color = 'red')
plt.plot(X_grid, regressor.predict(X_grid), color = 'blue')
plt.title('Truth or Bluff (Decision Tree Regression)')
plt.xlabel('Position level')
plt.ylabel('Salary')
plt.show() | [
"noreply@github.com"
] | noreply@github.com |
fab7a44797cde78c417c1e69b170b73b0b21b0ee | 4396eb1f15d9f9427ee281aff361e6dc76dbe503 | /bse_monthly_price_data.py | 14af20c15fd6feb2d02fd21c45525c508548196f | [
"BSD-3-Clause"
] | permissive | hegman12/stocksandcharts | 8d7c612672a8313551503c09b5f1633a3ea3e871 | 5b6022f3b41d8160d4f95947afba2202b86e13ca | refs/heads/master | 2020-09-01T19:05:05.826646 | 2019-11-05T18:33:21 | 2019-11-05T18:33:21 | 219,032,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,153 | py | import selenium.webdriver as webdriver
from selenium.webdriver.common.proxy import Proxy,ProxyType
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.common.exceptions import NoSuchElementException
from mysql.connector.errors import IntegrityError
from selenium.webdriver.chrome.options import Options
import mysql.connector as db
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from os import listdir
from os.path import isfile, join
from selenium.common.exceptions import TimeoutException as TimeoutException
options = webdriver.ChromeOptions()
options.add_argument('user-data-dir=D:\\stock_prices')
driver=webdriver.Chrome(chrome_options=options)
con=db.connect(host="localhost",user="<your user>",password="<your pwd>",auth_plugin='mysql_native_password',database="<your DB>")
driver.get("https://www.bseindia.com/markets/equity/EQReports/StockPrcHistori.aspx?flag=0")
def fetch_all_stocks():
try:
results=[]
cursor = con.cursor()
cursor.callproc('fetch_all_bse_stocks',())
for r in cursor.stored_results():
for row in r:
results.append(dict(zip(r.column_names,row)))
finally:
cursor.close()
con.close()
return results
stocks=fetch_all_stocks()
onlyfiles = [f for f in listdir("C:\\Users\\manju\\Downloads") if isfile(join("C:\\Users\\manju\\Downloads", f))]
bse_id=[s.split(".")[0] for s in onlyfiles if s.split(".")[1]=="csv"]
for stock in stocks:
try:
if str(stock["bse_id"]) not in bse_id and str(stock["bse_id"])[0]!="9":
driver.find_element_by_xpath("//*[@id='ContentPlaceHolder1_rdbMonthly']").click()
driver.find_element_by_xpath("//select[@id='ContentPlaceHolder1_cmbMonthly']/option[text()='Jan']").click()
driver.find_element_by_xpath("//select[@id='ContentPlaceHolder1_cmbMYear']/option[text()='2010']").click()
element=driver.find_element_by_xpath("//*[@id='ContentPlaceHolder1_smartSearch']")
element.clear()
element.send_keys(stock["bse_id"])
try:
element = WebDriverWait(driver, 3).until(
EC.presence_of_element_located((By.XPATH, "//*[@id='ulSearchQuote2']/li"))
)
driver.find_element_by_xpath( "//*[@id='ulSearchQuote2']/li").click()
finally:
#driver.quit()
pass
driver.find_element_by_xpath("//*[@id='ContentPlaceHolder1_btnSubmit']").click()
try:
element = WebDriverWait(driver, 3).until(
EC.presence_of_element_located((By.XPATH, "//*[@id='ContentPlaceHolder1_btnDownload1']"))
)
driver.find_element_by_xpath("//*[@id='ContentPlaceHolder1_btnDownload1']").click()
finally:
#driver.quit()
pass
except TimeoutException:
pass
driver.quit()
| [
"hegman12@gmail.com"
] | hegman12@gmail.com |
89d623c28a996e84828f0a45a67a973512b06bb1 | bc963c3c109c2d39c42f305ae555dc32625b2ba3 | /exp/030.py | d28143b48203c034c57b7b6c2bb676e65f627d7d | [] | no_license | osuossu8/BirdCLEF2021 | 0d03d68f0fdddd2859e8a323df99e56ec47000fd | 99a4f2121355f8bb2c6db330dad90a2fd7b9aaff | refs/heads/main | 2023-05-25T05:50:29.076941 | 2021-06-01T11:31:12 | 2021-06-01T11:31:12 | 359,748,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,075 | py | import ast
import gc
import os
import math
import random
import time
import warnings
import sys
sys.path.append("/root/workspace/BirdCLEF2021")
import albumentations as A
import cv2
import librosa
import numpy as np
import pandas as pd
import soundfile as sf
import colorednoise as cn
import timm
import torch
import torch.optim as optim
import torch.nn as nn
import torch.nn.functional as F
import torch.utils.data as torchdata
import torchvision.models as models
from pathlib import Path
from typing import List
from albumentations.pytorch import ToTensorV2
from albumentations.core.transforms_interface import ImageOnlyTransform
from catalyst.core import Callback, CallbackOrder, IRunner
from catalyst.dl import Runner, SupervisedRunner
from sklearn import model_selection
from sklearn import metrics
from timm.models.layers import SelectAdaptivePool2d
from torch.optim.optimizer import Optimizer
from torchlibrosa.stft import LogmelFilterBank, Spectrogram
from torchlibrosa.augmentation import SpecAugmentation
from tqdm import tqdm
import albumentations as A
import audiomentations as AD
from apex import amp
class CFG:
EXP_ID = '030'
######################
# Globals #
######################
seed = 6718
epochs = 55
# cutmix_and_mixup_epochs = 75
train = True
folds = [0]
img_size = 224
main_metric = "epoch_f1_at_03"
minimize_metric = False
######################
# Data #
######################
train_datadir = Path("inputs/train_short_audio")
train_csv = "inputs/train_metadata.csv"
train_soundscape = "inputs/train_soundscape_labels.csv"
######################
# Dataset #
######################
transforms = {
"train": [{"name": "Normalize"}],
"valid": [{"name": "Normalize"}]
}
period = 5
n_mels = 128
fmin = 20
fmax = 16000
n_fft = 2048
hop_length = 512
sample_rate = 32000
melspectrogram_parameters = {
"n_mels": 224,
"fmin": 20,
"fmax": 16000
}
target_columns = [
'acafly', 'acowoo', 'aldfly', 'ameavo', 'amecro',
'amegfi', 'amekes', 'amepip', 'amered', 'amerob',
'amewig', 'amtspa', 'andsol1', 'annhum', 'astfly',
'azaspi1', 'babwar', 'baleag', 'balori', 'banana',
'banswa', 'banwre1', 'barant1', 'barswa', 'batpig1',
'bawswa1', 'bawwar', 'baywre1', 'bbwduc', 'bcnher',
'belkin1', 'belvir', 'bewwre', 'bkbmag1', 'bkbplo',
'bkbwar', 'bkcchi', 'bkhgro', 'bkmtou1', 'bknsti', 'blbgra1',
'blbthr1', 'blcjay1', 'blctan1', 'blhpar1', 'blkpho',
'blsspa1', 'blugrb1', 'blujay', 'bncfly', 'bnhcow', 'bobfly1',
'bongul', 'botgra', 'brbmot1', 'brbsol1', 'brcvir1', 'brebla',
'brncre', 'brnjay', 'brnthr', 'brratt1', 'brwhaw', 'brwpar1',
'btbwar', 'btnwar', 'btywar', 'bucmot2', 'buggna', 'bugtan',
'buhvir', 'bulori', 'burwar1', 'bushti', 'butsal1', 'buwtea',
'cacgoo1', 'cacwre', 'calqua', 'caltow', 'cangoo', 'canwar',
'carchi', 'carwre', 'casfin', 'caskin', 'caster1', 'casvir',
'categr', 'ccbfin', 'cedwax', 'chbant1', 'chbchi', 'chbwre1',
'chcant2', 'chispa', 'chswar', 'cinfly2', 'clanut', 'clcrob',
'cliswa', 'cobtan1', 'cocwoo1', 'cogdov', 'colcha1', 'coltro1',
'comgol', 'comgra', 'comloo', 'commer', 'compau', 'compot1',
'comrav', 'comyel', 'coohaw', 'cotfly1', 'cowscj1', 'cregua1',
'creoro1', 'crfpar', 'cubthr', 'daejun', 'dowwoo', 'ducfly', 'dusfly',
'easblu', 'easkin', 'easmea', 'easpho', 'eastow', 'eawpew', 'eletro',
'eucdov', 'eursta', 'fepowl', 'fiespa', 'flrtan1', 'foxspa', 'gadwal',
'gamqua', 'gartro1', 'gbbgul', 'gbwwre1', 'gcrwar', 'gilwoo',
'gnttow', 'gnwtea', 'gocfly1', 'gockin', 'gocspa', 'goftyr1',
'gohque1', 'goowoo1', 'grasal1', 'grbani', 'grbher3', 'grcfly',
'greegr', 'grekis', 'grepew', 'grethr1', 'gretin1', 'greyel',
'grhcha1', 'grhowl', 'grnher', 'grnjay', 'grtgra', 'grycat',
'gryhaw2', 'gwfgoo', 'haiwoo', 'heptan', 'hergul', 'herthr',
'herwar', 'higmot1', 'hofwoo1', 'houfin', 'houspa', 'houwre',
'hutvir', 'incdov', 'indbun', 'kebtou1', 'killde', 'labwoo', 'larspa',
'laufal1', 'laugul', 'lazbun', 'leafly', 'leasan', 'lesgol', 'lesgre1',
'lesvio1', 'linspa', 'linwoo1', 'littin1', 'lobdow', 'lobgna5', 'logshr',
'lotduc', 'lotman1', 'lucwar', 'macwar', 'magwar', 'mallar3', 'marwre',
'mastro1', 'meapar', 'melbla1', 'monoro1', 'mouchi', 'moudov', 'mouela1',
'mouqua', 'mouwar', 'mutswa', 'naswar', 'norcar', 'norfli', 'normoc', 'norpar',
'norsho', 'norwat', 'nrwswa', 'nutwoo', 'oaktit', 'obnthr1', 'ocbfly1',
'oliwoo1', 'olsfly', 'orbeup1', 'orbspa1', 'orcpar', 'orcwar', 'orfpar',
'osprey', 'ovenbi1', 'pabspi1', 'paltan1', 'palwar', 'pasfly', 'pavpig2',
'phivir', 'pibgre', 'pilwoo', 'pinsis', 'pirfly1', 'plawre1', 'plaxen1',
'plsvir', 'plupig2', 'prowar', 'purfin', 'purgal2', 'putfru1', 'pygnut',
'rawwre1', 'rcatan1', 'rebnut', 'rebsap', 'rebwoo', 'redcro', 'reevir1',
'rehbar1', 'relpar', 'reshaw', 'rethaw', 'rewbla', 'ribgul', 'rinkin1',
'roahaw', 'robgro', 'rocpig', 'rotbec', 'royter1', 'rthhum', 'rtlhum',
'ruboro1', 'rubpep1', 'rubrob', 'rubwre1', 'ruckin', 'rucspa1', 'rucwar',
'rucwar1', 'rudpig', 'rudtur', 'rufhum', 'rugdov', 'rumfly1', 'runwre1',
'rutjac1', 'saffin', 'sancra', 'sander', 'savspa', 'saypho', 'scamac1',
'scatan', 'scbwre1', 'scptyr1', 'scrtan1', 'semplo', 'shicow', 'sibtan2',
'sinwre1', 'sltred', 'smbani', 'snogoo', 'sobtyr1', 'socfly1', 'solsan',
'sonspa', 'soulap1', 'sposan', 'spotow', 'spvear1', 'squcuc1', 'stbori',
'stejay', 'sthant1', 'sthwoo1', 'strcuc1', 'strfly1', 'strsal1', 'stvhum2',
'subfly', 'sumtan', 'swaspa', 'swathr', 'tenwar', 'thbeup1', 'thbkin',
'thswar1', 'towsol', 'treswa', 'trogna1', 'trokin', 'tromoc', 'tropar',
'tropew1', 'tuftit', 'tunswa', 'veery', 'verdin', 'vigswa', 'warvir',
'wbwwre1', 'webwoo1', 'wegspa1', 'wesant1', 'wesblu', 'weskin', 'wesmea',
'westan', 'wewpew', 'whbman1', 'whbnut', 'whcpar', 'whcsee1', 'whcspa',
'whevir', 'whfpar1', 'whimbr', 'whiwre1', 'whtdov', 'whtspa', 'whwbec1',
'whwdov', 'wilfly', 'willet1', 'wilsni1', 'wiltur', 'wlswar', 'wooduc',
'woothr', 'wrenti', 'y00475', 'yebcha', 'yebela1', 'yebfly', 'yebori1',
'yebsap', 'yebsee1', 'yefgra1', 'yegvir', 'yehbla', 'yehcar1', 'yelgro',
'yelwar', 'yeofly1', 'yerwar', 'yeteup1', 'yetvir'] \
+ ['nocall']
######################
# Loaders #
######################
loader_params = {
"train": {
"batch_size": 64,
"num_workers": 0,
"shuffle": True
},
"valid": {
"batch_size": 128,
"num_workers": 0,
"shuffle": False
}
}
######################
# Split #
######################
split = "StratifiedKFold"
split_params = {
"n_splits": 5,
"shuffle": True,
"random_state": 6718
}
######################
# Model #
######################
base_model_name = "tf_efficientnet_b0_ns"
pooling = "max"
pretrained = True
num_classes = 398
in_channels = 1
N_FOLDS = 5
LR = 1e-3
apex = True
T_max=10
min_lr=1e-6
def set_seed(seed=42):
random.seed(seed)
os.environ["PYTHONHASHSEED"] = str(seed)
np.random.seed(seed)
torch.manual_seed(seed)
torch.cuda.manual_seed(seed)
torch.cuda.manual_seed_all(seed)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False
def get_device() -> torch.device:
return torch.device("cuda" if torch.cuda.is_available() else "cpu")
def init_logger(log_file='train.log'):
from logging import getLogger, INFO, FileHandler, Formatter, StreamHandler
logger = getLogger(__name__)
logger.setLevel(INFO)
handler1 = StreamHandler()
handler1.setFormatter(Formatter("%(message)s"))
handler2 = FileHandler(filename=log_file)
handler2.setFormatter(Formatter("%(message)s"))
logger.addHandler(handler1)
logger.addHandler(handler2)
return logger
class WaveformDataset(torchdata.Dataset):
def __init__(self,
df: pd.DataFrame,
mode='train'):
self.df = df
self.mode = mode
def __len__(self):
return len(self.df)
def __getitem__(self, idx: int):
sample = self.df.loc[idx, :]
wav_path = sample["filepath"]
start_sec = sample["start_seconds"]
end_sec = sample["end_seconds"]
len_label = sample["len_label"]
labels = sample["primary_label"]
secondary_labels = sample["secondary_labels"]
y, sr = sf.read(wav_path)
len_y = len(y)
effective_length = sr * 5
if len_y < effective_length:
new_y = np.zeros(effective_length, dtype=y.dtype)
if self.mode == 'train':
start = np.random.randint(effective_length - len_y)
else:
start = 0
new_y[start:start + len_y] = y
y = new_y.astype(np.float32)
elif len_y > effective_length:
if self.mode == 'train':
start = np.random.randint(len_y - effective_length)
else:
start = 0
y = y[start:start + effective_length].astype(np.float32)
else:
y = y.astype(np.float32)
y = np.nan_to_num(y)
y = audio_augmenter(y)
y = np.nan_to_num(y)
all_targets = np.zeros(len(CFG.target_columns), dtype=float)
targets = np.zeros(len(CFG.target_columns), dtype=float)
for ebird_code in labels.split():
targets[CFG.target_columns.index(ebird_code)] = 1.0
all_targets[CFG.target_columns.index(ebird_code)] = 1.0
secondary_targets = np.zeros(len(CFG.target_columns), dtype=float)
if secondary_labels is not None:
for ebird_code in secondary_labels.split():
if ebird_code == 'rocpig1':
ebird_code = 'rocpig'
secondary_targets[CFG.target_columns.index(ebird_code)] = 1.0
all_targets[CFG.target_columns.index(ebird_code)] = 1.0
return {
"image": y.reshape(1, -1),
"all_targets": all_targets,
"primary_targets": targets,
"secondary_targets": secondary_targets
}
def get_transforms(phase: str):
transforms = CFG.transforms
if transforms is None:
return None
else:
if transforms[phase] is None:
return None
trns_list = []
for trns_conf in transforms[phase]:
trns_name = trns_conf["name"]
trns_params = {} if trns_conf.get("params") is None else \
trns_conf["params"]
if globals().get(trns_name) is not None:
trns_cls = globals()[trns_name]
trns_list.append(trns_cls(**trns_params))
if len(trns_list) > 0:
return Compose(trns_list)
else:
return None
class Normalize:
def __call__(self, y: np.ndarray):
max_vol = np.abs(y).max()
y_vol = y * 1 / max_vol
return np.asfortranarray(y_vol)
# Mostly taken from https://www.kaggle.com/hidehisaarai1213/rfcx-audio-data-augmentation-japanese-english
class AudioTransform:
def __init__(self, always_apply=False, p=0.5):
self.always_apply = always_apply
self.p = p
def __call__(self, y: np.ndarray):
if self.always_apply:
return self.apply(y)
else:
if np.random.rand() < self.p:
return self.apply(y)
else:
return y
def apply(self, y: np.ndarray):
raise NotImplementedError
class Compose:
def __init__(self, transforms: list):
self.transforms = transforms
def __call__(self, y: np.ndarray):
for trns in self.transforms:
y = trns(y)
return y
class OneOf:
def __init__(self, transforms: list):
self.transforms = transforms
def __call__(self, y: np.ndarray):
n_trns = len(self.transforms)
trns_idx = np.random.choice(n_trns)
trns = self.transforms[trns_idx]
return trns(y)
class GaussianNoiseSNR(AudioTransform):
def __init__(self, always_apply=False, p=0.5, min_snr=5.0, max_snr=20.0, **kwargs):
super().__init__(always_apply, p)
self.min_snr = min_snr
self.max_snr = max_snr
def apply(self, y: np.ndarray, **params):
snr = np.random.uniform(self.min_snr, self.max_snr)
a_signal = np.sqrt(y ** 2).max()
a_noise = a_signal / (10 ** (snr / 20))
white_noise = np.random.randn(len(y))
a_white = np.sqrt(white_noise ** 2).max()
augmented = (y + white_noise * 1 / a_white * a_noise).astype(y.dtype)
return augmented
class PinkNoiseSNR(AudioTransform):
def __init__(self, always_apply=False, p=0.5, min_snr=5.0, max_snr=20.0, **kwargs):
super().__init__(always_apply, p)
self.min_snr = min_snr
self.max_snr = max_snr
def apply(self, y: np.ndarray, **params):
snr = np.random.uniform(self.min_snr, self.max_snr)
a_signal = np.sqrt(y ** 2).max()
a_noise = a_signal / (10 ** (snr / 20))
pink_noise = cn.powerlaw_psd_gaussian(1, len(y))
a_pink = np.sqrt(pink_noise ** 2).max()
augmented = (y + pink_noise * 1 / a_pink * a_noise).astype(y.dtype)
return augmented
class TimeShift(AudioTransform):
def __init__(self, always_apply=False, p=0.5, max_shift_second=2, sr=32000, padding_mode="zero"):
super().__init__(always_apply, p)
assert padding_mode in [
"replace", "zero"], "`padding_mode` must be either 'replace' or 'zero'"
self.max_shift_second = max_shift_second
self.sr = sr
self.padding_mode = padding_mode
def apply(self, y: np.ndarray, **params):
shift = np.random.randint(-self.sr * self.max_shift_second,
self.sr * self.max_shift_second)
augmented = np.roll(y, shift)
return augmented
class VolumeControl(AudioTransform):
def __init__(self, always_apply=False, p=0.5, db_limit=10, mode="uniform"):
super().__init__(always_apply, p)
assert mode in ["uniform", "fade", "fade", "cosine", "sine"], \
"`mode` must be one of 'uniform', 'fade', 'cosine', 'sine'"
self.db_limit = db_limit
self.mode = mode
def apply(self, y: np.ndarray, **params):
db = np.random.uniform(-self.db_limit, self.db_limit)
if self.mode == "uniform":
db_translated = 10 ** (db / 20)
elif self.mode == "fade":
lin = np.arange(len(y))[::-1] / (len(y) - 1)
db_translated = 10 ** (db * lin / 20)
elif self.mode == "cosine":
cosine = np.cos(np.arange(len(y)) / len(y) * np.pi * 2)
db_translated = 10 ** (db * cosine / 20)
else:
sine = np.sin(np.arange(len(y)) / len(y) * np.pi * 2)
db_translated = 10 ** (db * sine / 20)
augmented = y * db_translated
return augmented
def init_layer(layer):
nn.init.xavier_uniform_(layer.weight)
if hasattr(layer, "bias"):
if layer.bias is not None:
layer.bias.data.fill_(0.)
def init_bn(bn):
bn.bias.data.fill_(0.)
bn.weight.data.fill_(1.0)
def init_weights(model):
classname = model.__class__.__name__
if classname.find("Conv2d") != -1:
nn.init.xavier_uniform_(model.weight, gain=np.sqrt(2))
model.bias.data.fill_(0)
elif classname.find("BatchNorm") != -1:
model.weight.data.normal_(1.0, 0.02)
model.bias.data.fill_(0)
elif classname.find("GRU") != -1:
for weight in model.parameters():
if len(weight.size()) > 1:
nn.init.orghogonal_(weight.data)
elif classname.find("Linear") != -1:
model.weight.data.normal_(0, 0.01)
model.bias.data.zero_()
def interpolate(x: torch.Tensor, ratio: int):
"""Interpolate data in time domain. This is used to compensate the
resolution reduction in downsampling of a CNN.
Args:
x: (batch_size, time_steps, classes_num)
ratio: int, ratio to interpolate
Returns:
upsampled: (batch_size, time_steps * ratio, classes_num)
"""
(batch_size, time_steps, classes_num) = x.shape
upsampled = x[:, :, None, :].repeat(1, 1, ratio, 1)
upsampled = upsampled.reshape(batch_size, time_steps * ratio, classes_num)
return upsampled
def pad_framewise_output(framewise_output: torch.Tensor, frames_num: int):
"""Pad framewise_output to the same length as input frames. The pad value
is the same as the value of the last frame.
Args:
framewise_output: (batch_size, frames_num, classes_num)
frames_num: int, number of frames to pad
Outputs:
output: (batch_size, frames_num, classes_num)
"""
output = F.interpolate(
framewise_output.unsqueeze(1),
size=(frames_num, framewise_output.size(2)),
align_corners=True,
mode="bilinear").squeeze(1)
return output
class AttBlockV2(nn.Module):
def __init__(self,
in_features: int,
out_features: int,
activation="linear"):
super().__init__()
self.activation = activation
self.att = nn.Conv1d(
in_channels=in_features,
out_channels=out_features,
kernel_size=1,
stride=1,
padding=0,
bias=True)
self.cla = nn.Conv1d(
in_channels=in_features,
out_channels=out_features,
kernel_size=1,
stride=1,
padding=0,
bias=True)
self.init_weights()
def init_weights(self):
init_layer(self.att)
init_layer(self.cla)
def forward(self, x):
# x: (n_samples, n_in, n_time)
norm_att = torch.softmax(torch.tanh(self.att(x)), dim=-1)
cla = self.nonlinear_transform(self.cla(x))
x = torch.sum(norm_att * cla, dim=2)
return x, norm_att, cla
def nonlinear_transform(self, x):
if self.activation == 'linear':
return x
elif self.activation == 'sigmoid':
return torch.sigmoid(x)
class PANNsDense121Att(nn.Module):
def __init__(self, sample_rate: int, window_size: int, hop_size: int,
mel_bins: int, fmin: int, fmax: int, classes_num: int, apply_aug: bool, top_db=None):
super().__init__()
window = 'hann'
center = True
pad_mode = 'reflect'
ref = 1.0
amin = 1e-10
self.interpolate_ratio = 32 # Downsampled ratio
self.apply_aug = apply_aug
# Spectrogram extractor
self.spectrogram_extractor = Spectrogram(
n_fft=window_size,
hop_length=hop_size,
win_length=window_size,
window=window,
center=center,
pad_mode=pad_mode,
freeze_parameters=True)
# Logmel feature extractor
self.logmel_extractor = LogmelFilterBank(
sr=sample_rate,
n_fft=window_size,
n_mels=mel_bins,
fmin=fmin,
fmax=fmax,
ref=ref,
amin=amin,
top_db=top_db,
freeze_parameters=True)
# Spec augmenter
self.spec_augmenter = SpecAugmentation(
time_drop_width=64,
time_stripes_num=2,
freq_drop_width=8,
freq_stripes_num=2)
self.bn0 = nn.BatchNorm2d(mel_bins)
self.fc1 = nn.Linear(1024, 1024, bias=True)
self.att_block = AttBlockV2(1024, classes_num, activation='sigmoid')
self.densenet_features = models.densenet121(pretrained=True).features
self.init_weight()
def init_weight(self):
init_bn(self.bn0)
init_layer(self.fc1)
def cnn_feature_extractor(self, x):
x = self.densenet_features(x)
return x
def preprocess(self, input_x, mixup_lambda=None):
x = self.spectrogram_extractor(input_x) # (batch_size, 1, time_steps, freq_bins)
x = self.logmel_extractor(x) # (batch_size, 1, time_steps, mel_bins)
frames_num = x.shape[2]
x = x.transpose(1, 3)
x = self.bn0(x)
x = x.transpose(1, 3)
if self.training and self.apply_aug:
x = self.spec_augmenter(x)
# Mixup on spectrogram
if self.training and self.apply_aug and mixup_lambda is not None:
x = do_mixup(x, mixup_lambda)
return x, frames_num
def forward(self, input_data):
# input_x, mixup_lambda = input_data
input_x = input_data
mixup_lambda = None
"""
Input: (batch_size, data_length)"""
b, c, s = input_x.shape
input_x = input_x.reshape(b*c, s)
x, frames_num = self.preprocess(input_x, mixup_lambda=mixup_lambda)
if mixup_lambda is not None:
b = (b*c)//2
c = 1
# Output shape (batch size, channels, time, frequency)
x = x.expand(x.shape[0], 3, x.shape[2], x.shape[3])
x = self.cnn_feature_extractor(x)
# Aggregate in frequency axis
x = torch.mean(x, dim=3)
x1 = F.max_pool1d(x, kernel_size=3, stride=1, padding=1)
x2 = F.avg_pool1d(x, kernel_size=3, stride=1, padding=1)
x = x1 + x2
x = F.dropout(x, p=0.5, training=self.training)
x = x.transpose(1, 2)
x = F.relu_(self.fc1(x))
x = x.transpose(1, 2)
x = F.dropout(x, p=0.5, training=self.training)
(clipwise_output, norm_att, segmentwise_output) = self.att_block(x)
segmentwise_output = segmentwise_output.transpose(1, 2)
# Get framewise output
framewise_output = interpolate(segmentwise_output,
self.interpolate_ratio)
framewise_output = pad_framewise_output(framewise_output, frames_num)
frame_shape = framewise_output.shape
clip_shape = clipwise_output.shape
output_dict = {
'framewise_output': framewise_output.reshape(b, c, frame_shape[1],frame_shape[2]),
'clipwise_output': clipwise_output.reshape(b, c, clip_shape[1]),
}
return output_dict
EPSILON_FP16 = 1e-5
class SedScaledPosNegFocalLoss(nn.Module):
def __init__(self, gamma=0.0, alpha_1=1.0, alpha_0=1.0, secondary_factor=1.0):
super().__init__()
self.loss_fn = nn.BCELoss(reduction='none')
self.secondary_factor = secondary_factor
self.gamma = gamma
self.alpha_1 = alpha_1
self.alpha_0 = alpha_0
self.loss_keys = ["bce_loss", "F_loss", "FScaled_loss", "F_loss_0", "F_loss_1"]
def forward(self, y_pred, y_target):
y_true = y_target[0].float() # y_target["all_targets"]
y_sec_true = y_target[1].float() # y_target["secondary_targets"]
# bs, s, o = y_true.shape
# Sigmoid has already been applied in the model
y_pred = torch.clamp(y_pred, min=EPSILON_FP16, max=1.0-EPSILON_FP16)
y_pred = y_pred.float()
# y_pred = y_pred.reshape(bs*s,o)
# y_true = y_true.reshape(bs*s,o)
# y_sec_true = y_sec_true.reshape(bs*s,o)
with torch.no_grad():
y_all_ones_mask = torch.ones_like(y_true, requires_grad=False)
y_all_zeros_mask = torch.zeros_like(y_true, requires_grad=False)
y_all_mask = torch.where(y_true > 0.0, y_all_ones_mask, y_all_zeros_mask)
y_ones_mask = torch.ones_like(y_sec_true, requires_grad=False)
y_zeros_mask = torch.ones_like(y_sec_true, requires_grad=False) *self.secondary_factor
y_secondary_mask = torch.where(y_sec_true > 0.0, y_zeros_mask, y_ones_mask)
bce_loss = self.loss_fn(y_pred, y_true)
pt = torch.exp(-bce_loss)
F_loss_0 = (self.alpha_0*(1-y_all_mask)) * (1-pt)**self.gamma * bce_loss
F_loss_1 = (self.alpha_1*y_all_mask) * (1-pt)**self.gamma * bce_loss
F_loss = F_loss_0 + F_loss_1
FScaled_loss = y_secondary_mask*F_loss
FScaled_loss = FScaled_loss.mean()
# return FScaled_loss, {"bce_loss": bce_loss.mean(), "F_loss_1": F_loss_1.mean(), "F_loss_0": F_loss_0.mean(), "F_loss": F_loss.mean(), "FScaled_loss": FScaled_loss }
return FScaled_loss
# ====================================================
# Training helper functions
# ====================================================
class AverageMeter(object):
"""Computes and stores the average and current value"""
def __init__(self):
self.reset()
def reset(self):
self.val = 0
self.avg = 0
self.sum = 0
self.count = 0
def update(self, val, n=1):
self.val = val
self.sum += val * n
self.count += n
self.avg = self.sum / self.count
class MetricMeter(object):
def __init__(self):
self.reset()
def reset(self):
self.y_true = []
self.y_pred = []
def update(self, y_true, y_pred):
self.y_true.extend(y_true.cpu().detach().numpy().tolist())
# self.y_pred.extend(torch.sigmoid(y_pred).cpu().detach().numpy().tolist())
self.y_pred.extend(y_pred["clipwise_output"].max(axis=1)[0].cpu().detach().numpy().tolist())
@property
def avg(self):
self.f1_03 = metrics.f1_score(np.array(self.y_true), np.array(self.y_pred) > 0.3, average="micro")
self.f1_05 = metrics.f1_score(np.array(self.y_true), np.array(self.y_pred) > 0.5, average="micro")
return {
"f1_at_03" : self.f1_03,
"f1_at_05" : self.f1_05,
}
def loss_fn(y_pred, y_all, y_second):
loss_fct = SedScaledPosNegFocalLoss()
loss = loss_fct(y_pred["clipwise_output"], (y_all, y_second))
return loss
def train_fn(model, data_loader, device, optimizer, scheduler):
model.train()
losses = AverageMeter()
scores = MetricMeter()
tk0 = tqdm(data_loader, total=len(data_loader))
for data in tk0:
optimizer.zero_grad()
inputs = data['image'].to(device)
targets = data['all_targets'].to(device)
secondary_targets = data['secondary_targets'].to(device)
outputs = model(inputs)
loss = loss_fn(outputs, targets, secondary_targets)
if CFG.apex:
with amp.scale_loss(loss, optimizer) as scaled_loss:
scaled_loss.backward()
else:
loss.backward()
optimizer.step()
scheduler.step()
losses.update(loss.item(), inputs.size(0))
scores.update(targets, outputs)
tk0.set_postfix(loss=losses.avg)
return scores.avg, losses.avg
def valid_fn(model, data_loader, device):
model.eval()
losses = AverageMeter()
scores = MetricMeter()
tk0 = tqdm(data_loader, total=len(data_loader))
valid_preds = []
with torch.no_grad():
for data in tk0:
inputs = data['image'].to(device)
targets = data['all_targets'].to(device)
secondary_targets = data['secondary_targets'].to(device)
outputs = model(inputs)
loss = loss_fn(outputs, targets, secondary_targets)
losses.update(loss.item(), inputs.size(0))
scores.update(targets, outputs)
tk0.set_postfix(loss=losses.avg)
return scores.avg, losses.avg
mean = (0.485, 0.456, 0.406) # RGB
std = (0.229, 0.224, 0.225) # RGB
albu_transforms = {
'train' : A.Compose([
A.HorizontalFlip(p=0.5),
A.Cutout(max_h_size=5*4, max_w_size=16*3, p=0.3),
A.Normalize(mean, std),
]),
'valid' : A.Compose([
A.Normalize(mean, std),
]),
}
audio_augmenter = Compose([
OneOf([
GaussianNoiseSNR(min_snr=10),
PinkNoiseSNR(min_snr=10)
]),
TimeShift(sr=32000),
VolumeControl(p=0.5),
Normalize()
])
model_config = {
"sample_rate": 32000,
"window_size": 1024,
"hop_size": 320,
"mel_bins": 64,
"fmin": 50,
"fmax": 14000,
"classes_num": 398,
"apply_aug": False, # True,
"top_db": None
}
OUTPUT_DIR = f'outputs/{CFG.EXP_ID}/'
if not os.path.exists(OUTPUT_DIR):
os.makedirs(OUTPUT_DIR)
warnings.filterwarnings("ignore")
logger = init_logger(log_file=Path("logs") / f"train_{CFG.EXP_ID}.log")
# environment
set_seed(CFG.seed)
device = get_device()
# data
# train = pd.read_csv('inputs/image_folds.csv')
# train['filepath'] = train['filepath'].map(lambda x: 'inputs/train_images/' + '/'.join(x.split('/')[4:]))
train = pd.read_csv('inputs/folds.csv')
train['filepath'] = train['filepath'].map(lambda x: 'inputs/' + '/'.join(x.split('/')[3:]))
short_audio = train.loc[:62873].copy()
long_audio = train.loc[62874:].copy()
meta = pd.read_csv('inputs/train_metadata.csv')
short_audio['secondary_labels'] = meta['secondary_labels'].copy()
short_audio['secondary_labels'] = short_audio['secondary_labels'].map(lambda x: ' '.join(ast.literal_eval(x)))
long_audio['secondary_labels'] = None
short_audio['rating'] = meta['rating'].copy()
long_audio['rating'] = 999 # -1
new_train = pd.concat([short_audio, long_audio]).reset_index(drop=True)
# main loop
for fold in range(5):
if fold not in CFG.folds:
continue
logger.info("=" * 120)
logger.info(f"Fold {fold} Training")
logger.info("=" * 120)
trn_df = new_train[new_train['kfold']!=fold].reset_index(drop=True)
val_df = new_train[new_train.kfold == fold].reset_index(drop=True)
loaders = {
phase: torchdata.DataLoader(
WaveformDataset(
df_,
mode=phase
),
**CFG.loader_params[phase]) # type: ignore
for phase, df_ in zip(["train", "valid"], [trn_df, val_df])
}
model = PANNsDense121Att(**model_config)
optimizer = torch.optim.Adam(model.parameters(), lr=CFG.LR)
scheduler = torch.optim.lr_scheduler.CosineAnnealingLR(optimizer, T_max=CFG.T_max, eta_min=CFG.min_lr, last_epoch=-1)
model = model.to(device)
model, optimizer = amp.initialize(model, optimizer, opt_level='O1', verbosity=0)
p = 0
min_loss = 999
best_score = -np.inf
for epoch in range(CFG.epochs):
logger.info("Starting {} epoch...".format(epoch+1))
start_time = time.time()
train_avg, train_loss = train_fn(model, loaders['train'], device, optimizer, scheduler)
valid_avg, valid_loss = valid_fn(model, loaders['valid'], device)
scheduler.step()
elapsed = time.time() - start_time
logger.info(f'Epoch {epoch+1} - avg_train_loss: {train_loss:.5f} avg_val_loss: {valid_loss:.5f} time: {elapsed:.0f}s')
logger.info(f"Epoch {epoch+1} - train_f1_at_03:{train_avg['f1_at_03']:0.5f} valid_f1_at_03:{valid_avg['f1_at_03']:0.5f}")
logger.info(f"Epoch {epoch+1} - train_f1_at_05:{train_avg['f1_at_05']:0.5f} valid_f1_at_05:{valid_avg['f1_at_05']:0.5f}")
if valid_avg['f1_at_03'] > best_score:
logger.info(f">>>>>>>> Model Improved From {best_score} ----> {valid_avg['f1_at_03']}")
logger.info(f"other scores here... {valid_avg['f1_at_03']}, {valid_avg['f1_at_05']}")
torch.save(model.state_dict(), OUTPUT_DIR+f'fold-{fold}.bin')
best_score = valid_avg['f1_at_03']
| [
"osuosuossu18@gmail.com"
] | osuosuossu18@gmail.com |
fb6e59194cd56c41ffbf2f949fdb863868fbed1e | 82f998aec53e7bc49eb5aad4fdb18cbe72976b89 | /transformers/configuration_albert.py | 144678774cdc1e5b1ea30145fdf9204c810d854a | [] | no_license | MatNLP/SMedBERT | 6ab8d2749a8a26005eef36dc347f779c9e6a217b | 8dd549f902ca59ad2b84bf3b951213565fde4dc0 | refs/heads/main | 2023-09-02T03:22:13.298661 | 2021-11-17T05:44:50 | 2021-11-17T05:44:50 | 372,204,217 | 75 | 13 | null | null | null | null | UTF-8 | Python | false | false | 5,303 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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.
""" ALBERT model configuration """
from .configuration_utils import PretrainedConfig
ALBERT_PRETRAINED_CONFIG_ARCHIVE_MAP = {
'albert-base-v1': "https://s3.amazonaws.com/models.huggingface.co/bert/albert-base-config.json",
'albert-large-v1': "https://s3.amazonaws.com/models.huggingface.co/bert/albert-large-config.json",
'albert-xlarge-v1': "https://s3.amazonaws.com/models.huggingface.co/bert/albert-xlarge-config.json",
'albert-xxlarge-v1': "https://s3.amazonaws.com/models.huggingface.co/bert/albert-xxlarge-config.json",
'albert-base-v2': "https://s3.amazonaws.com/models.huggingface.co/bert/albert-base-v2-config.json",
'albert-large-v2': "https://s3.amazonaws.com/models.huggingface.co/bert/albert-large-v2-config.json",
'albert-xlarge-v2': "https://s3.amazonaws.com/models.huggingface.co/bert/albert-xlarge-v2-config.json",
'albert-xxlarge-v2': "https://s3.amazonaws.com/models.huggingface.co/bert/albert-xxlarge-v2-config.json",
}
class AlbertConfig(PretrainedConfig):
"""Configuration for `AlbertModel`.
The default settings match the configuration of model `albert_xxlarge`.
"""
pretrained_config_archive_map = ALBERT_PRETRAINED_CONFIG_ARCHIVE_MAP
def __init__(self,
vocab_size_or_config_json_file=30000,
embedding_size=128,
hidden_size=4096,
num_hidden_layers=12,
num_hidden_groups=1,
num_attention_heads=64,
intermediate_size=16384,
inner_group_num=1,
hidden_act="gelu_new",
hidden_dropout_prob=0,
attention_probs_dropout_prob=0,
max_position_embeddings=512,
type_vocab_size=2,
initializer_range=0.02,
layer_norm_eps=1e-12, **kwargs):
"""Constructs AlbertConfig.
Args:
vocab_size: Vocabulary size of `inputs_ids` in `AlbertModel`.
embedding_size: size of voc embeddings.
hidden_size: Size of the encoder layers and the pooler layer.
num_hidden_layers: Number of hidden layers in the Transformer encoder.
num_hidden_groups: Number of group for the hidden layers, parameters in
the same group are shared.
num_attention_heads: Number of attention heads for each attention layer in
the Transformer encoder.
intermediate_size: The size of the "intermediate" (i.e., feed-forward)
layer in the Transformer encoder.
inner_group_num: int, number of inner repetition of attention and ffn.
down_scale_factor: float, the scale to apply
hidden_act: The non-linear activation function (function or string) in the
encoder and pooler.
hidden_dropout_prob: The dropout probability for all fully connected
layers in the embeddings, encoder, and pooler.
attention_probs_dropout_prob: The dropout ratio for the attention
probabilities.
max_position_embeddings: 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).
type_vocab_size: The vocabulary size of the `token_type_ids` passed into
`AlbertModel`.
initializer_range: The stdev of the truncated_normal_initializer for
initializing all weight matrices.
"""
super(AlbertConfig, self).__init__(**kwargs)
self.vocab_size = vocab_size_or_config_json_file
self.embedding_size = embedding_size
self.hidden_size = hidden_size
self.num_hidden_layers = num_hidden_layers
self.num_hidden_groups = num_hidden_groups
self.num_attention_heads = num_attention_heads
self.inner_group_num = inner_group_num
self.hidden_act = hidden_act
self.intermediate_size = intermediate_size
self.hidden_dropout_prob = hidden_dropout_prob
self.attention_probs_dropout_prob = attention_probs_dropout_prob
self.max_position_embeddings = max_position_embeddings
self.type_vocab_size = type_vocab_size
self.initializer_range = initializer_range
self.layer_norm_eps = layer_norm_eps | [
"czr@daddy.com"
] | czr@daddy.com |
10cabdec7e10d144746752e0c1d59045fc66cc76 | 9d1c769fb97c9287fc86cf582ac84bbf9cfdeec8 | /PythonFunctionalProgramming(Advanced)/7.Lambda Expression.py | 8b180d4009858955fcd193726d37957f15f09c82 | [] | no_license | rohan9769/Python-Coding-and-Practice | a0bb1b560e995b2f484b6e6a9cc42e4bac9e84cc | 27da1d4c3d0a1067fb8ce7f937d469bc4a2d2189 | refs/heads/master | 2021-02-10T09:15:17.999508 | 2020-03-22T13:12:44 | 2020-03-22T13:12:44 | 244,368,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | #Lambda Expression - one time anonymous functions
# lambda parameter : action to take on the pararmeter
from functools import reduce
my_list = [1,2,3]
# def multi_by2(i):
# return i*2
def check_odd(i):
return i%2 != 0
def accumulator(acc,i):
print(acc,i)
return acc + i
print(list(map(lambda i: i*2,my_list)))
print(list(filter(lambda i:i%2!=0,my_list)))
| [
"rohannayak2071@gmail.com"
] | rohannayak2071@gmail.com |
5397c4ec035464d3f1523de7b3931fc7aed77c1d | 031d986fedef859c56d862fad71be339eec8365c | /saf/data_utils/prepare_datasets_from_tables.py | c847a0d7361c17c1bf042161a2107ac0bb1888aa | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | pc-seawind/google-research | bcdbf8bebf9a4a60a2407356a6ef3cdafe333070 | a7f09315705b650b75be08370cc4c70edb11e475 | refs/heads/master | 2022-11-13T20:10:47.006299 | 2022-11-04T23:29:14 | 2022-11-04T23:32:35 | 245,136,474 | 0 | 0 | Apache-2.0 | 2020-03-05T10:44:20 | 2020-03-05T10:44:19 | null | UTF-8 | Python | false | false | 10,346 | py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# 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.
"""Prepares training, validation and tests datasets from given tables."""
import gc
from typing import Optional
import numpy as np
import tensorflow as tf
def create_windowed_dataset(
dataset,
len_max_lookback,
forecast_horizon,
num_items = None,
num_parallel_calls=None,
):
"""Creates a dataset with lookback windows given a dataset of timesteps.
Args:
dataset: A tf.data.Dataset where each example is a tensor of shape
(num_timesteps, ...).
len_max_lookback: The length of each lookback window.
forecast_horizon: The length of the future forecast window.
num_items: The number of items in the data. If equal to the number of items
the data will cycle by item and then by time step (e.g. X1[0], X2[0], ...,
X1[1], x2[1], ...). If 0 or None the opposite will occur (e.g. X1[0],
X1[1], ..., x2[0], x2[1], ...).
num_parallel_calls: Number of threads to use for processing and interleaving
results. None is no parallelization, while tf.data.experimental.AUTOTUNE
sets it automatically based on the number of CPUs. If we have a large
number of items this should be set to None to avoid creating too many
threads.
Returns:
A tf.data.Dataset where each example is a tensor of shape (len_max_lookback
+ forecast_horizon, ...), and the dataset iterates over all lookback windows
for all examples (moving forward one step at a time within num_timesteps),
with the windows from each example interleaved. If cycle_by_item_first is
True the same time step for all items will be returned first and then then
the time step will increment. If it is false all the data for item 0 will be
returned first, followed by the data for item 2, etc.
"""
def create_windows(x):
# x is a tensor of shape (num_timesteps, ...). We create a dataset from this
# of length num_timesteps, and the window method then yields a dataset of
# sub datasets each of length len_max_lookback + forecast_horizon for all
# lookback windows. Those sub datasets are batched such that there is a
# single example of shape (len_max_lookback + forecast_horizon, ...) per sub
# dataset, and then the dataset of sub datasets is flat mapped to yield a
# single dataset with a length equal to the number of lookback windows.
len_window = len_max_lookback + forecast_horizon
dataset = tf.data.Dataset.from_tensor_slices(x)
dataset = dataset.window(len_window, shift=1)
dataset = dataset.flat_map(
lambda sub_ds: sub_ds.batch(len_window, drop_remainder=True))
return dataset
# Each example in the original dataset is mapped to a dataset of lookback
# windows. The order in which these are returned depends on the cycle length.
# If the cycle length is 1 all of the timesteps for each item will be returned
# followed by the next item. If the cycle length is equal to the number of
# items then each of the items for one time step will be returned followed by
# other timesteps.
cycle_length = num_items or 1
return dataset.interleave(
create_windows,
cycle_length=cycle_length,
num_parallel_calls=num_parallel_calls)
def return_datasets(
input_tables,
train_start,
train_end,
val_start,
val_end,
test_start,
test_end,
num_static,
forecast_horizon,
len_max_lookback,
target_index,
shuffle_train_items=False,
shuffle_after_windowing=None,
max_train_examples=None,
cycle_items_first=True,
**unused_kwargs,
):
"""Prepares the datasets for training, validation, and testing.
Args:
input_tables: A dictionary of NumPy arrays containing a `time_sequences`
array of shape (num_items, len_labeled_timesteps, num_features), and a
`static` array of shape (num_items, num_static).
train_start: The start index for the training data.
train_end: The end index for the training data.
val_start: The start index for the validation data.
val_end: The end index for the validation data.
test_start: The start index for the test data.
test_end: The end index for the test data.
num_static: The number of static features.
forecast_horizon: The number of time-steps that will be forecast.
len_max_lookback: The maximum number of time-step previous to the prediction
target_index: The index of the target feature in the input_tables.
shuffle_train_items: Whether or not to reproducibly shuffle the training
examples. This will apply to the initial dataset that is of length
num_items prior to the windowing operations.
shuffle_after_windowing: Whether or not to reproducibly shuffle the training
examples after windowing. If True the model will be presented data in a
time-randomized order.
max_train_examples: Maximum number of training examples to yield. By
default, all examples are kept.
cycle_items_first: If true the data will cycle by item and then by time step
(e.g. X1[0], X2[0], ..., X1[1], x2[1], ...). If false, the opposite will
occur (e.g. X1[0], X1[1], ..., x2[0], x2[1], ...).
unused_kwargs: Additional parameters should not be used but are included to
make calling the function with hyper-parameters easier.
Returns:
A tuple of (train tf.data.Dataset, val tf.data.Dataset, test
tf.data.Dataset). Each dataset yields a (time_series_input, static_input,
labels) tuple per example containing data for one item at one timestep,
where time_series_input is a tensor of shape (len_max_lookback,
num_features), static_input is a tensor of shape (num_static,), and labels
is a tensor of shape (forecast_horizon,). All shape values are represented
in the dataset_params dictionary.
"""
del unused_kwargs # Unused but makes passing in hyper-parameters easier.
if shuffle_after_windowing is None:
shuffle_after_windowing = shuffle_train_items
if max_train_examples is None:
max_train_examples = -1
# Data as numpy objects
time_sequences = input_tables["time_sequences"]
static = input_tables["static"]
num_items = time_sequences.shape[0]
if num_items != static.shape[0]:
raise ValueError(
"The first dimension of time_sequences and static data must match")
# Training dataset preparation
def split_tensors(x):
time_series_features = x[:-forecast_horizon, :-num_static]
static_features = x[0, -num_static:]
labels = x[-forecast_horizon:, target_index]
return (time_series_features, static_features, labels)
input_sequence_train = time_sequences[:, train_start:train_end + 1]
input_static_train = np.broadcast_to(
np.expand_dims(static, axis=1),
(static.shape[0], input_sequence_train.shape[1], static.shape[1]))
input_train = np.concatenate([input_sequence_train, input_static_train],
axis=-1)
train_dataset = tf.data.Dataset.from_tensor_slices(input_train)
if shuffle_train_items:
train_dataset = train_dataset.shuffle(
1000, seed=42, reshuffle_each_iteration=True)
windowed_dataset_num_items = num_items if cycle_items_first else 1
# TODO(nyoder): Explore different ways to structure the data and it's impact
# on performance.
train_dataset = create_windowed_dataset(
train_dataset,
len_max_lookback=len_max_lookback,
forecast_horizon=forecast_horizon,
num_items=1,
num_parallel_calls=tf.data.experimental.AUTOTUNE,
)
train_dataset = train_dataset.map(split_tensors)
if shuffle_after_windowing:
train_dataset = train_dataset.shuffle(
1000, seed=42, reshuffle_each_iteration=True)
train_dataset = train_dataset.take(max_train_examples)
del input_sequence_train, input_static_train
gc.collect()
# Validation dataset preparation
# Note that val_start can be smaller than train_end.
# Indeed, choosing val_start = train_end - len_max_lookback - 1 would yield
# that the last prediction date of training is followed by the first
# prediction date of validation.
input_sequence_valid = time_sequences[:, val_start:val_end + 1]
input_static_valid = np.broadcast_to(
np.expand_dims(static, axis=1),
(static.shape[0], input_sequence_valid.shape[1], static.shape[1]))
input_valid = np.concatenate([input_sequence_valid, input_static_valid],
axis=-1)
valid_dataset = tf.data.Dataset.from_tensor_slices(input_valid)
valid_dataset = create_windowed_dataset(
valid_dataset,
len_max_lookback=len_max_lookback,
forecast_horizon=forecast_horizon,
num_items=windowed_dataset_num_items,
)
valid_dataset = valid_dataset.map(split_tensors)
del input_sequence_valid, input_static_valid
gc.collect()
# Testing dataset preparation
# Note that test_start can be smaller than val_end.
# Indeed, choosing test_start = val_end - len_max_lookback - 1 would yield
# that the last prediction date of validation is followed by the first
# prediction date of test.
input_sequence_test = time_sequences[:, test_start:test_end + 1]
input_static_test = np.broadcast_to(
np.expand_dims(static, axis=1),
(static.shape[0], input_sequence_test.shape[1], static.shape[1]))
input_test = np.concatenate([input_sequence_test, input_static_test], axis=-1)
test_dataset = tf.data.Dataset.from_tensor_slices(input_test)
test_dataset = create_windowed_dataset(
test_dataset,
len_max_lookback=len_max_lookback,
forecast_horizon=forecast_horizon,
num_items=windowed_dataset_num_items,
)
test_dataset = test_dataset.map(split_tensors)
del input_sequence_test, input_static_test
gc.collect()
return train_dataset, valid_dataset, test_dataset
| [
"copybara-worker@google.com"
] | copybara-worker@google.com |
9fb3002d0ea931f0ff68f03c99976f9107684ae3 | b71cc253e5acc9a84a5f2521c3be62652c605f71 | /evolutionaryAlgorithmPythonFight.py | 1091d4f9bccb413bcd2696f933a65c815056bdea | [] | no_license | Reandrews96/EvolvingAlgorithms | 78fd9048077d9125ea51ea6ca0a24f74862ae828 | 7a2d6a7a846592a590775319e2ebc22b5f8ccfcb | refs/heads/master | 2021-08-14T06:58:51.942691 | 2017-11-14T22:25:10 | 2017-11-14T22:25:10 | 110,166,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,745 | py | '''Practice using python and design a basic evolutionary algorithm'''
'''Idea: Evolve a dog so that the best balance of protective and friendly happen'''
import random
import math
class EvolvingDog():
def __init__(self, g):
self.genome = g
self.name = self.createName()
def createName(self):
names = ("Phillip", "Zariah", "Russ", "Spot", "Umami", "Ellie", "Buster", "Checkers", "Tom", "'Tom'", "Captain Morgan")
return random.choice(names)
def printTraits(self):
str1 = self.name + " has scores of " + str(self.genome.size) + " for size, "
str2 = str(self.genome.friendly) + " for friendliness, and "
str3 = str(self.genome.protective) + " for protectiveness"
print(str1 + str2 + str3)
class Genome():
def __init__(self, size, friend, prot):
self.size = round(size, 1)
self.friendly = round(friend, 1)
self.protective = round(prot, 1)
def getSize(self):
return self.size
def getFriendly(self):
return self.friendly
def getProtective(self):
return self.protective
def duplicate(self):
return Genome(self.size, self.friendly, self.protective)
def mutate(self):
chance = random.random()
value = random.randrange(1,10,1)/10
if chance < .33:
self.size = self.size + value
if self.size >= 10:
self.size = 10
if self.size <= 0:
self.size = .1
elif chance < .67:
self.friendly = self.friendly + value
if self.friendly >= 10:
self.friendly = 10
if self.friendly <= 0:
self.friendly = .1
else:
self.protective = self.protective + value
if self.protective >= 10:
self.protective = 10
if self.protective <= 0:
self.protective = .1
def crossover(g1, g2):
chance = random.random()
g1 = g1.duplicate()
g2 = g2.duplicate()
if chance < .5:
chanceFlip = random.random()
if chanceFlip < .33:
temp = g1.size
g1.size = g2.size
g2.size = temp
elif chanceFlip < .67:
temp = g1.friendly
g1.friendly = g2.friendly
g2.friendly = temp
else:
temp = g1.protective
g1.protective = g2.protective
g2.protective = temp
return g1, g2
class Evolution():
def __init__(self, trials):
self.trials = trials
self.population = self.generatePopulation()
def generatePopulation(self):
dog1 = EvolvingDog(Genome(random.randrange(1,10,1), random.randrange(1,10,1), random.randrange(1,10,1)))
dog2 = EvolvingDog(Genome(random.randrange(1,10,1), random.randrange(1,10,1), random.randrange(1,10,1)))
dog3 = EvolvingDog(Genome(random.randrange(1,10,1), random.randrange(1,10,1), random.randrange(1,10,1)))
dog4 = EvolvingDog(Genome(random.randrange(1,10,1), random.randrange(1,10,1), random.randrange(1,10,1)))
return [dog1, dog2, dog3, dog4]
def printPopulation(self):
for d in self.population:
d.printTraits()
def calculateFitness(d):
family_pet = math.e/(d.genome.size + .1) + 1.1**d.genome.friendly**-.5*d.genome.size - d.genome.protective**.5*-1*d.genome.size - 14
protect_fam = 1.5**d.genome.protective + d.genome.protective**-1*d.genome.friendly + 1.1**d.genome.size - d.genome.friendly**.5 - 10
return math.sqrt(abs(family_pet + protect_fam))
def evolveGen(self):
self.fightFightFight()
currentBest = 0
currentSbest = 0
bestD = None
sBestD = None
for d in self.population:
fitness = Evolution.calculateFitness(d)
if fitness > currentSbest:
if fitness > currentBest:
currentSbest = currentBest
currentBest = fitness
sBestD = bestD
bestD = d
else:
currentSbest = fitness
sBestD = d
print("Best traits:")
bestD.printTraits()
print("Second best traits:")
sBestD.printTraits()
print()
g1, g2 = Genome.crossover(bestD.genome, sBestD.genome)
g3, g4 = Genome.crossover(bestD.genome, sBestD.genome)
self.population = [EvolvingDog(g1), EvolvingDog(g2), EvolvingDog(g3), EvolvingDog(g4)]
for d in self.population:
chance = random.random()
if chance < .75:
d.genome.mutate()
def fightFightFight(self):
tomInd = -1
tomValue = None
morgInd = -1
morgValue = None
for i in range(len(self.population)):
d = self.population[i]
if d.name == 'Tom' or d.name == "'Tom'":
tomInd = i
tomValue = d
if d.name == 'Captain Morgan':
morgInd = i
morgValue = d
if tomInd >= 0 and morgInd >= 0:
if tomValue.genome.size > morgValue.genome.size:
self.population[morgInd] = EvolvingDog(tomValue.genome.duplicate())
print("Captain Morgan selected out.")
else:
self.population[tomInd] = EvolvingDog(morgValue.genome.duplicate())
print("Tom/'Tom' selected out")
def evolvePopulation(self):
for i in range(self.trials):
print("Gen %s" % i)
self.evolveGen()
self.printPopulation()
myEv = Evolution(10)
myEv.evolvePopulation()
| [
"reandrews@vassar.edu"
] | reandrews@vassar.edu |
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'])
| [
"sbmoond@gmail.com"
] | sbmoond@gmail.com | |
9624379f40864e6b8cf41e5f080b724a3b736615 | 8a81064744318273577ebce67bc3220c47a1378c | /Math/Polar-Coordinates/polar-coordinates.py | 82a341120bce9c992f4c9132541348f194144d06 | [] | no_license | Fahadeidalharbi/HackerRank | e312c77cfccd3aba0a539dff3019f3aae664d7b0 | 7ab8e2de728dd5d7b78003c2da68c3f43c049706 | refs/heads/main | 2023-09-01T00:35:46.472228 | 2021-09-10T11:57:59 | 2021-09-10T11:57:59 | 395,693,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | # import cmath package
import cmath
#read an input value
z = raw_input()
#get phase angle value
pa = cmath.phase(complex(z))
#get modulus r
r = abs(complex(z))
print ("{0}\n{1}".format(r,pa)) | [
"noreply@github.com"
] | noreply@github.com |
83ddd0da28c7fbd5132fec6000ffe09bd0431b62 | 697e69f5b0809d2574435568b49fbeb54e9bd777 | /PreDisulfideBond/SSBOND/extract_unknown_map.py | aa06cd947f66cd97f31c163161ac95a943065629 | [] | no_license | gao666999/SSBONDPredict | e66fb9d6d4bfe67eee06585ca20a47c39cf1d10d | 61d4b0e1143dd23e76f36cd796ec9515e7de557d | refs/heads/master | 2021-06-10T15:08:54.478520 | 2021-04-26T14:14:33 | 2021-04-26T14:14:33 | 166,964,210 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,703 | py | # -*-coding:utf-8-*-
import os
import time
import numpy as np
import sys
from . import ssbond_distance_map as sdm
import math
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
remove_pairs = open('small_ca_remove.txt','w')
def compare_CA_distance(A_CA,B_CA,nameA,nameB):
sumCA = 0
for xyz in range(3):
sumCA += pow((float(A_CA[xyz])-float(B_CA[xyz])), 2)
distance = math.sqrt(sumCA)
if 3<distance < 7:
return True
else:
remove_pairs.write(nameA+','+nameB+':'+str(distance) +'\n')
return False
def exmain_mol_list(mol_list,line):
if mol_list[0]!=[] and mol_list[1]!=[] and mol_list[2]!=[] and mol_list[3]!=[] and mol_list[4]!=[]:
return True,line[17:20].strip()+line[21]
else:
return False,line[17:20].strip()+line[21]
#I have change some program from here
def find_map_element(filename):
mol_map_list = []
flag_mol = False
mol_id = None
mol_id_list = []
mol_name_temp = None
last_mol = None
mol_type_list = []
count = 0
break_count = 0
with open(filename,'r') as f:
for line in f:
break_count += 1
line_tag = line[:6].strip()
if line_tag != 'ATOM':
continue
if line[17:20].strip() == 'PRO':
continue
if line_tag == 'ENDMDL' :
break
residue = line[17:20].strip()+line[21]+line[22:26].strip()
if line_tag == 'ATOM' and mol_name_temp == None:
mol_name_temp = residue
mol_list = [ [] for i in range(5)]
elif line_tag == 'ATOM' and mol_name_temp!=residue:
mol_name_temp = residue
mol_list = [ [] for i in range(5)]
count += 1
if line_tag == 'ATOM':
if line[12:16].strip() == 'N' and mol_list[0] ==[]:
mol_list[0]=[line[30:38].strip(),line[38:46].strip(),line[46:54].strip()]
flag_mol,mol_id = exmain_mol_list(mol_list, line)
elif line[12:16].strip() =='CA' and mol_list[1] == []:
mol_list[1]=[line[30:38].strip(),line[38:46].strip(),line[46:54].strip()]
flag_mol,mol_id = exmain_mol_list(mol_list, line)
elif line[12:16].strip() =='C' and mol_list[2] == []:
mol_list[2]=[line[30:38].strip(),line[38:46].strip(),line[46:54].strip()]
flag_mol,mol_id = exmain_mol_list(mol_list, line)
elif line[12:16].strip() =='O' and mol_list[3] == []:
mol_list[3]=[line[30:38].strip(),line[38:46].strip(),line[46:54].strip()]
flag_mol,mol_id = exmain_mol_list(mol_list, line)
elif line[12:16].strip() =='CB' and mol_list[4] == []:
mol_list[4]=[line[30:38].strip(),line[38:46].strip(),line[46:54].strip()]
flag_mol,mol_id = exmain_mol_list(mol_list, line)
if flag_mol == True:
mol_map_list.append(mol_list)
mol_id_list.append(mol_id)
mol_type_list.append(residue)
flag_mol = False
return mol_map_list,mol_id_list,mol_type_list
def make_ssbond_without_repeat(map_list, map_id, mol_type_list):
if len(map_list) != len(map_id):
# print('map list length is not equal to map id list!')
sys.exit()
possible_ssbond = []
possible_ssbond_id = []
for i in range(len(map_list)-1):
for j in range(i+1,len(map_list)):
if i == j:
continue
elif mol_type_list[i][1:] == mol_type_list[j][1:]:
continue
elif compare_CA_distance(map_list[i][1],map_list[j][1],mol_type_list[i],mol_type_list[j]):
temp = map_list[i][:]
temp.extend(map_list[j])
possible_ssbond.append(temp)
possible_ssbond_id.append((mol_type_list[i],mol_type_list[j]))
else:
continue
return possible_ssbond,possible_ssbond_id
if __name__ == '__main__':
args = sys.argv[1:]
filename = args[0]
name = args[0].split('/')[-1].split('.')[0]
map_list, map_id ,mol_type_list= find_map_element(filename)
print ('length of the map_list',len(map_list))
possible_ssbond, possible_ssbond_id = make_ssbond_without_repeat(map_list, map_id, mol_type_list)
full_distance_map = sdm.convert_to_nxn_map(np.array(possible_ssbond))
np.save('%s_ca_noSG_ssbond_nr.npy'%name,possible_ssbond)
np.save('%s_ca_full_noSG_ssbond_nr.npy'%name,full_distance_map)
np.save('%s_ca_noSG_ssbond_id_nr.npy'%name,possible_ssbond_id)
| [
"2646510513@qq.com"
] | 2646510513@qq.com |
ebaa59145b464c878e084a191fa7c1b024330758 | 7771b8d10535172faaa19720cfcd2ff83b475da6 | /registerlogin/registerlogin/urls.py | 383a00eaa8ed73b83d67563062f42d5fa08f26d7 | [] | no_license | abhishekrawatdotcom/logrepo | 552d06659df9c49863cd092520f6a6deb73bb854 | 2a948dca717f6c1e520e311e448718f9f4ad1d4a | refs/heads/master | 2022-11-26T17:27:42.287984 | 2020-08-09T06:56:57 | 2020-08-09T06:56:57 | 286,184,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | """registerlogin URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from log import views
urlpatterns = [
path('admin/', admin.site.urls),
path('reg/', views.registrationview),
path('log/', views.loginview),
path('wel/', views.welview),
]
| [
"abhishekrawat1606@gmail.com"
] | abhishekrawat1606@gmail.com |
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... | 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', 'foo@bar.com', 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()
| [
"noreply@github.com"
] | noreply@github.com |
5993102db04b63b021c0792c45e33184b33f0e7e | dc3d310934705034ab2f5bc4d3a96f07dab9b48b | /venv/Scripts/pip3.8-script.py | d6438c0257f98b46c7098f54e08d33868c8e9a97 | [] | no_license | createnewdemo/istudy_test | 82197488d9e9fa05e0c6cc91362645fc4555dc1d | 806693f2bee13e3c28571d0d75f6b6ea70acf7a0 | refs/heads/master | 2022-04-19T05:52:53.780973 | 2020-04-17T17:04:10 | 2020-04-17T17:04:10 | 256,507,355 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 400 | py | #!F:\pycharmÁ·Ď°\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__requires__ = 'pip==19.0.3'
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('pip==19.0.3', 'console_scripts', 'pip3.8')()
)
| [
"320783214@qq.com"
] | 320783214@qq.com |
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' | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
a445b35bbefe6208cd66744229ca7fcd7a70689a | aab0dcc5a24bc8a5672b7a3421a2191562897ed4 | /svc/utils/config.py | 51ccd8f326a014613df51d59e5b8a2fb3dc213e9 | [] | no_license | mutabot/magenta | 16488feacf70849419a95ff85efed01e26b83093 | 4ed05d1f42ea840a3e35432b36f526af35d51486 | refs/heads/master | 2020-03-31T17:01:44.697648 | 2018-10-10T10:38:22 | 2018-10-10T10:38:22 | 152,401,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | import json
import logging
from logging import handlers
import os
version = '8.8'
DEFAULT_FORCE_MISS_TIMEOUT = 20
DEFAULT_ORPHANED_TIMEOUT = 3600 #1 hr timeout
DEFAULT_MAX_ERROR_COUNT = 7 # max number of errors before crosspost is disabled
DEFAULT_MAX_RESULTS = 10 # max items to fetch from google
DEFAULT_MAX_RESULTS_MAP = 128 # max items to keep history of
DEFAULT_MIN_TIME_SPACE = 5 # minimum post time-space in minutes
DEFAULT_LOG_LEN = 20
USER_ID_COOKIE_NAME = 'mr_siid_u'
USER_SESSION_COOKIE_NAME = 'mr_siid_t'
def getLogHandler(file_name):
channel = handlers.RotatingFileHandler(file_name, maxBytes=2621440, backupCount=5)
channel.setFormatter(logging.Formatter("%(asctime)s\t%(levelname)s\t[%(message)s]", "%Y-%m-%d %H:%M:%S"))
return channel
def get_logger(log_path, name):
logging.basicConfig(format='%(asctime)s %(message)s', datefmt='%m/%d/%Y %H:%M:%S')
logger = logging.getLogger(__name__)
logger.addHandler(getLogHandler(os.path.join(log_path, name + '.log')))
logger.level = logging.DEBUG
return logger
def load_config(config_path, config_name):
f_meta = file(os.path.join(config_path, config_name), 'rb')
data = json.load(f_meta)
return data
| [
"mshmalko@gmail.com"
] | mshmalko@gmail.com |
6219973cf80b1f4a05868143114e8ab3cf001a14 | bd8eb18e337277eb7392fd7ef45c02f919d9d169 | /read_abc_model_xml.py | 092340db48dad68bdfe741703c0bec8e41012f31 | [] | no_license | ABRG-Models/IzhikevichABC | 284b4bf3313e3e3502a65ed209ecdfd0321a0b59 | 21514a10c212f60653e2fc458f2c570b526726d2 | refs/heads/master | 2021-05-02T09:50:22.510998 | 2019-03-12T16:41:50 | 2019-03-12T16:41:50 | 46,976,232 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,139 | py | # Update the model in modeldir (experiment expt) using the given model
# parameters. Write out new model.xml file and updated experiment.xml
# file.
def read_abc_model_xml (modeldir,expt):
# Init params:
a=0; b=0; c=0; d=0;
A=0; B=0; C=0; T=0;
vpeak=0; vinit=0; uinit=0;
modelxml = modeldir+'/model.xml';
exptxml = modeldir+'/experiment'+repr(expt)+'.xml';
# We have to deal with the namespace used in the model.xml file.
ns = {'UL': 'http://www.shef.ac.uk/SpineMLNetworkLayer',
'LL': 'http://www.shef.ac.uk/SpineMLLowLevelNetworkLayer'}
# Parse the model to find the parameters.
import xml.etree.ElementTree as et
et.register_namespace('', "http://www.shef.ac.uk/SpineMLNetworkLayer")
et.register_namespace('LL', "http://www.shef.ac.uk/SpineMLLowLevelNetworkLayer")
tree = et.parse(modelxml)
root = tree.getroot()
for child in root.findall('./*/LL:Neuron/', ns):
nm = child.get('name')
#print 'Model file ', nm;
if nm == 'a':
a = float(child.find('*').get('value'))
elif nm == 'b':
b = float(child.find('*').get('value'))
elif nm == 'c':
c = float(child.find('*').get('value'))
elif nm == 'd':
d = float(child.find('*').get('value'))
elif nm == 'A':
A = float(child.find('*').get('value'))
elif nm == 'B':
B = float(child.find('*').get('value'))
elif nm == 'C':
C = float(child.find('*').get('value'))
elif nm == 'T':
T = float(child.find('*').get('value'))
elif nm == 'v':
vinit = float(child.find('*').get('value'))
elif nm == 'u':
uinit = float(child.find('*').get('value'))
elif nm == 'Vpeak':
vpeak = float(child.find('*').get('value'))
# Parse the expt data to find the currents and any parameter overrides
tree = et.parse(exptxml)
root = tree.getroot()
for child in root.findall('.//UL:Property', ns):
nm = child.get('name')
#print 'Expt file ', nm
if nm == 'a':
a = float(child.find('UL:FixedValue').get('value'))
elif nm == 'b':
b = float(child.find('UL:FixedValue').get('value'))
elif nm == 'c':
c = float(child.find('UL:FixedValue').get('value'))
elif nm == 'd':
d = float(child.find('UL:FixedValue').get('value'))
elif nm == 'A':
A = float(child.find('UL:FixedValue').get('value'))
elif nm == 'B':
B = float(child.find('UL:FixedValue').get('value'))
elif nm == 'C':
C = float(child.find('UL:FixedValue').get('value'))
elif nm == 'T':
T = float(child.find('UL:FixedValue').get('value'))
elif nm == 'v':
vinit = float(child.find('UL:FixedValue').get('value'))
elif nm == 'u':
uinit = float(child.find('UL:FixedValue').get('value'))
elif nm == 'Vpeak':
vpeak = float(child.find('UL:FixedValue').get('value'))
return a, b, c, d, A, B, C, T, vpeak, vinit, uinit
| [
"seb.james@sheffield.ac.uk"
] | seb.james@sheffield.ac.uk |
34593ba8e2e23d0c3ef78074001d6ce7affcaec9 | 8821dd0a82a20a6eb0436bb7f03c1467681a0f83 | /site/python.py | 4366801c21552bad93f66d21b83a7908b63ce007 | [] | no_license | nail8787/webserver | dcadb96da3f8a79f87ee37ca06e94ad52141148f | 6af2a16a16f77b957d61c9eed6a3fc787acd15ba | refs/heads/master | 2023-06-25T17:09:09.791922 | 2021-07-30T12:32:04 | 2021-07-30T12:32:04 | 391,057,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | #!/usr/local/bin/python3
import os
print("Status: 200\r\nContent-Type: text/html\r\n\r\n<font size=+10>Environment</font><br>")
for param in os.environ.keys():
print("<b>%20s</b>: %s<br>" % (param, os.environ[param])) | [
"tcassia@student.21-school.ru"
] | tcassia@student.21-school.ru |
0bc822e7ed7ad904e02689f9279244f329d6accf | 46d2cab058ebdfabd08aa30ec5e0eb306c783711 | /web_flask/3-python_route.py | 426e07b3fde7ca60e2a0711e46ea0f321ba02cda | [] | no_license | ntujvang/AirBnB_clone_v2 | d7c7f6a7e9383e737ca352fdd300f7f5fcb72063 | 0de6837c8f23e8f0920e3d70f5939ab667aeb8e4 | refs/heads/master | 2021-01-22T22:13:16.483116 | 2017-03-30T22:44:25 | 2017-03-30T22:44:25 | 85,519,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | #!/usr/bin/python3
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_hbnb():
return "Hello HBNB!"
@app.route('/hbnb')
def hbnb():
return "HBNB!"
@app.route('/c/<text>')
def c(text):
text = text.replace('_', ' ')
return "C {}".format(text)
@app.route('/python/')
@app.route('/python/<text>')
def python(text="is_cool"):
text = text.replace('_', ' ')
return "Python {}".format(text)
if __name__ == '__main__':
app.run(host='0.0.0.0', port='5000')
| [
"96@holbertonschool.com"
] | 96@holbertonschool.com |
a68b39719d089be7385ebd172ef646a2da457ca0 | e7756d6669b02d2cec07e48025b8a827e9d58906 | /friend_sex.py | 61f99af4451408336704625e002d9f816efd00f7 | [] | no_license | morningrainzhang/itchat | 749a4836d14aa40cae7f207ae995d49dea01f62e | ea913963ad3fcc1cb0ce3faa7bbc6bd9e77f0364 | refs/heads/master | 2021-01-23T15:27:33.247501 | 2017-09-07T08:18:47 | 2017-09-07T08:18:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | py | #-*- coding:utf-8 -*-
#! /usr/local/bin/python
import sys
reload(sys)
sys.setdefaultencoding('utf8')
import itchat
# 使用echarts,加上这段
from echarts import Echart, Legend, Pie
itchat.login()
friends = itchat.get_friends(update=True)[0:]
# 初始化计数器,有男有女,当然,有些人是不填的
male = female = other = 0
# 遍历这个列表,列表里第一位是自己,所以从"自己"之后开始计算
# 1表示男性,2女性
for i in friends[1:]:
sex = i["Sex"]
if sex == 1:
male += 1
elif sex == 2:
female += 1
else:
other += 1
# 总数算上,好计算比例啊~
total = len(friends[1:])
print "男性好友:%.2f%%" % (float(male) / total * 100)
print "女性好友:%.2f%%" % (float(female) / total * 100)
print "其他:%.2f%%" % (float(other) / total * 100)
chart = Echart(u'%s的微信好友性别比例' % (friends[0]['NickName']), 'from WeChat')
chart.use(Pie('WeChat',
[{'value': male, 'name': u'男性 %.2f%%' % (float(male) / total * 100)},
{'value': female, 'name': u'女性 %.2f%%' % (float(female) / total * 100)},
{'value': other, 'name': u'其他 %.2f%%' % (float(other) / total * 100)}],
radius=["50%", "70%"]))
chart.use(Legend(["male", "female", "other"]))
del chart.json["xAxis"]
del chart.json["yAxis"]
chart.plot()
| [
"799842527@qq.com"
] | 799842527@qq.com |
e3fc0f6d05b48298cd8ba5075957f921ecaf0b19 | 0cdf2767a68fcdd5ae6aad48933985458e3a642c | /modules/server-side/model/servers.py | 7cc89bdff11813ca8b5b5ec80050ece6da5f638e | [] | no_license | hyili/SendSwitch | 2400725c34be68727c16462470a4fee852e99671 | 5bbb76281e2a250ac6d8526d10b9e11097217dc8 | refs/heads/master | 2018-11-03T23:40:55.192596 | 2018-08-27T23:21:44 | 2018-08-27T23:21:44 | 115,926,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,581 | py | #!/usr/bin/env python3
import datetime
import pymysql
import sqlalchemy
from sqlalchemy import create_engine, and_, or_
from sqlalchemy.orm import sessionmaker
from model.server import Server
class Servers():
def __init__(self, logger, db_host, db_port, db_name, db_user, db_passwd):
# create sqlalchemy ORM engine
self.engine = create_engine("mysql+pymysql://{0}:{1}@{2}:{3}/{4}".\
format(db_user, db_passwd, db_host, db_port, db_name), pool_recycle=3600)
self.sessionmaker = sessionmaker(bind=self.engine)
# try to connect to mysql
self.engine.connect()
# logger setup
self.logger = logger
def Debug(self, msg):
self.logger.info(" [*] {0}".format(msg))
def add(self, sid, hostname, port, source=True, dest=True, begin=False, end=False):
if not (sid and hostname and port):
return None
server = self.get(sid)
# if server exists
if server:
return None
server = Server(sid, hostname, port, source=source, destination=dest, begin=begin, end=end, activate=True)
session = self.sessionmaker()
try:
session.add(server)
session.commit()
session.refresh(server)
except Exception as e:
session.rollback()
server = None
self.Debug("Something wrong happened during add(), reason: {0}.".format(e))
session.close()
return server
def get(self, sid):
if not sid:
return None
server = None
session = self.sessionmaker()
try:
server = session.query(Server).filter(Server.sid == sid).one()
except sqlalchemy.orm.exc.MultipleResultsFound as e:
raise Exception("Database record error. {0}".format(e))
except sqlalchemy.orm.exc.NoResultFound as e:
server = None
except Exception as e:
server = None
self.Debug("Something wrong happened during get(), reason: {0}.".format(e))
session.close()
return server
def getFromId(self, id):
if not id:
return None
server = None
session = self.sessionmaker()
try:
server = session.query(Server).filter(Server.id == id).one()
except sqlalchemy.orm.exc.MultipleResultsFound as e:
raise Exception("Database record error. {0}".format(e))
except sqlalchemy.orm.exc.NoResultFound as e:
server = None
except Exception as e:
server = None
self.Debug("Something wrong happened during getFromId(), reason: {0}.".format(e))
session.close()
return server
def delete(self, id):
if not id:
return False
ret = True
session = self.sessionmaker()
try:
session.query(Server).filter(Server.id==id).delete()
session.commit()
except Exception as e:
session.rollback()
ret = False
self.Debug("Something wrong happened during delete(), reason: {0}.".format(e))
session.close()
return ret
def getList(self):
servers = None
session = self.sessionmaker()
try:
servers = session.query(Server).all()
except sqlalchemy.orm.exc.NoResultFound as e:
servers = list()
except Exception as e:
servers = None
self.Debug("Something wrong happened during getList(), reason: {0}.".format(e))
session.close()
return servers
def getSourceList(self):
servers = None
session = self.sessionmaker()
try:
servers = session.query(Server).filter(Server.source == True).all()
except sqlalchemy.orm.exc.NoResultFound as e:
servers = list()
except Exception as e:
servers = None
self.Debug("Something wrong happened during getSourceList(), reason: {0}.".format(e))
session.close()
return servers
def getDestList(self):
servers = None
session = self.sessionmaker()
try:
servers = session.query(Server).filter(Server.destination == True).all()
except sqlalchemy.orm.exc.NoResultFound as e:
servers = list()
except Exception as e:
servers = None
self.Debug("Something wrong happened during getDestList(), reason: {0}.".format(e))
session.close()
return servers
| [
"hyili@cs.nctu.edu.tw"
] | hyili@cs.nctu.edu.tw |
6cc6b0a21d006115d4c4dd7e24fe354b57ef4966 | e6cc0a5a842863076269a69802cdfedb3e489599 | /bijibiji/bijitags/file_info_box.py | 5addf710189ce2c3d13523b41686bd3413f05576 | [
"MIT"
] | permissive | ahui2016/bijibiji-project | 34d9d790c0aa33187cac36b5938618024fd33a9d | bae2f5b3c457661734559d318fcf08118de1e036 | refs/heads/master | 2020-03-25T17:50:07.203158 | 2018-08-13T13:40:42 | 2018-08-13T13:40:42 | 143,998,397 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | from typing import Optional
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QPixmap
from PyQt5.QtWidgets import QGroupBox, QListWidget, QLabel, QFrame, \
QListWidgetItem, QVBoxLayout
from ..bijidb.bijidatabase import BijiDatabase
# noinspection PyArgumentList
class FileInfoBox(QGroupBox):
def __init__(self, parent=None):
super().__init__(parent)
self.db = BijiDatabase
self.preview_width = 200
self.preview_margin = 50
self.setTitle('File info')
self.file_tag_list = QListWidget()
self.file_tag_list.setFixedWidth(
self.preview_width + self.preview_margin)
self.file_preview = QLabel('Preview')
self.file_preview.setFixedSize(
self.preview_width + self.preview_margin,
self.preview_width + self.preview_margin)
self.file_preview.setFrameStyle(QFrame.Sunken | QFrame.StyledPanel)
self.file_preview.setAlignment(Qt.AlignCenter)
layout = QVBoxLayout()
layout.addWidget(self.file_preview)
layout.addWidget(self.file_tag_list)
self.setLayout(layout)
self.setFixedWidth(self.preview_width + self.preview_margin + 20)
def update_file_info(self, item: Optional[QListWidgetItem]) -> None:
self.file_tag_list.clear()
if item is None:
self.file_preview.setText('Preview')
return
file = item.text()
preview = QPixmap(file)
if preview.isNull():
self.file_preview.setText(f'{file}')
else:
thumb = preview.scaled(
self.preview_width, self.preview_width, Qt.KeepAspectRatio)
self.file_preview.setPixmap(thumb)
for tag in self.db.get_tags(file):
item = QListWidgetItem(self.file_tag_list)
item.setText(tag)
| [
"ahui.2015@icloud.com"
] | ahui.2015@icloud.com |
1cf6739cbd9ce61a8a3fd37e01aa8bb29226b441 | ee91e346206cb6ae9a894e54965dab5c9b300a73 | /tasks/des.py | de8f8ba9f8d0d020869ed521d46f0f57b2179ba1 | [] | no_license | finzellt/novae | a182c6bd9c95e9c98244b3b4ba16997fc6667838 | 89dd657a71da1dc7a5a905548a28c9168c5a3c25 | refs/heads/master | 2021-01-19T06:41:37.460926 | 2020-06-23T12:46:32 | 2020-06-23T12:46:32 | 63,976,969 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,384 | py | """Import tasks for the Dark Energy Survey.
"""
import json
import os
from astrocats.catalog.utils import pbar
from bs4 import BeautifulSoup
from ..supernova import SUPERNOVA
def do_des(catalog):
task_str = catalog.get_current_task_str()
des_url = 'https://portal.nersc.gov/des-sn/'
des_trans_url = des_url + 'transients/'
ackn_url = ('http://www.noao.edu/'
'noao/library/NOAO_Publications_Acknowledgments.html'
'#DESdatause')
# Make sure there is aa trailing slash
des_path = os.path.join(catalog.get_current_task_repo(), 'DES', '')
html = catalog.load_cached_url(des_trans_url, des_path + 'transients.html')
if not html:
return
bs = BeautifulSoup(html, 'html5lib')
trs = bs.find('tbody').findAll('tr')
for tri, tr in enumerate(pbar(trs, task_str)):
name = ''
# source = ''
if tri == 0:
continue
tds = tr.findAll('td')
for tdi, td in enumerate(tds):
if tdi == 0:
name = catalog.add_entry(td.text.strip())
if tdi == 1:
(ra, dec) = [xx.strip() for xx in td.text.split('\xa0')]
if tdi == 6:
atellink = td.find('a')
if atellink:
atellink = atellink['href']
else:
atellink = ''
sources = [catalog.entries[name]
.add_source(url=des_url, name='DES Bright Transients',
acknowledgment=ackn_url)]
if atellink:
sources.append(
catalog.entries[name]
.add_source(name='ATel ' + atellink.split('=')[-1],
url=atellink))
sources += [catalog.entries[name]
.add_source(bibcode='2012ApJ...753..152B'),
catalog.entries[name].add_source(
bibcode='2015AJ....150..150F'),
catalog.entries[name].add_source(
bibcode='2015AJ....150...82G'),
catalog.entries[name]
.add_source(bibcode='2015AJ....150..172K')]
sources = ','.join(sources)
catalog.entries[name].add_quantity(SUPERNOVA.ALIAS, name, sources)
catalog.entries[name].add_quantity(SUPERNOVA.RA, ra, sources)
catalog.entries[name].add_quantity(SUPERNOVA.DEC, dec, sources)
html2 = catalog.load_cached_url(
des_trans_url + name, des_path + name + '.html')
if not html2:
continue
lines = html2.splitlines()
for line in lines:
if 'var data = ' in line:
jsontxt = json.loads(line.split('=')[-1].rstrip(';'))
for ii, band in enumerate(jsontxt['band']):
upl = True if float(jsontxt['snr'][ii]) <= 3.0 else ''
(catalog.entries[name]
.add_photometry(time=jsontxt['mjd'][ii],
magnitude=jsontxt['mag'][ii],
e_magnitude=jsontxt['mag_error'][ii],
band=band, observatory='CTIO',
telescope='Blanco 4m', instrument='DECam',
upperlimit=upl, source=sources))
catalog.journal_entries()
return
| [
"chimera31@gmail.com"
] | chimera31@gmail.com |
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()
| [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
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") | [
"you@example.com"
] | you@example.com |
4cc0372d53144f67c7c7f993662001c28b11caa5 | 63515d55210bf60e51b78f4dc24f7036c2ede564 | /home/apps/vendors/migrations/0005_auto_20141018_2300.py | 96ce64794fcb9f22b5ba697dd63170f337bfc8d4 | [] | no_license | powersurge360/home | bf529f5c958282771ad159981391f26984d6f064 | 86d9ebeaf1476eb741491c1ce2593ee0ab04dd57 | refs/heads/master | 2021-01-10T19:48:40.156389 | 2015-02-22T17:37:13 | 2015-02-22T17:37:13 | 24,743,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('vendors', '0004_auto_20141004_0426'),
]
operations = [
migrations.RemoveField(
model_name='question',
name='vendor',
),
migrations.DeleteModel(
name='Question',
),
]
| [
"kdiale@nerdery.com"
] | kdiale@nerdery.com |
c81bfda8acf49fe0d759cbabbad59b4705698850 | 243e285ea43f08455608d028d463668aa695d2af | /data/libraries/fileLib.py | c1723363bd79e0e48cb48ae4df7af9b1043bb50d | [] | no_license | danielbauman1010/pantel | 7b88f882c029eba9ca4a569b21dbe828440d2171 | 0edb84bf58acabdf987a2b81bfba550023fb753f | refs/heads/master | 2021-01-20T07:10:47.220939 | 2017-06-27T22:29:54 | 2017-06-27T22:29:54 | 89,973,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | import os
import sys
def save(filename, data):
fw = open(filename,'w')
for l in data:
fw.write('{}: {}\n'.format(l,data[l]))
fw.close()
def load(filename):
if os.path.isfile(filename):
fr = open(filename,'r')
lines = fr.readlines()
fr.close()
data = {}
for rawl in lines:
rawl = ''.join(rawl.split('\n'))
l = rawl.split(': ')
if len(l)>1:
data[l[0]] = l[1]
return data
else:
return {}
def read(filename):
if os.path.isfile(filename):
fr = open(filename,'r')
lines = fr.readlines()
fr.close()
data = []
for l in lines:
l = ''.join(l.split('\n'))
data.append(l)
return data
else:
return []
def write(filename,data):
fw = open(filename,'w')
for l in data:
fw.write('{}\n'.format(l))
fw.close()
if len(sys.argv) < 2:
print 'Arguments needed to run.'
elif sys.argv[1] == 'read':
if len(sys.argv)<3:
print 'read what?'
else:
lines = read(' '.join(sys.argv[2:]))
for l in lines:
print l
elif sys.argv[1] == 'write':
if len(sys.argv)<4:
print 'Write what and to where?'
else:
splitedargs = ' '.join(sys.argv[2:]).split(' : ')
if len(splitedargs) < 2:
print 'Write to where?'
else:
filename = splitedargs[0]
text = ' : '.join(splitedargs[1:]).split(';')
write(filename,text)
elif sys.argv[1] == 'install':
currcommands = load('../commands.data')
currcommands['read $file'] = 'run python data/libraries/fileLib.py read $file'
currcommands['write $text to $file'] = 'run python data/libraries/fileLib.py write $file : $text'
currcommands['write {text} to $file'] = 'run python data/libraries/fileLib.py write $file : {text}'
currcommands['show files'] = 'run ls'
currcommands['show files in $dir'] = 'run ls $dir'
save('../commands.data',currcommands)
| [
"danielbauman1010@gmail.com"
] | danielbauman1010@gmail.com |
d058b4b2d0b38dd0a96437bc708d5dc8c40ce2b2 | 69941b0f4c0c5dd1a362ccc52639453566fb8eb7 | /1주차-자료구조/정렬-LV2-HIndex/jisu.py | 118c49898366019ccbf0ba4c840085d08e34bbf6 | [] | no_license | kms0524/MondaySinchon | fd7827a95729a68c1ebe0129a9e4d23e2c80ff6c | 7ec0008add7cecda859be835d6d1d45602c3d96a | refs/heads/master | 2022-12-17T15:10:15.517855 | 2020-08-31T13:02:20 | 2020-08-31T13:02:20 | 275,516,983 | 0 | 0 | null | 2020-06-28T05:52:41 | 2020-06-28T05:52:40 | null | UTF-8 | Python | false | false | 1,330 | py | def solution(citations):
answer = 0
# 역방향 정렬
citations.sort(reverse=True)
# 인용 수를 계산하기 위해 2차원으로 확장
calc_h = [[j, 0] for j in citations]
# 순서대로 인 횟수를 하나씩 늘려줌 인용
for i in range(len(citations)):
calc_h[i][1] += i + 1
# H-index를 계산, citation에 H-index 저장
for i in range(len(citations)):
if calc_h[i - 1][0] > calc_h[i - 1][1]:
citations[i - 1] = calc_h[i - 1][1]
# 최대 H-index 찾기 위해 정방향 정렬
citations.sort()
# answer에 저장
answer = citations[len(citations) - 1]
return answer
'''
테스트 1 〉 통과 (0.29ms, 10.7MB)
테스트 2 〉 통과 (0.52ms, 10.8MB)
테스트 3 〉 통과 (0.45ms, 10.6MB)
테스트 4 〉 통과 (0.42ms, 10.7MB)
테스트 5 〉 통과 (0.47ms, 10.8MB)
테스트 6 〉 통과 (0.53ms, 10.7MB)
테스트 7 〉 통과 (0.18ms, 10.8MB)
테스트 8 〉 통과 (0.06ms, 10.8MB)
테스트 9 〉 통과 (0.10ms, 10.7MB)
테스트 10 〉 통과 (0.34ms, 10.8MB)
테스트 11 〉 통과 (0.60ms, 10.8MB)
테스트 12 〉 통과 (0.10ms, 10.8MB)
테스트 13 〉 통과 (0.56ms, 10.8MB)
테스트 14 〉 통과 (0.49ms, 10.7MB)
테스트 15 〉 통과 (0.54ms, 10.7MB)
테스트 16 〉 통과 (0.04ms, 10.7MB)
''' | [
"jisus@Jisusui-MacBookPro.local"
] | jisus@Jisusui-MacBookPro.local |
8a2c125f1f09dd69bd4880d2eea9a5d9c861e422 | 80c3953b1c1abded9ac493d93fc599d99521a00e | /beakerx_tabledisplay/beakerx_tabledisplay/tableitems.py | 061fd254d20a878179f5c38ac7ff3d186a0459bf | [
"Apache-2.0"
] | permissive | martinRenou/beakerx_tabledisplay | c9733d1564caa7de2d5500069456d1d068524c72 | 3377f7903381b76e9d4166a0ea7ec6ba35a35bce | refs/heads/master | 2023-04-22T12:03:02.076437 | 2021-02-15T14:22:28 | 2021-02-15T14:22:28 | 321,307,309 | 0 | 0 | Apache-2.0 | 2021-01-15T08:46:37 | 2020-12-14T10:07:14 | TypeScript | UTF-8 | Python | false | false | 4,556 | py | # Copyright 2017 TWO SIGMA OPEN SOURCE, 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.
from datetime import timezone
from enum import Enum
from dateutil.parser import parse
class TableDisplayAlignmentProvider(Enum):
CENTER_ALIGNMENT = "C"
LEFT_ALIGNMENT = "L"
RIGHT_ALIGNMENT = "R"
class TimeUnit(Enum):
NANOSECONDS = "NANOSECONDS"
MICROSECONDS = "MICROSECONDS"
MILLISECONDS = "MILLISECONDS"
SECONDS = "SECONDS"
MINUTES = "MINUTES"
DAYS = "DAYS"
HOURS = "HOURS"
class ColumnType(Enum):
String = "string"
Double = "double"
Time = "time"
Integer = "integer"
Boolean = "boolean"
class DateType:
type = "Date"
def __init__(self, value, tz=None):
self.timestamp = parse(str(value)).replace(tzinfo=timezone.utc).timestamp() * 1000
self.tz = tz
class DataBarsRenderer:
type = "DataBars"
includeText = True
def __init__(self, x):
self.includeText = x
class DecimalStringFormat:
type = "decimal"
def __init__(self, min=4, max=4):
self.minDecimals = min
self.maxDecimals = max
class TimeStringFormat:
type = "time"
def __init__(self, unit, human_friendly=False):
self.unit = unit
self.humanFriendly = human_friendly
class ImageFormat:
type = "image"
def __init__(self, **kwargs):
if 'width' in kwargs:
self.width = kwargs.get('width')
class HTMLFormat:
type = "html"
def __init__(self, **kwargs):
if 'width' in kwargs:
self.width = kwargs.get('width')
class HighlightStyle(Enum):
FULL_ROW = "FULL_ROW"
SINGLE_COLUMN = "SINGLE_COLUMN"
class RowsToShow(Enum):
SHOW_10 = 10
SHOW_25 = 25
SHOW_50 = 50
SHOW_100 = 100
SHOW_ALL = -1
class Highlighter:
pass
class HeatmapHighlighter(Highlighter):
type = "HeatmapHighlighter"
def __init__(self, colName, style, minVal, maxVal, minColor, maxColor):
self.colName = colName
self.style = style.name
self.minVal = minVal
self.maxVal = maxVal
self.minColor = minColor
self.maxColor = maxColor
class UniqueEntriesHighlighter(Highlighter):
type = "UniqueEntriesHighlighter"
def __init__(self, colName, style=HighlightStyle.FULL_ROW):
self.colName = colName
self.style = style.value
class TableDisplayCellRenderer:
@staticmethod
def getDataBarsRenderer(include_text=True):
return DataBarsRenderer(include_text)
class TableDisplayStringFormat:
@staticmethod
def getTimeFormat(unit=TimeUnit.MILLISECONDS, human_friendly=False):
return TimeStringFormat(unit, human_friendly)
@staticmethod
def getDecimalFormat(min, max):
return DecimalStringFormat(min, max)
@staticmethod
def getHTMLFormat(**kwargs):
return HTMLFormat(**kwargs)
@staticmethod
def getImageFormat(**kwargs):
return ImageFormat(**kwargs)
class TableDisplayCellHighlighter:
FULL_ROW = HighlightStyle.FULL_ROW
SINGLE_COLUMN = HighlightStyle.SINGLE_COLUMN
defaultStyle = HighlightStyle.FULL_ROW
@staticmethod
def getHeatmapHighlighter(colName, style=defaultStyle, minVal=None, maxVal=None, minColor=None, maxColor=None):
return HeatmapHighlighter(colName, style, minVal, maxVal, minColor, maxColor)
@staticmethod
def getUniqueEntriesHighlighter(colName, style=defaultStyle):
return UniqueEntriesHighlighter(colName, style)
class ThreeColorHeatmapHighlighter(HeatmapHighlighter):
type = "ThreeColorHeatmapHighlighter"
def __init__(self, colName, style, minVal, midVal, maxVal, minColor, midColor, maxColor):
self.midColor = midColor
self.midVal = midVal
self.colName = colName
self.style = style.name
self.minVal = minVal
self.maxVal = maxVal
self.minColor = minColor
self.maxColor = maxColor
def getMidVal(self):
return self.midVal
def getMidColor(self):
return self.midColor
| [
"piorek82@gmail.com"
] | piorek82@gmail.com |
926d7ee523b67111b79962e3629ff43076bca7d8 | cca3251c362bbdcd7033c4839466c6afd2c1bbbb | /src/chap13-Serverless/cdk-lambda-dynamodb-fargate/lambda/list.py | dd5fbab39a668d1cf19fd74e0e14f5c178c67f39 | [
"MIT"
] | permissive | paiml/python_devops_book | 6dec6929b22042a640b041674b9a07ae271e0262 | 0c8f543aa243d1484deb7f01ffe6876a4176d376 | refs/heads/master | 2023-08-17T01:21:37.838933 | 2023-08-10T12:05:22 | 2023-08-10T12:05:22 | 185,512,695 | 444 | 313 | MIT | 2020-07-20T18:26:14 | 2019-05-08T02:26:06 | Jupyter Notebook | UTF-8 | Python | false | false | 423 | py | import json
import os
import decimalencoder
import boto3
dynamodb = boto3.resource('dynamodb')
def list(event, context):
table = dynamodb.Table(os.environ['DYNAMODB_TABLE'])
# fetch all todos from the database
result = table.scan()
# create a response
response = {
"statusCode": 200,
"body": json.dumps(result['Items'], cls=decimalencoder.DecimalEncoder)
}
return response
| [
"grig@gheorghiu.net"
] | grig@gheorghiu.net |
977fdb31b90d1a1a16ae81fee578ea93f0981a15 | 67a869cc300a6fa06adc78ac7fb9ffba740ab147 | /TaxiFareModel/data.py | a3d3a80281ddd65f77556af0e36632a8d71715af | [] | no_license | PhilippeLorang/Taxifaremodel | ff0d453b716b384c49c8f938dc0e6ebf25a83e60 | 69eff0561ea37c54557710ee1deee93e5987af51 | refs/heads/master | 2023-06-09T10:48:16.635949 | 2021-06-23T06:09:21 | 2021-06-23T06:09:21 | 379,496,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | import pandas as pd
AWS_BUCKET_PATH = "s3://wagon-public-datasets/taxi-fare-train.csv"
def get_data(nrows=10_000):
'''returns a DataFrame with nrows from s3 bucket'''
df = pd.read_csv(AWS_BUCKET_PATH, nrows=nrows)
return df
def clean_data(df, test=False):
df = df.dropna(how='any', axis='rows')
df = df[(df.dropoff_latitude != 0) | (df.dropoff_longitude != 0)]
df = df[(df.pickup_latitude != 0) | (df.pickup_longitude != 0)]
if "fare_amount" in list(df):
df = df[df.fare_amount.between(0, 4000)]
df = df[df.passenger_count < 8]
df = df[df.passenger_count >= 0]
df = df[df["pickup_latitude"].between(left=40, right=42)]
df = df[df["pickup_longitude"].between(left=-74.3, right=-72.9)]
df = df[df["dropoff_latitude"].between(left=40, right=42)]
df = df[df["dropoff_longitude"].between(left=-74, right=-72.9)]
return df
if __name__ == '__main__':
df = get_data(nrows=10000)
| [
"phlorang@gmail.com"
] | phlorang@gmail.com |
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)
| [
"tpike3@gmu.edu"
] | tpike3@gmu.edu |
27a72d38cf80b828cc8fae939f0613e9c8a80276 | e79b8681979d4ced0b438e64281034d4bcec033a | /potraits/admin.py | 4983acf6219ebee62b22a069878dc01ca9aa0d0f | [] | no_license | angryiceking/myartasia | 2a670961739540470d157d43dfc7b3df17028302 | 0fd97cf1e6b0ce83ae4603ecb300f29a6da51d2d | refs/heads/master | 2022-12-12T01:32:07.760522 | 2018-10-29T06:45:28 | 2018-10-29T06:45:28 | 153,980,241 | 0 | 0 | null | 2022-12-08T02:26:22 | 2018-10-21T06:33:19 | Python | UTF-8 | Python | false | false | 92 | py | from django.contrib import admin
from .models import Potrait
admin.site.register(Potrait) | [
"carl.almayda@infoshiftinc.com"
] | carl.almayda@infoshiftinc.com |
94cb65ecbe556724b4b45f899bf6e609754de8a4 | 79454aed4ed411e4583f05c638a783f434d937ba | /test/test_flake8.py | df69792993425cd67c3b19bf97cb77b0b9851058 | [
"Apache-2.0"
] | permissive | aws-ros-dev/colcon-ros-bundle | be76325d4a7ac41802616bf8ad53f244a3c99819 | 93aba793bf25c72adfe46d7a689dac35cc5c6b83 | refs/heads/master | 2021-06-18T11:41:12.543420 | 2019-05-13T13:14:06 | 2019-05-13T13:14:06 | 189,069,507 | 0 | 0 | Apache-2.0 | 2019-05-28T17:01:29 | 2019-05-28T17:01:28 | null | UTF-8 | Python | false | false | 1,384 | py | # Copyright 2016-2018 Dirk Thomas
# Licensed under the Apache License, Version 2.0
import logging
from pathlib import Path
import sys
from flake8 import LOG
from flake8.api.legacy import get_style_guide
# avoid debug and info messages from flake8 internals
LOG.setLevel(logging.WARN)
def test_flake8():
style_guide = get_style_guide(
extend_ignore=['D100', 'D104'],
show_source=True,
)
style_guide_tests = get_style_guide(
extend_ignore=[
'D100', 'D101', 'D102', 'D103', 'D104', 'D105', 'D107'],
show_source=True,
)
stdout = sys.stdout
sys.stdout = sys.stderr
# implicitly calls report_errors()
report = style_guide.check_files([
str(Path(__file__).parents[1] / 'colcon_ros_bundle'),
])
report_tests = style_guide_tests.check_files([
str(Path(__file__).parents[1] / 'test'),
])
sys.stdout = stdout
total_errors = report.total_errors + report_tests.total_errors
if total_errors: # pragma: no cover
# output summary with per-category counts
print()
report._application.formatter.show_statistics(report._stats)
print(
'flake8 reported {total_errors} errors'
.format_map(locals()), file=sys.stderr)
assert not report.total_errors, \
'flake8 reported {total_errors} errors'.format_map(locals())
| [
"matmur@amazon.com"
] | matmur@amazon.com |
deb3fc7479ece5feebd07df1d053c11ddfc33124 | 150dc0ddb2e002415b7dec06ddaadc5467d6a6fd | /app/admin.py | ef3a5ed33667ab52856174a7c101ae9e58e475a3 | [] | no_license | EstebanSerranoV/turismoReal | d59daf82fa409c40e78652de1c6bee2863c3d57b | d5e8597fa9126ce612f0a08eec7c27d8b9550d24 | refs/heads/main | 2023-08-18T11:50:01.154818 | 2021-10-23T18:02:36 | 2021-10-23T18:02:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | from django.contrib import admin
from .models import Administrador, Cargo, CheckIn, CheckOut, Cliente, Comuna, Conductor, Departamento, Direccion, Edificio,\
Funcionario, InformeGanancia, InformeReserva, Inventario, Mantenimeinto, Provincia, Region, Reserva, Rol, ServicioExtra,\
ServicioTransporte, Tour, Usuario, Vehiculo, Acompaniante, Contacto
from .forms import DepartamentoForm
# Register your models here.
class DepartamentoAdmin(admin.ModelAdmin):
form = DepartamentoForm
admin.site.register(Administrador)
admin.site.register(Cargo)
admin.site.register(CheckIn)
admin.site.register(CheckOut)
admin.site.register(Cliente)
admin.site.register(Comuna)
admin.site.register(Conductor)
admin.site.register(Departamento)
admin.site.register(Direccion)
admin.site.register(Edificio)
admin.site.register(Funcionario)
admin.site.register(InformeReserva)
admin.site.register(InformeGanancia)
admin.site.register(Inventario)
admin.site.register(Mantenimeinto)
admin.site.register(Provincia)
admin.site.register(Region)
admin.site.register(Reserva)
admin.site.register(Rol)
admin.site.register(ServicioExtra)
admin.site.register(ServicioTransporte)
admin.site.register(Usuario)
admin.site.register(Vehiculo)
admin.site.register(Acompaniante)
admin.site.register(Tour)
admin.site.register(Contacto)
| [
"es.serrano@duocuc.cl"
] | es.serrano@duocuc.cl |
c1ad60621514aff6e22d3b6e333419510d3a9b3f | b63705bed525a2cc7514a7d5ba741a56eda0ea51 | /Moduł 1/Wprowadzenie do języka Python - Praca Domowa - Dzień 2/ex_5.py | 75a4a2e54dbc58b27cdffa5514d3285a19ba2a94 | [] | no_license | mborowski1/Python-Developer-2021 | 0fedcb15972f5b7c5542f7972ed420838e345414 | 712a70a222c646569e9de4dccdfe35d0cb611239 | refs/heads/main | 2023-08-20T22:29:39.342571 | 2021-10-29T15:33:17 | 2021-10-29T15:33:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | def censor(text_thing):
list_of_words = text_thing.split()
forbidden_words = ['Java', 'C#', 'Ruby', 'PHP']
for i in list_of_words:
if i in forbidden_words:
index_thing = list_of_words.index(i)
list_of_words[index_thing] = '****'
final_list_of_words = ' '.join(list_of_words)
return final_list_of_words
check = 'To Ruby i PHP oraz Java'
check_2 = censor(check)
print(check_2)
| [
"borowski1@onet.pl"
] | borowski1@onet.pl |
dc48ef18d171c725a4f29e6ded01c481fa82e57d | 994693f3257c043926b036da1da49999c1edcb31 | /tags/tag/cuterpg v0.02/maps/nuevomapa.py | 7a3f9475f363833152be66f77fd0f9222e782b6f | [] | no_license | weapp/pyrpgproject | 62d29d96a4044417c28dfd7925396a6c6c9f67a0 | 594aa49f97b434f04b11b47ca6ea4ab9336306e1 | refs/heads/master | 2016-08-05T13:41:55.252276 | 2009-07-16T13:20:49 | 2009-07-16T13:20:49 | 32,215,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,518 | py | from block import *
A=Block('None',NOT_FLOOR)
class mapa:
def __init__(self):
self.pos=[0,1,1]
self.pos_campo=[0,0]
self.TILE_WIDTH=101
self.TILE_Y_SPACING=82
self.TILE_DEPTH=40
self.TILE_HEIGHT=171
A=Block('None',NOT_FLOOR)
B=Block('Stone Block',BLOCK)
C=Block('Grass Block',BLOCK)
D=Block('Dirt Block',BLOCK)
self.caps=[
[
[A,D,D,D,D,D,A],
[D,D,D,A,D],
[D,D,D,A,D,D,D],
[A,A,A,A,A,D],
],
[
[A,A,C,C,C,C],
[C,C,C,A,C],
[A,C,C,A,C,C]
],
[
[A,A,A,A,A,B],
[],
[A,B]
]
]
def puede_estar(self,x,y,z):
return self.get_x_max()>x>=0 and self.get_y_max()>y>=0 and self.get_block(x,y,z).floor and not self.get_block(x,y,z+1).block
def get_block(self,x,y,z):
try:
r = self.caps[z][y][x]
except:
r = A
return r
def get_block_image(self,x,y,z):
return self.get_block(x,y,z).image
def get_character_image(self):
return Block('Character Cat Girl').image
def get_x_max(self):
return len(self.caps[0][0])
def get_y_max(self):
return len(self.caps[0])
def get_z_max(self):
return len(self.caps)
def update(self):
pass
| [
"weap88@02bf6da4-a4df-11dd-bc7a-dd6b2ed99ab5"
] | weap88@02bf6da4-a4df-11dd-bc7a-dd6b2ed99ab5 |
88a16223436ee8dd8a11c332ce6c325ff50bd8b6 | 823b8cbc0142806499066f78ab5408db87b4eee9 | /integration_tests/files/numpy_example.py | 4a587b49483b2c49b66dcbf61375cb3c7fdecfff | [
"MIT"
] | permissive | terrencepreilly/darglint | 08640d272744ae14252f997bca6af2f6a6ae9630 | abc26b768cd7135d848223ba53f68323593c33d5 | refs/heads/master | 2023-07-07T12:42:14.413273 | 2021-10-18T03:34:23 | 2021-10-18T03:34:23 | 104,758,499 | 487 | 52 | MIT | 2022-12-08T14:26:52 | 2017-09-25T14:11:21 | Python | UTF-8 | Python | false | false | 143 | py |
def frobscottle(x):
"""Frobscottlize.
Parameters
----------
whizzpopper
Whiz and Pop.
"""
x.fly_and_fart()
| [
"terrencepreilly@gmail.com"
] | terrencepreilly@gmail.com |
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()
| [
"hitanshusoni10@gmail.com"
] | hitanshusoni10@gmail.com |
faa68397f1875e8e711dda8b078b332adba21d10 | 678ed1cdeac1afd5f259bfc68d957f4069b69052 | /tickets/.~c9_invoke_i6Xhis.py | 3bcb58554b78f4abe4d2c6b2ab578c819c0ccd22 | [] | no_license | lubaninondo/issue-tracker | 2202fc3cb6762ad5217a0f72cb49c7b7f72f2713 | 71440020ab783f8d2de54e7e146505de19e6f3df | refs/heads/master | 2020-06-12T14:52:58.857127 | 2020-03-31T16:54:01 | 2020-03-31T16:54:01 | 194,334,831 | 0 | 1 | null | 2019-11-18T10:45:52 | 2019-06-28T21:17:40 | JavaScript | UTF-8 | Python | false | false | 8,473 | py | from django.shortcuts import render, reverse, redirect, get_object_or_404
from django.contrib.auth.decorators import login_required
from django.core.mail import EmailMessage
from django.contrib import messages
from django.utils import timezone
from django.conf import settings
from .models import Ticket
from .forms import TicketForm, PaymentForm
from comments.models import Comment
from comments.forms import CommentForm
import stripe
stripe.api_key = settings.STRIPE_SECRET
# Create your views here.
def all_tickets(request, sort=None):
if sort == 'bugs':
tickets = Ticket.objects.filter(ticket_type='Bug')
elif sort =='feature_requests':
tickets = Ticket.objects.filter(ticket_type='Feature Request')
else:
tickets = Ticket.objects.all()
return render(request, 'index.html', {'tickets': tickets})
@login_required
def upvote(request, pk):
ticket = get_object_or_404(Ticket, pk=pk)
ticket.upvotes += 1
ticket.save()
messages.error(request, "Upvote recorded!")
return redirect(ticket_detail, ticket.pk)
@login_required
def upvote_payment(request, pk):
ticket = get_object_or_404(Ticket, pk=pk)
if request.method=="POST":
payment_form = PaymentForm(request.POST)
if payment_form.is_valid():
try:
customer = stripe.Charge.create(amount = 30,
currency = "€",
description = request.user.email,
card = payment_form.cleaned_data['stripe_id'],
)
except:
messages.error(request, "Your card was declined")
if customer.paid:
messages.error(request, "Your payment was successful")
new_total = float(ticket.total_paid) + (customer.amount/100)
ticket.total_paid = new_total
ticket.save()
return redirect(upvote, ticket.id)
else:
messages.error(request, "Unable to take payment")
else:
print(payment_form.errors)
messages.error(request, "We were unable to take payment with that card")
else:
payment_form = PaymentForm()
return render(request, "upvote-payment.html", {'ticket': ticket, 'payment_form': payment_form, 'publishable': settings.STRIPE_PUBLISHABLE})
def ticket_detail(request, pk):
ticket = get_object_or_404(Ticket, pk=pk)
comments = Comment.objects.filter(ticket=ticket)
if request.method == "POST":
comment_form = CommentForm(request.POST)
if comment_form.is_valid():
author = request.user if request.user else 'anonymous'
comment = Comment(ticket=ticket,
author=author,
comment=comment_form.cleaned_data['comment'],
comment_date=timezone.now())
comment.save()
return redirect(ticket_detail, ticket.pk)
else:
comment_form = CommentForm()
return render(request, 'ticket-detail.html', {'ticket': ticket, 'comments': comments, 'comment_form': comment_form})
@login_required
def create_bug(request):
if request.method == "POST":
form = TicketForm(request.POST, request.FILES)
if form.is_valid():
ticket = Ticket(title=form.cleaned_data['title'],
summary=form.cleaned_data['summary'],
ticket_type='Bug',
screenshot=form.cleaned_data['screenshot'],
creator=request.user,
initiation_date=timezone.now())
ticket.save()
return redirect(ticket_detail, ticket.pk)
else:
form = TicketForm()
return render(request, 'create-bug.html', {'form': form})
@login_required
def create_feature_request(request):
if request.method=="POST":
ticket_form = TicketForm(request.POST, request.FILES)
payment_form = PaymentForm(request.POST)
if ticket_form.is_valid() and payment_form.is_valid():
try:
customer = stripe.Charge.create(amount = 50,
currency = "Euro",
description = request.user.email,
card = payment_form.cleaned_data['stripe_id'],
)
except:
messages.error(request, "Your card was declined")
if customer.paid:
messages.error(request, "Your payment was successful")
ticket = Ticket(title=ticket_form.cleaned_data['title'],
summary=ticket_form.cleaned_data['summary'],
ticket_type='Feature Request',
total_paid = customer.amount / 100,
screenshot=ticket_form.cleaned_data['screenshot'],
creator=request.user,
initiation_date=timezone.now())
ticket.save()
return redirect(ticket_detail, ticket.id)
else:
messages.error(request, "Unable to take payment")
else:
print(payment_form.errors)
messages.error(request, "We were unable to take payment with that card")
else:
ticket_form = TicketForm()
payment_form = PaymentForm()
return render(request, "create-feature-request.html", {'ticket_form': ticket_form,
'payment_form': payment_form,
'publishable': settings.STRIPE_PUBLISHABLE})
@login_required
def edit_ticket(request, pk):
ticket = get_object_or_404(Ticket, pk=pk) if pk else None
if request.method == "POST":
form = TicketForm(request.POST, request.FILES, instance=ticket)
if form.is_valid():
ticket.title = form.cleaned_data['title']
ticket.summary = form.cleaned_data['summary']
ticket.screenshot = form.cleaned_data['screenshot']
ticket.save()
return redirect(ticket_detail, ticket.pk)
else:
form = TicketForm(instance=ticket)
html_page = 'edit-bug.html' if ticket.ticket_type == 'Bug' else 'edit-feature-request.html'
return render(request, html_page, {'form': form})
@login_required
def delete_ticket(request, pk):
ticket = get_object_or_404(Ticket, pk=pk)
ticket.delete()
return redirect(reverse('index'))
@login_required
def change_status_backlog(request, pk):
ticket = get_object_or_404(Ticket, pk=pk)
if ticket.completion_date:
ticket.completion_date = None
ticket.status = 'Backlog'
ticket.save()
return redirect(ticket_detail, ticket.id)
@login_required
def change_status_in_progress(request, pk):
ticket = get_object_or_404(Ticket, pk=pk)
if ticket.completion_date:
ticket.completion_date = None
ticket.status = 'In Progress'
ticket.save()
return redirect(ticket_detail, ticket.id)
@login_required
def change_status_complete(request, pk):
ticket = get_object_or_404(Ticket, pk=pk)
subject = "Unicorn Attractor - Ticket #" + str(ticket.id)
from_email, to = 'lubaninondo@yahoo.com', request.user.email
html_content = "<p>Hi " + ticket.creator + "</p><p>You raised the below ticket on our website:</p><p><strong>TYPE:</strong> " + ticket.ticket_type + "</p><p><strong>TITLE:</strong> " + ticket.title + "</p><p>This email is to let you know this ticket has been completed. Thanks again for raising your issue.</p><p>Many thanks,</p><p>The Unicorn Attractor Team</p>"
msg = EmailMessage(subject, html_content, from_email, [to])
msg.content_subtype = "html"
msg.send()
ticket.status = 'Complete'
ticket.completion_date = timezone.now()
ticket.save()
return redirect(ticket_detail, ticket.id) | [
"ubuntu@ip-172-31-30-122.eu-west-1.compute.internal"
] | ubuntu@ip-172-31-30-122.eu-west-1.compute.internal |
da3ea4af40683f49e01a377364f85a568ee123e8 | a83c42580195a19eb5b0fb1a3488127cf054039b | /head/monitor/sys_monitor.py | 490e50c9c64ee79c3b60af6a607a3dfb1d0d8662 | [] | no_license | xiguan513/s14 | 37b544d8394f2bc2f18f6b53e8503328384e2068 | 74ad0a3026c2b1193171bf632a20b26ef2caeac8 | refs/heads/master | 2021-01-12T05:03:35.024512 | 2017-08-12T08:48:02 | 2017-08-12T08:48:02 | 77,840,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,446 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import re
from email.header import Header
from email.mime.text import MIMEText
from email.utils import parseaddr, formataddr
import smtplib
import sys
import pickle
ser_name={"10.172.84.70":"b2b1",
"10.171.99.65":"b2b2",
"10.44.20.156":"b2c1",
"10.171.64.130":"b2c2",
"10.44.12.47":"oms",
"10.165.121.122":"system1",
"10.171.64.30":"system2",
"10.204.8.12":"user1",
"10.44.41.53":"user2",
"10.171.54.126":"dis1",
"10.172.84.42":"dis2",
"10.171.127.171":"route1",
"10.51.74.212":"route2",
"10.51.73.55":"lvbb1",
"10.44.13.206":"lvbb2",
"10.44.9.50":"app"}
#disk_monitor
disk_status=""
disk_file_name="disk20170320194501.log"
#disk_file_name=sys.argv[1]
#mem_monitor
memlist=[]
mem_file_name="mem20170320194501.log"
#mem_file_name=sys.argv[2]
def _format_addr(s):
name, addr = parseaddr(s)
return formataddr(( \
Header(name, 'utf-8').encode(), \
addr.encode('utf-8') if isinstance(addr, unicode) else addr))
from_addr = "ynsymonitor@163.com"
password = "3uQs3ZRXBz"
to_addr = "ynsymonitor@163.com"
smtp_server = "smtp.163.com"
def mailsend(mes):
msg = MIMEText(mes, 'plain', 'utf-8')
msg['From'] = _format_addr(u'报警 <%s>' % from_addr)
msg['To'] = _format_addr(u'管理员 <%s>' % to_addr)
msg['Subject'] = Header(u'阿里服务器', 'utf-8').encode()
server = smtplib.SMTP(smtp_server, 25)
# server.set_debuglevel(1)
server.login(from_addr, password)
server.sendmail(from_addr, [to_addr], msg.as_string())
server.quit()
def disk(disk_status):
with open(disk_file_name) as disk_file:
for i in disk_file.readlines():
reip = re.compile(r'(?<![\.\d])(?:\d{1,3}\.){3}\d{1,3}(?![\.\d])')
if reip.findall(i):
disk_ip=reip.findall(i)[0]
#print reip.findall(i)[0]
else:
disk_num=i.split()[-2]
disk_fenqu=i.split()[-1]
if disk_num.strip("%").isdigit():
if int(disk_num.strip("%")) >= 70:
disk_status+="Size: "+disk_num + " " +"Partition: "+disk_fenqu + " " +"IP: "+disk_ip+" "+"Server:"+ser_name[disk_ip]+"\n"
return disk_status
def mem_monitor(memlist):
with open(mem_file_name) as mem_file:
for i in mem_file.readlines():
i=i.strip("\n")
memlist.append(i)
for e in memlist:
reip = re.compile(r'(?<![\.\d])(?:\d{1,3}\.){3}\d{1,3}(?![\.\d])')
remem= re.compile(r'\d{3,5}')
if reip.findall(e):
memip=reip.findall(e)
elif remem.findall(e):
memsize=int(e)
if memsize<400:
return "Mem_user:%s IP:%s Server:%s" % (memsize,memip[0],ser_name[memip[0]])
#disk_monitor
disk_status=disk(disk_status)
#assert disk_status
disk_file_pkl=open("disk.pkl",'ab')
if disk_status=="":
disk_status="磁盘使用正常"
pickle.dump(disk_status,disk_file_pkl)
disk_file_pkl.close()
else:
mailsend(disk_status)
#mem_monitor
mem_status=mem_monitor(memlist)
mem_file_pkl=open("mem.pkl",'ab')
if mem_status==None:
mem_status="内存正常"
pickle.dump(mem_status,mem_file_pkl)
mem_file_pkl.close()
else:
mem_status=str(mem_status)
mailsend(mem_status)
| [
"songbing5132163.com"
] | songbing5132163.com |
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'
| [
"inyoman_gurnitha@yahoo.com"
] | inyoman_gurnitha@yahoo.com |
bd5b84d5e2f504b75c1664a4b3247accef040342 | 077a8055ccc9aeaa0b402cd262dcc63af7a6bda6 | /car_model.py | 4166b6250633f8fd2c71faee6b0a4e391c19b1a0 | [] | no_license | annynng/VREP_Self_Driving_Car_Simulation | 924de8da876032ac3736bf3b72f4a04beddad855 | 0925093432dfe7b3093998eb625d82b9ba528d6a | refs/heads/master | 2021-12-15T12:22:10.268862 | 2017-08-16T20:00:16 | 2017-08-16T20:00:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,219 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 06 22:00:39 2015
@author: Karan Vivek Bhargava
"""
#Import Libraries:
import vrep #V-rep library
import sys
import time #used to keep track of time
import numpy as np #array library
import cv2
import imutils
# Model for the car with two variables throttle and steering
class CarControl():
def __init__(self, clientID, printFlag = False):
self.clientID = clientID;
# retrieve motor handles
errorCode, self.steer_handle = vrep.simxGetObjectHandle(self.clientID, 'steer_joint', vrep.simx_opmode_oneshot_wait);
errorCode, self.motor_handle = vrep.simxGetObjectHandle(self.clientID, 'motor_joint', vrep.simx_opmode_oneshot_wait);
errorCode, self.fl_brake_handle = vrep.simxGetObjectHandle(self.clientID, 'fl_brake_joint', vrep.simx_opmode_oneshot_wait);
errorCode, self.fr_brake_handle = vrep.simxGetObjectHandle(self.clientID, 'fr_brake_joint', vrep.simx_opmode_oneshot_wait);
errorCode, self.bl_brake_handle = vrep.simxGetObjectHandle(self.clientID, 'bl_brake_joint', vrep.simx_opmode_oneshot_wait);
errorCode, self.br_brake_handle = vrep.simxGetObjectHandle(self.clientID, 'br_brake_joint', vrep.simx_opmode_oneshot_wait);
errorCode, self.camera_f_handle = vrep.simxGetObjectHandle(self.clientID, 'cam_f', vrep.simx_opmode_oneshot_wait);
vrep.simxGetVisionSensorImage(self.clientID, self.camera_f_handle, 0, vrep.simx_opmode_streaming)
print('Received Handles...');
self.factor = 30/(2.68*3.6);
self.max_throttle = 19; # Kmph
self.max_reverse_throttle = -19; #Kmph
self.max_steer = 30; # Degrees
self.printFlag = printFlag;
# Self test the camera
print('Setting up the camera system...');
self.lastFrame = None;
err = 0;
while(err != 1):
err, self.lastFrame = self.get_image();
print('Camera setup successful.')
def set_throttle(self, target_speed):
if(target_speed > self.max_throttle):
target_speed = self.max_throttle;
elif(target_speed < self.max_reverse_throttle):
target_speed = self.max_reverse_throttle;
if(self.printFlag):
print('Setting throttle to', target_speed);
speed = target_speed * self.factor;
errorCode = vrep.simxSetJointTargetVelocity(self.clientID, self.motor_handle, speed, vrep.simx_opmode_streaming);
def set_steering(self, steer_pos):
if(abs(steer_pos) > self.max_steer):
if(steer_pos > 0):
steer_pos = self.max_steer;
else:
steer_pos = -self.max_steer;
if(self.printFlag):
print('Setting steering to', steer_pos);
# Convert to radians
steer_pos = np.deg2rad(steer_pos);
errorCode = vrep.simxSetJointTargetPosition(self.clientID, self.steer_handle, steer_pos, vrep.simx_opmode_streaming);
def get_info(self):
# Check velocity
err, bl_wheel_vel = vrep.simxGetObjectFloatParameter(self.clientID, self.bl_brake_handle, vrep.sim_jointfloatparam_velocity, vrep.simx_opmode_streaming);
err, br_wheel_vel = vrep.simxGetObjectFloatParameter(self.clientID, self.br_brake_handle, vrep.sim_jointfloatparam_velocity, vrep.simx_opmode_streaming);
rear_wheel_velocity = ((bl_wheel_vel) + (br_wheel_vel))/2.0;
linear_velocity = rear_wheel_velocity * 0.09 * 3.6; # Kmph
throttle = linear_velocity;
steer_errorCode, steer_pos = vrep.simxGetJointPosition(self.clientID, self.steer_handle, vrep.simx_opmode_streaming);
if(self.printFlag):
print('Throttle:', throttle, 'Steering:', steer_pos);
def get_image(self):
err, resolution, image = vrep.simxGetVisionSensorImage(self.clientID, self.camera_f_handle, 0, vrep.simx_opmode_buffer);
if err == vrep.simx_return_ok:
img = np.array(image,dtype=np.uint8);
img.resize([resolution[1],resolution[0],3]);
self.lastFrame = imutils.rotate_bound(img, 90);
return 1, self.lastFrame;
elif err == vrep.simx_return_novalue_flag:
return 0, None;
else:
return err, None;
vrep.simxFinish(-1) # just in case, close all opened connections
clientID = vrep.simxStart('127.0.0.1',19999,True,True,5000,5) # Get the client ID
if clientID!=-1: #check if client connection successful
print('Connected to remote API server')
else:
print('Connection not successful')
sys.exit('Could not connect')
# Initialize car control object
car = CarControl(clientID, printFlag = False);
car.set_steering(20); # Degrees
car.set_throttle(1); # Kmph
for i in range(150):
# Start time for image process
start = time.time();
err, img = car.get_image();
# End time for image process
end = time.time();
dt = end - start;
print('Frame took:', dt*1000.0, 'ms');
cv2.imshow('image',img);
cv2.waitKey(1); # in milliseconds
| [
"noreply@github.com"
] | noreply@github.com |
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."
| [
"fsanches@metamaquina.com.br"
] | fsanches@metamaquina.com.br |
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() | [
"guillermoepd@hotmail.com"
] | guillermoepd@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.