blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
220 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
0f842ca1a66398c41622f9c64ad0bab057bf0487
58eb22a303e01e28464c26b381de3a12ddeddea1
/psfex_pipe.py
c6a7f716442693b709b5980edc94ea0db122088b
[]
no_license
elizabethjg/im3shape_pipeline
5bb41a1bd76788a5b7008e5123ec0fb45a6d7813
0e767a7adb70ea49fe6a2ece48b5981bfec447f8
refs/heads/master
2020-03-18T12:59:36.945805
2018-08-08T18:01:11
2018-08-08T18:01:11
134,754,729
1
1
null
null
null
null
UTF-8
Python
false
false
7,616
py
import numpy as np #from pylab import * from astropy.io import fits import shape_models from ctypes import * #import psfex import os class PSF: ''' Class object that reconstructs the PSF in the CCD __init__: Creates the object input: psf_file: (str) PSFEx .psf file containing the psf basis get_psf: Reconstructs the PSF input: col, row: (flt) Positions X,Y in the CCD output: psf_model: (array2D) PSF vignette centred at X,Y ''' def __init__(self, psf_file): hdul = fits.open(psf_file) self.sources = hdul[1].header['ACCEPTED'] #Number of accepted sources self.degree = hdul[1].header['POLDEG1'] self.dim = hdul[1].header['PSFAXIS3'] self.size = hdul[1].header['PSFAXIS1'] if hdul[1].header['PSFAXIS1'] != hdul[1].header['PSFAXIS2']: print 'WARNING: PSF vignete is not square.' self.basis = hdul[1].data['PSF_MASK'][0] self.zero_x = hdul[1].header['POLZERO1'] self.scale_x = hdul[1].header['POLSCAL1'] self.zero_y = hdul[1].header['POLZERO2'] self.scale_y = hdul[1].header['POLSCAL2'] #self.samp = hdul[1].header['PSF_SAMP'] # que pasa cuando no es 1 del hdul def get_psf(self, col, row): x_s = (col - self.zero_x) / self.scale_x y_s = (row - self.zero_y) / self.scale_y poly = [[x_s**i * y_s**j for i in xrange(self.degree+1-j)] for j in xrange(self.degree+1)] poly = np.array(sum(poly)) # fletten list and convert to array terms = np.multiply(self.basis, poly[:, np.newaxis, np.newaxis]) psf_model = terms.sum(axis=0) del poly,terms return psf_model def psf_map(psf_file, CCD_shape): ''' Creates a map of the PSF across the CCD input: psf_file: (str) PSFEx .psf file containing the psf basis CCD_shape: (tuple) Shape of the CCD (X, Y) output: Nothing yet... it only shows the plot. Maybe it could save a figure and return the file name, or just the plt object ''' #psf_file = './psfex_files/run2-r2.psf' #CCD_shape = (2048,4096) #psf = PSF(psf_file) pex = psfex.PSFEx(psf_file) x = CCD_shape[0] * np.linspace(0.05,0.95,10) y = CCD_shape[1] * np.linspace(0.05,0.95,10) xx, yy = np.meshgrid(x,y, indexing='ij') ellip = np.zeros(xx.shape) theta = np.zeros(xx.shape) e1 = np.zeros((len(x),len(y))) e2 = np.zeros((len(x),len(y))) out = np.zeros(4) for j in xrange(len(y)): for i in xrange(len(x)): #psf_stamp = psf.get_psf(col=x[i], row=y[j]) psf_stamp = pex.get_rec(x[i], y[j]) p = shape_models.FitMoffat2D(psf_stamp/psf_stamp.max()) out = np.vstack((out,np.array([p['beta'],p['fwhm'],p['e1'],p['e2']]))) e1[i,j] = p['e1'] e2[i,j] = p['e2'] out = out[1:,:] #theta = np.pi/2.-np.arctan2(e2,e1)/2.0 ellip = np.sqrt(e1**2+e2**2) theta = (np.arctan2(e2,e1)/2.) theta = np.pi/2. - theta ex = np.cos(theta) ey = np.sin(theta) plt.figure() plt.quiver(xx-ex/2, yy-ey/2, ex, ey, headwidth=1,headlength=0,units='xy') plt.axes().set_aspect('equal') plt.xlim([0,CCD_shape[0]]) plt.ylim([0,CCD_shape[1]]) plt.show() return out def compute_psf_4im2shape(psf_file, hdu, corrida): ''' Computes the PSF at the location of each source and creates the input files for im2shape input: psf_file: (str) PSFEx .psf file containing the psf basis hdu: (object) hdulist object from the fits files corrida: (int) core number output: im2_entrada: (str) File name of the input catalog of sources for im2shape im2_psf: (str) File name of the psf input file for im2shape ''' im2_path = './im2_files/' corrida = str(corrida) im2_psf = im2_path + 'psf_im2_'+corrida+'.dat' im2_entrada = im2_path + 'input_im2_'+corrida+'.dat' # Computes psf for im2shape----------------------------------------------------------- psf = PSF(psf_file) ids = hdu[2].data['NUMBER'] x = hdu[2].data['X_IMAGE'] y = hdu[2].data['Y_IMAGE'] N = len(x) # Number of sources psf_src = np.zeros((N, 8), dtype=float) # Array to save the psf parameters for i in xrange(N): psf_stamp = psf.get_psf(col=x[i], row=y[i]) p = shape_models.FitGaussian2D(psf_stamp) psf_src[i,:] = [x[i], y[i], 0,0, p['ellip'], p['theta'], p['ab'], p['amp']] # deberiamos usar x,y ajustados ?? # Writes psf file for im2shape----------------------------------------------------------- f1=open(im2_psf,'w') f1.write('1\n') # Number of gaussians f1.write(str(N)+'\n') # Number of psf locations f1.write('6\n') # Number of gaussian parameters np.savetxt(f1, psf_src, fmt=['%15.10f']*4+['%13.10f']*4) f1.close() # Writes input catalog file for im2shape------------------------------------------------ cat = np.vstack((ids, x, y)).T # This are the columns required by im2shape f1=open(im2_entrada,'w') f1.write('3 '+str(N)+'\n') # Number of columns, number of rows np.savetxt(f1, cat, fmt=['%5i']+['%15.8f']*2) f1.close() return im2_entrada, im2_psf def compute_psf_4im3shape(psf_file, options, ids, x, y, corrida): ''' Computes the PSF at the location of each source and creates the input files for im32shape input: psf_file: (str) PSFEx .psf file containing the psf basis hdu: (object) hdulist object from the fits files corrida: (int) core number corrida: (obj) im3shape options output: im3_entrada: (str) File name of the input catalog of sources for im3shape im3_psf: (str) File name of the psf input file for im3shape ''' import galsim, galsim.des from py3shape.utils import * im3_path = './im3_files/' corrida = str(corrida) im3_entrada = im3_path + 'input_im3_'+corrida+'.dat' # Computes psf for im3shape----------------------------------------------------------- #psf = PSF(psf_file) N = len(x) # Number of sources if options.psf_input == 'psf_image_cube': im3_psf = im3_path + 'psf_im3_cube_'+corrida+'.fits' u = options.upsampling pad = options.padding stamp_size = options.stamp_size Nx=(stamp_size+pad)*u psfex_galsim = galsim.des.DES_PSFEx(psf_file) stamps = [] for i in xrange(N): psfex_stamp = getPSFExarray(psfex_galsim, x[i], y[i], nsidex=Nx, nsidey=Nx, upsampling=u) stamps.append(galsim.ImageF(psfex_stamp)) os.system('rm '+im3_psf) galsim.fits.writeCube(stamps, im3_psf) elif options.psf_input == 'moffat_catalog': pex = psfex.PSFEx(psf_file) psf_src = np.zeros((N, 4), dtype=float) # Array to save the psf parameters im3_psf = im3_path + 'psf_im3_'+corrida+'.dat' for i in xrange(N): #psf_stamp = psf.get_psf(col = x[i], row = y[i]) psf_stamp = pex.get_rec(x[i], y[i]) p = shape_models.FitMoffat2D(psf_stamp/psf_stamp.max()) e = (p['e1']**2+p['e2']**2)**0.5 th = (np.arctan2(p['e2'],p['e1'])/2.) th = np.pi/2.0 - th #if th > np.pi/2.: #th = th - np.pi psf_src[i,:] = [p['beta'], p['fwhm'], e*np.cos(2.*th), e*np.sin(2*th)] # deberiamos usar x,y ajustados ?? no # Writes psf file for im2shape----------------------------------------------------------- f1 = open(im3_psf,'w') f1.write('# beta fwhm e1 e2 \n') # Number of gaussians np.savetxt(f1, psf_src, fmt=['%15.10f']*4) f1.close() del pex,psf_src elif options.psf_input == 'no_psf': im3_psf = im3_path + 'psf_im3_none_'+corrida+'.dat' f1 = open(im3_psf,'w') f1.write('# beta fwhm e1 e2 \n') f1.close() # Writes input catalog file for im3shape------------------------------------------------ cat = np.vstack((ids, x, y)).T # This are the columns required by im3shape f1 = open(im3_entrada,'w') f1.write(' #ID x y \n') # Number of columns, number of rows np.savetxt(f1, cat, fmt=['%5i']+['%15.8f']*2) f1.close() return im3_entrada, im3_psf
[ "elizabeth.johana.gonzalez@gmail.com" ]
elizabeth.johana.gonzalez@gmail.com
b8c2881f513e660cebe069ab07650d21ad6136d1
9697ed745be4f916104fcb404bd14c66fa38a5a7
/config.py
2cffb078e617d33d88a73298e979725ed67b92ab
[]
no_license
Scaravex/generali_challenge
03e8582a52ccce5277782dabb9f2ff447d3101a3
2f994e05aa31f40c6dc76add98ec675e74c90ab3
refs/heads/master
2023-01-20T06:55:44.174651
2020-11-28T18:37:19
2020-11-28T18:37:19
316,780,646
0
0
null
null
null
null
UTF-8
Python
false
false
7,923
py
"""Configuration and useful things.""" # List of columns with no variability in train set columns_without_variablity = [ "business_type__other", "continent_mark_desc__other", "coverage__other", "flag_cid_compiled__other", "fp__fatality", "fp__vehicle_model__other", "fp__vehicle_type__other", "insured_item_coverage_section__other", "insured_item_coverage_section__rca", "is_card_debit", "business_rule_3", "business_rule_4", "business_rule_6", "business_rule_10", "business_rule_11", "business_rule_12", "business_rule_14", "business_rule_15", "business_rule_32", "business_rule_34", "business_rule_36", "business_rule_37", "business_rule_38", "network_feature_22", "network_feature_24", "party_type__600", "policy_branch__other", "policy_status__other", "segment_mark_desc__other", "tp__vehicle_type__other", ] # List of columns not possible for human interpretation artificial_columns = [ "insured_item_code__01aut", "insured_item_code__01taxi", "insured_item_code__04acc", "insured_item_code__04acs", "insured_item_code__04cam", "insured_item_code__06mc", "insured_item_code__07mcl", "insured_item_code__08cm", "insured_item_code__99agr", "insured_item_code__none", "insured_item_code__other", "insured_item_coverage_section__alg", "insured_item_coverage_section__ass", "insured_item_coverage_section__cvt", "insured_item_coverage_section__other", "insured_item_coverage_section__rca", "insured_item_unit_section__asp", "insured_item_unit_section__ass", "insured_item_unit_section__cri4", "insured_item_unit_section__evn", "insured_item_unit_section__fur", "insured_item_unit_section__fur4a", "insured_item_unit_section__inc", "insured_item_unit_section__other", "insured_item_unit_section__rca", "insured_item_unit_section__rcap", "business_rule_1", "business_rule_2", "business_rule_3", "business_rule_4", "business_rule_5", "business_rule_6", "business_rule_7", "business_rule_8", "business_rule_9", "business_rule_10", "business_rule_11", "business_rule_12", "business_rule_13", "business_rule_14", "business_rule_15", "business_rule_16", "business_rule_17", "business_rule_18", "business_rule_19", "business_rule_20", "business_rule_21", "business_rule_22", "business_rule_23", "business_rule_24", "business_rule_25", "business_rule_26", "business_rule_27", "business_rule_28", "business_rule_29", "business_rule_30", "business_rule_31", "business_rule_32", "business_rule_33", "business_rule_34", "business_rule_35", "business_rule_36", "business_rule_37", "business_rule_38", "business_rule_39", "business_rule_40", "business_rule_41", "network_feature_1", "network_feature_2", "network_feature_3", "network_feature_4", "network_feature_5", "network_feature_6", "network_feature_7", "network_feature_8", "network_feature_9", "network_feature_10", "network_feature_11", "network_feature_12", "network_feature_13", "network_feature_14", "network_feature_15", "network_feature_16", "network_feature_17", "network_feature_18", "network_feature_19", "network_feature_20", "network_feature_21", "network_feature_22", "network_feature_23", "network_feature_24", "network_feature_25", "network_feature_26", "network_feature_27", "network_feature_28", "network_feature_29", "network_feature_30", "network_feature_31", "network_feature_32", "network_feature_33", "network_feature_34", "network_feature_35", "network_feature_36", "network_feature_37", "network_feature_38", "network_feature_39", "network_feature_40", "network_feature_41", "network_feature_42", "network_feature_43", "network_feature_44", "network_feature_45", "network_feature_46", "network_feature_47", "network_feature_48", "network_feature_49", "network_feature_50", "network_feature_51", "network_feature_52", "network_feature_53", "network_feature_54", "network_feature_55", "network_feature_56", "party_type__1", "party_type__105", "party_type__155", "party_type__2", "party_type__250", "party_type__3", "party_type__310", "party_type__600", "party_type__8", "party_type__other", "policy_branch__5", "policy_branch__none", "policy_branch__other", "policy_broker_code__0407", "policy_broker_code__0815", "policy_broker_code__1033", "policy_broker_code__3700", "policy_broker_code__6804", "policy_broker_code__6818", "policy_broker_code__7720", "policy_broker_code__none", "policy_broker_code__other", "policy_status__11", "policy_status__12", "policy_status__13", "policy_status__none", "policy_status__other", "risk_code__apfu4a", "risk_code__apinc", "risk_code__npinc", "risk_code__nprca", "risk_code__other", "risk_code__pvasp", "risk_code__pvass", "risk_code__pvfur", "risk_code__pvinc", "risk_code__pvrca", "risk_code__vanrca", ] # List of prefixes for categorical columns prefixes_list = [ "region_of_claim", "tp__driving_licence_type", "tp__vehicle_make", "tp__vehicle_model", "tp__vehicle_type", "claim_desc2", "region_of_policy", "claim_desc", "flag_cid_compiled", "class_desc", "continent_mark_desc", "fp__vehicle_make", "fp__vehicle_model", "fp__vehicle_type", "policy_transaction_description", "claim_description", "policy_branch", "coverage", "mark_desc", "policy_status", "insured_item_unit_section", "make_country_mark_desc", "party_type", "policy_broker_code", "insured_item_description", "segment_mark_desc", "insured_item_code", "claim_type_desc", "policy_product_description", "tarif_type", "driving_licence_type", "business_type", "insured_item_coverage_section", "risk_code", ] lasso_ftrs_w = [ "business_rule_20", "business_rule_7", "business_type__commercial", "cid_vehicles_number", "claim_amount_category", "claim_type_desc__md_rca_cid_misto", "claim_type_desc__pa_ard_eventi_speciali", "client_responsibility", "coverage__responsabilita_civile_auto", "coverage_excess_amount__sum", "coverage_insured_amount__sum", "diff_days_claim_date_notif_date", "diff_days_claim_date_original_start_date", "diff_days_claim_date_policy_end_date", "diff_days_claim_date_policy_start_date", "diff_year_now_fp__date_of_birth", "diff_year_now_tp__date_of_birth", "dist_claim_fp", "dist_claim_tp", "dist_fp_tp", "driving_licence_type__other", "fp__vehicle_type__car", "fp__vehicle_type__truck", "insured_item_code__none", "insured_item_unit_section__fur4a", "insured_item_unit_section__other", "insured_item_unit_section__rca", "insured_item_unit_section__rcap", "insured_value2__sum_category", "network_feature_20", "network_feature_25", "network_feature_26", "network_feature_33", "network_feature_35", "network_feature_42", "party_type__105", "party_type__other", "policy_branch__none", "policy_broker_code__none", "policy_premium_amount_category", "policy_status__11", "policy_status__none", "policy_status__other", "policy_transaction_description__none", "region_of_claim__lombardia", "risk_code__apfu4a", "risk_code__pvrca", "tarif_type__bonusmalus", "tarif_type__none", "total_reserved_category", "vehicle_is_damaged__sum", ]
[ "marco.scaravelli@gmail.com" ]
marco.scaravelli@gmail.com
bb6350884a39f88bd419c41b7e6d9e553e2a2549
fa3ce7e8857a4238c56c501ab4d06d9a1f1ee4b8
/subscribedb.py
04d8229957b788ce1df9df77d2decb2193a20a65
[]
no_license
kevinbhutwala/Respberry-pi
bc24fea2162055626bcb172fbc04cb9b18284fd8
33f3c38ce8ade3b883909dd8621d2d0dcebc4008
refs/heads/main
2023-02-21T02:16:47.569046
2021-01-24T18:12:26
2021-01-24T18:12:26
332,519,202
1
0
null
null
null
null
UTF-8
Python
false
false
898
py
import time import paho.mqtt.client as mqtt import sqlite3 import datetime db = sqlite3.connect("external") cur = db.cursor() def on_message(client,userdata,msg): print(msg.topic+""+str(msg.payload)+"\n") decodeData = msg.payload.decode("utf-8") cur.execute("create table if not exists tblsubscribe(subID integer primary key autoincrement,msg text,created_dt current_timestamp)") sql = """insert into tblsubscribe(msg,created_dt) values(?,?)""" sql_data = (decodeData,datetime.datetime.now()) cur.execute(sql,sql_data) db.commit() print(decodeData) cur.execute("select * from tblsubscribe order by subID desc limit 10") rows = cur.fetchall() print("Data:") for row in rows: print(row) time.sleep(1) client = mqtt.Client() client.on_message = on_message client.connect("broker.hivemq.com",1883) client.subscribe("bad",qos=0) client.loop_forever()
[ "noreply@github.com" ]
kevinbhutwala.noreply@github.com
4fa77399fe6624d99df137687fdf010d8960885f
12530e3c3a7e6b2cb23ab50a7475e77435607ebd
/i4.py
dc8d4d720c89aa368b5e5d6937b1899369054e08
[]
no_license
aknik/ivoox
0480d1b691560caccc46495eafea6a09560fa3ba
63e8cf3725d35c312c9e957619ee69c9dddbffb8
refs/heads/master
2021-01-20T10:30:32.140617
2017-11-17T18:16:39
2017-11-17T18:16:39
101,639,730
1
0
null
null
null
null
UTF-8
Python
false
false
1,191
py
# DESCARGA UNA SUSCRIPCION A PODCAST COMPLETA. TODOS LOS EPISODIOS #import telebot #from telebot import types import time,os,re,requests,json TOKEN = "289123777:AAH-1mZ3C-xxxxxxxx_xIGOv0" admin = "@mibot" bot = telebot.TeleBot(TOKEN) def urlify(s): # Remove all non-word characters (everything except numbers and letters) s = re.sub(r"[^\w\s]", '', s) # Replace all runs of whitespace with a single dash s = re.sub(r"\s+", '_', s) return s agent = '"iVoox/2.15(134) (Linux; Android 7.2; Scale/1.0)"' url1 = "http://api.ivoox.com/1-1/" url2 = "?function=getSuscriptionAudios&format=json&session=3266161206577&page=1&idSuscription=8511076&unread=0" headers = { 'User-Agent': agent, 'Accept-Encoding': 'gzip', 'accept-language': 'es-ES', 'Connection': 'Keep-Alive', } r = requests.get(url1+url2, headers=headers) json = r.json() i = 0 for row in json: i += 1 #podcasttitle = urlify(row['podcasttitle']) file = str(row['file']) filename = os.path.basename(file) savefile = './Podcasts/Skylab/' + filename.split("_")[0] + '.mp3' os.system ('wget --user-agent='+ agent +' -c ' + file + ' -O ' + savefile ) print filename
[ "noreply@github.com" ]
aknik.noreply@github.com
7066745dd1179d0f70d669c1f80c8356174281ba
465bf3594ba65ac8cb3470b56bd07a996b5c48b4
/Database Related Projects/Bus registration system.py
7592613e0bf43cc98d3252258fbe39814f11ea30
[]
no_license
TanmayJadhav/Python-Tkinter-Internship-
e74013e26d0a62a63150f8864531240f7bea6bbe
fa449024b40d3088add500e8a214764f73cbabb1
refs/heads/master
2020-12-08T02:36:11.924754
2020-01-09T17:15:18
2020-01-09T17:15:18
232,861,109
0
0
null
null
null
null
UTF-8
Python
false
false
583
py
import pymysql def insert_passenger_data(): insert_data ="INSERT INTO passenger VALUES('ABCD','Panvel')" cursor.execute(insert_data) database.commit() try: database= pymysql.connect(host="localhost",user="tanmay",password="localhost12345") cursor=database.cursor() database.select_db("Bus_reservation_system") x=1 except: print('Error') x=0 finally: insert_passenger_data() cursor.execute("SHOW TABLES") cursor.execute("SELECT * FROM passenger") for databases in cursor: print(databases)
[ "noreply@github.com" ]
TanmayJadhav.noreply@github.com
369763c0f219753bd8c6a490f0df5b72badcc7f3
4f730232e528083d868d92640443e0c327329ec6
/scripts/rhinoscript/userinterface.py
ea6bb5de00e2c23f0600cd085af2986ca73deabc
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
matpapava/rhinopython
ad5aed71bba4c5554b8654f48a8c8054feb80c31
05a425c9df6f88ba857f68bb757daf698f0843c6
refs/heads/master
2021-05-29T12:34:34.788458
2015-06-08T11:58:43
2015-06-08T11:58:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
32,341
py
import Rhino import utility as rhutil import scriptcontext import System.Drawing.Color import System.Enum import System.Array import System.Windows.Forms import math from view import __viewhelper def BrowseForFolder(folder=None, message=None, title=None): """Display browse-for-folder dialog allowing the user to select a folder Parameters: folder[opt] = a default folder message[opt] = a prompt or message title[opt] = a dialog box title Returns: selected folder None on error """ dlg = System.Windows.Forms.FolderBrowserDialog() if folder: if not isinstance(folder, str): folder = str(folder) dlg.SelectedPath = folder if message: if not isinstance(message, str): message = str(message) dlg.Description = message if dlg.ShowDialog()==System.Windows.Forms.DialogResult.OK: return dlg.SelectedPath def CheckListBox(items, message=None, title=None): """Displays a list of items in a checkable-style list dialog box Parameters: items = a list of tuples containing a string and a boolean check state message[opt] = a prompt or message title[opt] = a dialog box title Returns: A list of tuples containing the input string in items along with their new boolean check value None on error """ checkstates = [item[1] for item in items] itemstrs = [str(item[0]) for item in items] newcheckstates = Rhino.UI.Dialogs.ShowCheckListBox(title, message, itemstrs, checkstates) if newcheckstates: rc = zip(itemstrs, newcheckstates) return rc return scriptcontext.errorhandler() def ComboListBox(items, message=None, title=None): """Displays a list of items in a combo-style list box dialog. Parameters: items = a list of string message[opt] = a prompt of message title[opt] = a dialog box title Returns: The selected item if successful None if not successful or on error """ return Rhino.UI.Dialogs.ShowComboListBox(title, message, items) def EditBox(default_string=None, message=None, title=None): """Display dialog box prompting the user to enter a string value. The string value may span multiple lines """ rc, text = Rhino.UI.Dialogs.ShowEditBox(title, message, default_string, True) return text def GetAngle(point=None, reference_point=None, default_angle_degrees=0, message=None): """Pause for user input of an angle Parameters: point(opt) = starting, or base point reference_point(opt) = if specified, the reference angle is calculated from it and the base point default_angle_degrees(opt) = a default angle value specified message(opt) = a prompt to display Returns: angle in degree if successful, None on error """ point = rhutil.coerce3dpoint(point) if not point: point = Rhino.Geometry.Point3d.Unset reference_point = rhutil.coerce3dpoint(reference_point) if not reference_point: reference_point = Rhino.Geometry.Point3d.Unset default_angle = math.radians(default_angle_degrees) rc, angle = Rhino.Input.RhinoGet.GetAngle(message, point, reference_point, default_angle) if rc==Rhino.Commands.Result.Success: return math.degrees(angle) def GetBoolean(message, items, defaults): """Pauses for user input of one or more boolean values. Boolean values are displayed as click-able command line option toggles Parameters: message = a prompt items = list or tuple of options. Each option is a tuple of three strings element 1 = description of the boolean value. Must only consist of letters and numbers. (no characters like space, period, or dash element 2 = string identifying the false value element 3 = string identifying the true value defaults = list of boolean values used as default or starting values Returns: a list of values that represent the boolean values if successful None on error """ go = Rhino.Input.Custom.GetOption() go.AcceptNothing(True) go.SetCommandPrompt( message ) if type(defaults) is list or type(defaults) is tuple: pass else: defaults = [defaults] # special case for single list. Wrap items into a list if len(items)==3 and len(defaults)==1: items = [items] count = len(items) if count<1 or count!=len(defaults): return scriptcontext.errorhandler() toggles = [] for i in range(count): initial = defaults[i] item = items[i] offVal = item[1] t = Rhino.Input.Custom.OptionToggle( initial, item[1], item[2] ) toggles.append(t) go.AddOptionToggle(item[0], t) while True: getrc = go.Get() if getrc==Rhino.Input.GetResult.Option: continue if getrc!=Rhino.Input.GetResult.Nothing: return None break return [t.CurrentValue for t in toggles] def GetBox(mode=0, base_point=None, prompt1=None, prompt2=None, prompt3=None): """Pauses for user input of a box Parameters: mode[opt] = The box selection mode. 0 = All modes 1 = Corner. The base rectangle is created by picking two corner points 2 = 3-Point. The base rectangle is created by picking three points 3 = Vertical. The base vertical rectangle is created by picking three points. 4 = Center. The base rectangle is created by picking a center point and a corner point base_point[opt] = optional 3D base point prompt1, prompt2, prompt3 [opt] = optional prompts to set Returns: list of eight Point3d that define the corners of the box on success None is not successful, or on error """ base_point = rhutil.coerce3dpoint(base_point) if base_point is None: base_point = Rhino.Geometry.Point3d.Unset rc, box = Rhino.Input.RhinoGet.GetBox(mode, base_point, prompt1, prompt2, prompt3) if rc==Rhino.Commands.Result.Success: return tuple(box.GetCorners()) def GetColor(color=[0,0,0]): """Display the Rhino color picker dialog allowing the user to select an RGB color Parameters: color [opt] = default RGB value. If omitted, the default color is black Returns: RGB tuple of three numbers on success None on error """ color = rhutil.coercecolor(color) if color is None: color = System.Drawing.Color.Black rc, color = Rhino.UI.Dialogs.ShowColorDialog(color) if rc: return color.R, color.G, color.B return scriptcontext.errorhandler() def GetCursorPos(): """Retrieves the cursor's position Returns: tuple containing the following information cursor position in world coordinates cursor position in screen coordinates id of the active viewport cursor position in client coordinates """ view = scriptcontext.doc.Views.ActiveView screen_pt = Rhino.UI.MouseCursor.Location client_pt = view.ScreenToClient(screen_pt) viewport = view.ActiveViewport xf = viewport.GetTransform(Rhino.DocObjects.CoordinateSystem.Screen, Rhino.DocObjects.CoordinateSystem.World) world_pt = Rhino.Geometry.Point3d(client_pt.X, client_pt.Y, 0) world_pt.Transform(xf) return world_pt, screen_pt, viewport.Id, client_pt def GetEdgeCurves(message=None, min_count=1, max_count=0, select=False): """Prompt the user to pick one or more surface or polysurface edge curves Parameters: message [optional] = A prompt or message. min_count [optional] = minimum number of edges to select. max_count [optional] = maximum number of edges to select. select [optional] = Select the duplicated edge curves. Returns: List of (curve id, parent id, selection point) None if not successful """ if min_count<0 or (max_count>0 and min_count>max_count): return if not message: message = "Select Edges" go = Rhino.Input.Custom.GetObject() go.SetCommandPrompt(message) go.GeometryFilter = Rhino.DocObjects.ObjectType.Curve go.GeometryAttributeFilter = Rhino.Input.Custom.GeometryAttributeFilter.EdgeCurve go.EnablePreSelect(False, True) rc = go.GetMultiple(min_count, max_count) if rc!=Rhino.Input.GetResult.Object: return rc = [] for i in range(go.ObjectCount): edge = go.Object(i).Edge() if not edge: continue edge = edge.Duplicate() curve_id = scriptcontext.doc.Objects.AddCurve(edge) parent_id = go.Object(i).ObjectId pt = go.Object(i).SelectionPoint() rc.append( (curve_id, parent_id, pt) ) if select: for item in rc: rhobj = scriptcontext.doc.Objects.Find(item[0]) rhobj.Select(True) scriptcontext.doc.Views.Redraw() return rc def GetInteger(message=None, number=None, minimum=None, maximum=None): """Pauses for user input of a whole number. Parameters: message [optional] = A prompt or message. number [optional] = A default whole number value. minimum [optional] = A minimum allowable value. maximum [optional] = A maximum allowable value. Returns: The whole number input by the user if successful. None if not successful, or on error """ gi = Rhino.Input.Custom.GetInteger() if message: gi.SetCommandPrompt(message) if number is not None: gi.SetDefaultInteger(number) if minimum is not None: gi.SetLowerLimit(minimum, False) if maximum is not None: gi.SetUpperLimit(maximum, False) if gi.Get()!=Rhino.Input.GetResult.Number: return scriptcontext.errorhandler() rc = gi.Number() gi.Dispose() return rc def GetLayer(title="Select Layer", layer=None, show_new_button=False, show_set_current=False): """Displays dialog box prompting the user to select a layer Parameters: title[opt] = dialog box title layer[opt] = name of a layer to preselect. If omitted, the current layer will be preselected show_new_button, show_set_current[opt] = Optional buttons to show on the dialog Returns: name of selected layer if successful None on error """ layer_index = scriptcontext.doc.Layers.CurrentLayerIndex if layer: index = scriptcontext.doc.Layers.Find(layer, True) if index!=-1: layer_index = index rc = Rhino.UI.Dialogs.ShowSelectLayerDialog(layer_index, title, show_new_button, show_set_current, True) if rc[0]!=System.Windows.Forms.DialogResult.OK: return None layer = scriptcontext.doc.Layers[rc[1]] return layer.FullPath def GetLayers(title="Select Layers", show_new_button=False): """Displays a dialog box prompting the user to select one or more layers Parameters: title[opt] = dialog box title show_new_button[opt] = Optional button to show on the dialog Returns: The names of selected layers if successful """ rc, layer_indices = Rhino.UI.Dialogs.ShowSelectMultipleLayersDialog(None, title, show_new_button) if rc==System.Windows.Forms.DialogResult.OK: return [scriptcontext.doc.Layers[index].FullPath for index in layer_indices] def GetLine(mode=0, point=None, message1=None, message2=None, message3=None): """Prompts the user to pick points that define a line Parameters: mode[opt] = line definition mode. See help file for details point[opt] = optional starting point message1, message2, message3 = optional prompts Returns: Tuple of two points on success None on error """ gl = Rhino.Input.Custom.GetLine() if mode==0: gl.EnableAllVariations(True) else: gl.GetLineMode = System.Enum.ToObject( Rhino.Input.Custom.GetLineMode, mode-1 ) if point: point = rhutil.coerce3dpoint(point) gl.SetFirstPoint(point) if message1: gl.FirstPointPrompt = message1 if message2: gl.MidPointPrompt = message2 if message3: gl.SecondPointPromp = message3 rc, line = gl.Get() if rc==Rhino.Commands.Result.Success: return line.From, line.To def GetMeshFaces(object_id, message="", min_count=1, max_count=0): """Prompts the user to pick one or more mesh faces Parameters: object_id = the mesh object's identifier message[opt] = a prompt of message min_count[opt] = the minimum number of faces to select max_count[opt] = the maximum number of faces to select. If 0, the user must press enter to finish selection. If -1, selection stops as soon as there are at least min_count faces selected. Returns: list of mesh face indices on success None on error """ scriptcontext.doc.Objects.UnselectAll() scriptcontext.doc.Views.Redraw() object_id = rhutil.coerceguid(object_id, True) def FilterById( rhino_object, geometry, component_index ): return object_id == rhino_object.Id go = Rhino.Input.Custom.GetObject() go.SetCustomGeometryFilter(FilterById) if message: go.SetCommandPrompt(message) go.GeometryFilter = Rhino.DocObjects.ObjectType.MeshFace go.AcceptNothing(True) if go.GetMultiple(min_count,max_count)!=Rhino.Input.GetResult.Object: return None objrefs = go.Objects() rc = [item.GeometryComponentIndex.Index for item in objrefs] go.Dispose() return rc def GetMeshVertices(object_id, message="", min_count=1, max_count=0): """Prompts the user to pick one or more mesh vertices Parameters: object_id = the mesh object's identifier message[opt] = a prompt of message min_count[opt] = the minimum number of vertices to select max_count[opt] = the maximum number of vertices to select. If 0, the user must press enter to finish selection. If -1, selection stops as soon as there are at least min_count vertices selected. Returns: list of mesh vertex indices on success None on error """ scriptcontext.doc.Objects.UnselectAll() scriptcontext.doc.Views.Redraw() object_id = rhutil.coerceguid(object_id, True) class CustomGetObject(Rhino.Input.Custom.GetObject): def CustomGeometryFilter( self, rhino_object, geometry, component_index ): return object_id == rhino_object.Id go = CustomGetObject() if message: go.SetCommandPrompt(message) go.GeometryFilter = Rhino.DocObjects.ObjectType.MeshVertex go.AcceptNothing(True) if go.GetMultiple(min_count,max_count)!=Rhino.Input.GetResult.Object: return None objrefs = go.Objects() rc = [item.GeometryComponentIndex.Index for item in objrefs] go.Dispose() return rc def GetPoint(message=None, base_point=None, distance=None, in_plane=False): """Pauses for user input of a point. Parameters: message [opt] = A prompt or message. base_point [opt] = list of 3 numbers or Point3d identifying a starting, or base point distance [opt] = constraining distance. If distance is specified, basePoint must also be sepcified. in_plane [opt] = constrains the point selections to the active construction plane. Returns: point on success None if no point picked or user canceled """ gp = Rhino.Input.Custom.GetPoint() if message: gp.SetCommandPrompt(message) base_point = rhutil.coerce3dpoint(base_point) if base_point: gp.DrawLineFromPoint(base_point,True) gp.EnableDrawLineFromPoint(True) if distance: gp.ConstrainDistanceFromBasePoint(distance) if in_plane: gp.ConstrainToConstructionPlane(True) gp.Get() if gp.CommandResult()!=Rhino.Commands.Result.Success: return scriptcontext.errorhandler() pt = gp.Point() gp.Dispose() return pt def GetPointOnCurve(curve_id, message=None): """Pauses for user input of a point constrainted to a curve object Parameters: curve_id = identifier of the curve to get a point on message [opt] = a prompt of message Returns: 3d point if successful None on error """ curve = rhutil.coercecurve(curve_id, -1, True) gp = Rhino.Input.Custom.GetPoint() if message: gp.SetCommandPrompt(message) gp.Constrain(curve, False) gp.Get() if gp.CommandResult()!=Rhino.Commands.Result.Success: return scriptcontext.errorhandler() pt = gp.Point() gp.Dispose() return pt def GetPointOnMesh(mesh_id, message=None): """Pauses for user input of a point constrained to a mesh object Parameters: mesh_id = identifier of the mesh to get a point on message [opt] = a prompt or message Returns: 3d point if successful None on error """ mesh_id = rhutil.coerceguid(mesh_id, True) if not message: message = "Point" cmdrc, point = Rhino.Input.RhinoGet.GetPointOnMesh(mesh_id, message, False) if cmdrc==Rhino.Commands.Result.Success: return point def GetPointOnSurface(surface_id, message=None): """Pauses for user input of a point constrained to a surface or polysurface object Parameters: surface_id = identifier of the surface to get a point on message [opt] = a prompt or message Returns: 3d point if successful None on error """ surfOrBrep = rhutil.coercesurface(surface_id) if not surfOrBrep: surfOrBrep = rhutil.coercebrep(surface_id, True) gp = Rhino.Input.Custom.GetPoint() if message: gp.SetCommandPrompt(message) if isinstance(surfOrBrep,Rhino.Geometry.Surface): gp.Constrain(surfOrBrep,False) else: gp.Constrain(surfOrBrep, -1, -1, False) gp.Get() if gp.CommandResult()!=Rhino.Commands.Result.Success: return scriptcontext.errorhandler() pt = gp.Point() gp.Dispose() return pt def GetPoints(draw_lines=False, in_plane=False, message1=None, message2=None, max_points=None, base_point=None): """Pauses for user input of one or more points Parameters: draw_lines [opt] = Draw lines between points in_plane[opt] = Constrain point selection to the active construction plane message1[opt] = A prompt or message for the first point message2[opt] = A prompt or message for the next points max_points[opt] = maximum number of points to pick. If not specified, an unlimited number of points can be picked. base_point[opt] = a starting or base point Returns: list of 3d points if successful None if not successful or on error """ gp = Rhino.Input.Custom.GetPoint() if message1: gp.SetCommandPrompt(message1) gp.EnableDrawLineFromPoint( draw_lines ) if in_plane: gp.ConstrainToConstructionPlane(True) plane = scriptcontext.doc.Views.ActiveView.ActiveViewport.ConstructionPlane() gp.Constrain(plane, False) getres = gp.Get() if gp.CommandResult()!=Rhino.Commands.Result.Success: return None prevPoint = gp.Point() rc = [prevPoint] if max_points is None or max_points>1: current_point = 1 if message2: gp.SetCommandPrompt(message2) def GetPointDynamicDrawFunc( sender, args ): if len(rc)>1: c = Rhino.ApplicationSettings.AppearanceSettings.FeedbackColor args.Display.DrawPolyline(rc, c) if draw_lines: gp.DynamicDraw += GetPointDynamicDrawFunc while True: if max_points and current_point>=max_points: break if draw_lines: gp.DrawLineFromPoint(prevPoint, True) gp.SetBasePoint(prevPoint, True) current_point += 1 getres = gp.Get() if getres==Rhino.Input.GetResult.Cancel: break if gp.CommandResult()!=Rhino.Commands.Result.Success: return None prevPoint = gp.Point() rc.append(prevPoint) return rc def GetReal(message="Number", number=None, minimum=None, maximum=None): """Pauses for user input of a number. Parameters: message [optional] = A prompt or message. number [optional] = A default number value. minimum [optional] = A minimum allowable value. maximum [optional] = A maximum allowable value. Returns: The number input by the user if successful. None if not successful, or on error """ gn = Rhino.Input.Custom.GetNumber() if message: gn.SetCommandPrompt(message) if number is not None: gn.SetDefaultNumber(number) if minimum is not None: gn.SetLowerLimit(minimum, False) if maximum is not None: gn.SetUpperLimit(maximum, False) if gn.Get()!=Rhino.Input.GetResult.Number: return None rc = gn.Number() gn.Dispose() return rc def GetRectangle(mode=0, base_point=None, prompt1=None, prompt2=None, prompt3=None): """Pauses for user input of a rectangle Parameters: mode[opt] = The rectangle selection mode. The modes are as follows 0 = All modes 1 = Corner - a rectangle is created by picking two corner points 2 = 3Point - a rectangle is created by picking three points 3 = Vertical - a vertical rectangle is created by picking three points 4 = Center - a rectangle is created by picking a center point and a corner point base_point[opt] = a 3d base point prompt1, prompt2, prompt3 = optional prompts Returns: a tuple of four 3d points that define the corners of the rectangle None on error """ mode = System.Enum.ToObject( Rhino.Input.GetBoxMode, mode ) base_point = rhutil.coerce3dpoint(base_point) if( base_point==None ): base_point = Rhino.Geometry.Point3d.Unset prompts = ["", "", ""] if prompt1: prompts[0] = prompt1 if prompt2: prompts[1] = prompt2 if prompt3: prompts[2] = prompt3 rc, corners = Rhino.Input.RhinoGet.GetRectangle(mode, base_point, prompts) if rc==Rhino.Commands.Result.Success: return corners return None def GetString(message=None, defaultString=None, strings=None): """Pauses for user input of a string value Parameters: message [opt]: a prompt or message defaultString [opt]: a default value strings [opt]: list of strings to be displayed as a click-able command options. Note, strings cannot begin with a numeric character """ gs = Rhino.Input.Custom.GetString() gs.AcceptNothing(True) if message: gs.SetCommandPrompt(message) if defaultString: gs.SetDefaultString(defaultString) if strings: for s in strings: gs.AddOption(s) result = gs.Get() if result==Rhino.Input.GetResult.Cancel: return None if( result == Rhino.Input.GetResult.Option ): return gs.Option().EnglishName return gs.StringResult() def ListBox(items, message=None, title=None, default=None): """Display a list of items in a list box dialog. Parameters: items = a list message [opt] = a prompt of message title [opt] = a dialog box title default [opt] = selected item in the list Returns: The selected item if successful None if not successful or on error """ return Rhino.UI.Dialogs.ShowListBox(title, message, items, default) def MessageBox(message, buttons=0, title=""): """Displays a message box. A message box contains a message and title, plus any combination of predefined icons and push buttons. Parameters: message = A prompt or message. buttons[opt] = buttons and icon to display. Can be a combination of the following flags. If omitted, an OK button and no icon is displayed 0 Display OK button only. 1 Display OK and Cancel buttons. 2 Display Abort, Retry, and Ignore buttons. 3 Display Yes, No, and Cancel buttons. 4 Display Yes and No buttons. 5 Display Retry and Cancel buttons. 16 Display Critical Message icon. 32 Display Warning Query icon. 48 Display Warning Message icon. 64 Display Information Message icon. 0 First button is the default. 256 Second button is the default. 512 Third button is the default. 768 Fourth button is the default. 0 Application modal. The user must respond to the message box before continuing work in the current application. 4096 System modal. The user must respond to the message box before continuing work in any application. title[opt] = the dialog box title Returns: A number indicating which button was clicked: 1 OK button was clicked. 2 Cancel button was clicked. 3 Abort button was clicked. 4 Retry button was clicked. 5 Ignore button was clicked. 6 Yes button was clicked. 7 No button was clicked. """ buttontype = buttons & 0x00000007 #111 in binary btn = System.Windows.Forms.MessageBoxButtons.OK if buttontype==1: btn = System.Windows.Forms.MessageBoxButtons.OKCancel elif buttontype==2: btn = System.Windows.Forms.MessageBoxButtons.AbortRetryIgnore elif buttontype==3: btn = System.Windows.Forms.MessageBoxButtons.YesNoCancel elif buttontype==4: btn = System.Windows.Forms.MessageBoxButtons.YesNo elif buttontype==5: btn = System.Windows.Forms.MessageBoxButtons.RetryCancel icontype = buttons & 0x00000070 icon = System.Windows.Forms.MessageBoxIcon.None if icontype==16: icon = System.Windows.Forms.MessageBoxIcon.Error elif icontype==32: icon = System.Windows.Forms.MessageBoxIcon.Question elif icontype==48: icon = System.Windows.Forms.MessageBoxIcon.Warning elif icontype==64: icon = System.Windows.Forms.MessageBoxIcon.Information defbtntype = buttons & 0x00000300 defbtn = System.Windows.Forms.MessageBoxDefaultButton.Button1 if defbtntype==256: defbtn = System.Windows.Forms.MessageBoxDefaultButton.Button2 elif defbtntype==512: defbtn = System.Windows.Forms.MessageBoxDefaultButton.Button3 if not isinstance(message, str): message = str(message) dlg_result = Rhino.UI.Dialogs.ShowMessageBox(message, title, btn, icon, defbtn) if dlg_result==System.Windows.Forms.DialogResult.OK: return 1 if dlg_result==System.Windows.Forms.DialogResult.Cancel: return 2 if dlg_result==System.Windows.Forms.DialogResult.Abort: return 3 if dlg_result==System.Windows.Forms.DialogResult.Retry: return 4 if dlg_result==System.Windows.Forms.DialogResult.Ignore: return 5 if dlg_result==System.Windows.Forms.DialogResult.Yes: return 6 if dlg_result==System.Windows.Forms.DialogResult.No: return 7 def PropertyListBox(items, values, message=None, title=None): """Displays list of items and their values in a property-style list box dialog Parameters: items, values = list of string items and their corresponding values message [opt] = a prompt or message title [opt] = a dialog box title Returns: a list of new values on success None on error """ values = [str(v) for v in values] return Rhino.UI.Dialogs.ShowPropertyListBox(title, message, items, values) def OpenFileName(title=None, filter=None, folder=None, filename=None, extension=None): """Displays file open dialog box allowing the user to enter a file name. Note, this function does not open the file. Parameters: title[opt] = A dialog box title. filter[opt] = A filter string. The filter must be in the following form: "Description1|Filter1|Description2|Filter2||", where "||" terminates filter string. If omitted, the filter (*.*) is used. folder[opt] = A default folder. filename[opt] = a default file name extension[opt] = a default file extension Returns: the file name is successful None if not successful, or on error """ fd = Rhino.UI.OpenFileDialog() if title: fd.Title = title if filter: fd.Filter = filter if folder: fd.InitialDirectory = folder if filename: fd.FileName = filename if extension: fd.DefaultExt = extension if fd.ShowDialog()==System.Windows.Forms.DialogResult.OK: return fd.FileName def OpenFileNames(title=None, filter=None, folder=None, filename=None, extension=None): """Displays file open dialog box allowing the user to select one or more file names. Note, this function does not open the file. Parameters: title[opt] = A dialog box title. filter[opt] = A filter string. The filter must be in the following form: "Description1|Filter1|Description2|Filter2||", where "||" terminates filter string. If omitted, the filter (*.*) is used. folder[opt] = A default folder. filename[opt] = a default file name extension[opt] = a default file extension Returns: list of selected file names """ fd = Rhino.UI.OpenFileDialog() if title: fd.Title = title if filter: fd.Filter = filter if folder: fd.InitialDirectory = folder if filename: fd.FileName = filename if extension: fd.DefaultExt = extension fd.MultiSelect = True rc = [] if fd.ShowDialog()==System.Windows.Forms.DialogResult.OK: rc = fd.FileNames return rc def PopupMenu(items, modes=None, point=None, view=None): """Displays a user defined, context-style popup menu. The popup menu can appear almost anywhere, and it can be dismissed by either clicking the left or right mouse buttons Parameters: items = list of strings representing the menu items. An empty string or None will create a separator modes[opt] = List of numbers identifying the display modes. If omitted, all modes are enabled. 0 = menu item is enabled 1 = menu item is disabled 2 = menu item is checked 3 = menu item is disabled and checked point[opt] = a 3D point where the menu item will appear. If omitted, the menu will appear at the current cursor position view[opt] = if point is specified, the view in which the point is computed. If omitted, the active view is used Returns: index of the menu item picked or -1 if no menu item was picked """ screen_point = System.Windows.Forms.Cursor.Position if point: point = rhutil.coerce3dpoint(point) view = __viewhelper(view) viewport = view.ActiveViewport point2d = viewport.WorldToClient(point) screen_point = viewport.ClientToScreen(point2d) return Rhino.UI.Dialogs.ShowContextMenu(items, screen_point, modes); def RealBox(message="", default_number=None, title="", minimum=None, maximum=None): """Display a dialog box prompting the user to enter a number Returns: number on success None on error """ if default_number is None: default_number = Rhino.RhinoMath.UnsetValue if minimum is None: minimum = Rhino.RhinoMath.UnsetValue if maximum is None: maximum = Rhino.RhinoMath.UnsetValue rc, number = Rhino.UI.Dialogs.ShowNumberBox(title, message, default_number, minimum, maximum) if rc==System.Windows.Forms.DialogResult.OK: return number def SaveFileName(title=None, filter=None, folder=None, filename=None, extension=None): """Display a save dialog box allowing the user to enter a file name. Note, this function does not save the file. Parameters: title[opt] = A dialog box title. filter[opt] = A filter string. The filter must be in the following form: "Description1|Filter1|Description2|Filter2||", where "||" terminates filter string. If omitted, the filter (*.*) is used. folder[opt] = A default folder. filename[opt] = a default file name extension[opt] = a default file extension Returns: the file name is successful None if not successful, or on error """ fd = Rhino.UI.SaveFileDialog() if title: fd.Title = title if filter: fd.Filter = filter if folder: fd.InitialDirectory = folder if filename: fd.FileName = filename if extension: fd.DefaultExt = extension if fd.ShowDialog()==System.Windows.Forms.DialogResult.OK: return fd.FileName def StringBox(message=None, default_value=None, title=None): "Display a dialog box prompting the user to enter a string value." rc, text = Rhino.UI.Dialogs.ShowEditBox(title, message, default_value, False) if rc!=System.Windows.Forms.DialogResult.OK: return None return text
[ "steve@mcneel.com" ]
steve@mcneel.com
424d77d09f728f2f9bc7d49c2a6a3fae73c126c9
4df97c755bfc07466e703b9baf7e1df88781c4af
/helix/admin.py
8cbfed8cb4e11e5286d8d615a581cd9ff2b2d0e6
[]
no_license
ClearlyEnergy/HELIX
7ac0c7cbb90239271d8a50972eaff7f740cb9f84
f70f1e1022b876f3f6928c60e49e4c3376adce84
refs/heads/master
2023-02-18T07:24:10.263494
2023-02-14T15:38:01
2023-02-14T15:38:01
93,413,537
0
1
null
2020-04-28T17:35:39
2017-06-05T14:37:59
HTML
UTF-8
Python
false
false
346
py
from django.contrib import admin from seed.models.certification import GreenAssessment # Adding this line lets GreenAssessments be modified through the django admin # web page. While I have implemented a front end for GreenAssessment management, # this interface should give finer control over assessments. admin.site.register(GreenAssessment)
[ "john.h.kastner@gmail.com" ]
john.h.kastner@gmail.com
c9eedb9eb923f373de9281857e1064a1816eb9b2
81eff7bf47e07d4245c8508702ec21c8f1cdc8b7
/iru/wsgi.py
02d353e1cb856b487c6d31a24bb5e9da04b81138
[]
no_license
albvt/airubot
edb4e9731336472ad6a7e0ea021b83c86d3214c2
e7a664bcc32ada008a1edb57673a1b9bde3aa620
refs/heads/master
2020-09-23T15:43:41.946704
2019-12-18T09:00:25
2019-12-18T09:00:25
225,534,296
0
0
null
null
null
null
UTF-8
Python
false
false
383
py
""" WSGI config for iru 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.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'iru.settings') application = get_wsgi_application()
[ "noreply@github.com" ]
albvt.noreply@github.com
bd766b070ced3c7597e9d11701ba4f9a23f5b096
c9c987ad061a858b74fbc31314d3043c3eea0439
/Data Parsing Code/TurkStuff.py
f59908c7bd96f8c960c203723482e566992af4d3
[]
no_license
KeithBurghardt/QualityRankCodeAndData
1b7390f77df79135b0b3d35fffeeb93a641ca2b3
eefc653b3b590390c0e54fc4a83ef265b8cc4f95
refs/heads/master
2020-09-15T17:27:41.028044
2020-01-27T23:35:34
2020-01-27T23:35:34
223,515,572
0
0
null
null
null
null
UTF-8
Python
false
false
7,255
py
#!/usr/bin/python import numpy as np from scipy.optimize import minimize from scipy.stats import shapiro import scipy.stats import matplotlib.pyplot as plt import sys import itertools import csv ''' 0: "Perimeter1.png":2.91393123655 1: "Line1.png":2.11605429697 2: "Area1.png": 4.27852 3: "Area2.png": 2.24069551 4: "Text1.png" (r's): 47 5: "CountProb-fig-6.png": 476 6: "CountProb-fig-7.png" (blue): 1043 7: "CountProb-fig-8.png": 568 8: "CountProb-fig-9.png": 2069 9: "CountProb-fig-10.png" (pink): 312 ''' cans = [2.91393123655, 2.11605429697, 4.27852, 2.24069551, 47, 476, 347, 568, 2069, 312] #batch and data files in temporal order prefix = "/home/posfaim/projects/turk/experiments/expfiles/" batchfiles= [ #experiment start date id "openended_Batch_3351317_batch_results.csv", #08-24-2018 0 "openended_Batch_3385763_batch_results.csv", #09-28-2018 1 "rankedchoice_Batch_3438695_batch_results.csv", #11-15-2018 2 "rankedchoice_Batch_3522925_batch_results.csv", #02-05-2019 3 "rankedchoice_Batch_3532861_batch_results.csv", #02-14-2019 3:20 PM PST 4 "unrankedchoice_Batch_3532972_batch_results.csv", #02-14-2019 5:22 PM PST 5 "unrankedchoice_Batch_3533008_batch_results.csv", #02-14-2019 6:14 PM PST 6 "rankedchoice_Batch_3566482_batch_results.csv", #03-13-2019 7 "openended_Batch_3750792_batch_results.csv", #08-28-2019 8 "openended_Batch_3751823_batch_results.csv", #08-29-2019 9 "openended_Batch_3752900_batch_results.csv", #08-30-2019 10 "unrankedchoice_Batch_3757778_batch_results.csv", #09-05-2019 10:08 AM PDT 11 "unrankedchoice_Batch_3757910_batch_results.csv" #09-05-2019 12:38 PM PDT 12 ] datafiles= [ #experiment start date "openended_TurkerGuess08-25-2018.csv", #08-24-2018 "openended_TurkerGuess09-29-2018.csv", #09-28-2018 "rankedchoice_MTurkQData_11-15-2018.csv", #11-15-2018 "rankedchoice_MTurkQData_02-05-2019.csv", #02-05-2019 "rankedchoice_MTurkQData_02-14-2019.csv", #02-14-2019 3:20 PM PST "unrankedchoice_MTurkNullQData_02-14-2019_cleaned.csv", #02-14-2019 5:22 PM PST "unrankedchoice_MTurkNullQData_02-14-2019_cleaned.csv", #02-14-2019 6:14 PM PST "rankedchoice_MTurkNullQData_03-13-2019_cleaned.csv", #03-13-2019 "openended_GuessData-08-31-2019_cleaned.csv", #08-28-2019 "openended_GuessData-08-31-2019_cleaned.csv", #08-29-2019 "openended_GuessData-08-31-2019_cleaned.csv", #08-30-2019 "unrankedchoice_NoRankData-09-05-2019_cleaned.csv", #09-05-2019 10:08 AM PDT "unrankedchoice_NoRankData-09-05-2019_cleaned.csv" #09-05-2019 12:38 PM PDT ] openended_exps = [0,1,8,9,10] unrankedchoice_exps = [5,6,11,12] rankedchoice_exps = [2,3,4,7] #get worker ids and survey codes #but only if this is the first participation of the worker def GetWorkerIDsSCs(expids): if isinstance(expids, int): expids = [expids] wids = [] scs = [] for exp1 in expids: previous_wids = [] for exp2 in range(exp1): with open(prefix+batchfiles[exp2], mode='r') as csvfile: dict_reader = csv.DictReader(csvfile) for row in dict_reader: previous_wids.append(row["WorkerId"]) with open(prefix+batchfiles[exp1], mode='r') as csvfile: dict_reader = csv.DictReader(csvfile) for row in dict_reader: if row["WorkerId"] not in previous_wids: wids.append(row["WorkerId"]) scs.append(row["Answer.surveycode"]) return wids, scs #### Open-ended experiment #get guesses and the times spent on questions def GetGuessesTime(expids): if isinstance(expids, int): expids = [expids] guesses = {} times = {} orders = {} for exp1 in expids: wids, scs = GetWorkerIDsSCs(exp1) for sc in scs: guesses[sc] = np.zeros(10,dtype=np.float) times[sc] = np.zeros(10,dtype=np.float) orders[sc] = np.zeros(10,dtype=np.float) with open(prefix+datafiles[exp1], mode='r') as csvfile: dict_reader = csv.DictReader(csvfile) for row in dict_reader: if row['survey_code'] in scs: if row['RandQ']!='NULL' and row['RandQ']!='': qid = int(row['RandQ'])-1 sc = row['survey_code'] guesses[sc][qid] = row['Guess'] #calculate time spent on question #csv file has time when questions are started and when complete task ends #this assumes that questions are in temporal order in csv tstart = float(row["TimeStarted"]) qorder = int(row['QNum']) orders[sc][qid] = qorder-1 if qorder > 1: times[sc][qid_prev] = tstart - tstart_prev tstart_prev = tstart qid_prev = qid elif row['end_time']!='NULL' and row['end_time']!='': sc = row['survey_code'] tend9 = float(row["end_time"]) times[sc][qid_prev] = tend9 - tstart_prev qid_prev = None tstart_prev = None return guesses, times, orders def GetGuesses(expids): if isinstance(expids, int): expids = [expids] guesses = [ [] for qid in range(10)] for exp1 in expids: wids, scs = GetWorkerIDsSCs(exp1) with open(prefix+datafiles[exp1], mode='r') as csvfile: dict_reader = csv.DictReader(csvfile) for row in dict_reader: if row['survey_code'] in scs: if row['RandQ']!='NULL' and row['RandQ']!='': qid = int(row['RandQ'])-1 guesses[qid].append(float(row['Guess'])) for qid in range(10): guesses[qid].sort() return guesses #read cleaned data def GetCleanData(filename): data = [] with open(filename, mode='r') as csvfile: dict_reader = csv.DictReader(csvfile) for row in dict_reader: sc = row['SurveyCode'] data.append({}) data[-1]['SurveyCode']=row['SurveyCode'] data[-1]['Guess'] = float(row['Guess']) data[-1]['Time'] = float(row['Time']) data[-1]['Guess'] = float(row['Guess']) data[-1]['CorrectAnswer'] = float(row['CorrectAnswer']) data[-1]['Q'] = int(row['Q']) data[-1]['QOrder'] = int(row['QOrder']) data[-1]['Batch'] = int(row['Batch']) return data #### Choice experiment def GetChoices(expids): if isinstance(expids, int): expids = [expids] all_data = {} for exp1 in expids: wids, scs = GetWorkerIDsSCs(exp1) data = {sc: [np.zeros(3) for i in range(10)] for sc in scs}#each entry: high ranked option, low ranked option, choice with open(prefix+datafiles[exp1], mode='r') as csvfile: dict_reader = csv.DictReader(csvfile) rawdata = [row for row in dict_reader] for sc in scs: for Q in range(10): #select appropriate rows selected = [] for row in rawdata: if (row["RandQ"].isdigit() and int(row["RandQ"])-1==Q) and row["survey_code"]==sc: selected.append(row) if len(selected)>1: for row2 in selected[:2]: if int(row2['AnswerOrder'])==1: data[sc][Q][0] = float(row2["Guess"]) #high ranked option if int(row2['AnswerOrder'])==2: data[sc][Q][1] = float(row2["Guess"]) #low ranked option #which one was chosen chosen_id = int(selected[0]['AnswerChosen'])-1 if int(selected[chosen_id]['AnswerOrder'])==1: data[sc][Q][2] = 0 #high ranked was chosen else: data[sc][Q][2] = 1 #low ranked was chosen else: print >>sys.stderr, "Missing data" all_data.update(data) return all_data def main(): data = GetChoices(12) print data return if __name__ == '__main__': main()
[ "noreply@github.com" ]
KeithBurghardt.noreply@github.com
486cc782030d050b109bf6cba3d5be4c39e3a88b
540ac8ec262e71e3843350c49e7babe6108cb47f
/ui_system/ui_enums.py
cc51d5e88eafda7e447c9a1075ac8ec522987945
[]
no_license
Kavekha/NoGoNoMa
e5eb04e5c4281d7fde436080f269f5b28b801790
68b8cc02aa62867fbb1a0c87785be6f3d73c7f29
refs/heads/master
2020-09-15T17:04:50.325788
2020-02-03T14:54:39
2020-02-03T14:54:39
223,510,520
1
1
null
2020-02-03T14:54:40
2019-11-23T00:54:04
Python
UTF-8
Python
false
false
813
py
from enum import Enum class ItemMenuResult(Enum): CANCEL = 0 NO_RESPONSE = 1 SELECTED = 2 ACTION = 3 DESELECT = 4 class NextLevelResult(Enum): NO_EXIT = 0 NEXT_FLOOR = 1 EXIT_DUNGEON = 2 class YesNoResult(Enum): NO = 0 YES = 1 NO_RESPONSE = 2 class MainMenuSelection(Enum): NEWGAME = 0 LOAD_GAME = 1 QUIT = 2 OPTION = 3 NO_RESPONSE = 4 class OptionMenuSelection(Enum): CHANGE_LANGUAGE = 0 CHANGE_GRAPHICAL_MODE = 1 BACK_TO_MAIN_MENU = 2 NO_RESPONSE = 3 class Layers(Enum): BACKGROUND = 0 UNKNOWN = 1 MAP = 2 STAINS = 3 ITEM = 4 MONSTER = 5 PLAYER = 6 PARTICULE = 7 INTERFACE = 8 TOOLTIP = 9 BACKGROUND_MENU = 10 MENU = 11
[ "noreply@github.com" ]
Kavekha.noreply@github.com
6f2277101164e2fd6dac195e12949d3dca920dbe
8fe9b8de265a1cf408dba15605e0e0c33a6931ee
/exceptions/define_exception.py
1d94201250896bf695a200143de0ae758dc6c69c
[]
no_license
clivejan/python_object_oriented
d07346a2589fb630b2fd65d23ff2997c7e194b5d
8f1ef1925630962c474b143607c056e8c2a1d7af
refs/heads/master
2020-12-10T02:46:42.815508
2020-01-19T18:53:26
2020-01-19T18:53:26
233,484,869
0
0
null
null
null
null
UTF-8
Python
false
false
115
py
class InvalidWithdrawal(Exception): pass raise InvalidWithdrawal("Wake up! You don't have $50 in your account.")
[ "clive.jan@gmail.com" ]
clive.jan@gmail.com
034855e2bb92fcf999eda672e14c02072c57fa4e
cbb4118ffaff631b62dcd84c0cd478772d2fc0f4
/kNN求绝对和相对密度.py
4e66bbaf6553b2b1cdcc8d874540a48cdcae5b7e
[]
no_license
plutow1/2017CUMCMCoding
10d0893ea056440da1370974b8deb32d926261a7
ce88d2a575dc9a21c07f6175edf8a5098d4bbb24
refs/heads/master
2020-06-24T13:42:28.166762
2017-12-28T13:06:20
2017-12-28T13:06:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,315
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np import xlrd import xlwt import time from math import * ''' 预计运行时间: 已完成任务:132.96701199999995s 新任务:223.91732699999997s ''' '''根据经纬度计算两点实际距离km''' def CulDisFromLL(pointA, pointB): radlat1 = radians(pointA[0]) radlat2 = radians(pointB[0]) a = radlat1-radlat2 b = radians(pointA[1]) - radians(pointB[1]) s = 2 * np.arcsin(sqrt(pow(np.sin(a/2),2) + cos(radlat1) * cos(radlat2) * pow(sin(b/2),2))) earth_radius=6378.137 s = s * earth_radius if(s < 0): return -s else: return s ''' 读取文件坐标 oldOrNew参数:0:‘已完成任务’,1:‘新任务’ ''' def ReadFileLocation(fileName, oldOrNew): # 已完成任务表 data = xlrd.open_workbook(fileName) if(oldOrNew == 0): tableA = data.sheet_by_name('已完成任务') else: tableA = data.sheet_by_name('新任务') WeiList = tableA.col_values(1) #纬度 JingList = tableA.col_values(2) #经度 nrows = tableA.nrows APointList = [] for i in range(1, nrows): tempX = float(WeiList[i]) tempY = float(JingList[i]) APointList.append([tempX, tempY]) WeiList = [] JingList = [] # 会员信息表 tableB = data.sheet_by_name('会员信息') WeiList = tableB.col_values(1) #纬度 JingList = tableB.col_values(2) #经度 listWeight = [] nrows = tableB.nrows BPointList = [] for i in range(1, nrows): tempX = float(WeiList[i]) tempY = float(JingList[i]) BPointList.append([tempX, tempY]) return np.array(APointList), np.array(BPointList) ''' 读取文件属性列 weightB参数用于获取会员信息表中附加属性,即kNN中出现频率的量度属性 3-任务限额 4-任务开始时间 5-信誉值 ''' def ReadFileWeight(fileName, weightB): # 已完成任务表 data = xlrd.open_workbook(fileName) # 会员信息表 tableB = data.sheet_by_name('会员信息') listWeight = tableB.col_values(weightB)[1:] #相对时间 return np.array(listWeight) '''默认出现频率衡量度为距离的kNN''' def AbskNNAlgorithm(X, y, k): kNN = [] ySize = y.shape[0] XSize = X.shape[0] #对X(已完成任务)中每个元素进行knn for i in range(XSize): distances = [] for j in range(ySize): distances.append(float(CulDisFromLL(X[i], y[j]))) distances.sort()#升序 Ksum = 0 for l in range(1, k+1): Ksum = Ksum + distances[l] if(Ksum == 0): #为了防止除以0 kNN.append(float('inf')) continue kNN.append(k/Ksum) return kNN '''带出现频率衡量度的绝对密度''' def AbskNNAlgorithmWithWeight(X, y, listWeight, k): kNN = [] ySize = y.shape[0] XSize = X.shape[0] #对X(已完成任务)中每个元素进行knn for i in range(XSize): distances = [] for j in range(ySize): distances.append([float(CulDisFromLL(X[i], y[j])), listWeight[j]]) distances.sort(key=lambda x: x[0])#对距离升序 Ksum = 0 for l in range(k): Ksum = Ksum + distances[l][1] kNN.append(k/Ksum) return kNN '''相对密度的分子部分,即对密度求kNN''' def RelakNN(dataSet, k): kNN = [] dataSetSize = dataSet.shape[0] for i in range(dataSetSize): distances = [] for j in range(dataSetSize): distances.append([float(CulDisFromLL(dataSet[i][0], dataSet[j][0])), dataSet[j][1]]) distances.sort(key=lambda x: x[0]) Ksum = 0 for l in range(1, k+1): Ksum = Ksum + distances[l][1] kNN.append(Ksum/k) return kNN ''' 把数据写入xls oldOrNew参数:0:‘已完成任务’,1:‘新任务’ ''' def WriteDataInXls(abskNN, relkNN, oldOrNew): workbook = xlwt.Workbook() sheet1 = workbook.add_sheet("绝对密度") sheet1.write(0, 0, "绝对任务密度") sheet1.write(0, 1, "绝对会员密度") sheet1.write(0, 2, "绝对限额密度") sheet1.write(0, 3, "绝对时间密度") sheet1.write(0, 4, "绝对信誉度密度") # kNN列表是一个5行*很多列的矩阵 for j in range(len(abskNN)):#循环次数为5 for i in range(len(abskNN[j])): sheet1.write(i+1, j, abskNN[j][i]) sheet2 = workbook.add_sheet("相对密度") sheet2.write(0, 0, "相对任务密度") sheet2.write(0, 1, "相对会员密度") sheet2.write(0, 2, "相对限额密度") sheet2.write(0, 3, "相对时间密度") sheet2.write(0, 4, "相对信誉度密度") for j in range(len(relkNN)): for i in range(len(relkNN[j])): sheet2.write(i+1, j, relkNN[j][i]) if(oldOrNew == 0): workbook.save("./kNN求密度数据(已完成任务).xls") else: workbook.save("./kNN求密度数据(新任务).xls") def main(): strFilePath = './原始信息.xlsx' k = 7 #k不能为0! oldOrNew = 1 #oldOrNew参数:0:‘已完成任务’,1:‘新任务’ a, b = ReadFileLocation(strFilePath, oldOrNew) # 求绝对密度 kNNabs = [] #0任务,1会员,2限额,3时间,4信誉 kNNabs.append(AbskNNAlgorithm(a, a, k)) kNNabs.append(AbskNNAlgorithm(a, b, k)) for i in range(3, 6): c = ReadFileWeight(strFilePath, i) kNNabs.append(AbskNNAlgorithmWithWeight(a, b, c, k)) # kNN列表是5*多维的矩阵 #求相对密度 kNNrels = [] #0任务,1会员,2限额,3时间,4信誉 for i in range(len(kNNabs)): kNNrel = [] tempDataSet = [] for j in range(len(kNNabs[i])): tempDataSet.append([a[j], kNNabs[i][j]]) tempkNNRel = RelakNN(np.array(tempDataSet), k) for j in range(len(kNNabs[i])): if(kNNabs[i][j]==float('inf')): kNNrel.append(0.0) continue kNNrel.append(tempkNNRel[j]/kNNabs[i][j]) kNNrels.append(kNNrel) WriteDataInXls(kNNabs, kNNrels, oldOrNew) start = time.clock() main() elapsed = (time.clock()-start) print("run time: "+str(elapsed)+" s")
[ "517862788@qq.com" ]
517862788@qq.com
cbcf2b9416d0824ff114b479613be3948192a70f
3b648f2490f233d915d21e86febcbefe2f95f042
/Pandemi Simulasyonu/Pandemi.py
8047d1ce6eb3cf97349483db194bc022db4fa51c
[]
no_license
Ahmetyildrm/Pandemic-Simulation
82c13f3ece6d097468467c1b966a6e7c27a0b8dd
e2cc40aa79d831638c930c17fa1d42246970fbe8
refs/heads/main
2023-04-16T08:06:14.968445
2021-04-22T22:57:50
2021-04-22T22:57:50
360,702,285
0
0
null
null
null
null
UTF-8
Python
false
false
4,074
py
import cv2 import numpy as np import random import math import time from matplotlib import pyplot as plt fourcc = cv2.VideoWriter_fourcc(*"XVID") out = cv2.VideoWriter('camera2.avi',fourcc, 30.0, (1920,1080), 1) # Sondaki 0 grayscale kaydedeceğimiz için def calculateDistance(x1, y1, x2, y2): dist = math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2) return dist width = 1920 height = 1080 bg = np.zeros((height, width, 3), np.uint8) XPoints = [] YPoints = [] Points = [] Numberofpoints = 50 isInfected = np.zeros((1, Numberofpoints),np.uint8) InitialInfected = 1 for j in range(InitialInfected): isInfected[0][j] = 1 InfectedCounter = InitialInfected InfectionTimes = [] InfectedList = [] #print(isInfected) mesafe = 25 movementRate = 5 for i in range(Numberofpoints): PointX = random.randint(mesafe, width - mesafe) PointY = random.randint(mesafe, height - mesafe) XPoints.append(PointX) YPoints.append(PointY) #cv2.circle(bg, (PointX, PointY), 3, (200, 200, 200), 5) start_time = time.time() time_count = 0 cnt = 0 while True: frame = bg.copy() Points.clear() #movementRate += 0.004 for i in range(Numberofpoints): moveleft = random.randint(0, int(movementRate)) moveup = random.randint(0, int(movementRate)) movedown = random.randint(0, int(movementRate)) moveright = random.randint(0, int(movementRate)) XPoints[i] -= moveleft + int(9*i/(Numberofpoints - i + 1)) XPoints[i] += moveright + int(9*i/(Numberofpoints - i + 1)) YPoints[i] -= moveup + int(9*i/(Numberofpoints - i + 1)) YPoints[i] += movedown + int(9*i/(Numberofpoints - i + 1)) #Sınırlar if XPoints[i] >= width - mesafe : XPoints[i] = width - mesafe if XPoints[i] <= mesafe : XPoints[i] = mesafe if YPoints[i] >= height - mesafe : YPoints[i] = height - mesafe if YPoints[i] <= mesafe : YPoints[i] = mesafe Points.append((XPoints[i], YPoints[i])) cv2.circle(frame, (XPoints[i], YPoints[i]), 6, (200, 200, 200), 15) cv2.putText(frame, str(i+1), (XPoints[i] - 10, YPoints[i]+ 4), cv2.FONT_ITALIC, 0.5, (0, 90, 240), 2) if isInfected[0][i] == 0: cv2.circle(frame, (XPoints[i], YPoints[i]), mesafe, (0, 200, 0), 2) else: cv2.circle(frame, (XPoints[i], YPoints[i]), mesafe, (0, 0, 200), 2) for i in range(len(Points) ): for j in range(len(Points) ): #print(Points[i][0], Points[i][1], Points[j][0], Points[j][1]) if isInfected[0][i] == 1 and isInfected[0][j] == 0: dist = calculateDistance(Points[i][0], Points[i][1], Points[j][0], Points[j][1]) #print(int(dist)) if dist <= 2* mesafe + 4 and dist != 0: isInfected[0][j] = 1 InfectedCounter += 1 InfTime = time.time() print(InfectedCounter, "th Infected: ", round((InfTime - start_time), 2)) InfectedList.append(InfectedCounter) InfectionTimes.append(InfTime - start_time) Totalend = time.time() time_count = Totalend - start_time cv2.putText(frame, str(round(time_count, 2)), (15, 15), cv2.FONT_HERSHEY_COMPLEX, 0.5, (255, 255, 255), 1) cv2.putText(frame, "Infected: " + str(InfectedCounter), (1800, 15), cv2.FONT_HERSHEY_COMPLEX, 0.5, (0, 20, 255), 1) cv2.imshow("Korona", frame) out.write(frame) key = cv2.waitKey(1) & 0xFF # if the 'q' key is pressed, stop the loop if key == ord("q") or InfectedCounter == Numberofpoints: break Totalend = time.time() time_count += Totalend - start_time print("Total Time: ", time_count) print("Infection Times: ", InfectionTimes) print("Infected List: ", InfectedList) plt.plot(InfectionTimes, InfectedList) plt.ylabel('Total Infected') plt.xlabel('Time') plt.title("Movement Rate: " + str(int(movementRate)) + ", # of People: " + str(Numberofpoints) + ", Initial Infected: " + str(InitialInfected)) plt.show() out.release() cv2.destroyAllWindows()
[ "64013627+Ahmetyildrm@users.noreply.github.com" ]
64013627+Ahmetyildrm@users.noreply.github.com
51bb4727c6dfd8188fdbebfda0bff0796457c623
b4920cb3cfae4e65faf1b00853cd02169fc208c8
/lib/imprime_tela.py
a217555b17c8579c62de61755988f10388d70c18
[]
no_license
leonardoads/fire-shot
2f91a2e4b4a3181ee1c3e48b68a1fec20791acf2
15924970dcc55b07a7124c40d821b1bb9a3900cb
refs/heads/master
2021-01-19T17:21:42.760442
2010-12-02T00:44:41
2010-12-02T00:44:41
35,114,722
0
0
null
null
null
null
UTF-8
Python
false
false
295
py
from tela import * class Imprime_tela(Tela): def imprime_texto(self, mensagem , font = 'corrier new', tamanho = 60, Negrito = False): self.fonte = pygame.font.SysFont(font ,tamanho, bold = Negrito) self.frase = self.fonte.render(mensagem , True, (255,0,0)) self.frase_position = (10,10)
[ "leonardoconstrutoresdapaz@gmail.com" ]
leonardoconstrutoresdapaz@gmail.com
f4b5f090c0f538b588f028108dfe3b9f1cc2d70f
8e78c262130b48c6a634b4647e0bf9085d703945
/global/plot-active.py
e38ae9553fe44fb3a3c20c40649c6a4225972c25
[]
no_license
timday/coronavirus
c284b5f8657321f84232ddec8887a0fb41cb6a7e
2879ed2c2d6224f10d78eec1faed0dd9a606b399
refs/heads/master
2021-05-20T03:53:39.277355
2020-08-23T11:30:29
2020-08-23T11:30:29
252,168,817
1
0
null
null
null
null
UTF-8
Python
false
false
2,912
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import distutils.dir_util import math import matplotlib.pyplot as plt import matplotlib.ticker import numpy as np from JHUData import * activeWindowLo=14 activeWindowHi=21 timeseriesKeys,timeseries=getJHUData(False,True) # Don't care about anything but cases now there's nothing but recovered. def sweep(cases,window): return cases-np.concatenate([np.zeros((window,)),cases[:-window]]) def active(k): casesTotal=timeseries[k] casesActive=sum([sweep(casesTotal,w) for w in xrange(activeWindowLo,activeWindowHi+1)])/(1+activeWindowHi-activeWindowLo) return casesActive for p in range(4): fig=plt.figure(figsize=(16,9)) for k in timeseriesKeys: datestr=mdates.num2date(basedate+len(timeseries[k])-1).strftime('%Y-%m-%d') if p==1 and k=='Total': # Skip global total on linear plot continue casesActive=active(k) if p==2 or p==3: casesActive=casesActive/populations[k] x=[t+basedate for t in range(len(casesActive))] plt.plot(x,casesActive,label=descriptions[k],color=colors[k],linewidth=3.0*widthScale[k]) # TODO: Also label/annotate active case peaks? if p<=1 or casesActive[-1]>=1e-7: # Don't label lines once they've dropped off the bottom plt.text( x[-1]+0.25, casesActive[-1], descriptions[k], horizontalalignment='left', verticalalignment='center', fontdict={'size':8,'alpha':0.8,'weight':'bold','color':colors[k]} ) if p==0 or p==2: plt.yscale('log') if p==0 or p==1: plt.gca().set_ylim(bottom=1.0) else: plt.gca().set_ylim(bottom=1e-7) plt.xticks(rotation=75,fontsize=10) plt.gca().set_xlim(left=basedate,right=x[-1]) plt.gca().xaxis.set_major_locator(mdates.WeekdayLocator(byweekday=mdates.MO)) plt.gca().xaxis.set_major_formatter(mdates.DateFormatter('%Y-%m-%d')) plt.title( { 0: 'Active cases ({}-{} day duration). Log-scale. Data to {}.', 1: 'Active cases ({}-{} day duration). Omits global total. Data to {}', 2: 'Active cases ({}-{} day duration). Proportion of population, log-scale. Data to {}', 3: 'Active cases ({}-{} day duration). Proportion of population. Data to {}' }[p].format(activeWindowLo,activeWindowHi,datestr) ) plt.legend(loc='upper left',fontsize='small') plt.subplots_adjust(right=0.9) distutils.dir_util.mkpath('output') plt.savefig( 'output/'+['active-log.png','active-lin.png','active-prop-log.png','active-prop-lin.png'][p], dpi=96, ) #def on_resize(event): # fig.tight_layout() # fig.canvas.draw() # #fig.canvas.mpl_connect('resize_event', on_resize) #plt.tight_layout() plt.show()
[ "timday@bottlenose.demon.co.uk" ]
timday@bottlenose.demon.co.uk
2e1ccf8e529c0b94834cd0c804337e037cf817d4
e83ffdf344c80d84cb46c7a69c48f37561882df5
/reddit_CoinFlipBot.py
975dc765eee1e7c84e535da15fefdb3a195cbbfa
[]
no_license
jpozin/Reddit-Bots
cc7edf35529ac5e9f1af36905373f7148b1fece5
dc4da24e61ca3c30bf5bce796b535b27d3327948
refs/heads/master
2021-01-02T08:34:57.151900
2017-10-01T17:59:25
2017-10-01T17:59:25
99,021,191
0
0
null
null
null
null
UTF-8
Python
false
false
812
py
from random import randrange import praw bot = praw.Reddit(user_agent="CoinFlipBot", client_id="secret", client_secret="secret", username="secret", password="secret") subreddit = bot.subreddit("askmath") comments = subreddit.stream.comments() outcomes = ["heads", "tails"] headscount = 0 tailscount = 0 for comment in comments: body = comment.body if "coin flip" in body.lower(): outcome = outcomes[randrange(2)] if outcome == "heads": headscount += 1 else: tailscount += 1 message = """Did someone need a coin flip? I just flipped a coin and it came up {}. During this session of activity, I have flipped {} heads and {} tails. """.format(ouctome, headscount, tailscount) comment.reply(message)
[ "noreply@github.com" ]
jpozin.noreply@github.com
64da8b82ef07753014d486515854057a4c6958eb
e9ead37923d22dd84b4cac9460e5ba3bdf1b5af9
/VectorSpaceSearch/word2vec.py
f6c6edcafdebbbe321746f18faa983fe76b3eb6d
[]
no_license
piaoliangkb/Web-Data-mining
bc560528637f0788ea75876fbdac4a9111dc277b
1ae2631fb570cf8bf8393dc2a68127961be5b3f1
refs/heads/master
2020-03-08T02:13:45.916871
2019-01-17T08:06:07
2019-01-17T08:06:07
127,853,319
0
0
null
null
null
null
UTF-8
Python
false
false
3,159
py
import os import math class WordVector(): pathOfwordindex = r"D:\documents\大三下\webdatamining\作业\word2vec\BooleanSearch\wordindex.txt" pathOftermfrequency = "termfrequency.txt" pathOfbasicwords = "basicwords.txt" pathOfventor = "vector.txt" def generateTermFrenquencyFile(self): with open(pathOfwordindex) as f: lines = f.readlines() for line in lines: thisWordOccurTimesDict = {} line = line.split() for i in range(1,len(line)): if not line[i] in thisWordOccurTimesDict.keys(): thisWordOccurTimesDict[line[i]] = 1 else: thisWordOccurTimesDict[line[i]] += 1 print(line) print(thisWordOccurTimesDict) with open(pathOftermfrequency, "a") as file: file.write(line[0] + "\t") for item in thisWordOccurTimesDict.keys(): file.write(item + "-" + str(thisWordOccurTimesDict[item]) + "\t") file.write("\n") def buildTfIdfVectorFile(self): word2DocumentFrequency = {} # 每个单词在所有文档中共出现了多少次 dicTermFrequency = {} # 某个单词在某个文档中出现了多少次 dicDocument2Length = {} # 文档的单词总数 basicWords = [] # 基础单词 with open(self.pathOftermfrequency) as file: lines = file.readlines() for line in lines: line = line.split() # print(line) word2DocumentFrequency[line[0]] = len(line) basicWords.append(line[0]) for i in range(1,len(line)): docindex = line[i].split("-")[0] thiswordoccurtimes = line[i].split("-")[1] thiskey = line[0] + "@" + docindex dicTermFrequency[thiskey] = thiswordoccurtimes if docindex in dicDocument2Length.keys(): dicDocument2Length[docindex] += int(thiswordoccurtimes) else: dicDocument2Length[docindex] = int(thiswordoccurtimes) # print(word2DocumentFrequency) print(dicTermFrequency) # print(dicDocument2Length) # print(basicWords) with open(self.pathOfbasicwords, "w") as file: for words in basicWords: file.write(words + "\t") # conpute tf-idf for each document and write it in the vector.txt if os.path.exists(self.pathOfventor): os.remove(self.pathOfventor) for docid in dicDocument2Length.keys(): tfIdf = [0 for i in range(len(basicWords))] for i in range(len(basicWords)): searchkey = basicWords[i] + "@" + docid dTf = 0 # term frequency 词频 if searchkey in dicTermFrequency.keys(): # 计算当前基础词在当前文档中的出现次数 dTf = int(dicTermFrequency[searchkey]) dTf /= dicDocument2Length[docid] # 出现次数除以文档中的单词总数为Tf # 该词在文件中的出现次数,而分母则是在文件中所有字词的出现次数之和 dIdf = math.log10(len(dicDocument2Length)/word2DocumentFrequency[basicWords[i]]) # 逆文本频率指数 Inverse Document Frequency # 总文件数目除以包含该词语之文件的数目 tfIdf[i] = dTf * dIdf with open(self.pathOfventor, "a") as file: file.write(docid + "\t") for item in tfIdf: file.write(str(item) + "\t") file.write("\n") if __name__ == '__main__': a = WordVector() a.buildTfIdfVectorFile()
[ "418508556@qq.com" ]
418508556@qq.com
2f320639bf0c7b231d588ce8050002ed8d7f888e
eb52ecd946dc6c2e4d7bd63a27bbfbc587ccbe79
/doc/source/conf.py
7da23a679516396f631dd434f1640595a4a9aab4
[ "Apache-2.0" ]
permissive
dtroyer/osc-choochoo
5ee7b124b7c53c44aac5651dde950e11778e1653
57119ab84528933da9cbcd57dcd4f5b842a58186
refs/heads/master
2021-09-08T00:06:58.580823
2018-03-03T19:20:07
2018-03-03T19:36:37
103,709,841
1
1
Apache-2.0
2018-03-03T13:28:05
2017-09-15T23:34:08
Python
UTF-8
Python
false
false
2,903
py
# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # implied. # See the License for the specific language governing permissions and # limitations under the License. import os import sys import pbr.version # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))) # -- General configuration ---------------------------------------------------- # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = [ 'sphinx.ext.autodoc', #'sphinx.ext.intersphinx', 'openstackdocstheme', 'stevedore.sphinxext', 'cliff.sphinxext', ] # openstackdocstheme options repository_name = 'dtroyer/osc-choochoo' bug_project = '' bug_tag = '' # autodoc generation is a bit aggressive and a nuisance when doing heavy # text edit cycles. # execute "export SPHINX_DEBUG=1" in your terminal to disable # The suffix of source filenames. source_suffix = '.rst' # The master toctree document. master_doc = 'index' # General information about the project. project = u'osc-choochoo' copyright = u'2017 Dean Troyer' # If true, '()' will be appended to :func: etc. cross-reference text. add_function_parentheses = True # If true, the current module name will be prepended to all description # unit titles (such as .. function::). add_module_names = True # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' # -- Options for HTML output -------------------------------------------------- # The theme to use for HTML and HTML Help pages. Major themes that come with # Sphinx are currently 'default' and 'sphinxdoc'. # html_theme_path = ["."] # html_theme = '_theme' # html_static_path = ['static'] # Output file base name for HTML help builder. htmlhelp_basename = '%sdoc' % project # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass # [howto/manual]). latex_documents = [ ('index', '%s.tex' % project, u'%s Documentation' % project, u'OpenStack Foundation', 'manual'), ] # Example configuration for intersphinx: refer to the Python standard library. #intersphinx_mapping = {'http://docs.python.org/': None}
[ "dtroyer@gmail.com" ]
dtroyer@gmail.com
4ddb6cefca8980ed86752d2a4ea72481e8763c1d
7cb6f27f0626658ea54690ac18b505ae45efa15c
/pos_scrapy/items.py
a698a827562ed458172db43c68c1b793d9dbf15e
[]
no_license
KaiLangen/pos_website
f79dae6f217b591e896aee2b18556e0aa83e6a12
0f795ace03492cf94e31b7f348adcebf65900432
refs/heads/master
2020-03-21T08:24:24.233284
2018-06-06T07:40:22
2018-06-06T07:40:22
138,341,175
1
0
null
2018-06-22T19:31:44
2018-06-22T19:31:44
null
UTF-8
Python
false
false
765
py
# -*- coding: utf-8 -*- import scrapy class CustomerOrder(scrapy.Item): table_type = scrapy.Field() source_type = scrapy.Field() source_id = scrapy.Field() name = scrapy.Field() order_id = scrapy.Field() member = scrapy.Field() caregiver = scrapy.Field() date = scrapy.Field() order_total = scrapy.Field() class Transaction(scrapy.Item): table_type = scrapy.Field() source_type = scrapy.Field() name = scrapy.Field() order_id = scrapy.Field() date = scrapy.Field() description = scrapy.Field() qty_dispensed = scrapy.Field() qty_sold = scrapy.Field() price = scrapy.Field() subtotal = scrapy.Field() discount = scrapy.Field() tax = scrapy.Field() cashier = scrapy.Field()
[ "tapycx@gmail.com" ]
tapycx@gmail.com
eeca7667162158e4c128fc7a5beedc8e432f8d53
4882e66d296cb0e5dab21de1170e13f8c54a6c9c
/Exercicios/2-ex7.py
0e2b488de4c6e268228bb55c516ec4f10b0faca2
[]
no_license
felipemanfrin/NLP
d6eac822fc919f93a1146c004540f62fe9c83086
45424ca49504d5f11e13f8d97829a0d5a9926bc2
refs/heads/master
2023-01-21T12:16:56.081979
2020-12-02T21:20:30
2020-12-02T21:20:30
268,633,901
1
0
null
null
null
null
UTF-8
Python
false
false
581
py
import spacy from spacy.matcher import Matcher from spacy.matcher import PhraseMatcher nlp = spacy.load('en_core_web_sm') matcher = PhraseMatcher(nlp.vocab) pattern = ['swimming vigorously'] phrase_patterns = [nlp(text) for text in pattern] matcher.add('SwimmingVigorously', None, *phrase_patterns) with open('../UPDATED_NLP_COURSE/TextFiles/owlcreek.txt') as f: doc = nlp(f.read()) found_matches = matcher(doc) for match_id, start, end in found_matches: string_id = nlp.vocab[match_id] span = doc[start+10:end+10] print(match_id, string_id, start, end, span.text)
[ "felipemanfrin@gmail.com" ]
felipemanfrin@gmail.com
2337a27a7d53a64d304aa45a3c9ce6d0619ae43e
e15afed0b39ac76c73cb5d86acca2620aa12fc7e
/autoinsta.py
457871191ecf57e42c774944dfc20ec27f32a75f
[]
no_license
RafaelExposito/TEST
87c6fb6d2f382bf795431295c4869711ca930391
8a224d2bdfdbd55c4d58637f7b099e370ad5ee52
refs/heads/master
2023-08-18T22:23:21.858627
2021-10-06T09:16:25
2021-10-06T09:16:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,669
py
import subprocess import os import sys from os.path import abspath, dirname, join print('CURRENT PLACE',os.getcwd()) BUILD_DIR= 'C:/Users/usuario/Desktop/TEST' MODULE_NAME='build' os.chdir(BUILD_DIR) print('CURRENT PLACE',os.getcwd()) ''' os.chdir('c:/users/usuario/appdata/local/programs/python/python38/lib/site-packages') subprocess.run('python -m pip uninstall pack',shell=True) print('--------------------------------------------------------') os.chdir('C:/Users/usuario/Desktop/TEST/dist') print('--------------------------------------------------------') subprocess.run('python -m pip install pack-0.0.0-py3-none-any.whl --force-reinstall',shell=True) print('--------------------------------------------------------') subprocess.run('pip install --upgrade pack',shell=True) print('--------------------------------------------------------') subprocess.run('pip install --upgrade --force-reinstall pack-0.0.0-py3-none-any.whl',shell=True) print('--------------------------------------------------------') subprocess.run('pip install --ignore-installed pack-0.0.0-py3-none-any.whl',shell=True) ''' #os.chdir('C:/Users/usuario/Desktop/TEST/dist') #subprocess.run('pip install --root C:/ pack-0.0.0-py3-none-any.whl --force-reinstall',shell=True) os.chdir('C:/Windows/System32') #subprocess.run('pip install pack-0.0.0-py3-none-any.whl --force-reinstall',shell= subprocess.run('python -m pip install -U C:/Users/usuario/Desktop/TEST/dist/pack-0.0.0-py3-none-any.whl --force-reinstall',shell=True) #subprocess.run('python -m pip install TEST',shell=True) #python -m pip install #C:\Users\usuario\AppData\Local\Programs\Python\Python38\Lib\site-packages
[ "rafael_exposito_verdejo@hotmail.com" ]
rafael_exposito_verdejo@hotmail.com
be3fe8d075ff0196e928a81641085ad14c7dbdc0
78a39f26f6c6cf524050f3d0c0d527b3e2f28d07
/Day2/9.py
8c7017f944bd7d3dea4c139f630bd6185145242b
[]
no_license
rayandas/100Python
edd8f50da02f7865f4ea9dac55ce07a292ab0157
09c1a31448e1ffddd769aa4dd61deddddf3c9d87
refs/heads/master
2022-03-22T02:39:27.216134
2019-11-22T14:33:11
2019-11-22T14:33:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
''' Write a program that accepts sequence of lines as input and prints the lines after making all characters in the sentence capitalized. Suppose the following input is supplied to the program: Hello world Practice makes perfect output: HELLO WORLD PRACTICE MAKES PERFECT ''' lst = [] while True: w = input() if len(w)==0: break lst.append(w.upper()) for lines in lst: print(lines)
[ "rayandas91@gmail.com" ]
rayandas91@gmail.com
bd5753a974492bd97629d233e179b0de5a0a22c8
b2ee634dc2d8ebf24bf8dd15883be6dd8fa28954
/buslah.py
6ced3f0ffd4eb8d20173162e7d75f26433b953bc
[]
no_license
areeb85/Data-science-projects
04d99565506cc589ffe6a49cd78393625a200890
6ed7fa6fe6a0f012f782e397c2240b84fc2654aa
refs/heads/main
2023-07-25T17:19:26.251838
2021-09-07T09:02:22
2021-09-07T09:02:22
403,909,369
0
0
null
null
null
null
UTF-8
Python
false
false
8,069
py
import sqlite3 import pandas as pd _dbfile = "buslah.sqlite" _dbfile = "buslah.sqlite" _csv_routes = "singbus/bus_routes.csv" _csv_services = "singbus/bus_services.csv" _csv_stops = "singbus/bus_stops.csv" class BusLahException(Exception): pass def build_database(db_file, bus_stops, bus_routes, bus_services): try: con = sqlite3.connect(db_file) request1 = "CREATE TABLE IF NOT EXISTS bus_stops ( bus_stop_code INTEGER,\ road_name varchar(25),\ latitude NUMERIC(18,14),\ longitude NUMERIC (18,14),\ stop_description varchar(50),\ PRIMARY KEY (bus_stop_code) )" request2 = "CREATE TABLE IF NOT EXISTS bus_services ( service_number varchar(4),\ direction integer,\ operator varchar(4),\ category varchar(15),\ origin_stop_code integer,\ destination_stop_code integer,\ AM_peak_interval varchar(6),\ AM_offpeak_interval varchar(6),\ PM_peak_interval varchar(6),\ PM_offpeak_interval varchar(6),\ service_description varchar(50),\ PRIMARY KEY (service_number,direction))" request3 = "CREATE TABLE IF NOT EXISTS bus_routes ( route_id integer,\ service_number varchar(4),\ direction integer,\ operator varchar(4),\ stop_sequence integer,\ bus_stop_code integer,\ distance_traveled numeric(3,1),\ weekday_first_bus varchar(4),\ weekday_last_bus varchar(4),\ saturday_first_bus varchar(4),\ saturday_last_bus varchar(4),\ sunday_first_bus varchar(4),\ sunday_last_bus varchar(4),\ PRIMARY KEY(route_id))" cursor = con.cursor() cursor.execute(request1) cursor.execute(request2) cursor.execute(request3) cursor.close() # for stops stops = pd.read_csv(_csv_stops) del stops["Unnamed: 0"] connect = stops.to_sql('bus_stops',con,if_exists ='replace',index = False) # for services services = pd.read_csv(_csv_services) del services["Unnamed: 0"] services_temp = services.drop_duplicates(subset = ['service_number','direction'], keep = 'first', inplace = False) connect = services_temp.to_sql('bus_services',con,if_exists ='replace',index = False) # for routes routes = pd.read_csv(_csv_routes) del routes['Unnamed: 0'] connect = routes.to_sql('bus_routes',con,if_exists ='replace',index = False) con.commit() except: raise BusLahException() finally: con.close() build_database(db_file = _dbfile, bus_routes = _csv_routes,bus_services = _csv_services,bus_stops = _csv_stops) # end of task 1. # class GenericDB : # def __init__ (self, dbfile) : # self.conn = sqlite3.connect(dbfile) # def get_tables(self): # return pd.read_sql_query("SELECT name FROM sqlite_master WHERE\ # type='table' ORDER BY name;", self.conn) # def get_table_infos(self,table): # return pd.read_sql_query("PRAGMA table_info({});".format(table), self.conn) # def custom_request(self,req): # return pd.read_sql_query(req, self.conn) # def stops_query(dbfile): # con = sqlite3.connect(dbfile) # mt = [] # cursor = con.cursor() # cursor.execute("SELECT bus_stop_code FROM bus_stops") # result = cursor.fetchall() # for i in result: # mt.append(i[0]) # con.close() # return mt # stops_query(_dbfile) # def line_stops_query(line,direction): # con = sqlite3.connect(_dbfile) # mt = [] # cursor = con.cursor() # cursor.execute("SELECT bus_stop_code FROM bus_routes WHERE service_number == {} and direction == {};".format(line,direction)) # result = cursor.fetchall() # for i in result: # mt.append(i[0]) # con.close() # return mt # line_stops_query(96,1) # def most_left(): # con = sqlite3.connect(_dbfile) # mt = [] # cursor = con.cursor() # cursor.execute('SELECT bus_stop_code FROM bus_stops WHERE longitude == (SELECT MIN(longitude) from bus_stops)') # result = cursor.fetchall() # for i in result: # mt.append(i[0]) # con.close() # return mt # most_left() # def area_line(lon_min,lon_max,lat_min,lat_max): # con = sqlite3.connect(_dbfile) # mt = [] # cursor = con.cursor() # cursor.execute("SELECT DISTINCT service_number FROM bus_routes INNER JOIN bus_stops ON bus_routes.bus_stop_code = bus_stops.bus_stop_code WHERE latitude BETWEEN {0} and {1} and longitude BETWEEN {2} and {3};".format(lat_min,lat_max,lon_min,lon_max)) # result = cursor.fetchall() # for i in result: # mt.append(i[0]) # con.close() # return mt # area_line(103.0, 104.0, 1.2, 1.4) # sum(['402' == area_line(103.0, 104.0, 1.2, 1.4)]) == 1 # '402' == area_line(103.0, 104.0, 1.2, 1.4) class GenericDB : def __init__ (self, _dbfile) : self.conn = sqlite3.connect(_dbfile) def get_tables(self): return pd.read_sql_query("SELECT name FROM sqlite_master WHERE\ type='table' ORDER BY name;", self.conn) def get_table_infos(self,table): return pd.read_sql_query("PRAGMA table_info({});".format(table), self.conn) def custom_request(self,req): return pd.read_sql_query(req, self.conn) class SQLahDB(GenericDB): def stops_query(self): con = sqlite3.connect(_dbfile) mt = [] cursor = con.cursor() cursor.execute("SELECT bus_stop_code FROM bus_stops") df = pd.read_sql_query("SELECT bus_stop_code FROM bus_stops",con) result = cursor.fetchall() for i in result: mt.append(i[0]) con.close() mt.append("bus_stop_code") return df def line_stops_query(self,line,direction): con = sqlite3.connect(_dbfile) mt = [] cursor = con.cursor() cursor.execute("SELECT bus_stop_code FROM bus_routes WHERE service_number == {} and direction == {};".format(line,direction)) df = pd.read_sql_query("SELECT DISTINCT bus_stop_code FROM bus_routes WHERE service_number == {} and direction == {};".format(line,direction),con) result = cursor.fetchall() for i in result: mt.append(i[0]) con.close() mt.append("bus_stop_code") return df def most_left(self): con = sqlite3.connect(_dbfile) mt = {} cursor = con.cursor() cursor.execute('SELECT bus_stop_code FROM bus_stops WHERE longitude == (SELECT MIN(longitude) from bus_stops)') result = cursor.fetchall() df = pd.read_sql_query('SELECT bus_stop_code FROM bus_stops WHERE longitude == (SELECT MIN(longitude) from bus_stops)',con) for i in result: mt["bus_stop_code"] = ([i[0]]) con.close() return df def area_line(self,lon_min,lon_max,lat_min,lat_max): con = sqlite3.connect(_dbfile) mt = [] cursor = con.cursor() cursor.execute("SELECT DISTINCT service_number FROM bus_routes INNER JOIN bus_stops ON bus_routes.bus_stop_code = bus_stops.bus_stop_code WHERE latitude BETWEEN {0} and {1} and longitude BETWEEN {2} and {3};".format(lat_min,lat_max,lon_min,lon_max)) result = cursor.fetchall() for i in result: mt.append(i[0]) df = pd.read_sql_query("SELECT DISTINCT service_number FROM bus_routes INNER JOIN bus_stops ON bus_routes.bus_stop_code = bus_stops.bus_stop_code WHERE latitude BETWEEN {0} and {1} and longitude BETWEEN {2} and {3};".format(lat_min,lat_max,lon_min,lon_max),con) con.close() mt.append("service_number") return df haha = SQLahDB(_dbfile) # haha2 = SQLahDB(_dbfile) # assert(haha2.most_left()["bus_stop_code"][0] == 25751)
[ "noreply@github.com" ]
areeb85.noreply@github.com
9a1c4fcdf9d8f69fc313e3aabe2f4faed2b75793
cc081dac8783570db2af744b748632696a8c06b0
/test_fibo.py
8ed380db9493c3383b6acc85f367d6dcc33eba7a
[]
no_license
Lonsofore/fibo
c68b56985eac7044c0482f36d7d52b8b5886828e
50bf6a52384bf838df22ccb88b27c51a4e2b0fcd
refs/heads/master
2022-10-02T17:59:45.049687
2020-06-11T02:27:54
2020-06-11T02:27:54
270,875,728
0
0
null
null
null
null
UTF-8
Python
false
false
365
py
from fibo import fibo_generator def test_fibo_correct(): g = fibo_generator(10) numbers = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55] for i, fibo_number in enumerate(g): assert fibo_number == numbers[i] def test_fibo_incorrect(): numbers = [-10, -1, 0] for number in numbers: g = fibo_generator(number) assert next(g) == None
[ "pavel.zamoshin@x5.ru" ]
pavel.zamoshin@x5.ru
57af349162a6ec2e90c73196d07d293ccd657ef7
e97c5e5beb22444b7eabd743a35493ab6fd4cb2f
/nbs/15_gsa_gls/20-null_simulations/20_gls_phenoplier/profiling/py/01_03-gls-profiling-new_code.py
419a1aae91420228e40cf2683fc7fa6979628e86
[ "BSD-2-Clause-Patent" ]
permissive
greenelab/phenoplier
bea7f62949a00564e41f73b361f20a08e2e77903
b0e753415e098e93a1f206bb90b103a97456a96f
refs/heads/main
2023-08-23T20:57:49.525441
2023-06-15T06:00:32
2023-06-22T16:12:37
273,271,013
5
2
NOASSERTION
2023-06-20T20:35:45
2020-06-18T15:13:58
Jupyter Notebook
UTF-8
Python
false
false
1,943
py
# --- # jupyter: # jupytext: # cell_metadata_filter: all,-execution,-papermill,-trusted # formats: ipynb,py//py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.13.8 # kernelspec: # display_name: Python 3 (ipykernel) # language: python # name: python3 # --- # %% [markdown] tags=[] # # Description # %% [markdown] tags=[] # It profiles some functions to compute the correlation between predicted gene expression. Each of these notebooks is supposed to be run in a particular changeset. # # **Before running this notebook**, make sure you are in this changeset: # ```bash # # the changes tried to improve the performance by activating lru_cache for method Gene._get_ssm_correlation # git co fd3d476f0f4e53b8b8dfbe395dcf498c09b03aaf # ``` # %% # %load_ext line_profiler # %% [markdown] tags=[] # # Modules # %% tags=[] from entity import Gene # %% [markdown] # # Functions # %% def compute_ssm_correlation(all_genes): res = [] for g1_idx, g1 in enumerate(all_genes[:-1]): for g2 in all_genes[g1_idx:]: c = g1.get_ssm_correlation( g2, reference_panel="1000G", model_type="MASHR", use_within_distance=False, ) res.append(c) return res # %% [markdown] # # Test case # %% gene1 = Gene(ensembl_id="ENSG00000180596") gene2 = Gene(ensembl_id="ENSG00000180573") gene3 = Gene(ensembl_id="ENSG00000274641") gene4 = Gene(ensembl_id="ENSG00000277224") all_genes = [gene1, gene2, gene3, gene4] # %% assert len(set([g.chromosome for g in all_genes])) == 1 # %% [markdown] # # Run timeit # %% # %timeit compute_ssm_correlation(all_genes) # %% [markdown] # # Profile # %% # %prun -l 20 -s cumulative compute_ssm_correlation(all_genes) # %% # %prun -l 20 -s time compute_ssm_correlation(all_genes) # %%
[ "miltondp@gmail.com" ]
miltondp@gmail.com
0a0eeaa7161c4d1eb1f2f2c6ebb07e239f7b36a6
4f658d6de588b9161f4153825676320ac3dc00e4
/lists/migrations/0003_list.py
e83775e32ffb4db04f685673adda6487c15e0a39
[]
no_license
SergeGaliullin/TDD
0f16083a7a09968a1ea402f45a9285ee3a87ebb0
d93e81f84fc4a1e1b9318e8a753acceae7e059c8
refs/heads/master
2021-01-02T09:24:10.229749
2017-08-06T07:30:55
2017-08-06T07:30:55
99,206,862
0
0
null
null
null
null
UTF-8
Python
false
false
506
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-05 14:11 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('lists', '0002_item_text'), ] operations = [ migrations.CreateModel( name='List', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], ), ]
[ "sergei.galiullin@gmail.com" ]
sergei.galiullin@gmail.com
09b56da17b552a715728664e0d4b355d51787a27
179140ef3ac111af7645636b5408894a3b61094f
/camera_trap_classifier/data/tfr_encoder_decoder.py
2cf32feeda4cd2d78f8897e135b88d0269e7e2f9
[ "MIT" ]
permissive
YunyiShen/camera-trap-classifier
1d9bc3431ed31a00edfcd8fa4323fcf110ecc514
95f5f2db1c61f401e2408b8a9bfb6c069fa1a98e
refs/heads/master
2020-12-04T06:42:24.552725
2020-01-03T23:01:44
2020-01-03T23:01:44
231,662,686
0
0
MIT
2020-01-03T20:47:03
2020-01-03T20:47:02
null
UTF-8
Python
false
false
7,590
py
""" Class To Encode and Decode TFRecords""" import logging import tensorflow as tf from camera_trap_classifier.data.utils import ( wrap_int64, wrap_bytes, wrap_dict_bytes_list, wrap_dict_int64_list, _bytes_feature_list, _bytes_feature_list_str) from camera_trap_classifier.data.image import decode_image_bytes_1D logger = logging.getLogger(__name__) class TFRecordEncoderDecoder(object): """ Define Encoder and Decoder for a specific TFRecord file """ def __init__(self): logger.info("Initializing TFRecordEncoderDecoder") def encode_record(self, record_data): raise NotImplementedError def decode_record(self): raise NotImplementedError class DefaultTFRecordEncoderDecoder(TFRecordEncoderDecoder): """ Default TFREncoder / Decoder """ def _convert_to_tfr_data_format(self, record): """ Convert a record to a tfr format """ id = record['id'] n_images = record['n_images'] n_labels = record['n_labels'] image_paths = record['image_paths'] meta_data = record['meta_data'] label_text = record['labelstext'] labels = {k: v for k, v in record.items() if 'label/' in k} labels_num = {k: v for k, v in record.items() if 'label_num/' in k} label_features = wrap_dict_bytes_list(labels) label_num_features = wrap_dict_int64_list(labels_num) tfr_data = { "id": wrap_bytes(tf.compat.as_bytes(id)), "n_images": wrap_int64(n_images), "n_labels": wrap_int64(n_labels), "image_paths": _bytes_feature_list_str(image_paths), "meta_data": wrap_bytes(tf.compat.as_bytes(meta_data)), "labelstext": wrap_bytes(tf.compat.as_bytes(label_text)), "images": _bytes_feature_list(record['images']), **label_features, **label_num_features } return tfr_data def encode_record(self, record_data): """ Encode Record to Serialized String """ tfr_data_dict = self._convert_to_tfr_data_format(record_data) feature_attributes = set(['id', 'n_images', 'n_labels', 'meta_data', 'labelstext']) feature_list_attributes = tfr_data_dict.keys() - feature_attributes # Wrap the data as TensorFlow Features feature_dict = {k: v for k, v in tfr_data_dict.items() if k in feature_attributes} feature = tf.train.Features(feature=feature_dict) # Wrap lists as FeatureLists feature_list_dict = {k: v for k, v in tfr_data_dict.items() if k in feature_list_attributes} feature_lists = tf.train.FeatureLists(feature_list=feature_list_dict) # Wrap again as a TensorFlow Example. example = tf.train.SequenceExample( context=feature, feature_lists=feature_lists) # Serialize the data. serialized = example.SerializeToString() return serialized def decode_record(self, serialized_example, output_labels, label_lookup_dict=None, image_pre_processing_fun=None, image_pre_processing_args=None, image_choice_for_sets='random', decode_images=True, numeric_labels=False, return_only_ml_data=True, only_return_one_label=True ): """ Decode TFRecord and return dictionary """ # fixed size Features - ID and labels if return_only_ml_data: context_features = { 'id': tf.FixedLenFeature([], tf.string) } else: context_features = { 'id': tf.FixedLenFeature([], tf.string), 'n_images': tf.FixedLenFeature([], tf.int64), 'n_labels': tf.FixedLenFeature([], tf.int64), 'meta_data': tf.FixedLenFeature([], tf.string), 'labelstext': tf.FixedLenFeature([], tf.string) } # Extract labels (string and numeric) label_names = ['label/' + l for l in output_labels] label_features = {k: tf.FixedLenSequenceFeature([], tf.string) for k in label_names} label_num_names = ['label_num/' + l for l in output_labels] label_num_features = {k: tf.FixedLenSequenceFeature([], tf.int64) for k in label_num_names} if return_only_ml_data: if numeric_labels: sequence_features = { 'images': tf.FixedLenSequenceFeature([], tf.string), **label_num_features } else: sequence_features = { 'images': tf.FixedLenSequenceFeature([], tf.string), **label_features } else: sequence_features = { 'images': tf.FixedLenSequenceFeature([], tf.string), 'image_paths': tf.FixedLenSequenceFeature([], tf.string), **label_features, **label_num_features } # Parse the serialized data so we get a dict with our data. context, sequence = tf.parse_single_sequence_example( serialized=serialized_example, context_features=context_features, sequence_features=sequence_features) # determine label prefix for either numeric or string labels if numeric_labels: label_prefix = 'label_num/' else: label_prefix = 'label/' # Wheter to return only the labels of the first observation or all # and wheter to map string labels to integers using a lookup table if only_return_one_label: if label_lookup_dict is not None and not numeric_labels: parsed_labels = { k: tf.reshape(label_lookup_dict[k].lookup(v[0]), [1]) for k, v in sequence.items() if label_prefix in k} else: parsed_labels = { k: v[0] for k, v in sequence.items() if label_prefix in k} else: if label_lookup_dict is not None and not numeric_labels: parsed_labels = { k: label_lookup_dict[k].lookup(v) for k, v in sequence.items() if label_prefix in k} else: parsed_labels = { k: v for k, v in sequence.items() if label_prefix in k} if not decode_images: return {**{k: v for k, v in context.items()}, **{k: v for k, v in sequence.items() if label_prefix not in k}, **parsed_labels} # decode 1-D tensor of raw images image = decode_image_bytes_1D( sequence['images'], **image_pre_processing_args) # Pre-Process image if image_pre_processing_fun is not None: image_pre_processing_args['image'] = image image = image_pre_processing_fun(**image_pre_processing_args) return ({'images': image}, {**{k: v for k, v in context.items()}, **{k: v for k, v in sequence.items() if label_prefix not in k and 'images' not in k}, **parsed_labels})
[ "will5448@umn.edu" ]
will5448@umn.edu
9f6d1510a0819808d0034511b72abd6e7cf630e4
46b7971801d61942963996c9ec78a388714f91aa
/size_readable_m2.py
f3694076358997234ff69f084072dee7dbe36ff8
[]
no_license
zhrcosta/system-tools
a08b6d44f538828368b2cdf33f7a87f7e6909c55
d3aba619c187e3ccd2712a3824e0ae7e27985a76
refs/heads/master
2023-06-15T02:31:08.954558
2021-07-16T21:59:13
2021-07-16T21:59:13
342,695,146
0
0
null
null
null
null
UTF-8
Python
false
false
769
py
def sizeReadable(sizeInBytes): byte = 1 factor = 1024 label = ['B ', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'] readable = '' for size in range(len(label)): if sizeInBytes < 1024**(len(label)-1): if sizeInBytes < factor: readable = f'{sizeInBytes/(factor/1024):.2f} - {label[size]}'.replace('.',',') return readable break elif sizeInBytes == factor: readable = f'{size // factor} - {label[size+1]}' return readable break else: factor *= 1024 else: print("The number is too large") break if __name__ == '__main__': print(sizeReadable(127923282))
[ "guilherme.di.aquino@gmail.com" ]
guilherme.di.aquino@gmail.com
8b9505f073a975a7b64268c820cef97e1a849cda
3d6878b23ec98c8e278902382c1eab35867f3fae
/post-youdao.py
6c8a5d3f1cdf56131b241fa498c4b80083b50e30
[]
no_license
ithinkerfan/python2
cf32806b1cf5ac035e322539797307142b5078af
c2b1c8af149ccbb3093f8d45c2dc8ff85fa0ee36
refs/heads/master
2020-03-19T06:38:26.899081
2018-06-07T15:35:37
2018-06-07T15:35:37
136,040,149
0
0
null
null
null
null
UTF-8
Python
false
false
1,021
py
# _*_ coding=utf-8 _*_ import urllib import urllib2 # 通过抓包的方式获取的url,不是浏览器的显示的url url = "http://fanyi.youdao.com/translate?smartresult=dict&smartresult=rule&smartresult=ugc" # 完整的headers headers = { "Accept":"application/json, text/javascript, */*; q=0.01", "X-Requested-With":"XMLHttpRequest", "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36", "Content-Type":"application/x-www-form-urlencoded; charset=UTF-8" } key = raw_input("请输入需要翻译的文字:") # 发送到服务器的表单数据 formdata = { "type" : "AUTO", "i" : key, "doctype" : "json", "xmlVersion" : "1.8", "keyfrom" : "fanyi.web", "ue" : "UTF-8", "action" : "FY_BY_CLICKBUTTON", "typoResult" : "true" } data = urllib.urlencode(formdata) print data request = urllib2.Request(url,data=data,headers= headers) print urllib2.urlopen(request).read()
[ "fdw20070717@126.com" ]
fdw20070717@126.com
d1eaabc9610fd6fbbd1507f241eb5fe8ebf2af09
a466eaa27ea53f355ba33c8bcdfab21482af43ef
/auto_ml/core/auto_ml_core.py
553f8b13ae38fb6a3b1fa260aa7706dd86a28f9b
[]
no_license
sn0wfree/auto_ml
94df78247bce72b9df26fac2212f5730e10c5d3a
32e90c1391538d3cf72bd627a997e46cfc7d6c86
refs/heads/master
2020-05-02T06:40:30.153337
2019-08-29T05:35:57
2019-08-29T05:35:57
177,800,828
1
0
null
2019-03-29T09:22:36
2019-03-26T14:06:27
Python
UTF-8
Python
false
false
12,775
py
# coding=utf8 from hpsklearn import HyperoptEstimator, any_classifier, any_preprocessing, any_regressor from hyperopt import tpe import numpy as np from auto_ml.tools.conn_try_again import conn_try_again from auto_ml.tools.typeassert import typeassert import copy from auto_ml.core.parameter_parser import Parser max_retries = 5 default_retry_delay = 1 class DataSetParser(object): @staticmethod @typeassert(dataset_dict=dict) def datadict_parser(dataset_dict): X_train = dataset_dict['X_train'] X_test = dataset_dict['X_test'] y_train = dataset_dict['y_train'] y_test = dataset_dict['y_test'] return X_train, X_test, y_train, y_test @staticmethod def iris_test_dataset(): from sklearn.datasets import load_iris iris = load_iris() X = iris.data y = iris.target test_size = int(0.2 * len(y)) np.random.seed(13) indices = np.random.permutation(len(X)) X_train = X[indices[:-test_size]] y_train = y[indices[:-test_size]] X_test = X[indices[-test_size:]] y_test = y[indices[-test_size:]] dataset_dict = dict(X_train=X_train, X_test=X_test, y_train=y_train, y_test=y_test) return dataset_dict class ModelBuilder(object): param_regressor = ['regressor', 'preprocessing', 'algo', 'max_evals', 'trial_timeout', 'seed'] param_classifier = ['classifier', 'preprocessing', 'algo', 'max_evals', 'trial_timeout', 'seed'] @classmethod def _create_estimator(cls, **kwargs): # dict(regressor=regressor, # preprocessing=preprocessing, # algo=algo, # max_evals=max_evals, # trial_timeout=trial_timeout, # seed=seed) # params = dict(regressor=None, # preprocessing=None, # algo=None, # max_evals=None, # trial_timeout=None, # ex_preprocs=None, # classifier=None, # space=None, # loss_fn=None, # continuous_loss_fn=False, # verbose=False, # fit_increment=1, # fit_increment_dump_filename=None, # seed=None, # use_partial_fit=False, # refit=True) estim = HyperoptEstimator(**kwargs) return estim @classmethod @typeassert(object, params=dict) def create_estimator(cls, params, printout=False): """ :param params: :return: """ if 'regressor' in params.keys(): if 'classifier' in params.keys(): raise ValueError('params obtain two similar parameters (regressor and classifier) ') else: params_copy = copy.deepcopy(params) if printout: print('regressor', params_copy) if params_copy['regressor'] is None: params_copy.pop('regressor') return cls._create_estimator_random_regressor(**params_copy) else: params_copy['regressor'] = Parser.select_regressor(params_copy['regressor']) if printout: print(params_copy['regressor']) return cls._create_estimator(**params_copy) elif 'classifier' in params.keys(): params_copy = copy.deepcopy(params) if printout: print('classifier', params_copy) if params_copy['classifier'] is None: params_copy.pop('classifier') return cls._create_estimator_random_classifier(**params_copy) else: # print(Parser.select_classifier(params['classifier'])) params_copy['classifier'] = Parser.select_classifier(params_copy['classifier']) if printout: print(params_copy['classifier']) return cls._create_estimator(**params_copy) @staticmethod def _create_estimator_random_regressor(regressor=any_regressor('my_rgs'), preprocessing=any_preprocessing('my_pre'), max_evals=100, trial_timeout=120, seed=None, algo=tpe.suggest, fit_increment=1): """ :param regressor: :param preprocessing: :param max_evals: :param trial_timeout: :param seed: :param algo: :return: """ estim = HyperoptEstimator(regressor=regressor, preprocessing=preprocessing, algo=algo, max_evals=max_evals, trial_timeout=trial_timeout, ex_preprocs=None, classifier=None, space=None, loss_fn=None, continuous_loss_fn=False, verbose=False, fit_increment=fit_increment, fit_increment_dump_filename=None, seed=seed, use_partial_fit=False, refit=True) return estim @staticmethod def _create_estimator_random_classifier(classifier=any_classifier('my_clf'), preprocessing=any_preprocessing('my_pre'), max_evals=100, trial_timeout=120, seed=None, algo=tpe.suggest): """ :param classifier: :param preprocessing: :param max_evals: :param trial_timeout: :param seed: :param algo: :return: """ estim = HyperoptEstimator(classifier=classifier, preprocessing=preprocessing, algo=algo, max_evals=max_evals, trial_timeout=trial_timeout, ex_preprocs=None, regressor=None, space=None, loss_fn=None, continuous_loss_fn=False, verbose=False, fit_increment=1, fit_increment_dump_filename=None, seed=seed, use_partial_fit=False, refit=True) return estim class Model(object): @typeassert(object, estimator=object, dataset_dict=dict) def __init__(self, estimator, dataset_dict): # self._ModelBuilder = ModelBuilder self.dataset_dict = dataset_dict self.estimator = estimator self.result = {} self.result_verbose = {} @conn_try_again(max_retries=max_retries, default_retry_delay=default_retry_delay) def _fit(self, X_train, y_train, verbose_debug=False): if verbose_debug: print('fit_iter') iterator = self.estimator.fit_iter(X_train, y_train) else: iterator = self.estimator.fit(X_train, y_train) return iterator def fit(self, verbose_debug=False): """ because of some model can be fit with given data, thus this fit function is unsafe function :param verbose_debug: :return: """ X_train = self.dataset_dict['X_train'] y_train = self.dataset_dict['y_train'] return self._fit(X_train, y_train, verbose_debug=verbose_debug) @conn_try_again(max_retries=max_retries, default_retry_delay=default_retry_delay) def fit_and_return(self, verbose_debug=False): iterator = self.fit(verbose_debug=verbose_debug) if verbose_debug: n_trails = 0 for model in iterator: # X_train = self.dataset_dict['X_train'] # y_train = self.dataset_dict['y_train'] # # X_test = self.dataset_dict['X_test'] # y_test = self.dataset_dict['y_test'] train_score = self.train_score test_score = self.test_score print('Trails {} | Training Score : {} | Testing Score : {}'.format(n_trails, train_score, test_score)) n_trails += 1 self.result = self.best_model() self.result['best_test_score'] = self.best_test_score self.result['train_score'] = train_score self.result['test_score'] = test_score self.result_verbose['{}'.format(n_trails)] = self.result return self.result_verbose else: self.result = self.best_model() self.result['best_train_score'] = self.train_score self.result['best_test_score'] = self.best_test_score return self.result @property def train_score(self): X_train = self.dataset_dict['X_train'] y_train = self.dataset_dict['y_train'] return self.estimator.score(X_train, y_train) @property def test_score(self): X_test = self.dataset_dict['X_test'] y_test = self.dataset_dict['y_test'] return self.estimator.score(X_test, y_test) @property def best_train_score(self): return self.train_score @property def best_test_score(self): return self.test_score # def _best_score(self, X_test, y_test): # return self.estimator.score(X_test, y_test) def retrain_best_model_on_full_data(self, X_train, y_train): return self.estimator.retrain_best_model_on_full_data(X_train, y_train) def best_model(self): return self.estimator.best_model() class Models(object): @typeassert(object, dict, dict) def __init__(self, params, datatset): self.params = params self.datatset = datatset self._model = None def fit_and_return(self, verbose_debug=False): estimator = self._create_estimator() self._model = Model(estimator, self.datatset) return self._model.fit_and_return(verbose_debug=verbose_debug) @typeassert(object, int) def _create_estimator(self, multi=None): if multi is None: estimator = ModelBuilder.create_estimator(self.params) return estimator else: raise ValueError('incomplete part!') return [self._ModelBuilder.create_estimator(self.params) for _ in range(multi)] def test_dataset(): return DataSetParser.iris_test_dataset() # def create_estimator(dataset_dict): # # Instantiate a HyperoptEstimator with the search space and number of evaluations # X_train, X_test, y_train, y_test = DataSetParser.datadict_parser(dataset_dict) # # estim = HyperoptEstimator(classifier=any_classifier('my_clf'), # preprocessing=any_preprocessing('my_pre'), # algo=tpe.suggest, # max_evals=100, # trial_timeout=120) # # # Search the hyperparameter space based on the data # # estim.fit(X_train, y_train) # # # Show the results # estim.retrain_best_model_on_full_data(X_train, y_train) # best_score = estim.score(X_test, y_test) # print(best_score) # # result_dict = estim.best_model() # # result_dict['best_score'] = best_score # # return result_dict # # 1.0 if __name__ == '__main__': from hpsklearn.components import random_forest s = random_forest('clf' + '.random_forest'), params_regressor = {'regressor': None, 'preprocessing': None, 'max_evals': 15, 'trial_timeout': 100, 'seed': 1} params_classifier = {'classifier': s, 'preprocessing': None, 'max_evals': 15, 'trial_timeout': 100, 'seed': 1} s2 = any_classifier('te') print(1) # estimator = ModelBuilder.create_estimator(params_regressor) # dataset_dict = test_dataset() # m = Models(params_classifier, dataset_dict) # # print(m.fit_and_return(verbose_debug=False)) print(0) # print(create_estimator(test_dataset()))
[ "snowfreedom0815@gmail.com" ]
snowfreedom0815@gmail.com
07ccf36731f86627b68a76f406fcb4cb561170ab
58eda297cae789a025d6813d25583ac1f865adf6
/super_calculadora_estructura/tests/ut_expr_aritmetica.py
7e7950c4a1843a28f752007117f7708b2354cf57
[]
no_license
tony-ojeda/python-basic
4cba9150c5ac7dac6b2b92dbaeccdc0b30b65874
e842ca8809263f9a7628d6ad36d0748baf0f9a5b
refs/heads/master
2023-01-20T07:46:43.274310
2020-12-02T09:13:19
2020-12-02T09:13:19
310,461,988
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
import unittest from expr_aritmetica import ExprAritmetica class TestsExpAritmetica(unittest.TestCase): def test_extraer_operandos_y_operadores_en_2_mas_2(self): expresion = ExprAritmetica() self.failUnless({'Operandos':[2,2],'Operadores':['+']},expresion.parse("2 + 2"))
[ "tojeda96@gmail.com" ]
tojeda96@gmail.com
97a1706cba2fae1f30f902775b9b30b3c243402a
f8fa37d7bd5b48f304294443058314659b8c507a
/chapter3/ex3.6a.py
d1c66d1a8b0a6ce451c7dcdac7dffab93bb087a2
[]
no_license
eenewbie/realpythonfortheweb
cd011877a333f0cd1f670fda784d26d5a51221df
95985085ac254eb98368c0f6efdebe0754ac4dfa
refs/heads/master
2016-09-11T02:48:03.703835
2013-10-04T08:34:02
2013-10-04T08:34:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
624
py
import gdata.youtube import gdata.youtube.service youtube_service = gdata.youtube.service.YouTubeService() user_id = raw_input("User id: ") url = "http://gdata.youtube.com/feeds/api/users/" playlist_url = url + user_id + "/playlists" playlist_feed = youtube_service.GetYouTubePlaylistVideoFeed(playlist_url) print "\nPlaylists for " + str.format(user_id) + ":\n" for playlist in playlist_feed.entry: print playlist.title.text playlistid = playlist.id.text.split('/') [-1] video_feed = youtube_service.GetYouTubePlaylistVideoFeed(playlist_id=playlistid) for video in video_feed.entry: print "\t" + video.title.text
[ "eek.low@gmail.com" ]
eek.low@gmail.com
6bc7f26671d95a91d94cc0c2920d314c8ee53aeb
2cc9ae0ff339a924926c8f23342e00cbaa88c2c3
/queryda.py
c67d80df4d63e46e731020967a82808e747e3441
[]
no_license
alexentwistle/Moz
49b86e20b11770424727f2ec1ec47e076f44b3dc
f14507776cd2e5f774d3c25e6f1c31d5c2e5ff9e
refs/heads/master
2020-04-14T20:48:39.127107
2019-01-07T15:17:12
2019-01-07T15:17:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
603
py
#!/usr/bin/env python from mozscape import Mozscape from datetime import datetime import csv client = Mozscape( 'mozscape-f03b16db58', '5f7418e041cf61841d72ef26c6f7a905') domain = input() Metrics = client.urlMetrics(domain) DA = Metrics['pda'] # for Page Authority too: # authorities = client.urlMetrics( # (domain), # Mozscape.UMCols.domainAuthority | Mozscape.UMCols.pageAuthority) now = datetime.now() month = now.strftime("%B-%y") print(month) print(DA) update = [month,domain,str(DA)] with open('daquery.csv','a') as fd: wr = csv.writer(fd,delimiter=',') wr.writerow(update)
[ "alexentwistleseo@gmail.com" ]
alexentwistleseo@gmail.com
a946f6c3f7088c58c520427461eefc9cdfc6bd32
a57da6f85ed69167a788b7cfe4928a3103e29267
/Audio_dataset/create_audio_dataset.py
f960e75e8e3626eeaa80dcae9aa9c06e96aab7d3
[ "Apache-2.0" ]
permissive
Thehunk1206/Arduino-Surrounding-Sound-Classifier
93541a916cbf76aa59405085428a391d07dc594a
4320953b59b10feca42a868f18a87cd450b9366b
refs/heads/master
2023-08-19T10:37:26.769226
2021-10-18T03:34:09
2021-10-18T03:34:09
381,105,383
2
1
null
null
null
null
UTF-8
Python
false
false
1,121
py
from pydub import AudioSegment from pydub.utils import make_chunks from tqdm import tqdm import os BASEDIR = "FullAudio/" CHUNK_SIZE = 1000 # chunk size in ms SAMPLE_RATE = 16000 def make_chunks_of_audio(path_to_wav: str): audio = AudioSegment.from_file(file=path_to_wav, format='wav') audio.set_frame_rate(SAMPLE_RATE) audio_chunks = make_chunks(audio, chunk_length=CHUNK_SIZE) basefilename = (os.path.split(path_to_wav)[-1]). split('.')[0] if not os.path.exists(basefilename.upper()): # print(f"Creating {basefilename.upper()} folder") os.mkdir(basefilename.upper()) for i, chunk in enumerate(audio_chunks): new_chunkname = f"{basefilename}_{i}.wav" # print(f"Exporting {basefilename.upper()}/{new_chunkname}") chunk.export(f"{basefilename.upper()}/{new_chunkname}", format='wav') if __name__ == "__main__": all_audio_files = os.listdir(BASEDIR) for audio_file in tqdm(all_audio_files, desc='Creating Dataset...', colour='green', smoothing=0.6): if (".wav" in audio_file): make_chunks_of_audio(f"{BASEDIR}{audio_file}")
[ "khantauhid313@gmail.com" ]
khantauhid313@gmail.com
88db262e48479398edf6a117525ed21d0524e1d5
1dcdc8d765c4cc79b4e1aad447ec89cb55058241
/index.py
4d8a3206680e7640f55ac8cff432bc11a5d7351d
[]
no_license
Prudhvi-raj/embl_date
3fbe2334be2372b06083f7cf691b558ecdb55a90
1b66372a34ce8270d83099b8b4a3d6a9fbcc41e8
refs/heads/main
2023-03-28T10:47:51.125541
2021-03-29T21:24:21
2021-03-29T21:24:21
352,774,619
0
0
null
null
null
null
UTF-8
Python
false
false
885
py
from flask import Flask from flask_restful import Resource, Api, reqparse import ast from dateutil.tz import * from datetime import datetime import pytz # Check this command after running this file by using "python index.py" command # Uses Python 3 # curl http://127.0.0.1:5000/date app = Flask(__name__) api = Api(app) class Users(Resource): # users class for the URL def get(self): # This contains the local timezone local = tzlocal() now = datetime.now() now = now.replace(tzinfo = local) # prints a timezone aware datetime # print now print(now.strftime("%a %b %d %H:%M:%S %Z %Y")) # returing data according to local format return {'date': now.strftime("%a %b %d %H:%M:%S %Z %Y")} # Assigning URL for already defined claa api.add_resource(Users, '/date') if __name__ == '__main__': app.run() # run our Flask app
[ "noreply@github.com" ]
Prudhvi-raj.noreply@github.com
b9a1e0e1272876089385394b9bc70c714ced0fca
6da692a2b0d5aca4f8ee0de9af68abfdb0e1d1ca
/myfirstsit/views.py
34d7d7c93a475c501b6dc28dc590208ea675d1e6
[]
no_license
ismail60822/django
0805029e612e52fc52056c9b450eed9cce044ea9
9105a4903c35e53e31ddb17591f5d38e76c5e786
refs/heads/main
2023-01-04T06:39:55.375205
2020-10-29T14:58:36
2020-10-29T14:58:36
308,369,522
0
0
null
null
null
null
UTF-8
Python
false
false
194
py
from django.http import HttpResponse def index(request): return HttpResponse("Hello This is my First Django Woooo.....") def about(request): return HttpResponse("My name is Ismail.")
[ "ismail60822@gmail.com" ]
ismail60822@gmail.com
e7caac8f60d75b429ec306a253500bf4322389fb
85468c8b53d2f505871510dc6b74e183bd2b46d9
/pipeline/testing/sheets_testing/Freegene_class.py
14ad4eb843a0ed7d78dc2a0e9eb00ad9a7a4ced3
[]
no_license
Juul/bionet-synthesis
5b38e0dc35beafa12c311998d0573bd37e696e1f
5b794f400bd9a762d79674a9a423dc0a3bbec1d2
refs/heads/master
2021-04-03T01:55:22.997733
2018-03-08T17:16:43
2018-03-08T17:16:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
871
py
import json import yaml import os import glob import re from collections import namedtuple class Freegene: def __init__(self, gene_id): gene_file = gene_id + ".json" with open(gene_file,"r") as json_file: self.data = json.load(json_file, object_hook=lambda d: namedtuple('X', d.keys())(*d.values())) def synfragment(self): # Open configuration with open("fragment_config.yaml","r") as yaml_file: yaml_config = yaml.load(yaml_file) # Set global variables max_length = yaml_config["Synthesis_configuration"]["max_length"] min_length = yaml_config["Synthesis_configuration"]["min_length"] standard_flank_prefix = yaml_config["Standard_flanks"]["prefix"] standard_flank_suffix = yaml_config["Standard_flanks"]["suffix"] sequence = self.data.sequence.optimized_sequence
[ "ccmeyer@stanford.edu" ]
ccmeyer@stanford.edu
9be6df2202065abd0de59f7b5c6832a4b5ccace0
3af1d9f2ba31d38d353acdc51275a999b4709aeb
/35K/第一期活动/task/task_2.py
a027b9a00a202b4b7ba3f943b98ad7461f17cabb
[]
no_license
noparkinghere/train_py
5222787da8cc42a5defc7c69733741368f965888
f7af1c7f59d156d5c8dfc3a22217f8bdcfdc9163
refs/heads/master
2020-08-17T19:00:54.623358
2020-06-30T10:01:29
2020-06-30T10:01:29
215,700,253
1
0
null
null
null
null
UTF-8
Python
false
false
690
py
""" Created on 2020/5/18 9:45 ———————————————————————————————————————————————————————————————————— @File Name : task_2.py.py @Author : Frank @Description : 统计 1 到 100 之和。 ———————————————————————————————————————————————————————————————————— @Change Activity: """ res = 0 for i in range(1, 100+1): res += i print("累加结果为:%d" % res)
[ "noparkinghere@foxmail.com" ]
noparkinghere@foxmail.com
99ba863211f8d473d7bd6b44b1cb7117ed85e8da
ad3ec4e5668a3afb95eceebc712614854e436888
/open_widget_sample_app/urls.py
ee10038b3d919953ce02679e51e67a6a42543478
[ "BSD-3-Clause" ]
permissive
mitodl/open-widget-sample-app
b81836760268724eac3ba198fed5fd086a4a62c0
d43457aa25971041c8ceb39526ce19fd78e8c918
refs/heads/master
2020-04-01T15:35:15.616054
2018-11-21T18:08:29
2018-11-21T18:08:29
153,342,943
0
0
BSD-3-Clause
2018-11-21T18:08:30
2018-10-16T19:32:00
JavaScript
UTF-8
Python
false
false
826
py
"""open_widget_sample_app URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/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.conf.urls import url, include from . import views urlpatterns = [ url(r'', include('open_widget_framework.urls')), url(r'^.*$', views.index, name='index'), ]
[ "jake@zagaran.com" ]
jake@zagaran.com
93ee6822569c5b7e9169ffac1e02ef95e6d5c928
412b0612cf13e9e28b9ea2e625975f3d9a2f52b6
/2017/18/double_computer.py
15e82c468b7a8a9ed25058bcadfb08c381a40aa1
[]
no_license
AlexClowes/advent_of_code
2cf6c54a5f58db8482d1692a7753b96cd84b6279
d2158e3a4edae89071e6a88c9e874a9a71d4d0ec
refs/heads/master
2022-12-24T19:02:07.815437
2022-12-23T17:35:53
2022-12-23T17:35:53
225,618,394
0
0
null
null
null
null
UTF-8
Python
false
false
1,700
py
from collections import defaultdict import operator from queue import Queue def prog(program, program_id, snd_queue, rcv_queue): registers = defaultdict(int) registers["p"] = program_id value = lambda x: registers[x] if x.isalpha() else int(x) instruction_pointer = 0 while 0 <= instruction_pointer < len(program): op, *args = program[instruction_pointer].split() if op == "set": registers[args[0]] = value(args[1]) elif op in ("add", "mul", "mod"): func = getattr(operator, op) registers[args[0]] = func(registers[args[0]], value(args[1])) elif op == "jgz": if value(args[0]) > 0: instruction_pointer += value(args[1]) - 1 elif op == "snd": snd_queue.put(value(args[0])) yield True elif op == "rcv": if rcv_queue.empty(): instruction_pointer -= 1 yield False else: registers[args[0]] = rcv_queue.get() instruction_pointer += 1 def count_sends_before_blocking(prog): ret = 0 while next(prog): ret += 1 return ret def run(program): q0, q1 = Queue(), Queue() prog0 = prog(program, 0, q0, q1) prog1 = prog(program, 1, q1, q0) total = 0 while True: prog0_sends = count_sends_before_blocking(prog0) prog1_sends = count_sends_before_blocking(prog1) total += prog1_sends if prog0_sends == prog1_sends == 0: return total def main(): with open("program.txt") as f: program = [line.strip() for line in f] print(run(program)) if __name__ == "__main__": main()
[ "alexclowes@gmail.com" ]
alexclowes@gmail.com
f5ba5681b44c3be6df507acd5662bee26898fff4
5a2eb0419c5a071424ba12ac30f2ba99adfc9692
/makeStatSki.py
42367a6b1712372dca2bd0dac9c13fb183f9333e
[]
no_license
marcomaggiotti/countourScript
8138a7e7548e071d9d1af205b43f19d72feeeaa1
0f0707df1e941e545a0881aa7e39cf760ae7b9a7
refs/heads/master
2020-07-30T23:26:56.103485
2019-10-20T21:17:36
2019-10-20T21:17:36
210,397,221
0
0
null
null
null
null
UTF-8
Python
false
false
990
py
import cv2 import glob from tqdm.autonotebook import tqdm from skimage.measure import label, regionprops class_names = ["Stroma", "Tumor", "Immune_cells", "Other"] files = glob.glob('/home/maorvelous/Documents/Lab/deepLearning/MaskLou/*.png') bases = list(set(["_".join(f.split('_')[0:2]).replace("./masks\\", "") for f in files])) print(bases) outfile = open("output.tsv", 'w') for base in tqdm(bases): # now for each of the files outfile.write(f"{base}\t") for class_name in tqdm(class_names): try: fname = f"{base}_{class_name}_mask.png" print(fname) im = cv2.imread(fname) label_im = label(im) props = regionprops(label_im) nitems = len(props) area = sum([p.area for p in props]) avg = area / nitems outfile.write(f"{nitems}\t{area}\t{avg}") except: outfile.write(f"0\t0\t0") continue outfile.write("\n") outfile.close()
[ "maorvelous@gmail.com" ]
maorvelous@gmail.com
a3b71fdbfc40901160d1cbf77ab2fca1709c6a12
f6ccf28c24117738a45e03824c81f8b564965175
/numpys/operation.py
e58fc2199d8a38947478a25fcc3c18fcf38023db
[]
no_license
liushuchun/machinelearning
121d1cdb08e5ff48df710bc5cf636b914ded1c3f
3fdd9398c2f93455eaa938b1ba89d10fef271ed3
refs/heads/master
2021-01-13T02:03:03.314247
2017-11-29T06:48:27
2017-11-29T06:48:27
26,388,575
7
1
null
null
null
null
UTF-8
Python
false
false
698
py
import matplotlib.pyplot as plt import numpy as np X = np.linspace(0, 4 * np.pi, 1000) C = np.cos(X) S = np.sin(X) #plt.plot(X, C) #plt.plot(X, S) A = np.arange(100) print np.mean(A) print A.mean() C = np.cos(A) print C.ptp() #--------------------basic operation-------------- a = np.array([10, 30, 40, 40]) b = np.arange(4) print 'a:', a print 'b:', b print 'a+b:', a + b print 'a-b:', a - b A = np.array([ [1, 2], [3, 4] ]) B=np.array([ [0,1], [2,3]]) print 'A*B(multi one by one):',A*B print 'np.dot(A,B) the real A*B:',np.dot(A,B) #the += & *= will update the matrix right now a = np.ones((2,3), dtype=int) b=np.random.random((2,3)) a*=3 print "a now:",a b+=a print ""
[ "liusc@Ctrip.com" ]
liusc@Ctrip.com
4b50fef9974c1b1ae80cf168c5da756a61ae1da8
ff7e069b73ee9591b062b5a72321e1d6498ce242
/tests/test_transforms/test_outliers_transform.py
6573bdaff85486c120ecdbdd42e060e4770cd237
[ "Apache-2.0" ]
permissive
lifiuni/etna-ts
50ef1d6f101723085c66d34553c3805fa2edb1c4
9d4f55fa8508aa37681f96309e1f1c58abb69e34
refs/heads/master
2023-08-04T22:24:19.927926
2021-10-01T07:23:28
2021-10-01T07:23:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,056
py
import numpy as np import pandas as pd import pytest from etna.analysis import get_anomalies_density from etna.analysis import get_anomalies_median from etna.analysis import get_sequence_anomalies from etna.datasets.tsdataset import TSDataset from etna.transforms import DensityOutliersTransform from etna.transforms import MedianOutliersTransform from etna.transforms import SAXOutliersTransform @pytest.mark.parametrize( "transform", [ MedianOutliersTransform(in_column="target"), DensityOutliersTransform(in_column="target"), SAXOutliersTransform(in_column="target"), ], ) def test_interface(transform, example_tsds: TSDataset): """Checks outliers transforms doesn't change structure of dataframe.""" start_columnns = example_tsds.columns example_tsds.fit_transform(transforms=[transform]) assert np.all(start_columnns == example_tsds.columns) @pytest.mark.parametrize( "transform, method", [ (MedianOutliersTransform(in_column="target"), get_anomalies_median), (DensityOutliersTransform(in_column="target"), get_anomalies_density), (SAXOutliersTransform(in_column="target"), get_sequence_anomalies), ], ) def test_outliers_detection(transform, method, outliers_tsds): """Checks that outliers transforms detect anomalies according to methods from etna.analysis.""" detectiom_method_results = method(outliers_tsds) # save for each segment index without existing nans non_nan_index = {} for segment in outliers_tsds.segments: non_nan_index[segment] = outliers_tsds[:, segment, "target"].dropna().index # convert to df to ignore different lengths of series transformed_df = transform.fit_transform(outliers_tsds.to_pandas()) for segment in outliers_tsds.segments: nan_timestamps = detectiom_method_results[segment] transformed_column = transformed_df.loc[non_nan_index[segment], pd.IndexSlice[segment, "target"]] assert np.all(transformed_column[transformed_column.isna()].index == nan_timestamps)
[ "noreply@github.com" ]
lifiuni.noreply@github.com
eb27a95802962717549a291267adf4019d33615d
5fdace6ee07fe9db58f026a4764629261203a173
/tensorflow/python/data/kernel_tests/shuffle_test.py
ceca3e8d61f1fbf65c81ba3762f5e6d8fc7ad1cf
[ "Apache-2.0" ]
permissive
davidstone/tensorflow
5ed20bb54659a1cb4320f777790a3e14551703d7
6044759779a564b3ecffe4cb60f28f20b8034add
refs/heads/master
2022-04-28T02:19:53.694250
2020-04-24T17:41:08
2020-04-24T17:41:08
258,335,682
0
0
Apache-2.0
2020-04-23T21:32:14
2020-04-23T21:32:13
null
UTF-8
Python
false
false
14,239
py
# Copyright 2017 The TensorFlow Authors. 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. # ============================================================================== """Tests for `tf.data.Dataset.shuffle()`.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections import functools from absl.testing import parameterized import numpy as np from tensorflow.python import tf2 from tensorflow.python.compat import compat from tensorflow.python.data.kernel_tests import test_base from tensorflow.python.data.ops import dataset_ops from tensorflow.python.eager import context from tensorflow.python.eager import function from tensorflow.python.framework import combinations from tensorflow.python.framework import dtypes from tensorflow.python.framework import errors from tensorflow.python.framework import ops from tensorflow.python.framework import random_seed from tensorflow.python.ops import array_ops from tensorflow.python.ops import check_ops from tensorflow.python.ops import variables from tensorflow.python.platform import test class ShuffleTest(test_base.DatasetTestBase, parameterized.TestCase): @combinations.generate(test_base.default_test_combinations()) def testBasic(self): components = ( np.array([1, 2, 3, 4]), np.array([5, 6, 7, 8]), np.array([9.0, 10.0, 11.0, 12.0]) ) def dataset_fn(count=5, buffer_size=None, seed=0): repeat_dataset = ( dataset_ops.Dataset.from_tensor_slices(components).repeat(count)) if buffer_size: shuffle_dataset = repeat_dataset.shuffle(buffer_size, seed) self.assertEqual( tuple([c.shape[1:] for c in components]), dataset_ops.get_legacy_output_shapes(shuffle_dataset)) return shuffle_dataset else: return repeat_dataset # First run without shuffling to collect the "ground truth". get_next = self.getNext(dataset_fn()) unshuffled_elements = [] for _ in range(20): unshuffled_elements.append(self.evaluate(get_next())) with self.assertRaises(errors.OutOfRangeError): self.evaluate(get_next()) # Assert that the shuffled dataset has the same elements as the # "ground truth". get_next = self.getNext(dataset_fn(buffer_size=100, seed=37)) shuffled_elements = [] for _ in range(20): shuffled_elements.append(self.evaluate(get_next())) with self.assertRaises(errors.OutOfRangeError): self.evaluate(get_next()) with self.assertRaises(errors.OutOfRangeError): self.evaluate(get_next()) self.assertAllEqual(sorted(unshuffled_elements), sorted(shuffled_elements)) # Assert that shuffling twice with the same seeds gives the same sequence. get_next = self.getNext(dataset_fn(buffer_size=100, seed=37)) reshuffled_elements_same_seed = [] for _ in range(20): reshuffled_elements_same_seed.append(self.evaluate(get_next())) with self.assertRaises(errors.OutOfRangeError): self.evaluate(get_next()) self.assertEqual(shuffled_elements, reshuffled_elements_same_seed) # Assert that shuffling twice with a different seed gives a different # permutation of the same elements. get_next = self.getNext(dataset_fn(buffer_size=100, seed=137)) reshuffled_elements_different_seed = [] for _ in range(20): reshuffled_elements_different_seed.append(self.evaluate(get_next())) with self.assertRaises(errors.OutOfRangeError): self.evaluate(get_next()) self.assertNotEqual(shuffled_elements, reshuffled_elements_different_seed) self.assertAllEqual( sorted(shuffled_elements), sorted(reshuffled_elements_different_seed)) # Assert that the shuffled dataset has the same elements as the # "ground truth" when the buffer size is smaller than the input # dataset. get_next = self.getNext(dataset_fn(buffer_size=2, seed=37)) reshuffled_elements_small_buffer = [] for _ in range(20): reshuffled_elements_small_buffer.append(self.evaluate(get_next())) with self.assertRaises(errors.OutOfRangeError): self.evaluate(get_next()) self.assertAllEqual( sorted(unshuffled_elements), sorted(reshuffled_elements_small_buffer)) # Test the case of shuffling an empty dataset. get_next = self.getNext(dataset_fn(count=0, buffer_size=100, seed=37)) with self.assertRaises(errors.OutOfRangeError): self.evaluate(get_next()) @combinations.generate(combinations.combine(tf_api_version=1, mode="graph")) def testSeedZero(self): """Test for same behavior when the seed is a Python or Tensor zero.""" iterator = dataset_ops.make_one_shot_iterator( dataset_ops.Dataset.range(10).shuffle(10, seed=0)) get_next = iterator.get_next() elems = [] with self.cached_session() as sess: for _ in range(10): elems.append(sess.run(get_next)) with self.assertRaises(errors.OutOfRangeError): sess.run(get_next) seed_placeholder = array_ops.placeholder(dtypes.int64, shape=[]) iterator = dataset_ops.make_initializable_iterator( dataset_ops.Dataset.range(10).shuffle(10, seed=seed_placeholder)) get_next = iterator.get_next() with self.cached_session() as sess: sess.run(iterator.initializer, feed_dict={seed_placeholder: 0}) for elem in elems: self.assertEqual(elem, sess.run(get_next)) with self.assertRaises(errors.OutOfRangeError): sess.run(get_next) @combinations.generate(test_base.default_test_combinations()) def testDefaultArguments(self): components = [0, 1, 2, 3, 4] dataset = dataset_ops.Dataset.from_tensor_slices(components).shuffle( 5).repeat() get_next = self.getNext(dataset) counts = collections.defaultdict(lambda: 0) for _ in range(10): for _ in range(5): counts[self.evaluate(get_next())] += 1 for i in range(5): self.assertEqual(10, counts[i]) @combinations.generate( combinations.times( test_base.graph_only_combinations(), combinations.combine(reshuffle=[True, False]), combinations.combine(graph_seed=38, op_seed=None) + combinations.combine(graph_seed=None, op_seed=42) + combinations.combine(graph_seed=38, op_seed=42))) def testShuffleSeed(self, reshuffle, graph_seed, op_seed): results = [] for _ in range(2): with ops.Graph().as_default() as g: random_seed.set_random_seed(graph_seed) dataset = dataset_ops.Dataset.range(10).shuffle( 10, seed=op_seed, reshuffle_each_iteration=reshuffle).repeat(3) iterator = dataset_ops.make_one_shot_iterator(dataset) next_element = iterator.get_next() run_results = [] with self.session(graph=g) as sess: for _ in range(30): run_results.append(sess.run(next_element)) with self.assertRaises(errors.OutOfRangeError): sess.run(next_element) results.append(run_results) self.assertAllEqual(results[0], results[1]) # TODO(b/117581999): enable this test for eager-mode. @combinations.generate( combinations.times( test_base.graph_only_combinations(), combinations.combine( reshuffle=[True, False], initializable=[True, False]))) def testMultipleIterators(self, reshuffle, initializable): with ops.Graph().as_default() as g: dataset = dataset_ops.Dataset.range(100).shuffle( 10, reshuffle_each_iteration=reshuffle).repeat(3) if initializable: iterators = [dataset_ops.make_initializable_iterator(dataset) for _ in range(2)] else: iterators = [dataset_ops.make_one_shot_iterator(dataset) for _ in range(2)] results = [] with self.session(graph=g) as sess: for iterator in iterators: if initializable: sess.run(iterator.initializer) next_element = iterator.get_next() run_results = [] for _ in range(300): run_results.append(sess.run(next_element)) with self.assertRaises(errors.OutOfRangeError): sess.run(next_element) results.append(run_results) self.assertNotEqual(results[0], results[1]) @combinations.generate( combinations.times( test_base.default_test_combinations(), combinations.combine(reshuffle=[True, False], seed=[None, 42]))) def testReshuffleRepeatEpochs(self, reshuffle, seed): dataset = dataset_ops.Dataset.range(10).shuffle( 10, seed=seed, reshuffle_each_iteration=reshuffle).repeat(2) next_element = self.getNext(dataset) first_epoch = [] for _ in range(10): first_epoch.append(self.evaluate(next_element())) second_epoch = [] for _ in range(10): second_epoch.append(self.evaluate(next_element())) self.assertEqual(first_epoch == second_epoch, not reshuffle) @combinations.generate( combinations.times( combinations.combine(tf_api_version=2, mode="eager"), combinations.combine(reshuffle=[True, False], seed=[None, 42]))) def testReshuffleIterationEpochs(self, reshuffle, seed): # TensorFlow unit tests set the global graph seed. We unset it here so that # we can control determinism via the `seed` parameter. random_seed.set_random_seed(None) dataset = dataset_ops.Dataset.range(10).shuffle( 10, seed=seed, reshuffle_each_iteration=reshuffle) first_epoch = self.getDatasetOutput(dataset) second_epoch = self.getDatasetOutput(dataset) self.assertEqual(first_epoch == second_epoch, not reshuffle) @combinations.generate(combinations.combine(tf_api_version=2, mode="eager")) def testShuffleV2ResourceCapture(self): def make_dataset(): ids = dataset_ops.Dataset.range(10) ids = ids.shuffle(1) def interleave_fn(dataset, _): return dataset dataset = dataset_ops.Dataset.range(1) dataset = dataset.interleave(functools.partial(interleave_fn, ids)) return dataset results = [] for elem in make_dataset(): results.append(elem.numpy()) self.assertAllEqual(results, range(10)) @combinations.generate( combinations.times( test_base.eager_only_combinations(), combinations.combine(reshuffle=[True, False], seed=[None, 42]))) def testReshuffleSeparateTransformations(self, reshuffle, seed): dataset = dataset_ops.Dataset.range(10) first_epoch = [] for elem in dataset.shuffle( 10, seed=seed, reshuffle_each_iteration=reshuffle): first_epoch.append(elem.numpy()) second_epoch = [] for elem in dataset.shuffle( 10, seed=seed, reshuffle_each_iteration=reshuffle): second_epoch.append(elem.numpy()) self.assertEqual(first_epoch != second_epoch, seed is None) @combinations.generate(combinations.combine(tf_api_version=2, mode="eager")) def testShuffleV2InFunction(self): counter_var = variables.Variable(0) @function.defun def consume(): ds = dataset_ops.Dataset.range(10) ds = ds.shuffle(1) for _ in ds: counter_var.assign(counter_var + 1) consume() self.assertAllEqual(self.evaluate(counter_var), 10) @combinations.generate(test_base.default_test_combinations()) def testEmptyDataset(self): dataset = dataset_ops.Dataset.from_tensors(1) def map_fn(x): with ops.control_dependencies([check_ops.assert_equal(x, 0)]): return x dataset = dataset.map(map_fn) dataset = dataset.cache() dataset = dataset.shuffle(buffer_size=10).repeat() get_next = self.getNext(dataset) # First time around, we get an error for the failed assertion. with self.assertRaises(errors.InvalidArgumentError): self.evaluate(get_next()) # Second time around, we get an EOF because the cached dataset is empty. with self.assertRaises(errors.OutOfRangeError): self.evaluate(get_next()) # We skip v2 eager since the v2 eager shuffle dataset is not serializable due # to its use of an external seed generator resource. @combinations.generate( combinations.times( test_base.graph_only_combinations() + combinations.combine(mode=["eager"]), combinations.combine(reshuffle=[True, False]))) def testRerandomizeOnReplicate(self, reshuffle): if tf2.enabled() and not compat.forward_compatible(2020, 5, 22): self.skipTest("Functionality currently not supported.") random_seed.set_random_seed(None) # When no seeds are fixed, each instantiation of the shuffle dataset should # produce elements in a different order. num_elements = 100 dataset = dataset_ops.Dataset.range(num_elements) dataset = dataset.shuffle(num_elements, reshuffle_each_iteration=reshuffle) shuffle_1 = self.getDatasetOutput(dataset) dataset = self.graphRoundTrip(dataset, allow_stateful=True) shuffle_2 = self.getDatasetOutput(dataset) self.assertCountEqual(shuffle_1, shuffle_2) self.assertNotEqual(shuffle_1, shuffle_2) @combinations.generate(test_base.default_test_combinations()) def testCoordinateShuffling(self): if not compat.forward_compatible( 2020, 5, 22) and tf2.enabled() and context.executing_eagerly(): self.skipTest("Functionality currently not supported.") num_elements = 100 ds = dataset_ops.Dataset.range(num_elements) ds = ds.shuffle(num_elements, seed=42) ds = dataset_ops.Dataset.zip((ds, ds)) get_next = self.getNext(ds) for _ in range(100): x, y = self.evaluate(get_next()) self.assertEqual(x, y) if __name__ == "__main__": test.main()
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
e9a2ef5f2dbc5cb65b108562b2fabadbac9dddcd
d385afe0a10c07684eae33e3574d4a654317fe3e
/PC position y scan - Qt5.py
6e9ecd3c503127016a89e5c282ed3df710854aa9
[]
no_license
monitilo/Programa-STED
ac254a8d5a732325cbad5c580ca9594849c493ff
7b40cd89170442c76c5406c50c784bf809091aa4
refs/heads/master
2020-03-27T05:39:18.314962
2019-11-14T09:21:17
2019-11-14T09:21:17
146,037,432
1
0
null
null
null
null
UTF-8
Python
false
false
68,988
py
# %% """ Programa inicial donde miraba como anda el liveScan sin usar la pc del STED. incluye positioner""" #import subprocess import sys import os import numpy as np import time #import scipy.ndimage as ndi import matplotlib.pyplot as plt import pyqtgraph as pg from pyqtgraph.Qt import QtCore, QtGui from pyqtgraph.dockarea import DockArea, Dock import pyqtgraph.ptime as ptime # from PIL import Image import re import tkinter as tk from tkinter import filedialog import tools import viewbox_toolsQT5 from scipy import ndimage from scipy import optimize device = 9 convFactors = {'x': 25, 'y': 25, 'z': 1.683} # la calibracion es 1 µm = 40 mV; # la de z es 1 um = 0.59 V apdrate = 10**5 def makeRamp(start, end, samples): return np.linspace(start, end, num=samples) #import sys #from PyQt5 import QtCore, QtWidgets #from PyQt5.QtWidgets import QMainWindow, QWidget, QPushButton, QAction #from PyQt5.QtCore import QSize #from PyQt5.QtGui import QIcon # %% Main Window class MainWindow(QtGui.QMainWindow): def newCall(self): self.a = 0 print('New') def openCall(self): self.a = 1.5 os.startfile(self.file_path) # print('Open') def exitCall(self): self.a = -1.5 print('Exit app (no hace nada)') def greenAPD(self): print('Green APD') def redAPD(self): print('red APD') def localDir(self): print('poner la carpeta donde trabajar') root = tk.Tk() root.withdraw() self.file_path = filedialog.askdirectory() print(self.file_path,"◄ dire") self.form_widget.NameDirValue.setText(self.file_path) self.form_widget.NameDirValue.setStyleSheet(" background-color: ") # self.form_widget.paramChanged() def __init__(self): QtGui.QMainWindow.__init__(self) self.a = 0 self.file_path = os.path.abspath("") # ----- MENU self.setMinimumSize(QtCore.QSize(500, 500)) self.setWindowTitle("AAAAAAAAAAABBBBBBBBBBBBB") # Create new action # newAction = QtWidgets.QAction(QtGui.QIcon('new.png'), '&New', self) # newAction.setShortcut('Ctrl+N') # newAction.setStatusTip('New document') # newAction.triggered.connect(self.newCall) # Create new action openAction = QtGui.QAction(QtGui.QIcon('open.png'), '&Open Dir', self) openAction.setShortcut('Ctrl+O') openAction.setStatusTip('Open document') openAction.triggered.connect(self.openCall) # Create exit action exitAction = QtGui.QAction(QtGui.QIcon('exit.png'), '&Exit', self) exitAction.setShortcut('Ctrl+Q') exitAction.setStatusTip('Exit application') exitAction.triggered.connect(self.exitCall) # Create de APD options Action greenAPDaction = QtGui.QAction(QtGui.QIcon('greenAPD.png'), '&Green', self) greenAPDaction.setStatusTip('Uses the APD for canal green') greenAPDaction.triggered.connect(self.greenAPD) greenAPDaction.setShortcut('Ctrl+G') redAPDaction = QtGui.QAction(QtGui.QIcon('redAPD.png'), '&Red', self) redAPDaction.setStatusTip('Uses the APD for canal red') redAPDaction.setShortcut('Ctrl+R') redAPDaction.triggered.connect(self.redAPD) # Create de file location action localDirAction = QtGui.QAction(QtGui.QIcon('Dir.png'), '&Select Dir', self) localDirAction.setStatusTip('Select the work folder') localDirAction.setShortcut('Ctrl+D') localDirAction.triggered.connect(self.localDir) # Create menu bar and add action menuBar = self.menuBar() fileMenu = menuBar.addMenu('&File') fileMenu.addAction(localDirAction) fileMenu.addAction(openAction) fileMenu.addAction(exitAction) fileMenu2 = menuBar.addMenu('&APD') fileMenu2.addAction(greenAPDaction) fileMenu2.addAction(redAPDaction) # fileMenu3 = menuBar.addMenu('&Local Folder') # fileMenu3.addAction(localDiraction) fileMenu4 = menuBar.addMenu('&<--Selecciono la carpeta desde aca!') self.form_widget = ScanWidget(self, device) self.setCentralWidget(self.form_widget) # %% Scan Widget class ScanWidget(QtGui.QFrame): def keyPressEvent(self, e): if e.key() == QtCore.Qt.Key_Escape: print("tocaste Escape") self.close() self.liveviewStop() if e.key() == QtCore.Qt.Key_Enter: print("tocaste Enter") self.liveviewButton.setChecked() self.liveview() def __init__(self, main, device, *args, **kwargs): # main super().__init__(*args, **kwargs) self.main=main self.device = device # --- Positioner metido adentro # Parameters for smooth moving (to no shake hard the piezo) self.moveTime = 0.1 # total time to move(s) # self.sampleRate = 10**3 # 10**5 self.moveSamples = 100 # samples to move # Parameters for the ramp (driving signal for the different channels) self.rampTime = 0.1 # Time for each ramp in s self.sampleRate = 10**3 # 10**5 self.nSamples = int(self.rampTime * self.sampleRate) # This boolean is set to False when tempesta is scanning to prevent # this positionner to access the analog output channels # self.isActive = True self.activeChannels = ["x", "y", "z"] self.AOchans = [0, 1, 2] # Order corresponds to self.channelOrder # Axes control self.xLabel = QtGui.QLabel('1.0') # "<strong>x = {0:.2f} µm</strong>".format(self.x)) self.xLabel.setTextFormat(QtCore.Qt.RichText) self.xname = QtGui.QLabel("<strong>x =") self.xname.setTextFormat(QtCore.Qt.RichText) self.xUpButton = QtGui.QPushButton("(+x) ►") # → self.xUpButton.pressed.connect(self.xMoveUp) self.xDownButton = QtGui.QPushButton("◄ (-x)") # ← self.xDownButton.pressed.connect(self.xMoveDown) self.xStepEdit = QtGui.QLineEdit("1") # estaban en 0.05< self.xStepUnit = QtGui.QLabel(" µm") self.yLabel = QtGui.QLabel('2.0') # "<strong>y = {0:.2f} µm</strong>".format(self.y)) self.yLabel.setTextFormat(QtCore.Qt.RichText) self.yname = QtGui.QLabel("<strong>y =") self.yname.setTextFormat(QtCore.Qt.RichText) self.yUpButton = QtGui.QPushButton("(+y) ▲") # ↑ self.yUpButton.pressed.connect(self.yMoveUp) self.yDownButton = QtGui.QPushButton("(-y) ▼") # ↓ self.yDownButton.pressed.connect(self.yMoveDown) self.yStepEdit = QtGui.QLineEdit("1") self.yStepUnit = QtGui.QLabel(" µm") self.zLabel = QtGui.QLabel('3.0') # "<strong>z = {0:.2f} µm</strong>".format(self.z)) self.zLabel.setTextFormat(QtCore.Qt.RichText) self.zname = QtGui.QLabel("<strong>z =") self.zname.setTextFormat(QtCore.Qt.RichText) self.zUpButton = QtGui.QPushButton("+z ▲") self.zUpButton.pressed.connect(self.zMoveUp) self.zDownButton = QtGui.QPushButton("-z ▼") self.zDownButton.pressed.connect(self.zMoveDown) self.zStepEdit = QtGui.QLineEdit("1") self.zStepUnit = QtGui.QLabel(" µm") tamaño = 50 self.xStepUnit.setFixedWidth(tamaño) self.yStepUnit.setFixedWidth(tamaño) self.zStepUnit.setFixedWidth(tamaño) # ---- fin 1ra parte del positioner ---------- self.step = 1 imageWidget = pg.GraphicsLayoutWidget() self.vb = imageWidget.addViewBox(row=1, col=1) # LiveView Button self.liveviewButton = QtGui.QPushButton('confocal LIVEVIEW') self.liveviewButton.setCheckable(True) self.liveviewButton.clicked.connect(self.liveview) self.liveviewButton.setStyleSheet( "QPushButton { background-color: green; }" "QPushButton:pressed { background-color: blue; }") self.liveviewButton.setToolTip('This is a tooltip message.') # save image Button self.saveimageButton = QtGui.QPushButton('Save Frame') self.saveimageButton.setCheckable(False) self.saveimageButton.clicked.connect(self.guardarimagen) self.saveimageButton.setStyleSheet( "QPushButton { background-color: rgb(200, 200, 10); }" "QPushButton:pressed { background-color: blue; }") # self.NameDirButton = QtGui.QPushButton('Open') # self.NameDirButton.clicked.connect(self.openFolder) self.file_path = os.path.abspath("") # Defino el tipo de Scan que quiero self.scanMode = QtGui.QComboBox() self.scanModes = ['step scan', 'ramp scan', 'otro scan'] self.scanMode.addItems(self.scanModes) self.scanMode.setCurrentIndex(0) # self.scanMode.currentIndexChanged.connect(self.paramChanged) self.scanMode.setToolTip('Elijo el modo de escaneo') # Presets simil inspector self.presetsMode = QtGui.QComboBox() self.presetsModes = ['Manual', '500x0.01', '128x0.1'] self.presetsMode.addItems(self.presetsModes) self.presetsMode.activated.connect(self.Presets) # self.presetsMode.setStyleSheet("QComboBox{color: rgb(255,0,200);}\n") # "background-color: transparent;\n" # "background-image:url(background.png);}\n" # "QComboBox QAbstractItemView{border: 0px;color:orange}") # to run continuously self.Continouscheck = QtGui.QCheckBox('Continous') self.Continouscheck.setChecked(False) # no lo quiero cuadrado # self.squareRadio = QtGui.QRadioButton('Cuadrado') # self.squareRadio.clicked.connect(self.squareOrNot) # self.squareRadio.setChecked(True) # XZ PSF scan self.XYcheck = QtGui.QRadioButton('XZ psf scan') self.XYcheck.setChecked(True) self.XZcheck = QtGui.QRadioButton('XZ psf scan') self.XZcheck.setChecked(False) self.YZcheck = QtGui.QRadioButton('YZ psf scan') self.YZcheck.setChecked(False) # para que guarde todo (trazas de Alan) self.Alancheck = QtGui.QCheckBox('Alan continous save') self.Alancheck.setChecked(False) # Calcula el centro de la particula self.CMcheck = QtGui.QCheckBox('calcula CM') self.CMcheck.setChecked(False) self.CMcheck.clicked.connect(self.CMmeasure) self.Gausscheck = QtGui.QCheckBox('calcula centro gaussiano') self.Gausscheck.setChecked(False) self.Gausscheck.clicked.connect(self.GaussMeasure) # Para alternar entre pasos de a 1 y de a 2 (en el programa final se va) self.stepcheck = QtGui.QCheckBox('hacerlo de a 2') self.stepcheck.clicked.connect(self.steptype) # botones para shutters (por ahora no hacen nada) self.shuttersignal = [0, 0, 0] self.shutterredbutton = QtGui.QCheckBox('shutter 640') # self.shutterredbutton.setChecked(False) self.shutterredbutton.clicked.connect(self.shutterred) self.shuttergreenbutton = QtGui.QCheckBox('shutter 532') # self.shuttergreenbutton.setChecked(False) self.shuttergreenbutton.clicked.connect(self.shuttergreen) self.shutterotrobutton = QtGui.QCheckBox('shutter otro') # self.shutterotrobutton.setChecked(False) self.shutterotrobutton.clicked.connect(self.shutterotro) # This boolean is set to True when open the nidaq channels self.ischannelopen = False # Scanning parameters # self.initialPositionLabel = QtGui.QLabel('Initial Pos [x0 y0] (µm)') # self.initialPositionEdit = QtGui.QLineEdit('1 2 3') # no lo uso mas self.scanRangeLabel = QtGui.QLabel('Scan range x (µm)') self.scanRangeEdit = QtGui.QLineEdit('4') # self.scanRangeyLabel = QtGui.QLabel('Scan range y (µm)') # self.scanRangeyEdit = QtGui.QLineEdit('10') pixelTimeLabel = QtGui.QLabel('Pixel time (ms)') self.pixelTimeEdit = QtGui.QLineEdit('0.5') numberofPixelsLabel = QtGui.QLabel('Number of pixels') self.numberofPixelsEdit = QtGui.QLineEdit('100') self.pixelSizeLabel = QtGui.QLabel('Pixel size (nm)') self.pixelSizeValue = QtGui.QLineEdit('20') self.timeTotalLabel = QtGui.QLabel('tiempo total del escaneo (s)') # self.timeTotalValue = QtGui.QLabel('') self.pixelSizeLabel.setToolTip('Anda tambien en labels') self.pixelSizeValue.setToolTip('y en los valores') self.algo = QtGui.QLineEdit('0.5') # newfont = QtGui.QFont("Times", 14, QtGui.QFont.Bold) # self.pixelSizeValue.setFont(newfont) self.onlyInt = QtGui.QIntValidator(0,5000) self.numberofPixelsEdit.setValidator(self.onlyInt) self.onlypos = QtGui.QDoubleValidator(0, 1000,10) self.pixelTimeEdit.setValidator(self.onlypos) self.scanRangeEdit.setValidator(self.onlypos) label_save = QtGui.QLabel('Nombre del archivo') label_save.resize(label_save.sizeHint()) self.edit_save = QtGui.QLineEdit('imagenScan') self.edit_save.resize(self.edit_save.sizeHint()) self.edit_Name = str(self.edit_save.text()) self.edit_save.textEdited.connect(self.saveName) self.saveName() self.numberofPixelsEdit.textEdited.connect(self.PixelSizeChange) self.pixelSizeValue.textEdited.connect(self.NpixChange) self.scanRangeEdit.textEdited.connect(self.PixelSizeChange) # self.numberofPixelsEdit.textChanged.connect(self.paramChanged) ## self.scanRangexEdit.textChanged.connect(self.squarex) ## self.scanRangeyEdit.textChanged.connect(self.squarey) # self.scanRangeEdit.textChanged.connect(self.paramChanged) ## self.scanRangeyEdit.textChanged.connect(self.paramChanged) # self.pixelTimeEdit.textChanged.connect(self.paramChanged) ## self.initialPositionEdit.textChanged.connect(self.paramChanged) # initialPosition = np.array( # self.initialPositionEdit.text().split(' ')) # self.xLabel.setText("{}".format( # np.around(float(initialPosition[0]), 2))) # self.yLabel.setText("{}".format( # np.around(float(initialPosition[1]), 2))) # self.zLabel.setText("{}".format( # np.around(float(initialPosition[2]), 2))) self.NameDirValue = QtGui.QLabel('') self.NameDirValue.setText(self.file_path) self.NameDirValue.setStyleSheet(" background-color: red; ") self.CMxLabel = QtGui.QLabel('CM X') self.CMxValue = QtGui.QLabel('NaN') self.CMyLabel = QtGui.QLabel('CM Y') self.CMyValue = QtGui.QLabel('NaN') self.a = QtGui.QLineEdit('-1.5') self.b = QtGui.QLineEdit('-1.5') # self.a.textChanged.connect(self.paramChanged) # self.b.textChanged.connect(self.paramChanged) self.GaussxLabel = QtGui.QLabel('Gauss fit X') self.GaussxValue = QtGui.QLabel('NaN G') self.GaussyLabel = QtGui.QLabel('Gauss fit Y') self.GaussyValue = QtGui.QLabel('NaN G') self.plotLivebutton = QtGui.QPushButton('Plot this image') self.plotLivebutton.setChecked(False) self.plotLivebutton.clicked.connect(self.plotLive) # self.plotLivebutton.clicked.connect(self.otroPlot) # ROI buttons self.roi = None self.ROIButton = QtGui.QPushButton('ROI') self.ROIButton.setCheckable(True) self.ROIButton.clicked.connect(self.ROImethod) self.ROIButton.setToolTip('Create/erase a ROI box in the liveview') self.selectROIButton = QtGui.QPushButton('select ROI') self.selectROIButton.clicked.connect(self.selectROI) self.selectROIButton.setToolTip('go to the ROI selected coordenates') # ROI Histogram self.histogramROIButton = QtGui.QPushButton('Histogram ROI') self.histogramROIButton.setCheckable(True) self.histogramROIButton.clicked.connect(self.histogramROI) self.histogramROIButton.setToolTip('Visualize an histogram in the selected ROI area') # ROI Lineal self.roiline = None self.ROIlineButton = QtGui.QPushButton('lineROIline') self.ROIlineButton.setCheckable(True) self.ROIlineButton.clicked.connect(self.ROIlinear) self.selectlineROIButton = QtGui.QPushButton('Plot line ROI') self.selectlineROIButton.clicked.connect(self.selectLineROI) # Max counts self.maxcountsLabel = QtGui.QLabel('Counts (max|mean)') self.maxcountsEdit = QtGui.QLabel('<strong> 0|0') newfont = QtGui.QFont("Times", 14, QtGui.QFont.Bold) self.maxcountsEdit.setFont(newfont) self.paramChanged() self.paramWidget = QtGui.QWidget() # grid = QtGui.QGridLayout() # self.setLayout(grid) # grid.addWidget(imageWidget, 0, 0) # grid.addWidget(self.paramWidget, 2, 1) subgrid = QtGui.QGridLayout() self.paramWidget.setLayout(subgrid) self.paramWidget2 = QtGui.QWidget() subgrid2 = QtGui.QGridLayout() self.paramWidget2.setLayout(subgrid2) group1 = QtGui.QButtonGroup(self.paramWidget) group1.addButton(self.XYcheck) group1.addButton(self.XZcheck) group1.addButton(self.YZcheck) self.aLabel = QtGui.QLabel('a') self.bLabel = QtGui.QLabel('b') group2 = QtGui.QButtonGroup(self.paramWidget) self.APDred=QtGui.QRadioButton("APD red") self.APDgreen=QtGui.QRadioButton("APD green") self.APDred.setChecked(True) self.APDgreen.setChecked(False) group2.addButton(self.APDred) group2.addButton(self.APDgreen) subgrid.addWidget(self.APDred, 0, 1) subgrid.addWidget(self.shutterredbutton, 1, 1) subgrid.addWidget(self.shuttergreenbutton, 2, 1) subgrid.addWidget(self.shutterotrobutton, 3, 1) subgrid.addWidget(self.scanRangeLabel, 4, 1) subgrid.addWidget(self.scanRangeEdit, 5, 1) subgrid.addWidget(pixelTimeLabel, 6, 1) subgrid.addWidget(self.pixelTimeEdit, 7, 1) subgrid.addWidget(numberofPixelsLabel, 8, 1) subgrid.addWidget(self.numberofPixelsEdit, 9, 1) subgrid.addWidget(self.pixelSizeLabel, 10, 1) subgrid.addWidget(self.pixelSizeValue, 11, 1) subgrid.addWidget(self.stepcheck, 12, 1) subgrid.addWidget(self.scanMode, 13, 1) subgrid.addWidget(self.liveviewButton, 14, 1, 2, 1) subgrid.addWidget(self.Alancheck, 16, 1) subgrid.addWidget(self.timeTotalLabel, 17, 1) # subgrid.addWidget(self.timeTotalValue, 17, 1) subgrid.addWidget(self.saveimageButton, 18, 1) subgrid2.addWidget(self.APDgreen, 0, 2) subgrid2.addWidget(self.aLabel, 1, 2) subgrid2.addWidget(self.a, 2, 2) subgrid2.addWidget(self.bLabel, 3, 2) subgrid2.addWidget(self.b, 4, 2) subgrid2.addWidget(self.ROIlineButton, 5, 2) subgrid2.addWidget(self.selectlineROIButton, 6, 2) subgrid2.addWidget(QtGui.QLabel(' '), 7, 2) # subgrid2.addWidget(self.plotLivebutton, 8, 2) subgrid2.addWidget(QtGui.QLabel(' '), 9, 2) # # subgrid2.addWidget(self.CMcheck, 8, 2) subgrid2.addWidget(QtGui.QLabel(' '), 10, 2) # subgrid2.addWidget(self.Continouscheck, 11, 2) subgrid2.addWidget(QtGui.QLabel(' '), 12, 2) # subgrid2.addWidget(self.presetsMode, 13, 2) subgrid2.addWidget(self.XYcheck, 14, 2) subgrid2.addWidget(self.XZcheck, 15, 2) subgrid2.addWidget(self.YZcheck, 16, 2) # subgrid2.addWidget(self.Gausscheck, 7, 2) subgrid2.addWidget(label_save, 17, 2)#, 1, 2) subgrid2.addWidget(self.edit_save, 18, 2)#, 1, 2) self.paramWidget3 = QtGui.QWidget() subgrid3 = QtGui.QGridLayout() self.paramWidget3.setLayout(subgrid3) # Columna 3 # subgrid3.addWidget(QtGui.QLabel('ROI BUTTON'), 0, 3) # subgrid3.addWidget(QtGui.QLabel('Select Roi Button'), 1, 3) subgrid3.addWidget(QtGui.QLabel('Line ROI button'), 4, 3) subgrid3.addWidget(QtGui.QLabel('PLOt line ROI'), 5, 3) subgrid3.addWidget(QtGui.QLabel('Pint Scan buton'), 7, 3) # subgrid3.addWidget(QtGui.QLabel('Valor del point'), 8, 3) subgrid3.addWidget(QtGui.QLabel('Plotar en vivo'), 10, 3) subgrid3.addWidget(QtGui.QLabel('Nombre de archivo'), 12, 3) subgrid3.addWidget(QtGui.QLabel('archivo.tiff'), 13, 3) subgrid3.addWidget(QtGui.QLabel('presets desplegable'), 15, 3) # subgrid3.addWidget(QtGui.QLabel('Cuentas maximas (r/a)'), 16, 3) # subgrid3.addWidget(QtGui.QLabel('valor maximo'), 17, 3,2,2) subgrid3.addWidget(self.ROIButton, 0, 3) subgrid3.addWidget(self.selectROIButton, 1, 3) subgrid3.addWidget(self.histogramROIButton, 2, 3) subgrid3.addWidget(self.maxcountsLabel, 16, 3) subgrid3.addWidget(self.maxcountsEdit, 17, 2,2,3) # --- POSITIONERRRRR------------------------------- self.positioner = QtGui.QWidget() # grid.addWidget(self.positioner, 1, 0) layout = QtGui.QGridLayout() self.positioner.setLayout(layout) layout.addWidget(self.xname, 1, 0) layout.addWidget(self.xLabel, 1, 1) layout.addWidget(self.xUpButton, 2, 4,2,1) layout.addWidget(self.xDownButton, 2, 2,2,1) # layout.addWidget(QtGui.QLabel("Step x"), 1, 6) # layout.addWidget(self.xStepEdit, 1, 7) # layout.addWidget(self.xStepUnit, 1, 8) layout.addWidget(self.yname, 2, 0) layout.addWidget(self.yLabel, 2, 1) layout.addWidget(self.yUpButton, 1, 3,2,1) layout.addWidget(self.yDownButton, 3, 3,2,1) layout.addWidget(QtGui.QLabel("Length of step xy"), 1, 6) layout.addWidget(self.yStepEdit, 2, 6) layout.addWidget(self.yStepUnit, 2, 7) layout.addWidget(self.zname, 4, 0) layout.addWidget(self.zLabel, 4, 1) layout.addWidget(self.zUpButton, 1, 5,2,1) layout.addWidget(self.zDownButton, 3, 5,2,1) layout.addWidget(QtGui.QLabel("Length of step z"), 3, 6) layout.addWidget(self.zStepEdit, 4, 6) layout.addWidget(self.zStepUnit, 4, 7) layout.addWidget(self.NameDirValue, 8, 0, 1, 7) tamaño = 40 self.yStepEdit.setFixedWidth(tamaño) self.zStepEdit.setFixedWidth(tamaño) # self.yStepEdit.setValidator(self.onlypos) # self.zStepEdit.setValidator(self.onlypos) self.gotoWidget = QtGui.QWidget() # grid.addWidget(self.gotoWidget, 1, 1) layout2 = QtGui.QGridLayout() self.gotoWidget.setLayout(layout2) layout2.addWidget(QtGui.QLabel("X"), 1, 1) layout2.addWidget(QtGui.QLabel("Y"), 2, 1) layout2.addWidget(QtGui.QLabel("Z"), 3, 1) self.xgotoLabel = QtGui.QLineEdit("0") self.ygotoLabel = QtGui.QLineEdit("0") self.zgotoLabel = QtGui.QLineEdit("0") self.gotoButton = QtGui.QPushButton("♫ G0 To ♪") self.gotoButton.pressed.connect(self.goto) layout2.addWidget(self.gotoButton, 1, 5, 2, 2) layout2.addWidget(self.xgotoLabel, 1, 2) layout2.addWidget(self.ygotoLabel, 2, 2) layout2.addWidget(self.zgotoLabel, 3, 2) self.zgotoLabel.setValidator(self.onlypos) # tamaño = 50 self.xgotoLabel.setFixedWidth(tamaño) self.ygotoLabel.setFixedWidth(tamaño) self.zgotoLabel.setFixedWidth(tamaño) #--- fin POSITIONEERRRRRR--------------------------- # self.CMxLabel = QtGui.QLabel('CM X') # self.CMxValue = QtGui.QLabel('NaN') # self.CMyLabel = QtGui.QLabel('CM Y') # self.CMyValue = QtGui.QLabel('NaN') # layout2.addWidget(self.CMxLabel, 4, 1) # layout2.addWidget(self.CMxValue, 5, 1) # layout2.addWidget(self.CMyLabel, 4, 2) # layout2.addWidget(self.CMyValue, 5, 2) # self.goCMButton = QtGui.QPushButton("♠ Go CM ♣") # self.goCMButton.pressed.connect(self.goCM) # layout2.addWidget(self.goCMButton, 2, 5, 2, 2) # # self.GaussxLabel = QtGui.QLabel('Gauss X') # self.GaussxValue = QtGui.QLabel('NaN') # self.GaussyLabel = QtGui.QLabel('Gauss Y') # self.GaussyValue = QtGui.QLabel('NaN') # layout2.addWidget(self.GaussxLabel, 4, 5) # layout2.addWidget(self.GaussxValue, 5, 5) # layout2.addWidget(self.GaussyLabel, 4, 6) # layout2.addWidget(self.GaussyValue, 5, 6) # layout2.addWidget(QtGui.QLabel(' '), 4, 4) # layout2.addWidget(QtGui.QLabel(' '), 4, 0) # layout2.addWidget(QtGui.QLabel(' '), 4, 7) ## # Nueva interface mas comoda! # hbox = QtGui.QHBoxLayout(self) # topleft=QtGui.QFrame() # topleft.setFrameShape(QtGui.QFrame.StyledPanel) # bottom = QtGui.QFrame() # bottom.setFrameShape(QtGui.QFrame.StyledPanel) # topleft.setLayout(grid) # viewbox # downright=QtGui.QFrame() # downright.setFrameShape(QtGui.QFrame.StyledPanel) # topright=QtGui.QFrame() # topright.setFrameShape(QtGui.QFrame.StyledPanel) # topright.setLayout(subgrid) # menu con cosas # # splitter1 = QtGui.QSplitter(QtCore.Qt.Horizontal) ## splitter1.addWidget(imageWidget) # splitter1.addWidget(topleft) # splitter1.addWidget(topright) # splitter1.setSizes([10**6, 1]) # # splitter15 = QtGui.QSplitter(QtCore.Qt.Horizontal) # downright.setLayout(layout) # positioner # splitter15.addWidget(downright) ## splitter15.addWidget(self.positioner) # bottom.setLayout(layout2) # gotoWidget # splitter15.addWidget(bottom) ## splitter15.addWidget(self.gotoWidget) # splitter15.setSizes([10, 10]) # # splitter2 = QtGui.QSplitter(QtCore.Qt.Vertical) # splitter2.addWidget(splitter1) # splitter2.addWidget(splitter15) # splitter2.setSizes([10**6, 1]) # # hbox.addWidget(splitter2) # # self.setLayout(hbox) ## # Nueva interface mas comoda! # hbox = QtGui.QHBoxLayout(self) # ViewBox=QtGui.QFrame() # ViewBox.setFrameShape(QtGui.QFrame.StyledPanel) # ViewBox.setLayout(grid) # viewbox # # gotowidget = QtGui.QFrame() # gotowidget.setFrameShape(QtGui.QFrame.StyledPanel) # gotowidget.setLayout(layout2) # gotoWidget # # positionermenu=QtGui.QFrame() # positionermenu.setFrameShape(QtGui.QFrame.StyledPanel) # positionermenu.setLayout(layout) # positioner # # menuwidg=QtGui.QFrame() # menuwidg.setFrameShape(QtGui.QFrame.StyledPanel) # menuwidg.setLayout(subgrid) # menu con cosas izquierda # # menuwidg2=QtGui.QFrame() # menuwidg2.setFrameShape(QtGui.QFrame.StyledPanel) # menuwidg2.setLayout(subgrid2) # menu con cosas derecha # # splitter1 = QtGui.QSplitter(QtCore.Qt.Horizontal) # splitter1.addWidget(positionermenu) # splitter1.addWidget(gotowidget) # splitter1.setSizes([10, 10]) # # splitter15 = QtGui.QSplitter(QtCore.Qt.Vertical) # splitter15.addWidget(ViewBox) # splitter15.addWidget(splitter1) # splitter15.setSizes([10**6, 1]) # # splitter2 = QtGui.QSplitter(QtCore.Qt.Horizontal) # splitter2.addWidget(splitter15) # splitter2.addWidget(menuwidg) # splitter2.setSizes([10**6, 1]) # # splitter3 = QtGui.QSplitter(QtCore.Qt.Horizontal) # splitter3.addWidget(menuwidg2) # splitter3.addWidget(splitter2) # splitter3.setSizes([1, 10**6]) # #hbox.addWidget(splitter2) # hbox.addWidget(splitter3) # self.setLayout(hbox) saveBtn = QtGui.QPushButton('Save dock state') restoreBtn = QtGui.QPushButton('Restore dock state') restoreBtn.setEnabled(False) # subgrid3.addWidget(label, row=0, col=0) subgrid3.addWidget(saveBtn, 8, 3) subgrid3.addWidget(restoreBtn, 9, 3) # d1.addWidget(w1) state = None def save(): global state state = dockArea.saveState() restoreBtn.setEnabled(True) def load(): global state dockArea.restoreState(state) saveBtn.clicked.connect(save) restoreBtn.clicked.connect(load) # ----DOCK cosas hbox = QtGui.QHBoxLayout(self) dockArea = DockArea() viewDock = Dock('viewbox', size=(500, 450)) viewDock.addWidget(imageWidget) # viewDock.hideTitleBar() dockArea.addDock(viewDock,'left') self.otrosDock = Dock('Other things', size=(1, 1)) # self.otrosDock.addWidget(HistoWidget) dockArea.addDock(self.otrosDock,'bottom') posDock = Dock('positioner', size=(1, 1)) posDock.addWidget(self.positioner) dockArea.addDock(posDock, 'above', self.otrosDock) gotoDock = Dock('goto', size=(1, 1)) gotoDock.addWidget(self.gotoWidget) dockArea.addDock(gotoDock, 'right', posDock) scanDock3 = Dock('PMT config', size=(1, 1)) scanDock3.addWidget(self.paramWidget3) dockArea.addDock(scanDock3,'right') scanDock2 = Dock('Other parameters', size=(1, 1)) scanDock2.addWidget(self.paramWidget2) dockArea.addDock(scanDock2,'above',scanDock3) scanDock = Dock('Scan parameters', size=(1, 1)) scanDock.addWidget(self.paramWidget) dockArea.addDock(scanDock,'left', scanDock2) hbox.addWidget(dockArea) self.setLayout(hbox) # self.setFixedHeight(550) # self.paramWidget.setFixedHeight(500) self.vb.setMouseMode(pg.ViewBox.PanMode) self.img = pg.ImageItem() self.img.translate(-0.5, -0.5) self.vb.addItem(self.img) self.vb.setAspectLocked(True) imageWidget.setAspectLocked(True) self.hist = pg.HistogramLUTItem(image=self.img) self.hist.gradient.loadPreset('thermal') # thermal # 'thermal', 'flame', 'yellowy', 'bipolar', 'spectrum', # 'cyclic', 'greyclip', 'grey' # Solo son estos self.hist.vb.setLimits(yMin=0, yMax=66000) # self.cubehelixCM = pg.ColorMap(np.arange(0, 1, 1/256), # guitools.cubehelix().astype(int)) # self.hist.gradient.setColorMap(self.cubehelixCM) for tick in self.hist.gradient.ticks: tick.hide() imageWidget.addItem(self.hist, row=1, col=2) # self.ROI = guitools.ROI((0, 0), self.vb, (0, 0), handlePos=(1, 0), # handleCenter=(0, 1), color='y', scaleSnap=True, # translateSnap=True) self.viewtimer = QtCore.QTimer() self.viewtimer.timeout.connect(self.updateView) self.imageWidget=imageWidget self.liveviewAction = QtGui.QAction(self) self.liveviewAction.setShortcut('Ctrl+a') QtGui.QShortcut( QtGui.QKeySequence('Ctrl+a'), self, self.liveviewKey) # self.liveviewAction.triggered.connect(self.liveviewKey) self.liveviewAction.setEnabled(False) self.Presets() save() # Cosas pequeñas que agregue def PixelSizeChange(self): scanRange = float(self.scanRangeEdit.text()) numberofPixels = int(self.numberofPixelsEdit.text()) self.pixelSize = scanRange/numberofPixels self.pixelSizeValue.setText('{}'.format(np.around(1000 * self.pixelSize, 2))) pixelTime = float(self.pixelTimeEdit.text()) / 10**3 self.timeTotalLabel.setText("Tiempo total (s) = " +'{}'.format(np.around( numberofPixels**2 * pixelTime, 2))) def NpixChange(self): scanRange = float(self.scanRangeEdit.text()) pixelSize = float(self.pixelSizeValue.text())/1000 self.numberofPixelsEdit.setText('{}'.format(int(scanRange/pixelSize))) pixelTime = float(self.pixelTimeEdit.text()) / 10**3 self.timeTotalLabel.setText("Tiempo total (s) = " +'{}'.format(np.around( int(scanRange/pixelSize)**2 * pixelTime, 2))) # %%--- paramChanged / PARAMCHANGEDinitialize def paramChangedInitialize(self): a = [self.scanRange, self.numberofPixels, self.pixelTime, self.initialPosition, self.scanModeSet] b = [float(self.scanRangeEdit.text()), int(self.numberofPixelsEdit.text()), float(self.pixelTimeEdit.text()) / 10**3, (float(self.xLabel.text()), float(self.yLabel.text()), float(self.zLabel.text())), self.scanMode.currentText()] print("\n",a) print(b,"\n") if a == b: print("\n no cambió ningun parametro\n") else: print("\n pasaron cosas\n") self.paramChanged() def paramChanged(self): # if self.detectMode.currentText() == "APD red": # self.COchan = 0 # elif self.detectMode.currentText() == "APD green": # self.COchan = 1 # if self.APDred.isChecked(): # self.COchan = 0 # elif self.APDgreen.isChecked(): # self.COchan = 1 self.scanModeSet = self.scanMode.currentText() # self.PSFModeSet = self.PSFMode.currentText() self.scanRange = float(self.scanRangeEdit.text()) # self.scanRangey = self.scanRangex # float(self.scanRangeyEdit.text()) self.numberofPixels = int(self.numberofPixelsEdit.text()) self.pixelTime = float(self.pixelTimeEdit.text()) / 10**3 self.Napd = int(np.round(apdrate * self.pixelTime)) print(self.Napd, "Napd") self.initialPosition = (float(self.xLabel.text()), float(self.yLabel.text()), float(self.zLabel.text())) print(self.initialPosition) self.pixelSize = self.scanRange/self.numberofPixels self.pixelSizeValue.setText('{}'.format(np.around( 1000 * self.pixelSize, 2))) # en nm # newfont = QtGui.QFont("Times", 14, QtGui.QFont.Bold) # self.pixelSizeValue.setFont(newfont) # self.linetime = (1/1000)*float( # self.pixelTimeEdit.text())*int(self.numberofPixelsEdit.text()) self.linetime = self.pixelTime * self.numberofPixels print(self.linetime, "linetime") self.timeTotalLabel.setText("Tiempo total (s) = " +'{}'.format(np.around( 2 * self.numberofPixels * self.linetime, 2))) size = (self.numberofPixels, self.numberofPixels) if self.scanMode.currentText() == "step scan": self.barridos() if self.scanMode.currentText() == "ramp scan": self.rampas() # self.inputImage = 1 * np.random.normal(size=size) self.blankImage = np.zeros(size) self.image = self.blankImage self.i = 0 # %% cosas para el save image # def saveimage(self): # """ la idea es que escanee la zona deseada (desde cero) #y guarde la imagen""" # if self.saveimageButton.isChecked(): # self.save = True # self.liveviewButton.setChecked(False) ## self.channelsOpen() # self.MovetoStart() # self.saveimageButton.setText('Abort') # self.guarda = np.zeros((self.numberofPixels, self.numberofPixels)) # self.liveviewStart() # # else: # self.save = False # print("Abort") # self.saveimageButton.setText('reintentar') # self.liveviewStop() def steptype(self): if self.stepcheck.isChecked(): self.step = 2 print("step es 2", self.step==2) else: self.step = 1 print("step es 1", self.step==1) self.paramChanged() # %% Liveview # This is the function triggered by pressing the liveview button def liveview(self): """ Image live view when not recording""" if self.liveviewButton.isChecked(): # self.save = False self.paramChangedInitialize() self.openShutter("red") self.liveviewStart() else: self.liveviewStop() def liveviewStart(self): if self.scanMode.currentText() in ["step scan", "ramp scan"]: #chanelopen step, channelopen rampa self.tic = ptime.time() self.viewtimer.start(self.linetime) else: print("elegri step o ramp scan") self.liveviewButton.setChecked(False) # if self.detectMode.currentText() == "PMT": # # channelopen PMT # print("PMT") def liveviewStop(self): # if self.save: # print("listo el pollo") # self.saveimageButton.setChecked(False) # self.saveimageButton.setText('Otro Scan and Stop') # self.save = False self.closeShutter("red") self.liveviewButton.setChecked(False) self.viewtimer.stop() # self.done() # %%---updateView ----------------- def updateView(self): if self.scanMode.currentText() == "step scan": self.linea() if self.scanMode.currentText() == "ramp scan": self.linearampa() if self.scanMode.currentText() not in ["step scan", "ramp scan"]: print("NO, QUE TOCASTE, ESE NO ANDAAAAAA\n AAAAAAAHH!!!") time.sleep(0.1) if self.XZcheck.isChecked(): print("intercambio y por z") # no sirve si y,z iniciales no son iguales if self.step == 1: self.lineData = self.cuentas # self.inputImage[:, self.dy] self.image[:, -1-self.i] = self.lineData # f else: cuentas2 = np.split(self.cuentas, 2) self.lineData = cuentas2[0] # self.inputImage[:, self.dy] lineData2 = cuentas2[1] # self.lineData = self.inputImage[:, self.i] # + 2.5*self.i # lineData2 = self.inputImage[:, self.i + 1] self.image[:, self.numberofPixels-1-self.i] = self.lineData # f self.image[:, self.numberofPixels-2-self.i] = lineData2 # f # self.image[25, self.i] = 333 # self.image[9, -self.i] = 333 self.img.setImage(self.image, autoLevels=False) self.MaxCounts() time = (ptime.time()-self.tic) self.algo.setText("{}".format(str(time))) if self.i < self.numberofPixels-self.step: self.i = self.i + self.step else: # print(self.i==self.numberofPixels-1,"i") # self.i = 0 if self.Alancheck.isChecked(): self.guardarimagen() # para guardar siempre (Alan idea) if self.CMcheck.isChecked(): self.CMmeasure() if self.Gausscheck.isChecked(): self.GaussMeasure() self.viewtimer.stop() self.MovetoStart() if self.Continouscheck.isChecked(): self.liveviewStart() else: self.liveviewStop() # %% MAX Counts def MaxCounts(self): m = np.max(self.image) m2 = np.mean(self.image) m3 = np.median(self.image) m4 = np.min(self.image) self.maxcountsEdit.setText("<strong> {}|{}".format(int(m),int(m2))+" \n"+" {}|{}".format(int(m3),int(m4))) # if m >= (5000 * self.pixelTime*10**3) or m2 >= (5000 * self.pixelTime*10**3): # self.maxcountsEdit.setStyleSheet(" background-color: red; ") # %% Barridos def barridos(self): N=self.numberofPixels a = float(self.a.text()) # self.main.a # b = float(self.b.text()) r = self.scanRange/2 X = np.linspace(-r, r, N) Y = np.linspace(-r, r, N) X, Y = np.meshgrid(X, Y) R = np.sqrt((X-a)**2 + (Y-b)**2) Z = np.cos(R) for i in range(N): for j in range(N): if Z[i,j]<0: Z[i,j]=0.1 self.Z = Z print("barridos") def linea(self): Z=self.Z if self.step == 1: self.cuentas = Z[self.i,:] * abs(np.random.normal(size=(1, self.numberofPixels))[0])*20 for i in range(self.numberofPixels): borrar = 2 # time.sleep(self.pixelTime*self.numberofPixels) # print("linea") else:# para hacerlo de a lineas y que no sea de 2 en 2: self.cuentas = np.zeros((2 * self.numberofPixels)) self.cuentas = np.concatenate((Z[self.i,:],Z[self.i+1,:])) # np.random.normal(size=(1, 2*self.numberofPixels))[0] for i in range(self.numberofPixels * 2): borrar = 2 # time.sleep(self.pixelTime*self.numberofPixels*2) # print("linea") # %% MovetoStart def MovetoStart(self): # self.inputImage = 1 * np.random.normal( # size=(self.numberofPixels, self.numberofPixels)) t = self.moveTime N = self.moveSamples tic = ptime.time() startY = float(self.initialPosition[1]) maximoy = startY + ((self.i+1) * self.pixelSize) volviendoy = np.linspace(maximoy, startY, N) volviendox = np.ones(len(volviendoy)) * float(self.initialPosition[0]) volviendoz = np.ones(len(volviendoy)) * float(self.initialPosition[2]) for i in range(len(volviendoy)): borrar = volviendoy[i] + volviendox[i] + volviendoz[i] # self.aotask.write( # [volviendox[i] / convFactors['x'], # volviendoy[i] / convFactors['y'], # volviendoz[i] / convFactors['z']], auto_start=True) # time.sleep(t / N) print(t, "vs" , np.round(ptime.time() - tic, 2)) self.i = 0 self.Z = self.Z #+ np.random.choice([1,-1])*0.01 # %%--- Guardar imagen def saveName(self): self.edit_Name = str(self.edit_save.text()) self.number = 0 print("Actualizo el save name") def guardarimagen(self): # if self.XYcheck.isChecked(): # scanmode = "XY" # if self.XZcheck.isChecked(): # scanmode = "XZ" # if self.YZcheck.isChecked(): # scanmode = "YZ" # ####name = str(self.edit_save.text()) # solo si quiero elegir el nombre ( pero no quiero) # if str(self.edit_save.text()) == self.edit_Name: # self.number = self.number + 1 # else: # self.number = 0 try: filepath = self.main.file_path # filepath = self.file_path # filepath = "C:/Users/Santiago/Desktop/Germán Tesis de lic/Winpython (3.5.2 para tormenta)/WinPython-64bit-3.5.2.2/notebooks/Guardando tiff/" # timestr = time.strftime("%Y%m%d-%H%M%S") + str(self.number) name = str(filepath + "/" + str(self.edit_save.text()) + ".tiff") # nombre con la fecha -hora guardado = Image.fromarray(np.transpose(np.flip(self.image, 1))) guardado.save(name) self.number = self.number + 1 self.edit_save.setText(self.edit_Name + str(self.number)) print("\n Guardo la imagen\n") except: print("hay un error y no guardó") # %%---Move---------------------------------------- def move(self, axis, dist): """moves the position along the axis specified a distance dist.""" t = self.moveTime N = self.moveSamples # read initial position for all channels texts = [getattr(self, ax + "Label").text() for ax in self.activeChannels] initPos = [re.findall(r"[-+]?\d*\.\d+|[-+]?\d+", t)[0] for t in texts] initPos = np.array(initPos, dtype=float)[:, np.newaxis] fullPos = np.repeat(initPos, self.nSamples, axis=1) # make position ramp for moving axis ramp = makeRamp(0, dist, self.nSamples) fullPos[self.activeChannels.index(axis)] += ramp # factors = np.array([convFactors['x'], convFactors['y'], # convFactors['z']])[:, np.newaxis] # fullSignal = fullPos/factors toc = ptime.time() for i in range(self.nSamples): # self.aotask.write(fullSignal, auto_start=True) # time.sleep(t / N) borrar = 1+1 print("se mueve en", np.round(ptime.time() - toc, 3), "segs") # update position text newPos = fullPos[self.activeChannels.index(axis)][-1] # newText = "<strong>" + axis + " = {0:.2f} µm</strong>".format(newPos) newText = "{}".format(newPos) getattr(self, axis + "Label").setText(newText) self.paramChanged() def xMoveUp(self): self.move('x', float(getattr(self, 'y' + "StepEdit").text())) def xMoveDown(self): self.move('x', -float(getattr(self, 'y' + "StepEdit").text())) def yMoveUp(self): self.move('y', float(getattr(self, 'y' + "StepEdit").text())) def yMoveDown(self): self.move('y', -float(getattr(self, 'y' + "StepEdit").text())) def zMoveUp(self): self.move('z', float(getattr(self, 'z' + "StepEdit").text())) self.zDownButton.setEnabled(True) self.zDownButton.setStyleSheet( "QPushButton { background-color: }") self.zStepEdit.setStyleSheet("{ background-color: }") def zMoveDown(self): if self.initialPosition[2]<float(getattr(self, 'z' + "StepEdit").text()): print("OJO!, te vas a Z's negativos") self.zStepEdit.setStyleSheet(" background-color: red; ") # setStyleSheet("color: rgb(255, 0, 255);") else: self.move('z', -float(getattr(self, 'z' + "StepEdit").text())) self.zStepEdit.setStyleSheet(" background-color: ") if self.initialPosition[2] == 0: # para no ira z negativo self.zDownButton.setStyleSheet( "QPushButton { background-color: red; }" "QPushButton:pressed { background-color: blue; }") self.zDownButton.setEnabled(False) # ---go CM goto def goCM(self): self.zgotoLabel.setStyleSheet(" background-color: ") print("arranco en",float(self.xLabel.text()), float(self.yLabel.text()), float(self.zLabel.text())) startX = float(self.xLabel.text()) startY = float(self.yLabel.text()) self.moveto((float(self.CMxValue.text()) + startX) - (self.scanRange/2), (float(self.CMyValue.text()) + startY) - (self.scanRange/2), float(self.zLabel.text())) print("termino en", float(self.xLabel.text()), float(self.yLabel.text()), float(self.zLabel.text())) def goto(self): if float(self.zgotoLabel.text()) < 0: print("Z no puede ser negativo!!!") self.zgotoLabel.setStyleSheet(" background-color: red") time.sleep(1) else: self.zgotoLabel.setStyleSheet(" background-color: ") print("arranco en",float(self.xLabel.text()), float(self.yLabel.text()), float(self.zLabel.text())) self.moveto(float(self.xgotoLabel.text()), float(self.ygotoLabel.text()), float(self.zgotoLabel.text())) print("termino en", float(self.xLabel.text()), float(self.yLabel.text()), float(self.zLabel.text())) if float(self.zLabel.text()) == 0: # para no ira z negativo self.zDownButton.setStyleSheet( "QPushButton { background-color: red; }" "QPushButton:pressed { background-color: blue; }") self.zDownButton.setEnabled(False) else: self.zDownButton.setStyleSheet( "QPushButton { background-color: }") self.zDownButton.setEnabled(True) self.paramChanged() # --- moveto def moveto(self, x, y, z): """moves the position along the axis to a specified point.""" t = self.moveTime * 3 N = self.moveSamples * 3 # read initial position for all channels texts = [getattr(self, ax + "Label").text() for ax in self.activeChannels] initPos = [re.findall(r"[-+]?\d*\.\d+|[-+]?\d+", t)[0] for t in texts] rampx = makeRamp(float(initPos[0]), x, self.nSamples)# / convFactors['x'] rampy = makeRamp(float(initPos[1]), y, self.nSamples)# / convFactors['y'] rampz = makeRamp(float(initPos[2]), z, self.nSamples)# / convFactors['z'] # ramp = np.array((rampx, rampy, rampz)) tuc = ptime.time() for i in range(self.nSamples): borrar = rampx[i] + rampy[i] + rampz[i] # self.aotask.write([rampx[i] / convFactors['x'], # rampy[i] / convFactors['y'], # rampz[i] / convFactors['z']], auto_start=True) # time.sleep(t / N) print("se mueve todo en", np.round(ptime.time()-tuc, 3),"segs") self.xLabel.setText("{}".format(np.around(float(rampx[-1]), 2))) self.yLabel.setText("{}".format(np.around(float(rampy[-1]), 2))) self.zLabel.setText("{}".format(np.around(float(rampz[-1]), 2))) # %%--- Shutter time -------------------------- def shutterred(self): if self.shutterredbutton.isChecked(): self.openShutter("red") else: self.closeShutter("red") def shuttergreen(self): if self.shuttergreenbutton.isChecked(): self.openShutter("green") else: self.closeShutter("green") def shutterotro(self): if self.shutterotrobutton.isChecked(): self.openShutter("otro") else: self.closeShutter("otro") def openShutter(self, p): print("abre shutter", p) shutters = ["red", "green", "otro"] for i in range(3): if p == shutters[i]: self.shuttersignal[i] = 5 # self.dotask.write(self.shuttersignal, auto_start=True) print(self.shuttersignal) self.checkShutters() def closeShutter(self, p): print("cierra shutter", p) shutters = ["red", "green", "otro"] for i in range(3): if p == shutters[i]: self.shuttersignal[i] = 0 # self.dotask.write(self.shuttersignal, auto_start=True) print(self.shuttersignal) self.checkShutters() def checkShutters(self): if self.shuttersignal[0]: self.shutterredbutton.setChecked(True) else: self.shutterredbutton.setChecked(False) if self.shuttersignal[1]: self.shuttergreenbutton.setChecked(True) else: self.shuttergreenbutton.setChecked(False) if self.shuttersignal[2]: self.shutterotrobutton.setChecked(True) else: self.shutterotrobutton.setChecked(False) # if self.shuttergreen.isChecked(): # print("shutter verde") # # if self.shutterotro.isChecked(): # print("shutter otro") # Es una idea de lo que tendria que hacer la funcion # %% rampas def rampas(self): N=self.numberofPixels a = float(self.a.text()) b = float(self.b.text()) r = self.scanRange/2 X = np.linspace(-r, r, N) Y = np.linspace(-r, r, N) X, Y = np.meshgrid(X, Y) R = np.sqrt((X-a)**2 + (Y-b)**2) Z = np.cos(R) for i in range(N): for j in range(N): if Z[i,j]<0: Z[i,j]=0 self.Z = Z print("rampsa") def linearampa(self): Z=self.Z if self.step==1: self.cuentas = np.zeros((self.numberofPixels)) self.cuentas = Z[self.i,:] # np.random.normal(size=(1, self.numberofPixels))[0] for i in range(self.numberofPixels): borrar = 2 # time.sleep(self.pixelTime*self.numberofPixels) # print("linearampa") else:#para hacerlo de a lineas y que no sea de 2 en 2: self.cuentas = np.concatenate((Z[self.i,:],Z[self.i+1,:])) #np.random.normal(size=(1, 2*self.numberofPixels))[0] for i in range(2*self.numberofPixels): borrar = 2 # time.sleep(self.pixelTime*2*self.numberofPixels) # def squareOrNot(self): # if self.squareRadio.isChecked(): # self.square = True # print("Escaneo cuadrado (x = y)") # else: # self.square = False # print("Escaneo rectangular") # # def squarex(self): # if self.square: # print("valores iguales, cuadrado") # self.scanRangeyEdit = QtGui.QLineEdit(self.scanRangexEdit.text()) # self.scanRangexEdit.textChanged.connect(self.paramChanged) # else: # print("rectangulo") # self.scanRangexEdit.textChanged.connect(self.paramChanged) # self.scanRangeyEdit.textChanged.connect(self.paramChanged) # # def squarey(self): # if self.squareOrNot: # self.scanRangexEdit = QtGui.QLineEdit(self.scanRangeyEdit.text()) # self.scanRangeyEdit.textChanged.connect(self.paramChanged) # else: # self.scanRangexEdit.textChanged.connect(self.paramChanged) # self.scanRangeyEdit.textChanged.connect(self.paramChanged) # - - - ---------------------------------------- #class InterfazGUI(QtGui.QMainWindow): # # def __init__(self, *args, **kwargs): # super().__init__(*args, **kwargs) # # # Dock widget # dockArea = DockArea() # # scanDock = Dock('Scan', size=(1, 1)) # scanWidget = ScanWidget() # scanDock.addWidget(scanWidget) # dockArea.addDock(scanDock) # # piezoDock = Dock('Piezo positioner', size=(1, 1)) # piezoWidget = Positionner(scanWidget) # piezoDock.addWidget(piezoWidget) # dockArea.addDock(scanDock, 'below', scanDock) # # self.setWindowTitle('ASDASDASDW') # self.cwidget = QtGui.QWidget() # self.setCentralWidget(self.cwidget) # layout = QtGui.QGridLayout() # self.cwidget.setLayout(layout) # layout.addWidget(dockArea, 0, 0, 4, 1) # %%--- ploting in live def plotLive(self): texts = [getattr(self, ax + "Label").text() for ax in self.activeChannels] initPos = [re.findall(r"[-+]?\d*\.\d+|[-+]?\d+", t)[0] for t in texts] xv = np.linspace(0, self.scanRange, self.numberofPixels) + float(initPos[0]) yv = np.linspace(0, self.scanRange, self.numberofPixels) + float(initPos[1]) X, Y = np.meshgrid(xv, yv) fig, ax = plt.subplots() p = ax.pcolor(X, Y, np.transpose(self.image), cmap=plt.cm.jet) cb = fig.colorbar(p) ax.set_xlabel('x [um]') ax.set_ylabel('y [um]') try: xc = int(np.floor(self.xcm)) yc = int(np.floor(self.ycm)) X2=np.transpose(X) Y2=np.transpose(Y) resol = 2 for i in range(resol): for j in range(resol): ax.text(X2[xc+i,yc+j],Y2[xc+i,yc+j],"☺",color='m') Normal = self.scanRange / self.numberofPixels # Normalizo ax.set_title((self.xcm*Normal+float(initPos[0]), self.ycm*Normal+float(initPos[1]))) except: pass try: (height, x, y, width_x, width_y) = self.params resol = 2 for i in range(resol): for j in range(resol): ax.text(xv[int(x)+i],yv[int(y)+j],"◘",color='m') plt.text(0.95, 0.05, """ x : %.1f y : %.1f """ %(xv[int(x)], yv[int(y)]), fontsize=16, horizontalalignment='right', verticalalignment='bottom', transform=ax.transAxes) except: pass plt.show() def otroPlot(self): texts = [getattr(self, ax + "Label").text() for ax in self.activeChannels] initPos = [re.findall(r"[-+]?\d*\.\d+|[-+]?\d+", t)[0] for t in texts] xv = np.linspace(0, self.scanRange, self.numberofPixels) + float(initPos[0]) yv = np.linspace(0, self.scanRange, self.numberofPixels) + float(initPos[1]) X, Y = np.meshgrid(xv, yv) try: plt.matshow(self.data, cmap=plt.cm.gist_earth_r) plt.colorbar() plt.contour(self.fit(*np.indices(self.data.shape)), cmap=plt.cm.copper) ax = plt.gca() (height, x, y, width_x, width_y) = self.params plt.text(0.95, 0.05, """ x : %.1f y : %.1f width_x : %.1f width_y : %.1f""" %(xv[int(x)], yv[int(y)], width_x, width_y), fontsize=16, horizontalalignment='right', verticalalignment='bottom', transform=ax.transAxes) print("x",xv[int(x)]) except: pass def liveviewKey(self): '''Triggered by the liveview shortcut.''' if self.liveviewButton.isChecked(): self.liveviewStop() self.liveviewButton.setChecked(False) else: self.liveviewButton.setChecked(True) # self.liveview() # self.liveviewStart() ## %% selectfolder # def openFolder(self): # # Quedo obsoleto con la barra de herramientas. # print("tengoq ue sacarlo, no sirve mas") # root = tk.Tk() # root.withdraw() # # self.file_path = filedialog.askdirectory() # print(self.file_path,2) # self.NameDirValue.setText(self.file_path) # try: # if sys.platform == 'darwin': # subprocess.check_call(['open', '', self.folderEdit.text()]) # elif sys.platform == 'linux': # subprocess.check_call( # ['gnome-open', '', self.folderEdit.text()]) # elif sys.platform == 'win32': # os.startfile(self.folderEdit.text()) # # except FileNotFoundError: # if sys.platform == 'darwin': # subprocess.check_call(['open', '', self.dataDir]) # elif sys.platform == 'linux': # subprocess.check_call(['gnome-open', '', self.dataDir]) # elif sys.platform == 'win32': # os.startfile(self.dataDir) # %% GaussMeasure def GaussMeasure(self): tic = ptime.time() self.data = self.image params = fitgaussian(self.data) self.fit = gaussian(*params) self.params = params (height, x, y, width_x, width_y) = params tac = ptime.time() print(np.round((tac-tic)*10**3,3), "(ms)solo Gauss\n") # texts = [getattr(self, ax + "Label").text() for ax in self.activeChannels] # initPos = [re.findall(r"[-+]?\d*\.\d+|[-+]?\d+", t)[0] for t in texts] # xv = np.linspace(0, self.scanRange, self.numberofPixels) + float(initPos[0]) # yv = np.linspace(0, self.scanRange, self.numberofPixels) + float(initPos[1]) Normal = self.scanRange / self.numberofPixels # Normalizo xx = x*Normal yy = y*Normal self.GaussxValue.setText(str(xx)) self.GaussyValue.setText(str(yy)) # %%--- CM measure def CMmeasure(self): self.viewtimer.stop() I = self.image N = len(I) # numberfoPixels xcm, ycm = ndimage.measurements.center_of_mass(I) # Los calculo y da lo mismo print("Xcm=", xcm,"\nYcm=", ycm) self.xcm = xcm self.ycm = ycm Normal = self.scanRange / self.numberofPixels # Normalizo self.CMxValue.setText(str(xcm*Normal)) self.CMyValue.setText(str(ycm*Normal)) # %% ROI cosas def ROImethod(self): if self.roi is None: ROIpos = (0.5 * self.numberofPixels - 64, 0.5 * self.numberofPixels - 64) self.roi = viewbox_toolsQT5.ROI(self.numberofPixels, self.vb, ROIpos, handlePos=(1, 0), handleCenter=(0, 1), scaleSnap=True, translateSnap=True) else: self.vb.removeItem(self.roi) self.roi.hide() self.roi.disconnect() if self.ROIButton.isChecked(): ROIpos = (0.5 * self.numberofPixels - 64, 0.5 * self.numberofPixels - 64) self.roi = viewbox_toolsQT5.ROI(self.numberofPixels, self.vb, ROIpos, handlePos=(1, 0), handleCenter=(0, 1), scaleSnap=True, translateSnap=True) def selectROI(self): self.liveviewStop() array = self.roi.getArrayRegion(self.image, self.img) ROIpos = np.array(self.roi.pos()) newPos_px = tools.ROIscanRelativePOS(ROIpos, self.numberofPixels, np.shape(array)[1]) newPos_µm = newPos_px * self.pixelSize + self.initialPosition[0:2] newPos_µm = np.around(newPos_µm, 2) print("estaba en", float(self.xLabel.text()), float(self.yLabel.text()), float(self.zLabel.text())) self.moveto(float(newPos_µm[0]), float(newPos_µm[1]), float(self.initialPosition[2])) print("ROI fue a", float(self.xLabel.text()), float(self.yLabel.text()), float(self.zLabel.text()), "/n") newRange_px = np.shape(array)[0] newRange_µm = self.pixelSize * newRange_px newRange_µm = np.around(newRange_µm, 2) print("cambió el rango, de", self.scanRange) self.scanRangeEdit.setText('{}'.format(newRange_µm)) print("hasta :", self.scanRange, "\n") self.paramChanged() # --- Creo el intregador de area histograma def histogramROI(self): #---- def updatehistogram(): array = self.roihist.getArrayRegion(self.image, self.img) ROIpos = np.array(self.roihist.pos()) newPos_px = tools.ROIscanRelativePOS(ROIpos, self.numberofPixels, np.shape(array)[1]) newRange_px = np.shape(array)[0] roizone = self.image[int(newPos_px[0]):int(newPos_px[0]+newRange_px), self.numberofPixels-int(newPos_px[1]+newRange_px):self.numberofPixels-int(newPos_px[1])] y,x = np.histogram(roizone, bins=np.linspace(-0.5, np.ceil(np.max(self.image))+2, np.ceil(np.max(self.image))+3)) m = np.mean(roizone) m2 = np.max(roizone) text= "<strong> mean = {:.3} | max = {:.3}".format(float(m),float(m2)) self.p6.setLabel('top',text) self.curve.setData(x,y,name=text, stepMode=True, fillLevel=0, brush=(0,0,255,150)) #---- if self.histogramROIButton.isChecked(): ROIpos = (0.5 * self.numberofPixels - 64, 0.5 * self.numberofPixels - 64) self.roihist = viewbox_toolsQT5.ROI(self.numberofPixels, self.vb, ROIpos, handlePos=(1, 0), handleCenter=(0, 1), scaleSnap=True, translateSnap=True) self.roihist.sigRegionChanged.connect(updatehistogram) self.HistoWidget = pg.GraphicsLayoutWidget() self.p6 = self.HistoWidget.addPlot(row=2,col=1) # ,title="Updating histogram") self.p6.showGrid(x=True, y=True) self.p6.setLabel('left','Number of pixels with this counts') self.p6.setLabel('bottom','counts') self.p6.setLabel('right','') self.curve = self.p6.plot(open='y') self.algo.textChanged.connect(updatehistogram) self.otrosDock.addWidget(self.HistoWidget) else: self.vb.removeItem(self.roihist) self.roihist.hide() # self.otrosDock.removeWidget(self.HistoWidget) self.HistoWidget.deleteLater() self.roihist.disconnect() self.algo.disconnect() # %% ROI LINEARL def ROIlinear(self): def updatelineal(): array = self.linearROI.getArrayRegion(self.image, self.img) self.curve.setData(array) if self.ROIlineButton.isChecked(): self.linearROI = pg.LineSegmentROI([[10, 64], [120,64]], pen='m') self.vb.addItem(self.linearROI) self.linearROI.sigRegionChanged.connect(updatelineal) self.LinearWidget = pg.GraphicsLayoutWidget() self.p6 = self.LinearWidget.addPlot(row=2,col=1,title="Updating plot") self.p6.showGrid(x=True, y=True) self.curve = self.p6.plot(open='y') self.otrosDock.addWidget(self.LinearWidget) else: self.vb.removeItem(self.linearROI) self.linearROI.hide() self.LinearWidget.deleteLater() def selectLineROI(self): fig, ax = plt.subplots() array = self.linearROI.getArrayRegion(self.image, self.img) plt.plot(array) ax.set_xlabel('Roi') ax.set_ylabel('Intensiti (N photons)') plt.show() # %% Presets copiados del inspector def Presets(self): if self.presetsMode .currentText() == self.presetsModes[0]: self.scanRangeEdit.setText('5') self.pixelTimeEdit.setText('0.01') self.numberofPixelsEdit.setText('100') self.presetsMode.setStyleSheet("QComboBox{color: rgb(255,0,0);}\n") elif self.presetsMode .currentText() == self.presetsModes[1]: self.scanRangeEdit.setText('100') self.pixelTimeEdit.setText('0.2') self.numberofPixelsEdit.setText('128') self.presetsMode.setStyleSheet("QComboBox{color: rgb(153,153,10);}\n") elif self.presetsMode .currentText() == self.presetsModes[2]: self.scanRangeEdit.setText('50') self.pixelTimeEdit.setText('0.05') self.numberofPixelsEdit.setText('250') self.presetsMode.setStyleSheet("QComboBox{color: rgb(76,0,153);}\n") else: print("nunca tiene que entrar aca") self.paramChanged() # self.preseteado = True creo que no lo voy a usar # %% Otras Funciones def gaussian(height, center_x, center_y, width_x, width_y): """Returns a gaussian function with the given parameters""" width_x = float(width_x) width_y = float(width_y) return lambda x,y: height*np.exp( -(((center_x-x)/width_x)**2+((center_y-y)/width_y)**2)/2) def moments(data): """Returns (height, x, y, width_x, width_y) the gaussian parameters of a 2D distribution by calculating its moments """ total = data.sum() X, Y = np.indices(data.shape) x = (X*data).sum()/total y = (Y*data).sum()/total col = data[:, int(y)] width_x = np.sqrt(np.abs((np.arange(col.size)-y)**2*col).sum()/col.sum()) row = data[int(x), :] width_y = np.sqrt(np.abs((np.arange(row.size)-x)**2*row).sum()/row.sum()) height = data.max() return height, x, y, width_x, width_y def fitgaussian(data): """Returns (height, x, y, width_x, width_y) the gaussian parameters of a 2D distribution found by a fit""" params = moments(data) errorfunction = lambda p: np.ravel(gaussian(*p)(*np.indices(data.shape)) - data) p, success = optimize.leastsq(errorfunction, params) return p #%% FIN if __name__ == '__main__': app = QtGui.QApplication([]) # win = ScanWidget(device) win = MainWindow() win.show() # app.exec_() sys.exit(app.exec_() )
[ "germanchiarelli@gmail.com" ]
germanchiarelli@gmail.com
08f3bcef3f8cd09135340a9e0b5b59eba23f21d6
a6cba5b8b36f3f4ef80d7351725da0bc8ddbfad4
/NM/cp/main.py
e362e92e7130e9ddfb28811f5a86ec2d6613187c
[]
no_license
tutkarma/mai_study
7de61a406c7c5701ea9bbea7da687cc147653e53
39359eb8b5701c752d1f4e8e0b26911e50df12ab
refs/heads/master
2023-03-15T18:28:05.814809
2022-01-18T08:40:39
2022-01-18T08:40:39
103,191,526
38
99
null
2023-03-04T02:20:21
2017-09-11T21:46:56
Jupyter Notebook
UTF-8
Python
false
false
5,366
py
import argparse import json from utils import save_to_file from mpi4py import MPI import numpy as np def read_data(filename, need_args): init_dict = {} with open(filename, 'r') as json_data: data = json.load(json_data)[0] # ! for arg in need_args: if arg not in data: raise ValueError('No "{0}" in given data'.format(arg)) if arg == 'matrix': init_dict[arg] = np.array(data[arg], dtype=np.float64) else: init_dict[arg] = data[arg] return init_dict def sign(n): return 1 if n > 0 else -1 def t(A): return np.sqrt(sum([A[i, j] ** 2 for i in range(A.shape[0]) for j in range(i + 1, A.shape[0])])) def indexes_max_elem(A): i_max = j_max = 0 a_max = A[0, 0] for i in range(A.shape[0]): for j in range(i + 1, A.shape[0]): if abs(A[i, j]) > a_max: a_max = abs(A[i, j]) i_max, j_max = i, j return i_max, j_max def parallel_jacobi_rotate(comm, A, ind_j, ind_k): sz = A.shape[0] rank = comm.Get_rank() pool_size = comm.Get_size() c = s = 0.0 j = k = 0 row_j, row_k = np.zeros(sz), np.zeros(sz) if rank == 0: j, k = ind_j, ind_k if A[j, j] == A[k, k]: c = np.cos(np.pi / 4) s = np.sin(np.pi / 4) else: tau = (A[j, j] - A[k, k]) / (2 * A[j, k]) t = sign(tau) / (abs(tau) + np.sqrt(1 + tau ** 2)) c = 1 / np.sqrt(1 + t ** 2) s = c * t for i in range(sz): row_j[i] = A[j, i] row_k[i] = A[k, i] j = comm.bcast(j, root=0) k = comm.bcast(k, root=0) c = comm.bcast(c, root=0) s = comm.bcast(s, root=0) comm.Bcast(row_j, root=0) comm.Bcast(row_k, root=0) row_j_comm = comm.Create_group(comm.group.Incl([i for i in range(1, pool_size) if i % 2 == 1])) row_k_comm = comm.Create_group(comm.group.Incl([i for i in range(1, pool_size) if i % 2 == 0])) row_j_rank = row_j_size = -1 row_j_new = np.zeros(sz) if MPI.COMM_NULL != row_j_comm: row_j_rank = row_j_comm.Get_rank() row_j_size = row_j_comm.Get_size() size = int(sz / row_j_size) row_j_part = np.zeros(size) row_k_part = np.zeros(size) row_j_new_part = np.zeros(size) row_j_comm.Scatter(row_j, row_j_part, root=0) row_j_comm.Scatter(row_k, row_k_part, root=0) for i in range(size): row_j_new_part[i] = c * row_j_part[i] + s * row_k_part[i] row_j_comm.Gather(row_j_new_part, row_j_new, root=0) if row_j_rank == 0: comm.Send([row_j_new, sz, MPI.FLOAT], dest=0, tag=0) row_j_comm.Free() row_k_rank = row_k_size = -1 row_k_new = np.zeros(sz) if MPI.COMM_NULL != row_k_comm: row_k_rank = row_k_comm.Get_rank() row_k_size = row_k_comm.Get_size() size = int(sz / row_k_size) row_j_part = np.zeros(size) row_k_part = np.zeros(size) row_k_new_part = np.zeros(size) row_k_comm.Scatter(row_j, row_j_part, root=0) row_k_comm.Scatter(row_k, row_k_part, root=0) for i in range(size): row_k_new_part[i] = s * row_j_part[i] - c * row_k_part[i] row_k_comm.Gather(row_k_new_part, row_k_new, root=0) if row_k_rank == 0: comm.Send([row_k_new, sz, MPI.FLOAT], dest=0, tag=0) row_k_comm.Free() if rank == 0: status = MPI.Status() comm.Recv([row_j_new, sz, MPI.FLOAT], source=1, tag=0, status=status) comm.Recv([row_k_new, sz, MPI.FLOAT], source=2, tag=0, status=status) A[j, k] = A[k, j] = (c ** 2 - s ** 2) * row_j[k] + s * c * (row_k[k] - row_j[j]) A[j, j] = c ** 2 * row_j[j] + 2 * s * c * row_j[k] + s ** 2 * row_k[k] A[k, k] = s ** 2 * row_j[j] - 2 * s * c * row_j[k] + c ** 2 * row_k[k] for i in range(sz): if i != j and i != k: A[j, i] = A[i, j] = row_j_new[i] A[k, i] = A[i, k] = row_k_new[i] return A def jacobi_parallel(comm, A, eps): elapsed_time = 0 i, j = indexes_max_elem(A) norm = t(A) rank = comm.Get_rank() eps = comm.bcast(eps, root=0) norm = comm.bcast(norm, root=0) k = 1 while norm > eps: elapsed_time -= MPI.Wtime() A = parallel_jacobi_rotate(comm, A, j, i) if rank == 0: norm = t(A) elapsed_time += MPI.Wtime() norm = comm.bcast(norm, root=0) i, j = indexes_max_elem(A) k += 1 return np.diag(A).tolist() if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('--input', required=True, help='Input file') parser.add_argument('--output', required=True, help='Output file') args = parser.parse_args() elapsed_time = 0 need_args = ('matrix', 'eps') init_dict = read_data(args.input, need_args) A, eps = init_dict['matrix'], init_dict['eps'] comm = MPI.COMM_WORLD rank = comm.Get_rank() elapsed_time -= MPI.Wtime() eig = jacobi_parallel(comm, A, eps) elapsed_time += MPI.Wtime() if rank == 0: save_to_file(args.output, eigenvalues=eig) print("Dimension {0}, time elapsed {1} sec.\n".format(A.shape[0], elapsed_time)) MPI.Finalize()
[ "tutkarma@gmail.com" ]
tutkarma@gmail.com
cb61d3bbdedecb22450a2674e611e45074aba786
947148dc83b90f3af0dc6a6186c1b30c9d405084
/contest/beginner/136/C.py
3990c30d9ac51d93fe2384f453ddc087e69d3f6f
[]
no_license
MinamiInoue2323/AtCorder
d232cea3ac16f62bc51dd4ae386ae7e92d2b312d
f969c409b2661ca65d91dcafbc341123b418c7fd
refs/heads/master
2023-04-29T13:17:06.297394
2021-05-15T13:58:28
2021-05-15T13:58:28
349,376,769
0
0
null
null
null
null
UTF-8
Python
false
false
242
py
N = int(input()) H = list(map(int,input().split())) H.reverse() past = 10 ** 9 + 1 for masu in H: if masu > past: if masu - past >= 2: print("No") exit() else: past = masu - 1 else: past = masu print("Yes")
[ "inoue@ics.keio.ac.jp" ]
inoue@ics.keio.ac.jp
f07f0afb05ccddbf51436772398c6e6d04bd5b0d
98ed6ecc0ac470ffb097ffdb10a601f89165861a
/_old/core/abstract.py
4527768ba13899fcd70ab700dbcef987687340c9
[ "MIT" ]
permissive
mccartnm/spaceman
b92452c79325e573715e39235138025a1f3ed78b
6f6f668c46531c68b87b0aaa16fb3f616375ed7d
refs/heads/master
2020-05-22T11:06:24.822624
2019-05-27T02:50:25
2019-05-27T02:50:25
186,314,764
1
0
null
null
null
null
UTF-8
Python
false
false
10,173
py
import os import re import arcade from purepy import PureVirtualMeta, pure_virtual from .utils import Position from . import settings class DrawEvent(object): """ An object that we create from the window class that we pass down to the various objects. """ def __init__(self, mouse: Position, window): self._mouse = mouse self._window = window @property def mouse(self): return self._mouse @property def window(self): return self._window class TSprite(arcade.Sprite): """ Base class for all sprites to work from. This class uses the "state" structure to allow for dynamic loading of states when required. TODO: Add more documentation """ BASE_STATE = 'life-static' # Required by all sprites def __init__(self, states, *args, **kwargs): super().__init__(*args, **kwargs) self._states = states self._state = None # Animation Controls self._frame = 0 self._texture_index = 0 self._texture_change_frames = settings.get_setting( 'frames_between_change', 5 ) self.set_sprite_state(self.BASE_STATE) def set_frame_rate(self, frames): self._texture_change_frames = frames def set_position(self, position: Position): self.center_x = position.x self.center_y = position.y @property def state(self): return self._state def get_state_info(self): """ Get the descriptor for this sprite/animation """ return self._states[self._state] def current_state_is_animated(self): """ :return: There are multiple textures to this sprite """ si = self.get_state_info() return isinstance(si, list) and len(si) > 1 def set_sprite_state(self, state: str): """ Set the sprite to an alternate state """ if self._state == state: return self._frame = 0 if state in self._states: # Only if we have the state do we move into it. # No sense is failing hard self._state = state else: self._state = self.BASE_STATE # Make sure we set the initial texture info = self.get_state_info() if isinstance(info, list): self.texture = info[0] # Animated else: self.texture = info def update(self): """ We update the TSprite based on the animation """ super().update() state_info = self.get_state_info() if isinstance(state_info, list) and len(state_info) > 1: # Animation! if self._frame % self._texture_change_frames == 0: self._texture_index += 1 if self._texture_index >= len(state_info): self._texture_index = 0 self.texture = state_info[self._texture_index] self._frame += 1 # else we have nothing to change class _AbstractDrawObject(metaclass=PureVirtualMeta): """ Any drawable object or structure should derive from this """ # Bitwise flags to allow for sprite _and_ paint-based objects SPRITE_BASED = 0x00000001 PAINT_BASED = 0x00000010 SHAPE_BASED = 0x00000100 ANIM_REGEX = re.compile(r"^(?P<name>.+)_(?P<frame>\d+)\.png$") def __init__(self): self._position = Position(0, 0) self._velocity = Position(0, 0) self._z_depth = 0 # The sprite itself self._sprite = None self._is_in_scene = False @property def position(self): return self._position @property def z_depth(self) -> int: return self._z_depth @property def is_in_scene(self): return self._is_in_scene def sprite(self): return self._retrieve_sprite_pvt() def data_directory(self) -> str: """ :return: The root of our data path containing any game data that we may need """ from .render import RenderEngine return RenderEngine().data_directory() def add_to_scene(self): """ This this object to our scene at the given depth :return: None """ from .render import RenderEngine RenderEngine().add_object(self) def remove_from_scene(self): from .render import RenderEngine RenderEngine().unload_object(self) def set_in_scene(self, in_scene: bool): """ Set when adding this to the render engine for rendering. Unset when we're done with it :param in_scene: Boolean if we're in the scene :return: None """ self._is_in_scene = in_scene def set_position(self, position: Position): self._position = position def set_x(self, x: int): self._position.x = x def set_y(self, y: int): self._position.y = y def set_z_depth(self, z: int): """ Set the z position of this item to give the render engine an idea of when to draw it """ if self.is_in_scene: raise RuntimeError("Attempting to change the z-depth while" " in scene. This is not yet supported") self._z_depth = z def set_velocity(self, velocty: Position): """ Set the speed at which this object is traveling (if any) """ self._velocity = velocty if self.draw_method() & _AbstractDrawObject.SPRITE_BASED: self.sprite().change_x = velocty.x self.sprite().change_y = velocty.y def build_states(self, texture_dir: str) -> dict: """ Construct a state dictionary """ scale = settings.get_setting('global_scale', 1.0) states = {} folders = filter( lambda x: os.path.isdir( os.path.join(texture_dir, x) ), os.listdir(texture_dir) ) for folder in folders: this_dirname = os.path.join(texture_dir, folder) files = filter( lambda x: os.path.isfile( os.path.join(this_dirname, x) ), os.listdir(this_dirname) ) textures = filter(lambda x: x.endswith(".png"), files) animations = set() for texture in textures: anim_match = re.match(self.ANIM_REGEX, texture) is_anim = anim_match is not None name = texture[:-4] # Strip .png if anim_match: d = anim_name.groupdict() # Check if we've seen this animation before name = d['name'] if name in animations: continue animations.add(name) loaded_texture = arcade.load_texture( os.path.join(texture_dir, folder, texture), scale=scale ) state_name = f"{folder}-{name}" states.setdefault(state_name, []) if not is_anim: states[state_name] = loaded_texture else: states[state_name].append(loaded_texture) return states def load_basic(self, texture_dir: str, name: str, scale: (int, float) = None) -> list: """ :param texture_dir: Root location for the texture :param name: The name of this texture :return: list[arcade.Texture]|arcade.Texture """ if scale is None: scale = settings.get_setting('global_scale', 1.0) textures = [] basic = os.path.join(texture_dir, name) if os.path.isfile(basic + '.png'): textures.append(arcade.load_texture( basic + '.png', scale=scale )) elif os.path.isdir(basic): for filename in sorted(os.listdir(basic)): if re.match(r'^' + name + r'_[\d]+\.png$', filename): textures.append(arcade.load_texture( os.path.join(basic, filename), scale=scale )) states = { 'life-static' : textures } s = TSprite(states, scale=scale) return s def default_sprite(self, texture_dir: str) -> TSprite: """ :return: TSprite """ scale = settings.get_setting('global_scale', 1.0) # -- Get the texture states states = self.build_states(texture_dir) s = TSprite(states, scale=scale) s.center_x = self.position.x s.center_y = self.position.y return s @pure_virtual def draw_method(self): """ :return: The type of object this is (manual draw code or sprite based) """ raise NotImplementedError() def load_sprite(self): """ Overload to build and return the arcade.Sprite object that will be rendered at the various layers """ raise NotImplementedError() def _retrieve_sprite_pvt(self): """ Private call the render engine uses to load a sprite once """ if self._sprite: return self._sprite else: self._sprite = self.load_sprite() return self._sprite def paint(self, draw_event: DrawEvent): """ All classes have to overload this """ raise NotImplementedError() def shapes(self, draw_event: DrawEvent): """ A function that returns arcade.shapes to enable bulk render calls for hand-made components """ raise NotImplementedError() def update(self, delta_time): """ Update this object. If the object is not a sprite, then this does nothing by default. :param delta_time: float of time passed sincle the last update :return: None """ if self.draw_method() & _AbstractDrawObject.SPRITE_BASED: self.sprite().update()
[ "mmccartney@stereodllc.com" ]
mmccartney@stereodllc.com
c6715ca40c352c6e53c6185053112b67d8ac712e
94c855cffba3629e693d9034d53ff139edd6930f
/test/test_podle.py
0a359ceae5c9d97262c70e20a0931f12815877ec
[]
no_license
adlai/joinmarket
1b36f606825e23ed3af63c99c2f0e3de79076d27
6e0649b9774ddf16d047d6126affb2cea372e32c
refs/heads/develop
2020-12-26T02:22:34.042135
2018-03-18T13:58:32
2018-03-18T13:58:32
35,248,204
1
0
null
2018-03-18T14:14:19
2015-05-07T23:16:55
Python
UTF-8
Python
false
false
17,209
py
#! /usr/bin/env python from __future__ import absolute_import '''Tests of Proof of discrete log equivalence commitments.''' import os import secp256k1 import bitcoin as btc import binascii import json import pytest import subprocess import signal from commontest import local_command, make_wallets import shutil import time from pprint import pformat from joinmarket import Taker, load_program_config, IRCMessageChannel from joinmarket import validate_address, jm_single, get_irc_mchannels from joinmarket import get_p2pk_vbyte, MessageChannelCollection from joinmarket import get_log, choose_sweep_orders, choose_orders, sync_wallet, \ pick_order, cheapest_order_choose, weighted_order_choose, debug_dump_object import joinmarket.irc import sendpayment #for running bots as subprocesses python_cmd = 'python2' yg_cmd = 'yield-generator-basic.py' #yg_cmd = 'yield-generator-mixdepth.py' #yg_cmd = 'yield-generator-deluxe.py' log = get_log() def test_commitments_empty(setup_podle): """Ensure that empty commitments file results in {} """ assert btc.get_podle_commitments() == ([], {}) def test_commitment_retries(setup_podle): """Assumes no external commitments available. Generate pretend priv/utxo pairs and check that they can be used taker_utxo_retries times. """ allowed = jm_single().config.getint("POLICY", "taker_utxo_retries") #make some pretend commitments dummy_priv_utxo_pairs = [(btc.sha256(os.urandom(10)), btc.sha256(os.urandom(10))+":0") for _ in range(10)] #test a single commitment request of all 10 for x in dummy_priv_utxo_pairs: p = btc.generate_podle([x], allowed) assert p #At this point slot 0 has been taken by all 10. for i in range(allowed-1): p = btc.generate_podle(dummy_priv_utxo_pairs[:1], allowed) assert p p = btc.generate_podle(dummy_priv_utxo_pairs[:1], allowed) assert p is None def generate_single_podle_sig(priv, i): """Make a podle entry for key priv at index i, using a dummy utxo value. This calls the underlying 'raw' code based on the class PoDLE, not the library 'generate_podle' which intelligently searches and updates commitments. """ dummy_utxo = btc.sha256(priv) + ":3" podle = btc.PoDLE(dummy_utxo, binascii.hexlify(priv)) r = podle.generate_podle(i) return (r['P'], r['P2'], r['sig'], r['e'], r['commit']) def test_rand_commitments(setup_podle): #TODO bottleneck i believe is tweak_mul due #to incorrect lack of precomputed context in upstream library. for i in range(20): priv = os.urandom(32) Pser, P2ser, s, e, commitment = generate_single_podle_sig(priv, 1 + i%5) assert btc.verify_podle(Pser, P2ser, s, e, commitment) #tweak commitments to verify failure tweaked = [x[::-1] for x in [Pser, P2ser, s, e, commitment]] for i in range(5): #Check failure on garbling of each parameter y = [Pser, P2ser, s, e, commitment] y[i] = tweaked[i] fail = False try: fail = btc.verify_podle(*y) except: pass finally: assert not fail def test_nums_verify(setup_podle): """Check that the NUMS precomputed values are valid according to the code; assertion check implicit. """ btc.verify_all_NUMS() @pytest.mark.parametrize( "num_ygs, wallet_structures, mean_amt, mixdepth, sending_amt", [ (3, [[1, 0, 0, 0, 0]] * 4, 10, 0, 100000000), ]) def test_failed_sendpayment(setup_podle, num_ygs, wallet_structures, mean_amt, mixdepth, sending_amt): """Test of initiating joins, but failing to complete, to see commitment usage. YGs in background as per test_regtest. Use sweeps to avoid recover_from_nonrespondants without intruding into sendpayment code. """ makercount = num_ygs answeryes = True txfee = 5000 waittime = 3 #Don't want to wait too long, but must account for possible #throttling with !auth jm_single().maker_timeout_sec = 12 amount = 0 wallets = make_wallets(makercount + 1, wallet_structures=wallet_structures, mean_amt=mean_amt) #the sendpayment bot uses the last wallet in the list wallet = wallets[makercount]['wallet'] yigen_procs = [] for i in range(makercount): ygp = local_command([python_cmd, yg_cmd,\ str(wallets[i]['seed'])], bg=True) time.sleep(2) #give it a chance yigen_procs.append(ygp) #A significant delay is needed to wait for the yield generators to sync time.sleep(20) destaddr = btc.privkey_to_address( os.urandom(32), from_hex=False, magicbyte=get_p2pk_vbyte()) addr_valid, errormsg = validate_address(destaddr) assert addr_valid, "Invalid destination address: " + destaddr + \ ", error message: " + errormsg #TODO paramatetrize this as a test variable chooseOrdersFunc = weighted_order_choose log.debug('starting sendpayment') sync_wallet(wallet) #Trigger PING LAG sending artificially joinmarket.irc.PING_INTERVAL = 3 mcs = [IRCMessageChannel(c) for c in get_irc_mchannels()] mcc = MessageChannelCollection(mcs) #Allow taker more retries than makers allow, so as to trigger #blacklist failure case jm_single().config.set("POLICY", "taker_utxo_retries", "4") #override ioauth receipt with a dummy do-nothing callback: def on_ioauth(*args): log.debug("Taker received: " + ','.join([str(x) for x in args])) class DummySendPayment(sendpayment.SendPayment): def __init__(self, msgchan, wallet, destaddr, amount, makercount, txfee, waittime, mixdepth, answeryes, chooseOrdersFunc, on_ioauth): self.on_ioauth = on_ioauth self.podle_fails = 0 self.podle_allowed_fails = 3 #arbitrary; but do it more than once self.retries = 0 super(DummySendPayment, self).__init__(msgchan, wallet, destaddr, amount, makercount, txfee, waittime, mixdepth, answeryes, chooseOrdersFunc) def on_welcome(self): Taker.on_welcome(self) DummyPaymentThread(self).start() class DummyPaymentThread(sendpayment.PaymentThread): def finishcallback(self, coinjointx): #Don't ignore makers and just re-start self.taker.retries += 1 if self.taker.podle_fails == self.taker.podle_allowed_fails: self.taker.msgchan.shutdown() return self.create_tx() def create_tx(self): try: super(DummyPaymentThread, self).create_tx() except btc.PoDLEError: log.debug("Got one commit failure, continuing") self.taker.podle_fails += 1 taker = DummySendPayment(mcc, wallet, destaddr, amount, makercount, txfee, waittime, mixdepth, answeryes, chooseOrdersFunc, on_ioauth) try: log.debug('starting message channels') mcc.run() finally: if any(yigen_procs): for ygp in yigen_procs: #NB *GENTLE* shutdown is essential for #test coverage reporting! ygp.send_signal(signal.SIGINT) ygp.wait() #We should have been able to try (tur -1) + podle_allowed_fails times assert taker.retries == jm_single().config.getint( "POLICY", "taker_utxo_retries") + taker.podle_allowed_fails #wait for block generation time.sleep(2) received = jm_single().bc_interface.get_received_by_addr( [destaddr], None)['data'][0]['balance'] #Sanity check no transaction succeeded assert received == 0 def test_external_commitment_used(setup_podle): tries = jm_single().config.getint("POLICY","taker_utxo_retries") #Don't want to wait too long, but must account for possible #throttling with !auth jm_single().maker_timeout_sec = 12 amount = 50000000 wallets = make_wallets(3, wallet_structures=[[1,0,0,0,0],[1,0,0,0,0],[1,1,0,0,0]], mean_amt=1) #the sendpayment bot uses the last wallet in the list wallet = wallets[2]['wallet'] yigen_procs = [] for i in range(2): ygp = local_command([python_cmd, yg_cmd,\ str(wallets[i]['seed'])], bg=True) time.sleep(2) #give it a chance yigen_procs.append(ygp) #A significant delay is needed to wait for the yield generators to sync time.sleep(10) destaddr = btc.privkey_to_address( binascii.hexlify(os.urandom(32)), magicbyte=get_p2pk_vbyte()) addr_valid, errormsg = validate_address(destaddr) assert addr_valid, "Invalid destination address: " + destaddr + \ ", error message: " + errormsg log.debug('starting sendpayment') sync_wallet(wallet) #Trigger PING LAG sending artificially joinmarket.irc.PING_INTERVAL = 3 mcs = [IRCMessageChannel(c) for c in get_irc_mchannels()] mcc = MessageChannelCollection(mcs) #add all utxo in mixdepth 0 to 'used' list of commitments, utxos = wallet.get_utxos_by_mixdepth()[0] for u, addrval in utxos.iteritems(): priv = wallet.get_key_from_addr(addrval['address']) podle = btc.PoDLE(u, priv) for i in range(tries): #loop because we want to use up all retries of this utxo commitment = podle.generate_podle(i)['commit'] btc.update_commitments(commitment=commitment) #create a new utxo, notionally from an external source; to make life a little #easier we'll pay to another mixdepth, but this is OK because #taker does not source from here currently, only from the utxos chosen #for the transaction, not the whole wallet. So we can treat it as if #external (don't access its privkey). utxos = wallet.get_utxos_by_mixdepth()[1] ecs = {} for u, addrval in utxos.iteritems(): priv = wallet.get_key_from_addr(addrval['address']) ecs[u] = {} ecs[u]['reveal']={} for j in range(tries): P, P2, s, e, commit = generate_single_podle_sig( binascii.unhexlify(priv), j) if 'P' not in ecs[u]: ecs[u]['P'] = P ecs[u]['reveal'][j] = {'P2':P2, 's':s, 'e':e} btc.update_commitments(external_to_add=ecs) #Now the conditions described above hold. We do a normal single #sendpayment. taker = sendpayment.SendPayment(mcc, wallet, destaddr, amount, 2, 5000, 3, 0, True, weighted_order_choose) try: log.debug('starting message channels') mcc.run() finally: if any(yigen_procs): for ygp in yigen_procs: #NB *GENTLE* shutdown is essential for #test coverage reporting! ygp.send_signal(signal.SIGINT) ygp.wait() #wait for block generation time.sleep(5) received = jm_single().bc_interface.get_received_by_addr( [destaddr], None)['data'][0]['balance'] assert received == amount, "sendpayment failed - coins not arrived, " +\ "received: " + str(received) #Cleanup - remove the external commitments added btc.update_commitments(external_to_remove=ecs) @pytest.mark.parametrize( "consume_tx, age_required, cmt_age", [ (True, 9, 5), (True, 9, 12), ]) def test_tx_commitments_used(setup_podle, consume_tx, age_required, cmt_age): tries = jm_single().config.getint("POLICY","taker_utxo_retries") #remember and reset at the end taker_utxo_age = jm_single().config.getint("POLICY", "taker_utxo_age") jm_single().config.set("POLICY", "taker_utxo_age", str(age_required)) #Don't want to wait too long, but must account for possible #throttling with !auth jm_single().maker_timeout_sec = 12 amount = 0 wallets = make_wallets(3, wallet_structures=[[1,2,1,0,0],[1,2,0,0,0],[2,2,1,0,0]], mean_amt=1) #the sendpayment bot uses the last wallet in the list wallet = wallets[2]['wallet'] #make_wallets calls grab_coins which mines 1 block per individual payout, #so the age of the coins depends on where they are in that list. The sendpayment #is the last wallet in the list, and we choose the non-tx utxos which are in #mixdepth 1 and 2 (2 and 1 utxos in each respectively). We filter for those #that have sufficient age, so to get 1 which is old enough, it will be the oldest, #which will have an age of 2 + 1 (the first utxo spent to that wallet). #So if we need an age of 6, we need to mine 3 more blocks. blocks_reqd = cmt_age - 3 jm_single().bc_interface.tick_forward_chain(blocks_reqd) yigen_procs = [] for i in range(2): ygp = local_command([python_cmd, yg_cmd,\ str(wallets[i]['seed'])], bg=True) time.sleep(2) #give it a chance yigen_procs.append(ygp) time.sleep(5) destaddr = btc.privkey_to_address( binascii.hexlify(os.urandom(32)), magicbyte=get_p2pk_vbyte()) addr_valid, errormsg = validate_address(destaddr) assert addr_valid, "Invalid destination address: " + destaddr + \ ", error message: " + errormsg log.debug('starting sendpayment') sync_wallet(wallet) log.debug("Here is the whole wallet: \n" + str(wallet.unspent)) #Trigger PING LAG sending artificially joinmarket.irc.PING_INTERVAL = 3 mcs = [IRCMessageChannel(c) for c in get_irc_mchannels()] mcc = MessageChannelCollection(mcs) if consume_tx: #add all utxo in mixdepth 0 to 'used' list of commitments, utxos = wallet.get_utxos_by_mixdepth()[0] for u, addrval in utxos.iteritems(): priv = wallet.get_key_from_addr(addrval['address']) podle = btc.PoDLE(u, priv) for i in range(tries): #loop because we want to use up all retries of this utxo commitment = podle.generate_podle(i)['commit'] btc.update_commitments(commitment=commitment) #Now test a sendpayment from mixdepth 0 with all the depth 0 utxos #used up, so that the other utxos in the wallet get used. taker = sendpayment.SendPayment(mcc, wallet, destaddr, amount, 2, 5000, 3, 0, True, weighted_order_choose) try: log.debug('starting message channels') mcc.run() finally: if any(yigen_procs): for ygp in yigen_procs: #NB *GENTLE* shutdown is essential for #test coverage reporting! ygp.send_signal(signal.SIGINT) ygp.wait() #wait for block generation time.sleep(5) received = jm_single().bc_interface.get_received_by_addr( [destaddr], None)['data'][0]['balance'] jm_single().config.set("POLICY", "taker_utxo_age", str(taker_utxo_age)) if cmt_age < age_required: assert received == 0, "Coins arrived but shouldn't" else: assert received != 0, "sendpayment failed - coins not arrived, " +\ "received: " + str(received) def test_external_commitments(setup_podle): """Add this generated commitment to the external list {txid:N:{'P':pubkey, 'reveal':{1:{'P2':P2,'s':s,'e':e}, 2:{..},..}}} Note we do this *after* the sendpayment test so that the external commitments will not erroneously used (they are fake). """ ecs = {} tries = jm_single().config.getint("POLICY","taker_utxo_retries") for i in range(10): priv = os.urandom(32) dummy_utxo = btc.sha256(priv)+":2" ecs[dummy_utxo] = {} ecs[dummy_utxo]['reveal']={} for j in range(tries): P, P2, s, e, commit = generate_single_podle_sig(priv, j) if 'P' not in ecs[dummy_utxo]: ecs[dummy_utxo]['P']=P ecs[dummy_utxo]['reveal'][j] = {'P2':P2, 's':s, 'e':e} btc.add_external_commitments(ecs) used, external = btc.get_podle_commitments() for u in external: assert external[u]['P'] == ecs[u]['P'] for i in range(tries): for x in ['P2', 's', 'e']: assert external[u]['reveal'][str(i)][x] == ecs[u]['reveal'][i][x] @pytest.fixture(scope="module") def setup_podle(request): load_program_config() prev_commits = False #back up any existing commitments pcf = btc.get_commitment_file() log.debug("Podle file: " + pcf) if os.path.exists(pcf): os.rename(pcf, pcf + ".bak") prev_commits = True def teardown(): if prev_commits: os.rename(pcf + ".bak", pcf) else: os.remove(pcf) request.addfinalizer(teardown)
[ "ekaggata@gmail.com" ]
ekaggata@gmail.com
ade4f123c1506a2b05363a141ce80e4e12fd6a1d
f0bcd93d7cc86407e8ad9a152f21c2ecebc19c24
/otsc/dataset/amazon_reviews_binary.py
197d3ac1111fe824c6e8835912fa6c59f1f8703a
[]
no_license
arunreddy/otsc
9d32b907143ad7e4b10ccbfffae60b7dfdef679d
aca460c8afe8f5ebbd7a31ea9b4c97ca855c6fa8
refs/heads/master
2021-01-01T19:44:57.938280
2018-02-03T01:08:54
2018-02-03T01:08:54
98,670,540
0
0
null
null
null
null
UTF-8
Python
false
false
1,890
py
from config import DB_ENGINE, DATA_DIR import os import pandas as pd from sqlalchemy import create_engine import numpy as np class AmazonReviewsBinary(object): def __init__(self): pass def import_data_to_db(self): pos_text = None neg_text = None with open(os.path.join(DATA_DIR, 'amazonreviews' '/train_label1.txt')) as f: pos_text = f.readlines() with open(os.path.join(DATA_DIR, 'amazonreviews' '/train_label2.txt')) as f: neg_text = f.readlines() df_pos = pd.DataFrame(pos_text, columns=['text']) df_pos['label'] = 1 df_neg = pd.DataFrame(neg_text, columns=['text']) df_neg['label'] = -1 df = df_pos.append(df_neg) psql = create_engine(DB_ENGINE) df.to_sql('amazon_reviews_tenk', psql, if_exists='replace') def load_data(self, n): df_pos = pd.read_sql('SELECT * FROM amazon_reviews_tenk WHERE label=-1 ORDER BY index ASC LIMIT %d ' % n, con=create_engine(DB_ENGINE), parse_dates=True) df_neg = pd.read_sql('SELECT * FROM amazon_reviews_tenk WHERE label=1 ORDER BY index ASC LIMIT %d ' % n, con=create_engine(DB_ENGINE), parse_dates=True) df_pos['f_prime'] = df_pos['stanford_confidence_scores'].apply(lambda x: np.max(list(map(float, x.split(','))))) df_neg['f_prime'] = df_neg['stanford_confidence_scores'].apply(lambda x: np.max(list(map(float, x.split(','))))) df_pos['review_txt'] = df_pos['text'] del df_pos['text'] df_neg['review_txt'] = df_neg['text'] del df_neg['text'] return df_pos, df_neg if __name__ == '__main__': amazon_fine_food_reviews = AmazonReviewsBinary() amazon_fine_food_reviews.import_data_to_db()
[ "arunreddy.nelakurthi@gmail.com" ]
arunreddy.nelakurthi@gmail.com
aad4b0d44417f70bb597e98780a9d13a26fc94c6
4590776425a4fa606e76d6a46a175f9546df846b
/Section 1.4/Time/10371 - Time Zones/h.py
daa5708e0c8b2f415040e5b0660e2ade400ba543
[]
no_license
Miguel235711/Competitive-Programming-3-Solutions-by-Miguel-Mu-oz-
fc6c3843e26647f23a88e9b58f3edd04f93a6b91
340fef9335fba8e5c1e3e71731912c054c142571
refs/heads/master
2022-11-30T23:09:41.628422
2020-08-16T02:43:32
2020-08-16T02:43:32
279,765,973
0
1
null
null
null
null
UTF-8
Python
false
false
590
py
def main(): current='' detectHour=False line = input() for i,c in enumerate(line): if c == '+' or c=='-': detectHour=True current=c if current=='hour': print("'{}'".format(current)) current='' detectHour=False if str.isupper(line[i]) and str.isupper(line[i+1]): if not str.isupper(c): current+=c elif current: print("'{}'".format(current),end=':') current='' if detectHour and str.isdigit(c): current+=c main()
[ "miguel@10.0.2.15" ]
miguel@10.0.2.15
36b3f773bc2f1af32f4117496f50eb655fdfc260
a87bc0f715439a6a115a6e0abd768d7ae2a1f3d9
/blog/migrations/0012_article_author_pic.py
9d1379b550dbc5c7db5659ca39c85c51e1c885be
[]
no_license
baka-tsubaki/mediathor
f21314fc6ebb87c5a45aeae29790816ff5b0352e
5f00cc55cb70eb5b15c0d901a94e00470bf1bb14
refs/heads/main
2023-09-04T21:28:03.132535
2021-11-01T14:59:47
2021-11-01T14:59:47
357,609,649
0
0
null
null
null
null
UTF-8
Python
false
false
414
py
# Generated by Django 3.2 on 2021-04-13 14:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0011_remove_article_post_image'), ] operations = [ migrations.AddField( model_name='article', name='author_pic', field=models.ImageField(blank=True, null=True, upload_to=''), ), ]
[ "a.nasseur@outlook.com" ]
a.nasseur@outlook.com
575d02aa9fb79160437e642f6d8501b4b1d3b89c
0f556b9d4e250df73bf1e0929dbd4afad51e82fe
/person/3/person.py
18a8f9d43f414810584c840c8d787016b5ca9207
[]
no_license
unabl4/PythonCodeClub
0ef1cb4d145860a4fda528c2eea513d0ba6b8327
72d5887342c1e0b304307a0e0ac9eb78f0202c35
refs/heads/master
2021-04-30T04:42:03.266029
2019-02-18T22:09:12
2019-02-18T22:09:12
121,541,065
0
0
null
null
null
null
UTF-8
Python
false
false
604
py
from datetime import date class Person: def __init__(self, first_name, last_name, birth_date): self.first_name = first_name self.last_name = last_name self.birth_date = birth_date def age(self): return int((date.today()-self.birth_date).days // 365.25) def full_name(self): return "%s %s" % (self.first_name, self.last_name) # --- class Female(Person): def __init__(self, first_name, last_name, birth_date): super().__init__(first_name, last_name, birth_date) def age(self): age = super().age() return min(20, age)
[ "unabl4@gmail.com" ]
unabl4@gmail.com
5d93961f9a5687920981722d43280ad2d50bb42e
8fc639606c1fa8a867fb43f717b8d74effcbc9c3
/migrations/versions/3752ca029461_.py
3172c84fb0a4c3eb682d0ef1c84b3972c85d0790
[]
no_license
eyemong/flask_pybo
d039806793f8c086730977c92eab4f524e4c795a
478713ddc57806de8c3f4fe81f19cab36e5378b3
refs/heads/master
2023-07-04T04:07:20.142604
2021-08-05T12:51:01
2021-08-05T12:51:01
392,593,766
0
0
null
null
null
null
UTF-8
Python
false
false
946
py
"""empty message Revision ID: 3752ca029461 Revises: ba28cc034459 Create Date: 2021-08-02 07:54:22.368251 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '3752ca029461' down_revision = 'ba28cc034459' branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### op.create_table('user', sa.Column('id', sa.Integer(), nullable=False), sa.Column('username', sa.String(length=150), nullable=False), sa.Column('password', sa.String(length=200), nullable=False), sa.Column('email', sa.String(length=120), nullable=False), sa.PrimaryKeyConstraint('id'), sa.UniqueConstraint('email'), sa.UniqueConstraint('username') ) # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### op.drop_table('user') # ### end Alembic commands ###
[ "eyemong1203@gmail.com" ]
eyemong1203@gmail.com
419177ea94ed1e989c5d36f738bd09f9a9fa41bd
946c85244f3c80635d13724d260b1a6fffb822f7
/HQTrivia/google-cloud-sdk/.install/.backup/lib/googlecloudsdk/third_party/apis/compute/v1/compute_v1_messages.py
03f9654e5b51fc1ebcbd5d4a8bb39bae56aabe04
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
bopopescu/old_projects
72343f3ca25bde53b9761c49add5a5ad6e082d1b
d623d1a809786ebc1c09a94ae8cf1c5b0ddccbd4
refs/heads/master
2022-12-02T12:30:48.285805
2019-01-20T02:32:42
2019-01-20T02:32:42
282,496,066
0
0
null
2020-07-25T17:50:40
2020-07-25T17:50:39
null
UTF-8
Python
false
false
1,208,525
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): """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. If you are creating an instance template, specify only the accelerator name. """ acceleratorCount = _messages.IntegerField(1, variant=_messages.Variant.INT32) acceleratorType = _messages.StringField(2) class AcceleratorType(_messages.Message): """An Accelerator Type resource. (== 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): """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): """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): """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): """[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): """[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): """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): """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): """[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): """[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): """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): """A AcceleratorTypesScopedList object. Messages: WarningValue: [Output Only] An informational warning that appears when the accelerator types list is empty. Fields: acceleratorTypes: [Output Only] 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): """[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): """[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): """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): """An access configuration attached to an instance's network interface. Only one access config per instance is supported. Enums: 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 you would like. For example, 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. publicPtrDomainName: The DNS domain name for the public PTR record. This field can only be set when the set_public_ptr 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 TypeValueValuesEnum(_messages.Enum): """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) publicPtrDomainName = _messages.StringField(4) setPublicPtr = _messages.BooleanField(5) type = _messages.EnumField('TypeValueValuesEnum', 6, default=u'ONE_TO_ONE_NAT') class Address(_messages.Message): """A reserved address resource. (== 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. 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 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 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])? 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 regional address resides. This field is not applicable to global addresses. You must specify this field as part of the HTTP request URL. You cannot set this field in the request body. 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 GCE_ENDPOINT/DNS_RESOLVER purposes. users: [Output Only] The URLs of the resources that are using this address. """ class AddressTypeValueValuesEnum(_messages.Enum): """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): """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 StatusValueValuesEnum(_messages.Enum): """[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> """ IN_USE = 0 RESERVED = 1 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) region = _messages.StringField(9) selfLink = _messages.StringField(10) status = _messages.EnumField('StatusValueValuesEnum', 11) subnetwork = _messages.StringField(12) users = _messages.StringField(13, repeated=True) class AddressAggregatedList(_messages.Message): """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): """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): """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): """[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): """[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): """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): """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): """[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): """[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): """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): """A AddressesScopedList object. Messages: WarningValue: [Output Only] Informational warning which replaces the list of addresses when the list is empty. Fields: addresses: [Output Only] 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): """[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): """[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): """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): """An alias IP range attached to an instance's network interface. Fields: ipCidrRange: The IP CIDR range represented by this alias IP range. 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 (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR format string (e.g. 10.1.2.0/24). subnetworkRangeName: Optional subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used. """ ipCidrRange = _messages.StringField(1) subnetworkRangeName = _messages.StringField(2) class AttachedDisk(_messages.Message): """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. 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-disks-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. 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. 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): """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. Values: NVME: <no description> SCSI: <no description> """ NVME = 0 SCSI = 1 class ModeValueValuesEnum(_messages.Enum): """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): """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) index = _messages.IntegerField(5, variant=_messages.Variant.INT32) initializeParams = _messages.MessageField('AttachedDiskInitializeParams', 6) interface = _messages.EnumField('InterfaceValueValuesEnum', 7) kind = _messages.StringField(8, default=u'compute#attachedDisk') licenses = _messages.StringField(9, repeated=True) mode = _messages.EnumField('ModeValueValuesEnum', 10) source = _messages.StringField(11) type = _messages.EnumField('TypeValueValuesEnum', 12) class AttachedDiskInitializeParams(_messages.Message): """[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: diskName: Specifies the disk name. If not specified, the default is to use the name of the instance. diskSizeGb: Specifies the size of the disk in base-2 GB. 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. 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-8 to use the latest Debian 8 image: projects/debian-cloud/global/images/family/debian-8 Alternatively, use a specific version of a public operating system image: projects/debian- cloud/global/images/debian-8-jessie-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. """ @encoding.MapUnrecognizedFields('additionalProperties') class LabelsValue(_messages.Message): """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): """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) diskName = _messages.StringField(1) diskSizeGb = _messages.IntegerField(2) diskType = _messages.StringField(3) labels = _messages.MessageField('LabelsValue', 4) sourceImage = _messages.StringField(5) sourceImageEncryptionKey = _messages.MessageField('CustomerEncryptionKey', 6) class Autoscaler(_messages.Message): """Represents an Autoscaler resource. Autoscalers allow you to automatically scale virtual machine instances in managed instance groups according to an autoscaling policy that you define. For more information, read Autoscaling Groups of Instances. (== 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): """[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): """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): """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): """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): """[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): """[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): """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): """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): """[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): """[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): """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): """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): """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): """A AutoscalersScopedList object. Messages: WarningValue: [Output Only] Informational warning which replaces the list of autoscalers when the list is empty. Fields: autoscalers: [Output Only] 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): """[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): """[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): """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): """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): """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): """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. If not specified, the default is GAUGE. 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. If not specified, the default is GAUGE. """ class UtilizationTargetTypeValueValuesEnum(_messages.Enum): """Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. If not specified, the default is GAUGE. 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): """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): """Message containing information of one individual backend. Enums: BalancingModeValueValuesEnum: Specifies the balancing mode for this backend. For global HTTP(S) or TCP/SSL load balancing, the default is UTILIZATION. Valid values are UTILIZATION, RATE (for HTTP(S)) and CONNECTION (for TCP/SSL). For Internal Load Balancing, the default and only supported mode is CONNECTION. Fields: balancingMode: Specifies the balancing mode for this backend. For global HTTP(S) or TCP/SSL load balancing, the default is UTILIZATION. Valid values are UTILIZATION, RATE (for HTTP(S)) and CONNECTION (for TCP/SSL). For Internal Load Balancing, the default and only supported mode is CONNECTION. 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 a Instance Group resource. This instance group defines the list of instances that serve traffic. Member virtual machine instances from each instance group must live in the same zone as the instance group itself. No two backends in a backend service are allowed to use same Instance Group resource. Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL. When the BackendService has load balancing scheme INTERNAL, the instance group must be within the same region as the BackendService. maxConnections: The max number of simultaneous connections for the group. Can be used with either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set. This cannot be used for internal load balancing. maxConnectionsPerInstance: The max number of simultaneous connections that a single backend instance can handle. This is used to calculate the capacity of the group. Can be used in either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set. This cannot be used for internal load balancing. 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. maxRatePerInstance: The max requests per second (RPS) that a single backend instance can handle. This is used to calculate the capacity of the group. Can be used in either balancing mode. For RATE mode, either maxRate or maxRatePerInstance must be set. This cannot be used for internal load balancing. maxUtilization: Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the group. The default is 0.8. Valid range is [0.0, 1.0]. This cannot be used for internal load balancing. """ class BalancingModeValueValuesEnum(_messages.Enum): """Specifies the balancing mode for this backend. For global HTTP(S) or TCP/SSL load balancing, the default is UTILIZATION. Valid values are UTILIZATION, RATE (for HTTP(S)) and CONNECTION (for TCP/SSL). For Internal Load Balancing, the default and only supported mode is CONNECTION. 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) maxConnectionsPerInstance = _messages.IntegerField(6, variant=_messages.Variant.INT32) maxRate = _messages.IntegerField(7, variant=_messages.Variant.INT32) maxRatePerInstance = _messages.FloatField(8, variant=_messages.Variant.FLOAT) maxUtilization = _messages.FloatField(9, variant=_messages.Variant.FLOAT) class BackendBucket(_messages.Message): """A BackendBucket resource. This resource defines a Cloud Storage bucket. Fields: bucketName: Cloud Storage bucket name. 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) creationTimestamp = _messages.StringField(2) description = _messages.StringField(3) enableCdn = _messages.BooleanField(4) id = _messages.IntegerField(5, variant=_messages.Variant.UINT64) kind = _messages.StringField(6, default=u'compute#backendBucket') name = _messages.StringField(7) selfLink = _messages.StringField(8) class BackendBucketList(_messages.Message): """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): """[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): """[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): """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): """A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity. (== 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, and SSL. The default is HTTP. For internal load balancing, the possible values are TCP and UDP, and the default is TCP. SessionAffinityValueValuesEnum: Type of session affinity to use. The default is NONE. When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE. When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. When the protocol is UDP, this field is not used. Fields: affinityCookieTtlSec: Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE. 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 for TTL is one day. When the load balancing scheme is INTERNAL, this field is not used. 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. description: An optional description of this resource. Provide this property when you create the resource. enableCDN: If true, enable Cloud CDN for this BackendService. When the load balancing scheme is INTERNAL, this field is not used. 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. 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 for internal load balancing. portName: Name of backend port. The same name should appear in the instance groups referenced by this service. Required when the load balancing scheme is EXTERNAL. When the load balancing scheme is INTERNAL, this field is not used. protocol: The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP. For internal load balancing, the possible values are TCP and UDP, and the default is TCP. 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. selfLink: [Output Only] Server-defined URL for the resource. sessionAffinity: Type of session affinity to use. The default is NONE. When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE. When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. When the protocol is UDP, this field is not used. timeoutSec: How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds. """ class LoadBalancingSchemeValueValuesEnum(_messages.Enum): """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> INVALID_LOAD_BALANCING_SCHEME: <no description> """ EXTERNAL = 0 INTERNAL = 1 INVALID_LOAD_BALANCING_SCHEME = 2 class ProtocolValueValuesEnum(_messages.Enum): """The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP. For internal load balancing, the possible values are TCP and UDP, and the default is TCP. Values: HTTP: <no description> HTTPS: <no description> SSL: <no description> TCP: <no description> UDP: <no description> """ HTTP = 0 HTTPS = 1 SSL = 2 TCP = 3 UDP = 4 class SessionAffinityValueValuesEnum(_messages.Enum): """Type of session affinity to use. The default is NONE. When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE. When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. When the protocol is UDP, this field is not used. 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) description = _messages.StringField(6) enableCDN = _messages.BooleanField(7) fingerprint = _messages.BytesField(8) healthChecks = _messages.StringField(9, repeated=True) iap = _messages.MessageField('BackendServiceIAP', 10) id = _messages.IntegerField(11, variant=_messages.Variant.UINT64) kind = _messages.StringField(12, default=u'compute#backendService') loadBalancingScheme = _messages.EnumField('LoadBalancingSchemeValueValuesEnum', 13) name = _messages.StringField(14) port = _messages.IntegerField(15, variant=_messages.Variant.INT32) portName = _messages.StringField(16) protocol = _messages.EnumField('ProtocolValueValuesEnum', 17) region = _messages.StringField(18) selfLink = _messages.StringField(19) sessionAffinity = _messages.EnumField('SessionAffinityValueValuesEnum', 20) timeoutSec = _messages.IntegerField(21, variant=_messages.Variant.INT32) class BackendServiceAggregatedList(_messages.Message): """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): """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): """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): """[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): """[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): """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): """Message containing Cloud CDN configuration for a backend service. Fields: cacheKeyPolicy: The CacheKeyPolicy for this CdnPolicy. """ cacheKeyPolicy = _messages.MessageField('CacheKeyPolicy', 1) class BackendServiceGroupHealth(_messages.Message): """A BackendServiceGroupHealth object. Fields: healthStatus: A HealthStatus attribute. 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): """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): """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): """[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): """[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): """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 BackendServicesScopedList(_messages.Message): """A BackendServicesScopedList object. Messages: WarningValue: Informational warning which replaces the list of backend services when the list is empty. Fields: backendServices: 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): """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): """[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): """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 CacheInvalidationRule(_messages.Message): """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): """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): """Represents a 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. Committed use discounts are subject to Google Cloud Platform's Service Specific Terms. By purchasing a committed use discount, you agree to these terms. Committed use discounts will not renew, so you must purchase a new commitment to continue receiving discounts. (== resource_for beta.commitments ==) (== resource_for v1.commitments ==) 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. resources: 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): """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): """[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) resources = _messages.MessageField('ResourceCommitment', 9, repeated=True) selfLink = _messages.StringField(10) startTimestamp = _messages.StringField(11) status = _messages.EnumField('StatusValueValuesEnum', 12) statusMessage = _messages.StringField(13) class CommitmentAggregatedList(_messages.Message): """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): """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): """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): """[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): """[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): """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): """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): """[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): """[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): """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): """A CommitmentsScopedList object. Messages: WarningValue: [Output Only] Informational warning which replaces the list of commitments when the list is empty. Fields: commitments: [Output Only] 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): """[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): """[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): """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): """A ComputeAcceleratorTypesAggregatedListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """A ComputeAcceleratorTypesListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """A ComputeAddressesAggregatedListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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): """A ComputeAddressesListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """A ComputeAutoscalersAggregatedListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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): """A ComputeAutoscalersListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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 ComputeBackendBucketsDeleteRequest(_messages.Message): """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 ComputeBackendBucketsGetRequest(_messages.Message): """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): """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): """A ComputeBackendBucketsListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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 ComputeBackendServicesAggregatedListRequest(_messages.Message): """A ComputeBackendServicesAggregatedListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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 ComputeBackendServicesGetHealthRequest(_messages.Message): """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): """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): """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): """A ComputeBackendServicesListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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 ComputeBackendServicesUpdateRequest(_messages.Message): """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): """A ComputeDiskTypesAggregatedListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """A ComputeDiskTypesListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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 ComputeDisksAggregatedListRequest(_messages.Message): """A ComputeDisksAggregatedListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """A ComputeDisksCreateSnapshotRequest object. Fields: disk: Name of the persistent disk to snapshot. guestFlush: A boolean attribute. project: Project ID for this request. requestId: An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating 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): """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 ComputeDisksGetRequest(_messages.Message): """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): """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): """A ComputeDisksListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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 ComputeDisksResizeRequest(_messages.Message): """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 ComputeDisksSetLabelsRequest(_messages.Message): """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 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 ComputeFirewallsDeleteRequest(_messages.Message): """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): """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): """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): """A ComputeFirewallsListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """A ComputeForwardingRulesAggregatedListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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): """A ComputeForwardingRulesListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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): """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): """A ComputeGlobalAddressesListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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): """A ComputeGlobalForwardingRulesListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """A ComputeGlobalOperationsAggregatedListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """An empty ComputeGlobalOperationsDelete response.""" class ComputeGlobalOperationsGetRequest(_messages.Message): """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): """A ComputeGlobalOperationsListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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): """A ComputeHealthChecksListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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): """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): """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): """A ComputeHttpHealthChecksListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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): """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): """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): """A ComputeHttpsHealthChecksListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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): """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): """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 ComputeImagesGetRequest(_messages.Message): """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): """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): """A ComputeImagesListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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 ComputeImagesSetLabelsRequest(_messages.Message): """A ComputeImagesSetLabelsRequest object. Fields: globalSetLabelsRequest: A GlobalSetLabelsRequest resource to be passed as the request body. project: Project ID for this request. resource: Name of the resource for this request. """ globalSetLabelsRequest = _messages.MessageField('GlobalSetLabelsRequest', 1) project = _messages.StringField(2, required=True) resource = _messages.StringField(3, required=True) class ComputeInstanceGroupManagersAbandonInstancesRequest(_messages.Message): """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): """A ComputeInstanceGroupManagersAggregatedListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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): """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): """A ComputeInstanceGroupManagersListManagedInstancesRequest object. Fields: filter: A string attribute. instanceGroupManager: The name of the managed instance group. maxResults: A integer attribute. order_by: A string attribute. pageToken: A string attribute. 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): """A ComputeInstanceGroupManagersListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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 ComputeInstanceGroupManagersRecreateInstancesRequest(_messages.Message): """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): """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): """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): """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): """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): """A ComputeInstanceGroupsAggregatedListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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): """A ComputeInstanceGroupsListInstancesRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """A ComputeInstanceGroupsListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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 ComputeInstanceTemplatesGetRequest(_messages.Message): """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): """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): """A ComputeInstanceTemplatesListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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 ComputeInstancesAddAccessConfigRequest(_messages.Message): """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): """A ComputeInstancesAggregatedListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """A ComputeInstancesAttachDiskRequest object. Fields: attachedDisk: A AttachedDisk resource to be passed as the request body. 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) instance = _messages.StringField(2, required=True) project = _messages.StringField(3, required=True) requestId = _messages.StringField(4) zone = _messages.StringField(5, required=True) class ComputeInstancesDeleteAccessConfigRequest(_messages.Message): """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): """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): """A ComputeInstancesDetachDiskRequest object. Fields: deviceName: Disk device name to detach. instance: Instance 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). 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 ComputeInstancesGetRequest(_messages.Message): """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): """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 ComputeInstancesInsertRequest(_messages.Message): """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). zone: The name of the zone for this request. """ instance = _messages.MessageField('Instance', 1) project = _messages.StringField(2, required=True) requestId = _messages.StringField(3) zone = _messages.StringField(4, required=True) class ComputeInstancesListReferrersRequest(_messages.Message): """A ComputeInstancesListReferrersRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """A ComputeInstancesListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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 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): """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. instance: The instance 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). 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 ComputeInstancesSetLabelsRequest(_messages.Message): """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): """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): """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): """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): """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): """A ComputeInstancesSetSchedulingRequest object. Fields: instance: Instance 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). 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): """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 ComputeInstancesSetTagsRequest(_messages.Message): """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 ComputeInstancesStartRequest(_messages.Message): """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): """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): """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 ComputeInstancesUpdateAccessConfigRequest(_messages.Message): """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 ComputeInterconnectAttachmentsAggregatedListRequest(_messages.Message): """A ComputeInterconnectAttachmentsAggregatedListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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): """A ComputeInterconnectAttachmentsListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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 ComputeInterconnectLocationsGetRequest(_messages.Message): """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): """A ComputeInterconnectLocationsListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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 ComputeInterconnectsGetRequest(_messages.Message): """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): """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): """A ComputeInterconnectsListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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 ComputeLicensesGetRequest(_messages.Message): """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 ComputeMachineTypesAggregatedListRequest(_messages.Message): """A ComputeMachineTypesAggregatedListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """A ComputeMachineTypesListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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 ComputeNetworksAddPeeringRequest(_messages.Message): """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): """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): """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): """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): """A ComputeNetworksListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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 ComputeProjectsDisableXpnHostRequest(_messages.Message): """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): """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): """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): """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): """A ComputeProjectsGetRequest object. Fields: project: Project ID for this request. """ project = _messages.StringField(1, required=True) class ComputeProjectsGetXpnHostRequest(_messages.Message): """A ComputeProjectsGetXpnHostRequest object. Fields: project: Project ID for this request. """ project = _messages.StringField(1, required=True) class ComputeProjectsGetXpnResourcesRequest(_messages.Message): """A ComputeProjectsGetXpnResourcesRequest object. Fields: filter: A string attribute. maxResults: A integer attribute. order_by: A string attribute. pageToken: A string attribute. 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): """A ComputeProjectsListXpnHostsRequest object. Fields: filter: A string attribute. maxResults: A integer attribute. order_by: A string attribute. pageToken: A string attribute. 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): """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): """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): """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 ComputeProjectsSetUsageExportBucketRequest(_messages.Message): """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): """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): """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): """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): """A ComputeRegionAutoscalersListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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): """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): """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): """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): """A ComputeRegionBackendServicesListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """A ComputeRegionCommitmentsAggregatedListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """A ComputeRegionCommitmentsListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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 ComputeRegionInstanceGroupManagersAbandonInstancesRequest(_messages.Message): """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): """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): """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): """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): """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): """A ComputeRegionInstanceGroupManagersListManagedInstancesRequest object. Fields: filter: A string attribute. instanceGroupManager: The name of the managed instance group. maxResults: A integer attribute. order_by: A string attribute. pageToken: A string attribute. 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): """A ComputeRegionInstanceGroupManagersListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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 ComputeRegionInstanceGroupManagersRecreateInstancesRequest(_messages.Message): """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): """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): """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): """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): """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): """A ComputeRegionInstanceGroupsListInstancesRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """A ComputeRegionInstanceGroupsListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """An empty ComputeRegionOperationsDelete response.""" class ComputeRegionOperationsGetRequest(_messages.Message): """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): """A ComputeRegionOperationsListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """A ComputeRegionsListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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 ComputeRoutersAggregatedListRequest(_messages.Message): """A ComputeRoutersAggregatedListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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 ComputeRoutersGetRequest(_messages.Message): """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): """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): """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): """A ComputeRoutersListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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): """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): """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): """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): """A ComputeRoutesListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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 ComputeSnapshotsDeleteRequest(_messages.Message): """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 ComputeSnapshotsGetRequest(_messages.Message): """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): """A ComputeSnapshotsListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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 ComputeSnapshotsSetLabelsRequest(_messages.Message): """A ComputeSnapshotsSetLabelsRequest object. Fields: globalSetLabelsRequest: A GlobalSetLabelsRequest resource to be passed as the request body. project: Project ID for this request. resource: Name of the resource for this request. """ globalSetLabelsRequest = _messages.MessageField('GlobalSetLabelsRequest', 1) project = _messages.StringField(2, required=True) resource = _messages.StringField(3, required=True) class ComputeSslCertificatesDeleteRequest(_messages.Message): """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): """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): """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): """A ComputeSslCertificatesListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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 ComputeSubnetworksAggregatedListRequest(_messages.Message): """A ComputeSubnetworksAggregatedListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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 ComputeSubnetworksGetRequest(_messages.Message): """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): """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): """A ComputeSubnetworksListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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 ComputeSubnetworksSetPrivateIpGoogleAccessRequest(_messages.Message): """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 ComputeTargetHttpProxiesDeleteRequest(_messages.Message): """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): """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): """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): """A ComputeTargetHttpProxiesListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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): """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): """A ComputeTargetHttpsProxiesListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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 ComputeTargetHttpsProxiesSetSslCertificatesRequest(_messages.Message): """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 ComputeTargetHttpsProxiesSetUrlMapRequest(_messages.Message): """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): """A ComputeTargetInstancesAggregatedListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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): """A ComputeTargetInstancesListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """A ComputeTargetPoolsAggregatedListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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): """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): """A ComputeTargetPoolsListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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): """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): """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): """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): """A ComputeTargetSslProxiesListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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 ComputeTargetTcpProxiesDeleteRequest(_messages.Message): """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): """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): """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): """A ComputeTargetTcpProxiesListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """A ComputeTargetVpnGatewaysAggregatedListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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): """A ComputeTargetVpnGatewaysListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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): """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): """A ComputeUrlMapsListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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 ComputeVpnTunnelsAggregatedListRequest(_messages.Message): """A ComputeVpnTunnelsAggregatedListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """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): """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): """A ComputeVpnTunnelsListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """An empty ComputeZoneOperationsDelete response.""" class ComputeZoneOperationsGetRequest(_messages.Message): """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): """A ComputeZoneOperationsListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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): """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): """A ComputeZonesListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use name ne example- instance. You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 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 ConnectionDraining(_messages.Message): """Message containing connection draining configuration. Fields: drainingTimeoutSec: Time for which instance will be drained (not accept new connections, but still work to finish started). """ drainingTimeoutSec = _messages.IntegerField(1, variant=_messages.Variant.INT32) class CustomerEncryptionKey(_messages.Message): """Represents a customer-supplied encryption key Fields: 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. """ rawKey = _messages.StringField(1) sha256 = _messages.StringField(2) class CustomerEncryptionKeyProtectedDisk(_messages.Message): """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): """Deprecation status for a public resource. Enums: StateValueValuesEnum: The deprecation state of this resource. This can be DEPRECATED, OBSOLETE, or DELETED. 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 DEPRECATED, OBSOLETE, or DELETED. 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): """The deprecation state of this resource. This can be DEPRECATED, OBSOLETE, or DELETED. 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: DELETED: <no description> DEPRECATED: <no description> OBSOLETE: <no description> """ DELETED = 0 DEPRECATED = 1 OBSOLETE = 2 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): """A Disk resource. (== resource_for beta.disks ==) (== resource_for v1.disks ==) Enums: StatusValueValuesEnum: [Output Only] The status of disk creation. 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 or an 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. 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. 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. licenses: Any applicable publicly visible licenses. 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. 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-8 to use the latest Debian 8 image: projects/debian-cloud/global/images/family/debian-8 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-8-jessie-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. type: URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk. users: [Output Only] Links to the users of the disk (attached instances) in form: 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): """[Output Only] The status of disk creation. Values: CREATING: <no description> FAILED: <no description> READY: <no description> RESTORING: <no description> """ CREATING = 0 FAILED = 1 READY = 2 RESTORING = 3 @encoding.MapUnrecognizedFields('additionalProperties') class LabelsValue(_messages.Message): """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): """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) id = _messages.IntegerField(4, variant=_messages.Variant.UINT64) kind = _messages.StringField(5, default=u'compute#disk') labelFingerprint = _messages.BytesField(6) labels = _messages.MessageField('LabelsValue', 7) lastAttachTimestamp = _messages.StringField(8) lastDetachTimestamp = _messages.StringField(9) licenses = _messages.StringField(10, repeated=True) name = _messages.StringField(11) options = _messages.StringField(12) selfLink = _messages.StringField(13) sizeGb = _messages.IntegerField(14) sourceImage = _messages.StringField(15) sourceImageEncryptionKey = _messages.MessageField('CustomerEncryptionKey', 16) sourceImageId = _messages.StringField(17) sourceSnapshot = _messages.StringField(18) sourceSnapshotEncryptionKey = _messages.MessageField('CustomerEncryptionKey', 19) sourceSnapshotId = _messages.StringField(20) status = _messages.EnumField('StatusValueValuesEnum', 21) type = _messages.StringField(22) users = _messages.StringField(23, repeated=True) zone = _messages.StringField(24) class DiskAggregatedList(_messages.Message): """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): """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): """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): """[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): """[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): """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 DiskList(_messages.Message): """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): """[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): """[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): """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): """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): """A DiskType resource. (== resource_for beta.diskTypes ==) (== resource_for v1.diskTypes ==) 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. 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) selfLink = _messages.StringField(8) validDiskSize = _messages.StringField(9) zone = _messages.StringField(10) class DiskTypeAggregatedList(_messages.Message): """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): """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): """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): """[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): """[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): """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): """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): """[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): """[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): """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): """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] 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): """[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): """[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): """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 DisksResizeRequest(_messages.Message): """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): """A DisksScopedList object. Messages: WarningValue: [Output Only] Informational warning which replaces the list of disks when the list is empty. Fields: disks: [Output Only] 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): """[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): """[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): """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 Firewall(_messages.Message): """Represents a Firewall resource. Enums: DirectionValueValuesEnum: Direction of traffic to which this firewall applies; default is INGRESS. Note: For INGRESS traffic, it is NOT supported to specify destinationRanges; For EGRESS traffic, it is NOT supported to specify sourceRanges OR sourceTags. 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 property when you create the resource. destinationRanges: If destination ranges are specified, the firewall will apply 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; default is INGRESS. Note: For INGRESS traffic, it is NOT supported to specify destinationRanges; For EGRESS traffic, it is NOT supported to specify sourceRanges OR sourceTags. 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. 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 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 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/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. When not specified, the value assumed is 1000. Relative priorities determine precedence of conflicting rules. Lower value of priority implies higher precedence (eg, a rule with priority 0 has higher precedence than a rule with priority 1). DENY rules take precedence over ALLOW rules having equal priority. selfLink: [Output Only] Server-defined URL for the resource. sourceRanges: If source ranges are specified, the firewall will apply only to traffic that has 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 properties are set, the firewall will apply to traffic that has source IP address within sourceRanges OR the source IP that belongs to a tag listed in the sourceTags property. The connection does not need to match both properties for the firewall to apply. Only IPv4 is supported. sourceServiceAccounts: If source service accounts are specified, the firewall will 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 will apply to traffic that has source IP address within sourceRanges OR the source IP belongs to an instance with service account listed in sourceServiceAccount. The connection does not need to match both properties 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 properties are set, the firewall will apply to traffic that has source IP address within sourceRanges OR the source IP that belongs to a tag listed in the sourceTags property. The connection does not need to match both properties 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): """Direction of traffic to which this firewall applies; default is INGRESS. Note: For INGRESS traffic, it is NOT supported to specify destinationRanges; For EGRESS traffic, it is NOT supported to specify sourceRanges OR sourceTags. Values: EGRESS: <no description> INGRESS: <no description> """ EGRESS = 0 INGRESS = 1 class AllowedValueListEntry(_messages.Message): """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 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): """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 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) id = _messages.IntegerField(7, variant=_messages.Variant.UINT64) kind = _messages.StringField(8, default=u'compute#firewall') name = _messages.StringField(9) network = _messages.StringField(10) priority = _messages.IntegerField(11, variant=_messages.Variant.INT32) selfLink = _messages.StringField(12) sourceRanges = _messages.StringField(13, repeated=True) sourceServiceAccounts = _messages.StringField(14, repeated=True) sourceTags = _messages.StringField(15, repeated=True) targetServiceAccounts = _messages.StringField(16, repeated=True) targetTags = _messages.StringField(17, repeated=True) class FirewallList(_messages.Message): """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): """[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): """[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): """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 ForwardingRule(_messages.Message): """A ForwardingRule resource. A ForwardingRule resource specifies which pool of target virtual machines to forward a packet to if it matches the given [IPAddress, IPProtocol, ports] tuple. (== 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. IpVersionValueValuesEnum: The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. This can only be specified for a global forwarding rule. LoadBalancingSchemeValueValuesEnum: This signifies what the ForwardingRule will be used for and can only take the following values: INTERNAL, EXTERNAL The value of INTERNAL means that this will be used for Internal Network Load Balancing (TCP, UDP). The value of EXTERNAL means that this will be used for External Load Balancing (HTTP(S) LB, External TCP/UDP LB, SSL Proxy) Fields: IPAddress: The IP address that this forwarding rule is serving on behalf of. Addresses are restricted based on the forwarding rule's load balancing scheme (EXTERNAL or INTERNAL) and scope (global or regional). When the load balancing scheme is EXTERNAL, for global forwarding rules, the address must be a global IP, and for regional forwarding rules, the address must live in the same region as the forwarding rule. If this field is empty, an ephemeral IPv4 address from the same scope (global or regional) will be assigned. A regional forwarding rule supports IPv4 only. A global forwarding rule supports either IPv4 or IPv6. When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP address belonging to the network/subnet configured for the forwarding rule. By default, if this field is empty, an ephemeral internal IP address will be automatically allocated from the IP range of the subnet or network configured for this forwarding rule. An address can be specified either by a literal IP address or a URL reference to an existing Address resource. The following examples are all valid: - 100.1.2.3 - https://www.googleapis.com/compute/v1/projects/project/regi ons/region/addresses/address - projects/project/regions/region/addresses/address - regions/region/addresses/address - global/addresses/address - address 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. backendService: This field is not used for external 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 a 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, EXTERNAL The value of INTERNAL means that this will be used for Internal Network Load Balancing (TCP, UDP). 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 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. portRange: This 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, only packets addressed to ports in the specified range will be forwarded to target. Forwarding rules with the same [IPAddress, IPProtocol] pair must have disjoint port ranges. Some types of forwarding target have constraints on the acceptable ports: - TargetHttpProxy: 80, 8080 - TargetHttpsProxy: 443 - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1883, 5222 - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1883, 5222 - TargetVpnGateway: 500, 4500 ports: This field is used along with the backend_service field for internal load balancing. When the load balancing scheme is INTERNAL, a single port or a comma separated list of ports can be configured. Only packets addressed to these ports will be forwarded to the backends configured with this forwarding rule. You may specify a maximum of up to 5 ports. 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. subnetwork: This field is not used for external 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. """ class IPProtocolValueValuesEnum(_messages.Enum): """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. 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): """The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. This can only be specified for a 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): """This signifies what the ForwardingRule will be used for and can only take the following values: INTERNAL, EXTERNAL The value of INTERNAL means that this will be used for Internal Network Load Balancing (TCP, UDP). 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> INVALID: <no description> """ EXTERNAL = 0 INTERNAL = 1 INVALID = 2 IPAddress = _messages.StringField(1) IPProtocol = _messages.EnumField('IPProtocolValueValuesEnum', 2) backendService = _messages.StringField(3) creationTimestamp = _messages.StringField(4) description = _messages.StringField(5) id = _messages.IntegerField(6, variant=_messages.Variant.UINT64) ipVersion = _messages.EnumField('IpVersionValueValuesEnum', 7) kind = _messages.StringField(8, default=u'compute#forwardingRule') loadBalancingScheme = _messages.EnumField('LoadBalancingSchemeValueValuesEnum', 9) name = _messages.StringField(10) network = _messages.StringField(11) portRange = _messages.StringField(12) ports = _messages.StringField(13, repeated=True) region = _messages.StringField(14) selfLink = _messages.StringField(15) subnetwork = _messages.StringField(16) target = _messages.StringField(17) class ForwardingRuleAggregatedList(_messages.Message): """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): """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): """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): """[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): """[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): """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): """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): """[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): """[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): """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 ForwardingRulesScopedList(_messages.Message): """A ForwardingRulesScopedList object. Messages: WarningValue: Informational warning which replaces the list of forwarding rules when the list is empty. Fields: forwardingRules: 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): """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): """[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): """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): """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. 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): """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): """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 GuestOsFeature(_messages.Message): """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): """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> VIRTIO_SCSI_MULTIQUEUE: <no description> WINDOWS: <no description> """ FEATURE_TYPE_UNSPECIFIED = 0 MULTI_IP_SUBNET = 1 VIRTIO_SCSI_MULTIQUEUE = 2 WINDOWS = 3 type = _messages.EnumField('TypeValueValuesEnum', 1) class HTTPHealthCheck(_messages.Message): """A HTTPHealthCheck object. 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: 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. 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 /. """ class ProxyHeaderValueValuesEnum(_messages.Enum): """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) proxyHeader = _messages.EnumField('ProxyHeaderValueValuesEnum', 4) requestPath = _messages.StringField(5) class HTTPSHealthCheck(_messages.Message): """A HTTPSHealthCheck object. 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: 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. 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 /. """ class ProxyHeaderValueValuesEnum(_messages.Enum): """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) proxyHeader = _messages.EnumField('ProxyHeaderValueValuesEnum', 4) requestPath = _messages.StringField(5) class HealthCheck(_messages.Message): """An HealthCheck resource. This resource defines a template for how individual virtual machines should be checked for health, via one of the supported protocols. Enums: TypeValueValuesEnum: Specifies the type of the healthCheck, either TCP, SSL, HTTP or HTTPS. 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. 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 or HTTPS. 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): """Specifies the type of the healthCheck, either TCP, SSL, HTTP or HTTPS. 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> HTTPS: <no description> INVALID: <no description> SSL: <no description> TCP: <no description> """ HTTP = 0 HTTPS = 1 INVALID = 2 SSL = 3 TCP = 4 checkIntervalSec = _messages.IntegerField(1, variant=_messages.Variant.INT32) creationTimestamp = _messages.StringField(2) description = _messages.StringField(3) healthyThreshold = _messages.IntegerField(4, variant=_messages.Variant.INT32) httpHealthCheck = _messages.MessageField('HTTPHealthCheck', 5) httpsHealthCheck = _messages.MessageField('HTTPSHealthCheck', 6) id = _messages.IntegerField(7, variant=_messages.Variant.UINT64) kind = _messages.StringField(8, default=u'compute#healthCheck') name = _messages.StringField(9) selfLink = _messages.StringField(10) sslHealthCheck = _messages.MessageField('SSLHealthCheck', 11) tcpHealthCheck = _messages.MessageField('TCPHealthCheck', 12) timeoutSec = _messages.IntegerField(13, variant=_messages.Variant.INT32) type = _messages.EnumField('TypeValueValuesEnum', 14) unhealthyThreshold = _messages.IntegerField(15, variant=_messages.Variant.INT32) class HealthCheckList(_messages.Message): """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): """[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): """[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): """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): """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): """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): """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 HostRule(_messages.Message): """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): """An HttpHealthCheck resource. This resource defines a template for how individual instances should be checked for health, via HTTP. 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 /. 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): """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): """[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): """[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): """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): """An HttpsHealthCheck resource. This resource defines a template for how individual instances should be checked for health, via HTTPS. 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): """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): """[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): """[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): """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): """An Image resource. (== 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. 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. 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: 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. 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): """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): """[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: FAILED: <no description> PENDING: <no description> READY: <no description> """ FAILED = 0 PENDING = 1 READY = 2 @encoding.MapUnrecognizedFields('additionalProperties') class LabelsValue(_messages.Message): """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): """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): """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: 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): """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) licenses = _messages.StringField(13, repeated=True) name = _messages.StringField(14) rawDisk = _messages.MessageField('RawDiskValue', 15) selfLink = _messages.StringField(16) sourceDisk = _messages.StringField(17) sourceDiskEncryptionKey = _messages.MessageField('CustomerEncryptionKey', 18) sourceDiskId = _messages.StringField(19) sourceImage = _messages.StringField(20) sourceImageEncryptionKey = _messages.MessageField('CustomerEncryptionKey', 21) sourceImageId = _messages.StringField(22) sourceType = _messages.EnumField('SourceTypeValueValuesEnum', 23, default=u'RAW') status = _messages.EnumField('StatusValueValuesEnum', 24) class ImageList(_messages.Message): """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): """[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): """[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): """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): """An Instance resource. (== 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. guestAccelerators: List of the type and count of accelerator cards attached to the instance. 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 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. 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. 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. 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: A list of 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. 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): """[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> RUNNING: <no description> STAGING: <no description> STOPPED: <no description> STOPPING: <no description> SUSPENDED: <no description> SUSPENDING: <no description> TERMINATED: <no description> """ PROVISIONING = 0 RUNNING = 1 STAGING = 2 STOPPED = 3 STOPPING = 4 SUSPENDED = 5 SUSPENDING = 6 TERMINATED = 7 @encoding.MapUnrecognizedFields('additionalProperties') class LabelsValue(_messages.Message): """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): """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) guestAccelerators = _messages.MessageField('AcceleratorConfig', 7, repeated=True) id = _messages.IntegerField(8, variant=_messages.Variant.UINT64) kind = _messages.StringField(9, default=u'compute#instance') labelFingerprint = _messages.BytesField(10) labels = _messages.MessageField('LabelsValue', 11) machineType = _messages.StringField(12) metadata = _messages.MessageField('Metadata', 13) minCpuPlatform = _messages.StringField(14) name = _messages.StringField(15) networkInterfaces = _messages.MessageField('NetworkInterface', 16, repeated=True) scheduling = _messages.MessageField('Scheduling', 17) selfLink = _messages.StringField(18) serviceAccounts = _messages.MessageField('ServiceAccount', 19, repeated=True) startRestricted = _messages.BooleanField(20) status = _messages.EnumField('StatusValueValuesEnum', 21) statusMessage = _messages.StringField(22) tags = _messages.MessageField('Tags', 23) zone = _messages.StringField(24) class InstanceAggregatedList(_messages.Message): """A InstanceAggregatedList object. Messages: ItemsValue: A list of InstancesScopedList resources. WarningValue: [Output Only] Informational warning message. Fields: id: [Output Only] Unique identifier for the resource; defined by the server. items: A list of InstancesScopedList resources. 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): """A list of InstancesScopedList resources. 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): """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): """[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): """[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): """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): """InstanceGroups (== 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: 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: 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): """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): """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): """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): """[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): """[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): """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): """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): """[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): """[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): """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): """An Instance Group Manager resource. (== resource_for beta.instanceGroupManagers ==) (== resource_for v1.instanceGroupManagers ==) (== resource_for beta.regionInstanceGroupManagers ==) (== resource_for v1.regionInstanceGroupManagers ==) Fields: 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. fingerprint: [Output Only] The fingerprint of the resource data. You can use this optional field for optimistic locking when you update the resource. 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. 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. zone: [Output Only] The URL of the zone where the managed instance group is located (for zonal resources). """ baseInstanceName = _messages.StringField(1) creationTimestamp = _messages.StringField(2) currentActions = _messages.MessageField('InstanceGroupManagerActionsSummary', 3) description = _messages.StringField(4) fingerprint = _messages.BytesField(5) id = _messages.IntegerField(6, variant=_messages.Variant.UINT64) instanceGroup = _messages.StringField(7) instanceTemplate = _messages.StringField(8) kind = _messages.StringField(9, default=u'compute#instanceGroupManager') name = _messages.StringField(10) namedPorts = _messages.MessageField('NamedPort', 11, repeated=True) region = _messages.StringField(12) selfLink = _messages.StringField(13) targetPools = _messages.StringField(14, repeated=True) targetSize = _messages.IntegerField(15, variant=_messages.Variant.INT32) zone = _messages.StringField(16) class InstanceGroupManagerActionsSummary(_messages.Message): """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. """ 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) class InstanceGroupManagerAggregatedList(_messages.Message): """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): """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): """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): """[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): """[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): """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 InstanceGroupManagerList(_messages.Message): """[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): """[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): """[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): """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 InstanceGroupManagersAbandonInstancesRequest(_messages.Message): """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): """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): """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): """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): """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): """[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): """[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): """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): """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): """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): """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): """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): """[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): """[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): """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): """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): """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): """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): """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): """[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): """[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): """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): """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. 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): """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): """[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): """[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): """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): """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): """[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): """[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): """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): """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): """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. 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. 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): """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): """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) scheduling = _messages.MessageField('Scheduling', 10) serviceAccounts = _messages.MessageField('ServiceAccount', 11, repeated=True) tags = _messages.MessageField('Tags', 12) class InstanceReference(_messages.Message): """A InstanceReference object. Fields: instance: The URL for a specific instance. """ instance = _messages.StringField(1) class InstanceTemplate(_messages.Message): """An Instance Template resource. (== 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. """ 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) class InstanceTemplateList(_messages.Message): """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): """[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): """[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): """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): """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): """[Output Only] The status of the instance. Values: PROVISIONING: <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 RUNNING = 1 STAGING = 2 STOPPED = 3 STOPPING = 4 SUSPENDED = 5 SUSPENDING = 6 TERMINATED = 7 instance = _messages.StringField(1) namedPorts = _messages.MessageField('NamedPort', 2, repeated=True) status = _messages.EnumField('StatusValueValuesEnum', 3) class InstancesScopedList(_messages.Message): """A InstancesScopedList object. Messages: WarningValue: [Output Only] Informational warning which replaces the list of instances when the list is empty. Fields: instances: [Output Only] 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): """[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): """[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): """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): """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): """A LabelsValue object. Messages: AdditionalProperty: An additional property for a LabelsValue object. Fields: additionalProperties: Additional properties of type LabelsValue """ class AdditionalProperty(_messages.Message): """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): """A InstancesSetMachineResourcesRequest object. Fields: guestAccelerators: List of the type and count of accelerator cards attached to the instance. """ guestAccelerators = _messages.MessageField('AcceleratorConfig', 1, repeated=True) class InstancesSetMachineTypeRequest(_messages.Message): """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): """A InstancesSetMinCpuPlatformRequest object. Fields: minCpuPlatform: Minimum cpu/platform this instance should be started at. """ minCpuPlatform = _messages.StringField(1) class InstancesSetServiceAccountRequest(_messages.Message): """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): """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): """Represents an Interconnects resource. The Interconnects resource is a dedicated connection between Google's network and your on-premises network. For more information, see the Dedicated overview page. (== resource_for v1.interconnects ==) (== resource_for beta.interconnects ==) Enums: InterconnectTypeValueValuesEnum: Type of interconnect. Note that "IT_PRIVATE" has been deprecated in favor of "DEDICATED" LinkTypeValueValuesEnum: Type of link requested. This field indicates speed of each of the links in the bundle, not the entire bundle. Only 10G per link is allowed for a dedicated interconnect. Options: Ethernet_10G_LR OperationalStatusValueValuesEnum: [Output Only] The current status of whether or not this Interconnect is functional. 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] 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] 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. Note that "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. This field indicates speed of each of the links in the bundle, not the entire bundle. Only 10G per link is allowed for a dedicated interconnect. Options: Ethernet_10G_LR 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 whether or not this Interconnect is functional. 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. """ class InterconnectTypeValueValuesEnum(_messages.Enum): """Type of interconnect. Note that "IT_PRIVATE" has been deprecated in favor of "DEDICATED" Values: DEDICATED: <no description> IT_PRIVATE: <no description> """ DEDICATED = 0 IT_PRIVATE = 1 class LinkTypeValueValuesEnum(_messages.Enum): """Type of link requested. This field indicates speed of each of the links in the bundle, not the entire bundle. Only 10G per link is allowed for a dedicated interconnect. Options: Ethernet_10G_LR Values: LINK_TYPE_ETHERNET_10G_LR: <no description> """ LINK_TYPE_ETHERNET_10G_LR = 0 class OperationalStatusValueValuesEnum(_messages.Enum): """[Output Only] The current status of whether or not this Interconnect is functional. Values: OS_ACTIVE: <no description> OS_UNPROVISIONED: <no description> """ OS_ACTIVE = 0 OS_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) class InterconnectAttachment(_messages.Message): """Represents an InterconnectAttachment (VLAN attachment) resource. For more information, see Creating VLAN Attachments. (== resource_for beta.interconnectAttachments ==) (== resource_for v1.interconnectAttachments ==) Enums: OperationalStatusValueValuesEnum: [Output Only] The current status of whether or not this interconnect attachment is functional. Fields: 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. 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. 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. 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. """ class OperationalStatusValueValuesEnum(_messages.Enum): """[Output Only] The current status of whether or not this interconnect attachment is functional. Values: OS_ACTIVE: <no description> OS_UNPROVISIONED: <no description> """ OS_ACTIVE = 0 OS_UNPROVISIONED = 1 cloudRouterIpAddress = _messages.StringField(1) creationTimestamp = _messages.StringField(2) customerRouterIpAddress = _messages.StringField(3) description = _messages.StringField(4) googleReferenceId = _messages.StringField(5) id = _messages.IntegerField(6, variant=_messages.Variant.UINT64) interconnect = _messages.StringField(7) kind = _messages.StringField(8, default=u'compute#interconnectAttachment') name = _messages.StringField(9) operationalStatus = _messages.EnumField('OperationalStatusValueValuesEnum', 10) privateInterconnectInfo = _messages.MessageField('InterconnectAttachmentPrivateInfo', 11) region = _messages.StringField(12) router = _messages.StringField(13) selfLink = _messages.StringField(14) class InterconnectAttachmentAggregatedList(_messages.Message): """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): """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): """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): """[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): """[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): """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): """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): """[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): """[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): """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 InterconnectAttachmentPrivateInfo(_messages.Message): """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): """A InterconnectAttachmentsScopedList object. Messages: WarningValue: Informational warning which replaces the list of addresses when the list is empty. Fields: interconnectAttachments: 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): """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): """[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): """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): """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 InterconnectList(_messages.Message): """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): """[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): """[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): """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): """Represents an InterconnectLocations resource. The InterconnectLocations resource describes the locations where you can connect to Google's networks. For more information, see Colocation Facilities. Enums: ContinentValueValuesEnum: [Output Only] Continent for this location. 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 location. 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. 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. """ class ContinentValueValuesEnum(_messages.Enum): """[Output Only] Continent for this location. 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 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) class InterconnectLocationList(_messages.Message): """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): """[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): """[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): """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): """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): """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): """Description of a planned outage on this Interconnect. Next id: 9 Enums: IssueTypeValueValuesEnum: Form this outage is expected to take. Note that the "IT_" versions of this enum have been deprecated in favor of the unprefixed values. SourceValueValuesEnum: The party that generated this notification. Note that "NSRC_GOOGLE" has been deprecated in favor of "GOOGLE" StateValueValuesEnum: State of this notification. Note that the "NS_" versions of this enum have been deprecated in favor of the unprefixed values. Fields: affectedCircuits: Iff 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. Note that the "IT_" versions of this enum have been deprecated in favor of the unprefixed values. name: Unique identifier for this outage notification. source: The party that generated this notification. Note that "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. Note that the "NS_" versions of this enum have been deprecated in favor of the unprefixed values. """ class IssueTypeValueValuesEnum(_messages.Enum): """Form this outage is expected to take. Note that the "IT_" versions of this enum 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): """The party that generated this notification. Note that "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): """State of this notification. Note that the "NS_" versions of this enum have been deprecated in favor of the unprefixed values. Values: ACTIVE: <no description> CANCELLED: <no description> NS_ACTIVE: <no description> NS_CANCELED: <no description> """ ACTIVE = 0 CANCELLED = 1 NS_ACTIVE = 2 NS_CANCELED = 3 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 License(_messages.Message): """A license resource. Fields: chargesUseFee: [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee. kind: [Output Only] Type of resource. Always compute#license for licenses. name: [Output Only] Name of the resource. The name is 1-63 characters long and complies with RFC1035. selfLink: [Output Only] Server-defined URL for the resource. """ chargesUseFee = _messages.BooleanField(1) kind = _messages.StringField(2, default=u'compute#license') name = _messages.StringField(3) selfLink = _messages.StringField(4) class MachineType(_messages.Message): """A Machine Type resource. (== 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] 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): """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): """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): """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): """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): """[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): """[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): """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): """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): """[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): """[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): """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): """A MachineTypesScopedList object. Messages: WarningValue: [Output Only] An informational warning that appears when the machine types list is empty. Fields: machineTypes: [Output Only] 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): """[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): """[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): """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): """A ManagedInstance object. 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. """ class CurrentActionValueValuesEnum(_messages.Enum): """[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> """ ABANDONING = 0 CREATING = 1 CREATING_WITHOUT_RETRIES = 2 DELETING = 3 NONE = 4 RECREATING = 5 REFRESHING = 6 RESTARTING = 7 class InstanceStatusValueValuesEnum(_messages.Enum): """[Output Only] The status of the instance. This field is empty when the instance does not exist. Values: PROVISIONING: <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 RUNNING = 1 STAGING = 2 STOPPED = 3 STOPPING = 4 SUSPENDED = 5 SUSPENDING = 6 TERMINATED = 7 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) class ManagedInstanceLastAttempt(_messages.Message): """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): """[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): """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 Metadata(_messages.Message): """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. 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): """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): """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): """Represents a Network resource. Read Networks and Firewalls for more information. (== resource_for v1.networks ==) (== resource_for beta.networks ==) Fields: IPv4Range: 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 network is created in "auto subnet mode". When set to false, the network is in "custom subnet mode". In "auto subnet mode", a newly created network is assigned the default CIDR of 10.128.0.0/9 and it automatically creates one subnetwork per region. creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. description: An optional description of this resource. Provide this property when you create the resource. gatewayIPv4: A gateway address for default routing to other networks. This value is read only and is selected by the Google Compute Engine, typically as the first usable address in the IPv4Range. 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])? 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. peerings: [Output Only] 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 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 NetworkInterface(_messages.Message): """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. Can only be specified for network interfaces on subnet-mode networks. kind: [Output Only] Type of the resource. Always compute#networkInterface for network interfaces. name: [Output Only] The name of the network interface, 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. This field is optional when creating a firewall rule. If not specified when creating a firewall rule, the default network global/networks/default is used. 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/p roject/global/networks/network - projects/project/global/networks/network - global/networks/default networkIP: An IPv4 internal network 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 provide this property. If the network is in auto subnet mode, providing the subnetwork is optional. If the network is in custom subnet mode, then this field should be specified. If you specify this property, 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/ subnetworks/subnetwork - regions/region/subnetworks/subnetwork """ accessConfigs = _messages.MessageField('AccessConfig', 1, repeated=True) aliasIpRanges = _messages.MessageField('AliasIpRange', 2, repeated=True) kind = _messages.StringField(3, default=u'compute#networkInterface') name = _messages.StringField(4) network = _messages.StringField(5) networkIP = _messages.StringField(6) subnetwork = _messages.StringField(7) class NetworkList(_messages.Message): """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): """[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): """[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): """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): """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. Fields: autoCreateRoutes: Whether full mesh connectivity is created and managed automatically. When it is set to true, Google Compute Engine will automatically create and manage the routes between two networks when the state is ACTIVE. Otherwise, user needs to create routes manually to route packets to 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])? which means 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. stateDetails: [Output Only] Details about the current state of the peering. """ class StateValueValuesEnum(_messages.Enum): """[Output Only] State for the peering. Values: ACTIVE: <no description> INACTIVE: <no description> """ ACTIVE = 0 INACTIVE = 1 autoCreateRoutes = _messages.BooleanField(1) name = _messages.StringField(2) network = _messages.StringField(3) state = _messages.EnumField('StateValueValuesEnum', 4) stateDetails = _messages.StringField(5) class NetworkRoutingConfig(_messages.Message): """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 subnetworks of this network in the same region as the router. If set to GLOBAL, this network's cloud routers will advertise routes with all subnetworks 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 subnetworks of this network in the same region as the router. If set to GLOBAL, this network's cloud routers will advertise routes with all subnetworks of this network, across regions. """ class RoutingModeValueValuesEnum(_messages.Enum): """The network-wide routing mode to use. If set to REGIONAL, this network's cloud routers will only advertise routes with subnetworks of this network in the same region as the router. If set to GLOBAL, this network's cloud routers will advertise routes with all subnetworks 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): """A NetworksAddPeeringRequest object. Fields: autoCreateRoutes: Whether Google Compute Engine manages the routes automatically. name: Name of the peering, which should conform to RFC1035. 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) peerNetwork = _messages.StringField(3) class NetworksRemovePeeringRequest(_messages.Message): """A NetworksRemovePeeringRequest object. Fields: name: Name of the peering, which should conform to RFC1035. """ name = _messages.StringField(1) class Operation(_messages.Message): """An Operation resource, used to manage asynchronous API requests. (== 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] Reserved for future use. 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 resource. 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 resource. 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 available when performing regional operations. 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. 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 available when performing per-zone operations. 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): """[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): """[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): """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): """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): """[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): """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): """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): """[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): """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): """[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): """[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): """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): """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): """[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): """[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): """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): """A OperationsScopedList object. Messages: WarningValue: [Output Only] Informational warning which replaces the list of operations when the list is empty. Fields: operations: [Output Only] 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): """[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): """[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): """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): """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 defined by this PathMatcher is matched by the URL's path portion. 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 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. """ defaultService = _messages.StringField(1) description = _messages.StringField(2) name = _messages.StringField(3) pathRules = _messages.MessageField('PathRule', 4, repeated=True) class PathRule(_messages.Message): """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 URL of the BackendService resource if this rule is matched. """ paths = _messages.StringField(1, repeated=True) service = _messages.StringField(2) class Project(_messages.Message): """A Project resource. For an overview of projects, see Cloud Platform Resource Hierarchy. (== resource_for v1.projects ==) (== resource_for beta.projects ==) Enums: 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. 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 XpnProjectStatusValueValuesEnum(_messages.Enum): """[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) defaultServiceAccount = _messages.StringField(3) description = _messages.StringField(4) enabledFeatures = _messages.StringField(5, repeated=True) id = _messages.IntegerField(6, variant=_messages.Variant.UINT64) kind = _messages.StringField(7, default=u'compute#project') name = _messages.StringField(8) quotas = _messages.MessageField('Quota', 9, repeated=True) selfLink = _messages.StringField(10) usageExportLocation = _messages.MessageField('UsageExportLocation', 11) xpnProjectStatus = _messages.EnumField('XpnProjectStatusValueValuesEnum', 12) class ProjectsDisableXpnResourceRequest(_messages.Message): """A ProjectsDisableXpnResourceRequest object. Fields: xpnResource: Service resource (a.k.a service project) ID. """ xpnResource = _messages.MessageField('XpnResourceId', 1) class ProjectsEnableXpnResourceRequest(_messages.Message): """A ProjectsEnableXpnResourceRequest object. Fields: xpnResource: Service resource (a.k.a service project) ID. """ xpnResource = _messages.MessageField('XpnResourceId', 1) class ProjectsGetXpnResources(_messages.Message): """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): """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 Quota(_messages.Message): """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. usage: [Output Only] Current usage of this metric. """ class MetricValueValuesEnum(_messages.Enum): """[Output Only] Name of the quota metric. Values: AUTOSCALERS: <no description> BACKEND_BUCKETS: <no description> BACKEND_SERVICES: <no description> COMMITMENTS: <no description> CPUS: <no description> CPUS_ALL_REGIONS: <no description> DISKS_TOTAL_GB: <no description> FIREWALLS: <no description> FORWARDING_RULES: <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> INTERNAL_ADDRESSES: <no description> IN_USE_ADDRESSES: <no description> LOCAL_SSD_TOTAL_GB: <no description> NETWORKS: <no description> NVIDIA_K80_GPUS: <no description> NVIDIA_P100_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> REGIONAL_AUTOSCALERS: <no description> REGIONAL_INSTANCE_GROUP_MANAGERS: <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_TUNNELS: <no description> """ AUTOSCALERS = 0 BACKEND_BUCKETS = 1 BACKEND_SERVICES = 2 COMMITMENTS = 3 CPUS = 4 CPUS_ALL_REGIONS = 5 DISKS_TOTAL_GB = 6 FIREWALLS = 7 FORWARDING_RULES = 8 HEALTH_CHECKS = 9 IMAGES = 10 INSTANCES = 11 INSTANCE_GROUPS = 12 INSTANCE_GROUP_MANAGERS = 13 INSTANCE_TEMPLATES = 14 INTERCONNECTS = 15 INTERNAL_ADDRESSES = 16 IN_USE_ADDRESSES = 17 LOCAL_SSD_TOTAL_GB = 18 NETWORKS = 19 NVIDIA_K80_GPUS = 20 NVIDIA_P100_GPUS = 21 PREEMPTIBLE_CPUS = 22 PREEMPTIBLE_LOCAL_SSD_GB = 23 PREEMPTIBLE_NVIDIA_K80_GPUS = 24 PREEMPTIBLE_NVIDIA_P100_GPUS = 25 REGIONAL_AUTOSCALERS = 26 REGIONAL_INSTANCE_GROUP_MANAGERS = 27 ROUTERS = 28 ROUTES = 29 SECURITY_POLICIES = 30 SECURITY_POLICY_RULES = 31 SNAPSHOTS = 32 SSD_TOTAL_GB = 33 SSL_CERTIFICATES = 34 STATIC_ADDRESSES = 35 SUBNETWORKS = 36 TARGET_HTTPS_PROXIES = 37 TARGET_HTTP_PROXIES = 38 TARGET_INSTANCES = 39 TARGET_POOLS = 40 TARGET_SSL_PROXIES = 41 TARGET_TCP_PROXIES = 42 TARGET_VPN_GATEWAYS = 43 URL_MAPS = 44 VPN_TUNNELS = 45 limit = _messages.FloatField(1) metric = _messages.EnumField('MetricValueValuesEnum', 2) usage = _messages.FloatField(3) class Reference(_messages.Message): """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): """Region resource. (== 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): """[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): """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): """[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): """[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): """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 RegionInstanceGroupList(_messages.Message): """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): """[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): """[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): """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): """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): """[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): """[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): """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): """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): """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): """A RegionInstanceGroupManagersListInstancesResponse object. Fields: managedInstances: List of managed instances. """ managedInstances = _messages.MessageField('ManagedInstance', 1, repeated=True) class RegionInstanceGroupManagersRecreateRequest(_messages.Message): """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): """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): """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): """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): """[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): """[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): """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): """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): """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): """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): """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): """[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): """[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): """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 ResourceCommitment(_messages.Message): """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: 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): """Type of resource for which this commitment applies. Possible values are VCPU and MEMORY Values: MEMORY: <no description> UNSPECIFIED: <no description> VCPU: <no description> """ MEMORY = 0 UNSPECIFIED = 1 VCPU = 2 amount = _messages.IntegerField(1) type = _messages.EnumField('TypeValueValuesEnum', 2) class ResourceGroupReference(_messages.Message): """A ResourceGroupReference object. Fields: group: A URI referencing one of the instance groups listed in the backend service. """ group = _messages.StringField(1) class Route(_messages.Message): """Represents a Route resource. A route specifies how certain packets should be handled by the network. Routes are associated with instances by tags and the set of routes for a particular instance is called its routing table. For each packet leaving an instance, the system searches that instance's routing table for a single best matching route. Routes match packets by destination IP address, preferring smaller or more specific ranges over larger ones. If there is a tie, the system selects the route with the smallest priority value. If there is still a tie, it uses the layer three and four packet headers to select just one of the remaining matching routes. The packet is then forwarded as specified by the nextHop field of the winning route - either to another instance destination, an instance gateway, or a Google Compute Engine-operated gateway. Packets that do not match any route in the sending instance's routing table are dropped. (== 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 property 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])? 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: 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-id>/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 the case of two routes with equal prefix length, the one with the lowest-numbered priority value wins. Default value is 1000. Valid range is 0 through 65535. 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): """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): """[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): """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): """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): """[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): """[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): """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): """Router resource. Fields: bgp: BGP information specific to this router. bgpPeers: BGP information that needs to be configured into the routing stack to establish the BGP peering. It must specify peer ASN and either interface name, IP, or peer IP. 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 (e.g. linkedVpnTunnel), or IP address and IP address range (e.g. 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. 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) network = _messages.StringField(9) region = _messages.StringField(10) selfLink = _messages.StringField(11) class RouterAggregatedList(_messages.Message): """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): """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): """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): """[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): """[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): """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): """A RouterBgp object. Fields: 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. """ asn = _messages.IntegerField(1, variant=_messages.Variant.UINT32) class RouterBgpPeer(_messages.Message): """A RouterBgpPeer object. Fields: advertisedRoutePriority: The priority of routes advertised to this BGP peer. In the case where there is more than one matching route of maximum length, the routes with 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. name: Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035. peerAsn: Peer BGP Autonomous System Number (ASN). For VPN use case, this value can be different for every tunnel. peerIpAddress: IP address of the BGP interface outside Google cloud. Only IPv4 is supported. """ advertisedRoutePriority = _messages.IntegerField(1, variant=_messages.Variant.UINT32) interfaceName = _messages.StringField(2) ipAddress = _messages.StringField(3) name = _messages.StringField(4) peerAsn = _messages.IntegerField(5, variant=_messages.Variant.UINT32) peerIpAddress = _messages.StringField(6) class RouterInterface(_messages.Message): """A RouterInterface object. Fields: ipRange: IP address and range of the interface. The IP range must be in the RFC3927 link-local IP 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 at most one linked resource and it could either be a VPN Tunnel or an interconnect attachment. linkedVpnTunnel: URI of the linked VPN tunnel. It must be in the same region as the router. Each interface can have at most one linked resource and it could either be a VPN Tunnel or an interconnect attachment. name: Name of this interface entry. The name must be 1-63 characters long and comply with RFC1035. """ ipRange = _messages.StringField(1) linkedInterconnectAttachment = _messages.StringField(2) linkedVpnTunnel = _messages.StringField(3) name = _messages.StringField(4) class RouterList(_messages.Message): """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): """[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): """[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): """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 RouterStatus(_messages.Message): """A RouterStatus object. Fields: bestRoutes: Best routes for this router's network. bestRoutesForRouter: Best routes learned by this router. bgpPeerStatus: A RouterStatusBgpPeerStatus 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) network = _messages.StringField(4) class RouterStatusBgpPeerStatus(_messages.Message): """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): """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 RouterStatusResponse(_messages.Message): """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): """A RoutersPreviewResponse object. Fields: resource: Preview of given router. """ resource = _messages.MessageField('Router', 1) class RoutersScopedList(_messages.Message): """A RoutersScopedList object. Messages: WarningValue: Informational warning which replaces the list of routers when the list is empty. Fields: routers: 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): """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): """[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): """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 SSLHealthCheck(_messages.Message): """A SSLHealthCheck object. 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: 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. 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 ProxyHeaderValueValuesEnum(_messages.Enum): """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) proxyHeader = _messages.EnumField('ProxyHeaderValueValuesEnum', 3) request = _messages.StringField(4) response = _messages.StringField(5) class Scheduling(_messages.Message): """Sets the scheduling options for an Instance. 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. 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): """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) onHostMaintenance = _messages.EnumField('OnHostMaintenanceValueValuesEnum', 2) preemptible = _messages.BooleanField(3) class SerialPortOutput(_messages.Message): """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 ServiceAccount(_messages.Message): """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 Snapshot(_messages.Message): """A persistent disk snapshot resource. (== 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: 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. 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. 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 image 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 disk. 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. """ class StatusValueValuesEnum(_messages.Enum): """[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): """[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): """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): """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) diskSizeGb = _messages.IntegerField(3) id = _messages.IntegerField(4, variant=_messages.Variant.UINT64) kind = _messages.StringField(5, default=u'compute#snapshot') labelFingerprint = _messages.BytesField(6) labels = _messages.MessageField('LabelsValue', 7) licenses = _messages.StringField(8, repeated=True) name = _messages.StringField(9) selfLink = _messages.StringField(10) snapshotEncryptionKey = _messages.MessageField('CustomerEncryptionKey', 11) sourceDisk = _messages.StringField(12) sourceDiskEncryptionKey = _messages.MessageField('CustomerEncryptionKey', 13) sourceDiskId = _messages.StringField(14) status = _messages.EnumField('StatusValueValuesEnum', 15) storageBytes = _messages.IntegerField(16) storageBytesStatus = _messages.EnumField('StorageBytesStatusValueValuesEnum', 17) class SnapshotList(_messages.Message): """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): """[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): """[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): """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 SslCertificate(_messages.Message): """An SslCertificate resource. This resource provides a mechanism to upload an SSL key and certificate to the load balancer to serve secure connections from the user. (== 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): """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): """[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): """[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): """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 StandardQueryParameters(_messages.Message): """Query parameters accepted by all methods. Enums: AltValueValuesEnum: Data format for the response. Fields: alt: Data format for the response. fields: Selector specifying which fields to include in a partial response. key: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. oauth_token: OAuth 2.0 token for the current user. prettyPrint: Returns response with indentations and line breaks. quotaUser: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided. trace: A tracing token of the form "token:<tokenid>" to include in api requests. userIp: IP address of the site where the request originates. Use this if you want to enforce per-user limits. """ class AltValueValuesEnum(_messages.Enum): """Data format for the response. Values: json: Responses with Content-Type of application/json """ json = 0 alt = _messages.EnumField('AltValueValuesEnum', 1, default=u'json') fields = _messages.StringField(2) key = _messages.StringField(3) oauth_token = _messages.StringField(4) prettyPrint = _messages.BooleanField(5, default=True) quotaUser = _messages.StringField(6) trace = _messages.StringField(7) userIp = _messages.StringField(8) class Subnetwork(_messages.Message): """A Subnetwork resource. (== 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. 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. 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. selfLink: [Output Only] Server-defined URL for the resource. """ creationTimestamp = _messages.StringField(1) description = _messages.StringField(2) gatewayAddress = _messages.StringField(3) id = _messages.IntegerField(4, variant=_messages.Variant.UINT64) ipCidrRange = _messages.StringField(5) kind = _messages.StringField(6, default=u'compute#subnetwork') name = _messages.StringField(7) network = _messages.StringField(8) privateIpGoogleAccess = _messages.BooleanField(9) region = _messages.StringField(10) secondaryIpRanges = _messages.MessageField('SubnetworkSecondaryRange', 11, repeated=True) selfLink = _messages.StringField(12) class SubnetworkAggregatedList(_messages.Message): """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): """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): """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): """[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): """[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): """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): """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): """[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): """[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): """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 SubnetworkSecondaryRange(_messages.Message): """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): """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): """A SubnetworksScopedList object. Messages: WarningValue: An informational warning that appears when the list of addresses is empty. Fields: subnetworks: List of subnetworks contained in this scope. warning: An informational warning that appears when the list of addresses is empty. """ class WarningValue(_messages.Message): """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): """[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): """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): """A SubnetworksSetPrivateIpGoogleAccessRequest object. Fields: privateIpGoogleAccess: A boolean attribute. """ privateIpGoogleAccess = _messages.BooleanField(1) class TCPHealthCheck(_messages.Message): """A TCPHealthCheck object. 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: 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. 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 ProxyHeaderValueValuesEnum(_messages.Enum): """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) proxyHeader = _messages.EnumField('ProxyHeaderValueValuesEnum', 3) request = _messages.StringField(4) response = _messages.StringField(5) class Tags(_messages.Message): """A set of instance tags. 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. 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): """A TargetHttpProxy resource. This resource defines an HTTP proxy. (== 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): """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): """[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): """[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): """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 TargetHttpsProxiesSetSslCertificatesRequest(_messages.Message): """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): """A TargetHttpsProxy resource. This resource defines an HTTPS proxy. (== resource_for beta.targetHttpsProxies ==) (== resource_for v1.targetHttpsProxies ==) 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. 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. Currently, exactly one SSL certificate must be specified. 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 """ 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) selfLink = _messages.StringField(6) sslCertificates = _messages.StringField(7, repeated=True) urlMap = _messages.StringField(8) class TargetHttpsProxyList(_messages.Message): """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): """[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): """[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): """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): """A TargetInstance resource. This resource defines an endpoint instance that terminates traffic of certain protocols. (== 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): """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): """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): """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): """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): """[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): """[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): """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): """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): """[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): """[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): """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): """A TargetInstancesScopedList object. Messages: WarningValue: Informational warning which replaces the list of addresses when the list is empty. Fields: targetInstances: 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): """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): """[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): """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): """A TargetPool resource. This resource defines a pool of instances, an associated HttpHealthCheck resource, and the fallback target pool. (== resource_for beta.targetPools ==) (== resource_for v1.targetPools ==) Enums: SessionAffinityValueValuesEnum: Sesssion 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: Sesssion 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): """Sesssion 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): """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): """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): """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): """[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): """[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): """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): """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): """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): """[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): """[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): """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): """A TargetPoolsAddHealthCheckRequest object. Fields: healthChecks: The HttpHealthCheck to add to the target pool. """ healthChecks = _messages.MessageField('HealthCheckReference', 1, repeated=True) class TargetPoolsAddInstanceRequest(_messages.Message): """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): """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): """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): """A TargetPoolsScopedList object. Messages: WarningValue: Informational warning which replaces the list of addresses when the list is empty. Fields: targetPools: 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): """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): """[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): """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): """A TargetReference object. Fields: target: A string attribute. """ target = _messages.StringField(1) class TargetSslProxiesSetBackendServiceRequest(_messages.Message): """A TargetSslProxiesSetBackendServiceRequest object. Fields: service: The URL of the new BackendService resource for the targetSslProxy. """ service = _messages.StringField(1) class TargetSslProxiesSetProxyHeaderRequest(_messages.Message): """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): """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): """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): """A TargetSslProxy resource. This resource defines an SSL proxy. (== 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. Currently exactly one SSL certificate must be specified. """ class ProxyHeaderValueValuesEnum(_messages.Enum): """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) class TargetSslProxyList(_messages.Message): """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): """[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): """[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): """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): """A TargetTcpProxiesSetBackendServiceRequest object. Fields: service: The URL of the new BackendService resource for the targetTcpProxy. """ service = _messages.StringField(1) class TargetTcpProxiesSetProxyHeaderRequest(_messages.Message): """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): """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): """A TargetTcpProxy resource. This resource defines a TCP proxy. (== 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): """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): """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): """[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): """[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): """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): """Represents a Target VPN gateway resource. (== resource_for beta.targetVpnGateways ==) (== resource_for v1.targetVpnGateways ==) Enums: StatusValueValuesEnum: [Output Only] The status of the VPN gateway. 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 to 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. tunnels: [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using compute.vpntunnels.insert method and associated to a VPN gateway. """ class StatusValueValuesEnum(_messages.Enum): """[Output Only] The status of the VPN gateway. 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): """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): """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): """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): """[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): """[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): """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): """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): """[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): """[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): """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): """A TargetVpnGatewaysScopedList object. Messages: WarningValue: [Output Only] Informational warning which replaces the list of addresses when the list is empty. Fields: targetVpnGateways: [Output Only] 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): """[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): """[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): """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): """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 UrlMap(_messages.Message): """A UrlMap resource. This resource defines the mapping from URL to the BackendService resource, based on the "longest-match" of the URL's host and path. Fields: creationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. defaultService: The URL of the BackendService resource if none of the hostRules match. 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. 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): """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): """[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): """[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): """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): """A UrlMapReference object. Fields: urlMap: A string attribute. """ urlMap = _messages.StringField(1) class UrlMapTest(_messages.Message): """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): """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): """A UrlMapsValidateRequest object. Fields: resource: Content of the UrlMap to be validated. """ resource = _messages.MessageField('UrlMap', 1) class UrlMapsValidateResponse(_messages.Message): """A UrlMapsValidateResponse object. Fields: result: A UrlMapValidationResult attribute. """ result = _messages.MessageField('UrlMapValidationResult', 1) class UsageExportLocation(_messages.Message): """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 VpnTunnel(_messages.Message): """VPN tunnel resource. (== resource_for beta.vpnTunnels ==) (== resource_for v1.vpnTunnels ==) Enums: StatusValueValuesEnum: [Output Only] The status of the VPN tunnel. 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 peer VPN gateway. Acceptable IKE versions are 1 or 2. 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 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. 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. 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 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 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. targetVpnGateway: URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. """ class StatusValueValuesEnum(_messages.Enum): """[Output Only] The status of the VPN tunnel. 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> 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 WAITING_FOR_FULL_CONFIG = 11 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) peerIp = _messages.StringField(9) region = _messages.StringField(10) remoteTrafficSelector = _messages.StringField(11, repeated=True) router = _messages.StringField(12) selfLink = _messages.StringField(13) sharedSecret = _messages.StringField(14) sharedSecretHash = _messages.StringField(15) status = _messages.EnumField('StatusValueValuesEnum', 16) targetVpnGateway = _messages.StringField(17) class VpnTunnelAggregatedList(_messages.Message): """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): """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): """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): """[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): """[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): """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): """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): """[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): """[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): """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): """A VpnTunnelsScopedList object. Messages: WarningValue: Informational warning which replaces the list of addresses when the list is empty. Fields: vpnTunnels: 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): """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): """[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): """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): """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): """[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): """[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): """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): """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 matches the project ID (e.g., my-project), not the project number (e.g., 12345678). type: The type of the service resource. """ class TypeValueValuesEnum(_messages.Enum): """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): """A Zone resource. (== 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): """[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): """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): """[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): """[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): """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): """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): """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): """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)
[ "jfguan@umich.edu" ]
jfguan@umich.edu
438285829bb85321c7fc34c2bccb28745de193f1
d63e7947bc888ee30865a6f073eeda841cacf315
/Visualization.py
a94183aa21544f2bbdc809c69a17f26b142291e2
[]
no_license
lorenzgutierrez/Noise-neuron-discriminator
069662fd829736b291495d0a69e2306e331ff4ae
35bb845ea4b9d7ef943b89881beeca0e49011ebd
refs/heads/master
2023-01-23T02:57:37.567374
2020-12-03T10:33:45
2020-12-03T10:33:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,236
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jan 27 09:14:21 2020 @author: lorenzo """ from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D import pandas as pd import numpy as np from sklearn.manifold import MDS from sklearn.decomposition import PCA from sklearn.manifold import Isomap as ISO from sklearn.cluster import DBSCAN Data = pd.read_pickle('Data_to_analize') Color = Data.Team.to_list() df = pd.DataFrame(np.array(Data['Mean'].tolist()).transpose()) Corr = df.corr() D = 1-Corr pca = PCA(3) D_trans = pca.fit_transform(D) #mds = MDS(3) #D_trans= mds.fit_transform(D) #iso = ISO(n_components=3) #D_trans = iso.fit_transform(D) plot_data(D_trans) def plot_data(D,color = Color): dim = len(D[0]) print(dim) if (dim !=2) and (dim!=3): raise ValueError('Dim incorrecta') if dim == 2: X = [i[0] for i in D] Y = [i[1] for i in D] fig = plt.figure(4) plt.scatter(X,Y,c = Color,cmap = 'gnuplot') if dim == 3: X = [i[0] for i in D] Y = [i[1] for i in D] Z = [i[2] for i in D] fig = plt.figure(5) ax = Axes3D(fig) ax.scatter(X,Y,Z,c = Color,cmap = 'gnuplot')
[ "naroloal94@gmail.com" ]
naroloal94@gmail.com
97e989546fc1cd3b939a0e6230c20cd0361c5a99
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp-with-texts/Juniper-SONET-CONF.py
c3b8be3cccc5ea7d781b518f90c1487395270edc
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
11,118
py
# # PySNMP MIB module Juniper-SONET-CONF (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-SONET-CONF # Produced by pysmi-0.3.4 at Wed May 1 14:04:23 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint") juniAgents, = mibBuilder.importSymbols("Juniper-Agents", "juniAgents") AgentCapabilities, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "AgentCapabilities", "ModuleCompliance", "NotificationGroup") iso, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, Counter32, ObjectIdentity, Counter64, IpAddress, Bits, Unsigned32, Gauge32, TimeTicks, NotificationType, ModuleIdentity, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "Counter32", "ObjectIdentity", "Counter64", "IpAddress", "Bits", "Unsigned32", "Gauge32", "TimeTicks", "NotificationType", "ModuleIdentity", "MibIdentifier") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") juniSonetAgent = ModuleIdentity((1, 3, 6, 1, 4, 1, 4874, 5, 2, 40)) juniSonetAgent.setRevisions(('2005-09-15 20:26', '2003-07-16 17:22', '2003-01-31 20:09', '2002-04-09 23:44', '2002-02-04 21:35', '2001-04-03 22:35',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: juniSonetAgent.setRevisionsDescriptions(('APS-MIB - mib added.', 'Juniper-UNI-SONET-MIB: Added path event status and notification support.', 'Juniper-UNI-SONET-MIB: Replaced Unisphere names with Juniper names.', 'APS-MIB-JUNI: Added support for IETF draft-ietf-atommib-sonetaps-mib-05 as a Juniper experimental MIB.', 'Separate out the SONET VT support.', 'The initial release of this management information module.',)) if mibBuilder.loadTexts: juniSonetAgent.setLastUpdated('200509152026Z') if mibBuilder.loadTexts: juniSonetAgent.setOrganization('Juniper Networks, Inc.') if mibBuilder.loadTexts: juniSonetAgent.setContactInfo(' Juniper Networks, Inc. Postal: 10 Technology Park Drive Westford, MA 01886-3146 USA Tel: +1 978 589 5800 E-mail: mib@Juniper.net') if mibBuilder.loadTexts: juniSonetAgent.setDescription('The agent capabilities definitions for the SONET component of the SNMP agent in the Juniper E-series family of products.') juniSonetAgentV1 = AgentCapabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 40, 1)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniSonetAgentV1 = juniSonetAgentV1.setProductRelease('Version 1 of the SONET component of the JUNOSe SNMP agent. This\n version of the SONET component was supported in JUNOSe 1.x system\n releases.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniSonetAgentV1 = juniSonetAgentV1.setStatus('obsolete') if mibBuilder.loadTexts: juniSonetAgentV1.setDescription('The MIBs supported by the SNMP agent for the SONET application in JUNOSe. These capabilities became obsolete when support for the standard VT group was added.') juniSonetAgentV2 = AgentCapabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 40, 2)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniSonetAgentV2 = juniSonetAgentV2.setProductRelease('Version 2 of the SONET component of the JUNOSe SNMP agent. This\n version of the SONET component was supported in JUNOSe 2.x system\n releases.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniSonetAgentV2 = juniSonetAgentV2.setStatus('obsolete') if mibBuilder.loadTexts: juniSonetAgentV2.setDescription('The MIBs supported by the SNMP agent for the SONET application in JUNOSe. These capabilities became obsolete when support for the proprietary path and VT groups were added.') juniSonetAgentV3 = AgentCapabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 40, 3)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniSonetAgentV3 = juniSonetAgentV3.setProductRelease('Version 3 of the SONET component of the JUNOSe SNMP agent. This\n version of the SONET component was supported in JUNOSe 3.0 and 3.1\n system releases.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniSonetAgentV3 = juniSonetAgentV3.setStatus('obsolete') if mibBuilder.loadTexts: juniSonetAgentV3.setDescription('The MIBs supported by the SNMP agent for the SONET application in JUNOSe. These capabilities became obsolete when support for the RFC-2558 version of the SONET-MIB and far-end statistics were added.') juniSonetAgentV4 = AgentCapabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 40, 4)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniSonetAgentV4 = juniSonetAgentV4.setProductRelease('Version 4 of the SONET component of the JUNOSe SNMP agent. This\n version of the SONET component was supported in JUNOSe 3.2 system\n releases.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniSonetAgentV4 = juniSonetAgentV4.setStatus('obsolete') if mibBuilder.loadTexts: juniSonetAgentV4.setDescription('The MIBs supported by the SNMP agent for the SONET application in JUNOSe. These capabilities became obsolete when Virtual Tributary (VT) support was searated out into a separate capabilities statement.') juniSonetBasicAgent = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 5, 2, 40, 5)) juniSonetBasicAgentV1 = AgentCapabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 40, 5, 1)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniSonetBasicAgentV1 = juniSonetBasicAgentV1.setProductRelease('Version 1 of the basic SONET component of the JUNOSe SNMP agent. It\n does not include Virtual Tributary (VT) support. This version of the\n basic SONET component was supported in JUNOSe 3.3 and subsequent 3.x\n system releases.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniSonetBasicAgentV1 = juniSonetBasicAgentV1.setStatus('obsolete') if mibBuilder.loadTexts: juniSonetBasicAgentV1.setDescription('The MIB conformance groups supported by the SNMP agent for the SONET application in JUNOSe. These capabilities became obsolete when support was added for the Internet draft of the APS MIB.') juniSonetBasicAgentV2 = AgentCapabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 40, 5, 2)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniSonetBasicAgentV2 = juniSonetBasicAgentV2.setProductRelease('Version 2 of the basic SONET component of the JUNOSe SNMP agent. It\n does not include Virtual Tributary (VT) support. This version of the\n basic SONET component was supported in JUNOSe 4.x system releases.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniSonetBasicAgentV2 = juniSonetBasicAgentV2.setStatus('obsolete') if mibBuilder.loadTexts: juniSonetBasicAgentV2.setDescription('The MIB conformance groups supported by the SNMP agent for the SONET application in JUNOSe. These capabilities became obsolete when new medium and path controls were added.') juniSonetBasicAgentV3 = AgentCapabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 40, 5, 3)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniSonetBasicAgentV3 = juniSonetBasicAgentV3.setProductRelease('Version 3 of the basic SONET component of the JUNOSe SNMP agent. It\n does not include Virtual Tributary (VT) support. This version of the\n basic SONET component was supported in JUNOSe 5.0 system releases.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniSonetBasicAgentV3 = juniSonetBasicAgentV3.setStatus('obsolete') if mibBuilder.loadTexts: juniSonetBasicAgentV3.setDescription('The MIB conformance groups supported by the SNMP agent for the SONET application in JUNOSe. These capabilities became obsolete when path event status and notification support was added.') juniSonetBasicAgentV4 = AgentCapabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 40, 5, 4)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniSonetBasicAgentV4 = juniSonetBasicAgentV4.setProductRelease('Version 4 of the basic SONET component of the JUNOSe SNMP agent. It\n does not include Virtual Tributary (VT) support. This version of the\n basic SONET component is supported in JUNOSe 5.1 and subsequent system\n releases.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniSonetBasicAgentV4 = juniSonetBasicAgentV4.setStatus('obsolete') if mibBuilder.loadTexts: juniSonetBasicAgentV4.setDescription('The MIB conformance groups supported by the SNMP agent for the SONET application in JUNOSe.') juniSonetBasicAgentV5 = AgentCapabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 40, 5, 5)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniSonetBasicAgentV5 = juniSonetBasicAgentV5.setProductRelease('Version 5 of the basic SONET component of the JUNOSe SNMP agent. It\n does not include Virtual Tributary (VT) support. This version of the\n basic SONET component is supported in JUNOSe 7.2 and subsequent system\n releases.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniSonetBasicAgentV5 = juniSonetBasicAgentV5.setStatus('current') if mibBuilder.loadTexts: juniSonetBasicAgentV5.setDescription('The MIB conformance groups supported by the SNMP agent for the SONET application in JUNOSe.') juniSonetVTAgent = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 5, 2, 40, 6)) juniSonetVTAgentV1 = AgentCapabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 40, 6, 1)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniSonetVTAgentV1 = juniSonetVTAgentV1.setProductRelease('Version 1 of the SONET VT component of the JUNOSe SNMP agent. This\n version of the SONET component is supported in JUNOSe 3.3 and subsequent\n system releases.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniSonetVTAgentV1 = juniSonetVTAgentV1.setStatus('current') if mibBuilder.loadTexts: juniSonetVTAgentV1.setDescription('The MIB conformance groups supported by the SNMP agent for the SONET application in JUNOSe.') mibBuilder.exportSymbols("Juniper-SONET-CONF", juniSonetAgent=juniSonetAgent, juniSonetBasicAgentV3=juniSonetBasicAgentV3, juniSonetAgentV4=juniSonetAgentV4, PYSNMP_MODULE_ID=juniSonetAgent, juniSonetBasicAgentV5=juniSonetBasicAgentV5, juniSonetAgentV1=juniSonetAgentV1, juniSonetBasicAgentV1=juniSonetBasicAgentV1, juniSonetAgentV3=juniSonetAgentV3, juniSonetBasicAgentV4=juniSonetBasicAgentV4, juniSonetAgentV2=juniSonetAgentV2, juniSonetVTAgentV1=juniSonetVTAgentV1, juniSonetBasicAgent=juniSonetBasicAgent, juniSonetBasicAgentV2=juniSonetBasicAgentV2, juniSonetVTAgent=juniSonetVTAgent)
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
1e483a3341fe73aa04f29fd190ec00bb709ea425
1ea98cf39a570633cc7ff67f3e08ea0222b574b6
/MissionPlanner/LogAnalyzer/tests/TestPitchRollCoupling.py
08eb5b6c2da82fdd871bb72cbf4e82afd25f5469
[]
no_license
shalamonka/binary
8e07c800b394101de2bd3c511d434e7cddd0f769
0d77e70a92e7958708928bd719baf27a7abba5c7
refs/heads/master
2020-12-24T09:56:59.176792
2016-11-01T02:30:42
2016-11-01T02:30:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,846
py
from LogAnalyzer import Test,TestResult import DataflashLog import collections class TestPitchRollCoupling(Test): '''test for divergence between input and output pitch/roll, i.e. mechanical failure or bad PID tuning''' # TODO: currently we're only checking for roll/pitch outside of max lean angle, will come back later to analyze roll/pitch in versus out values def __init__(self): self.name = "Pitch/Roll" self.enable = True # TEMP def run(self, logdata, verbose): self.result = TestResult() self.result.status = TestResult.StatusType.PASS if logdata.vehicleType != "ArduCopter": self.result.status = TestResult.StatusType.NA return if not "ATT" in logdata.channels: self.result.status = TestResult.StatusType.UNKNOWN self.result.statusMessage = "No ATT log data" return # figure out where each mode begins and ends, so we can treat auto and manual modes differently and ignore acro/tune modes autoModes = ["RTL","AUTO","LAND","LOITER","GUIDED","CIRCLE","OF_LOITER"] # use NTUN DRol+DPit manualModes = ["STABILIZE","DRIFT","ALTHOLD","ALT_HOLD"] # use CTUN RollIn/DesRoll + PitchIn/DesPitch ignoreModes = ["ACRO","SPORT","FLIP","AUTOTUNE"] # ignore data from these modes autoSegments = [] # list of (startLine,endLine) pairs manualSegments = [] # list of (startLine,endLine) pairs orderedModes = collections.OrderedDict(sorted(logdata.modeChanges.items(), key=lambda t: t[0])) isAuto = False # we always start in a manual control mode prevLine = 0 mode = "" for line,modepair in orderedModes.iteritems(): mode = modepair[0].upper() if prevLine == 0: prevLine = line if mode in autoModes: if not isAuto: manualSegments.append((prevLine,line-1)) prevLine = line isAuto = True elif mode in manualModes: if isAuto: autoSegments.append((prevLine,line-1)) prevLine = line isAuto = False elif mode in ignoreModes: if isAuto: autoSegments.append((prevLine,line-1)) else: manualSegments.append((prevLine,line-1)) prevLine = 0 else: raise Exception("Unknown mode in TestPitchRollCoupling: %s" % mode) # and handle the last segment, which doesn't have an ending if mode in autoModes: autoSegments.append((prevLine,logdata.lineCount)) elif mode in manualModes: manualSegments.append((prevLine,logdata.lineCount)) # figure out max lean angle, the ANGLE_MAX param was added in AC3.1 maxLeanAngle = 45.0 if "ANGLE_MAX" in logdata.parameters: maxLeanAngle = logdata.parameters["ANGLE_MAX"] / 100.0 maxLeanAngleBuffer = 10 # allow a buffer margin # ignore anything below this altitude, to discard any data while not flying minAltThreshold = 2.0 # look through manual+auto flight segments # TODO: filter to ignore single points outside range? (maxRoll, maxRollLine) = (0.0, 0) (maxPitch, maxPitchLine) = (0.0, 0) for (startLine,endLine) in manualSegments+autoSegments: # quick up-front test, only fallover into more complex line-by-line check if max()>threshold rollSeg = logdata.channels["ATT"]["Roll"].getSegment(startLine,endLine) pitchSeg = logdata.channels["ATT"]["Pitch"].getSegment(startLine,endLine) if not rollSeg.dictData and not pitchSeg.dictData: continue # check max roll+pitch for any time where relative altitude is above minAltThreshold roll = max(abs(rollSeg.min()), abs(rollSeg.max())) pitch = max(abs(pitchSeg.min()), abs(pitchSeg.max())) if (roll>(maxLeanAngle+maxLeanAngleBuffer) and abs(roll)>abs(maxRoll)) or (pitch>(maxLeanAngle+maxLeanAngleBuffer) and abs(pitch)>abs(maxPitch)): lit = DataflashLog.LogIterator(logdata, startLine) assert(lit.currentLine == startLine) while lit.currentLine <= endLine: relativeAlt = lit["CTUN"]["BarAlt"] if relativeAlt > minAltThreshold: roll = lit["ATT"]["Roll"] pitch = lit["ATT"]["Pitch"] if abs(roll)>(maxLeanAngle+maxLeanAngleBuffer) and abs(roll)>abs(maxRoll): maxRoll = roll maxRollLine = lit.currentLine if abs(pitch)>(maxLeanAngle+maxLeanAngleBuffer) and abs(pitch)>abs(maxPitch): maxPitch = pitch maxPitchLine = lit.currentLine lit.next() # check for breaking max lean angles if maxRoll and abs(maxRoll)>abs(maxPitch): self.result.status = TestResult.StatusType.FAIL self.result.statusMessage = "Roll (%.2f, line %d) > maximum lean angle (%.2f)" % (maxRoll, maxRollLine, maxLeanAngle) return if maxPitch: self.result.status = TestResult.StatusType.FAIL self.result.statusMessage = "Pitch (%.2f, line %d) > maximum lean angle (%.2f)" % (maxPitch, maxPitchLine, maxLeanAngle) return # TODO: use numpy/scipy to check Roll+RollIn curves for fitness (ignore where we're not airborne) # ...
[ "mich146@hotmail.com" ]
mich146@hotmail.com
f5a602328c7a144a30957c5b53ac7ad18bb4260d
fb0f2f3afda5d17578208fce3f130b6131f6e21f
/app/error/errors.py
d33c1a13dceee17cac22ce988e19a9bd7512d753
[]
no_license
pancudaniel7/reverse-binary-files
1364ef13c0a70ade8e631871f12141d43dc86a35
5477b7ea539ba1dd66144fe0db4199beb3c0fe89
refs/heads/master
2023-01-18T17:15:04.410186
2020-11-16T11:00:13
2020-11-20T18:57:46
313,268,360
0
1
null
null
null
null
UTF-8
Python
false
false
58
py
class UnsupportedBufferSizeException(Exception): pass
[ "dpancu@godaddy.com" ]
dpancu@godaddy.com
42b08b8391a2a6d603c75c466fc209656bef82cc
2e743948c356a1a844acf41aec5705fa4436b0ba
/exercises-31-40/ex40.py
9a5aec0ee54dabb4c829c864bcd245353425a748
[]
no_license
csdaniel17/python-exercises
bc0951b8ad7b5836b860e21e7216aeced1210818
d9258b59b3c0d039d02cc3be103abd09026f7fd3
refs/heads/master
2020-05-21T13:31:12.645983
2016-10-30T18:54:43
2016-10-30T18:54:43
63,285,529
0
0
null
null
null
null
UTF-8
Python
false
false
1,131
py
# ex40: Modules, Classes, and Objects ## oop: uses classes # a class is a way to take a grouping of functions and data and place them inside a container so you can access them with the . operator # # dictionary with a key 'apple' # mystuff = {'apple': "I AM APPLES!"} # # to get it: # print mystuff['apple'] ## modules: # 1. a python file with some functions or variables in it # 2. you import that file # 3. you can access the functions or variables in that module with the . operator ### three ways to get things from things: # # dict style # mystuff['apples'] # # # module style # mystuff.apples() # print mystuff.tangerine # # # class style # thing = MyStuff() # thing.apples() # print thing.tangerine class Song(object): def __init__(self, lyrics): self.lyrics = lyrics def sing_me_a_song(self): for line in self.lyrics: print line happy_bday = Song(["Happy birthday to you", "I don't want to get sued", "So I'll stop right there"]) bulls_on_parade = Song(["They rally around tha family", "With pockets full of shells"]) happy_bday.sing_me_a_song() bulls_on_parade.sing_me_a_song()
[ "carolyn.s.daniel@gmail.com" ]
carolyn.s.daniel@gmail.com
abf2c643ec938a1c8c104324058a4544ad8bfcdd
77c410dd5a3d17de062c6e17be67f9eb72809f3e
/V2/BraessParadox/wheatStone2.py
7206910aa8e514c031be655494001f3dd2380112
[]
no_license
lisarah/mdpcg
8e9eb6fe8e4242678915d2e5576560b04ff75938
ed7c8c48708794422b3e070fe81cdc3ea193d6b0
refs/heads/master
2022-08-21T02:10:00.798958
2022-08-14T00:12:03
2022-08-14T00:12:03
200,313,499
1
1
null
null
null
null
UTF-8
Python
false
false
5,600
py
# -*- coding: utf-8 -*- """ Created on Tue Oct 16 20:03:43 2018 @author: craba """ import numpy as np import networkx as nx import matplotlib.pyplot as plt import supFunc as sF # Graph set up edges = [(0,1),(0,2), (1,2), (2,3), (1,3)] ; #edges2 = [(0,1),(0,2), (2,3), (1,3)] ; # removed middle edge #wheat = nx.DiGraph(edges); #wheatRemoved = nx.DiGraph(edges2); ## Degree/Incidence matrix #E = nx.incidence_matrix(wheat, oriented=True).toarray(); #E2 = nx.incidence_matrix(wheatRemoved, oriented=True).toarray(); ## Number of edges #e = wheat.number_of_edges(); ## Number of nodes #v = wheat.number_of_nodes(); ##Specify their positions #nodePos = {0: (0,1), # 1: (1,2), # 2: (1,0), # 3: (2,1)} # Draw graph #nx.draw(wheat,pos=nodePos, node_color='g', edge_color='k', with_labels=True, font_weight='bold', font_color ='w') #plt.show(); sourceNode = 0; sinkNode = 3; sourceVec = np.zeros((4)); sourceVec[sourceNode] = -1; sourceVec[sinkNode] = 1; #-------------latency parameters----------------------# eps=0.1; A = np.diag([9., eps, eps, 9., eps, eps]) #latency for whole graph b = np.array([eps, 1.0,0, eps, 1.]) #A2 = np.diag([5.0, 1.0, 0.1, 5.0, 5.0]) #latency for whole graph #b2 = np.array([0., 5.0, 1., 0., 5.0]) #sF.RouteGen(wheat,edges,sourceNode,sinkNode) # #socialCosts = sF.returnPotValues(50, 0.1, sF.Q, wheat, edges, sourceNode, sinkNode, A,b); #warCosts = sF.returnPotValues(50, 0.1, sF.P, wheat, edges, sourceNode, sinkNode, A,b); #plt.figure() #plt.plot(socialCosts[0,:],socialCosts[1,:],label=("Social Potential")); #plt.plot(warCosts[0,:],warCosts[1,:],label=("Wardrop Potential")); #plt.xlabel('Mass Input') #plt.ylabel('Potential Value') #plt.title('Potential Comparison') #plt.legend(bbox_to_anchor=(1.05, 1), loc=2, borderaxespad=0.) #plt.show(); # Braess Paradox totalIterations = 10; increment = 0.01; socialFull = sF.iterateStochasticB(totalIterations, increment, sF.Q, edges, sourceNode, sinkNode, A,b); #socialNoEdge = sF.iterateB(totalIterations, increment, sF.Q, wheatRemoved, edges2, sourceNode, sinkNode, ARemoved,bRemoved); #plt.figure() #plt.plot(socialFull[7,:], socialFull[6,:] ,label=("Social Potential At Wardrop")); #plt.plot(socialFull[7,:], socialFull[0,:], label = ("edge 1")); #plt.plot(socialFull[7,:], socialFull[1,:], label = ("edge 2")); #plt.plot(socialFull[7,:], socialFull[2,:], label = ("edge 3")); #plt.plot(socialFull[7,:], socialFull[3,:], label = ("edge 4")); #plt.plot(socialFull[7,:], socialFull[4,:], label = ("edge 5")); #plt.plot(socialFull[7,:], socialFull[5,:], label = ("total mass")); ##plt.plot(socialFull[0,:],socialNoEdge[1,:],label=("Social Potential After removing the edge")); # #plt.xlabel('BValue') #plt.ylabel('Social Value') #plt.title('Potential Comparison:') #plt.legend(); #plt.grid(); ##plt.legend(bbox_to_anchor=(1.05, 1), loc=2, borderaxespad=0.) #plt.show(); F = np.array([[ 1., 0., 0., 0., 1., -1.], [ -1., 1., 1., 0., 0., 0.], [ 0., 0., -0.9, 1., -1., 0.], [ 0., -1., -0.1, -1., 0., 1.]]); #N = np.array([[ 1., 0., 0., 0., 1.], # [ -1., 1., 1., 0., 0.], # [ 0., 0., -0.6, 1., -1.], # [ 0., -1., -0.4, -1., 0.],]); N = np.array([[ 1., 0., 0., 0., 1., -1.], [ -1., 1., 1., 0., 0., 0.], # [ 0., 0., -0.6, 1., -1., 0.], [ 0., -1., -0.1, -1., 0., 1.], [ 1., 1., 1., 1., 1., 1.]]); #pA = np.diag([1.0, 0., 0., 1.0, 0., 0.]); GInv = np.linalg.inv(A); sumFlow = socialFull[0,:] + socialFull[1,:] +socialFull[2,:] + socialFull[3,:] + socialFull[4,:] + socialFull[5,:]; # + NGN = np.linalg.inv(N.dot(GInv).dot(N.T)) yStar = socialFull[0:6, :]; bMat = np.tile(np.concatenate((b, np.array([0]))), (totalIterations,1)); bMat[:,2] = socialFull[7,:]; lStar = A.dot(yStar).T + bMat;# np.concatenate((b, np.array([0]))); sensitivity = GInv.dot((N.T.dot(NGN.dot(N.dot(yStar))))) + GInv.dot(N.T.dot(NGN.dot(N.dot(GInv.dot(lStar.T))))) - GInv.dot(lStar.T) plt.figure() plt.plot(socialFull[7,:], socialFull[6,:] ,label=("Social Cost")); plt.plot(socialFull[7,:], socialFull[0,:], label = ("1")); plt.plot(socialFull[7,:], socialFull[1,:], label = ("2")); plt.plot(socialFull[7,:], socialFull[2,:], label = ("3")); plt.plot(socialFull[7,:], socialFull[3,:], label = ("4")); plt.plot(socialFull[7,:], socialFull[4,:], label = ("5")); plt.plot(socialFull[7,:], socialFull[5,:], label = ("6")); #plt.plot(socialFull[7,:], sumFlow, label = ("total flow on network")); plt.plot(socialFull[7,:], sensitivity[2,:], label = ("Sensitivity")); #plt.plot(socialFull[0,:],socialNoEdge[1,:],label=("Social Potential After removing the edge")); plt.xlabel('BValue') plt.ylabel('Social Value') plt.title('Potential Comparison:') #plt.legend(); plt.grid(); plt.show(); fig, axs = plt.subplots(1, 2, figsize=(6, 6), gridspec_kw = {'width_ratios':[1, 1]}); axs[0].plot(socialFull[7,:], socialFull[6,:] ,label=("Social Cost")); axs[0].plot(socialFull[7,:], sensitivity[1,:], label = ("Sensitivity")); plt.sca(axs[0]); plt.grid(); plt.xlabel('$\epsilon$'); axs[1].plot(socialFull[7,:], socialFull[0,:], label = ("1")); axs[1].plot(socialFull[7,:], socialFull[1,:], label = ("2")); axs[1].plot(socialFull[7,:], socialFull[2,:], label = ("3")); axs[1].plot(socialFull[7,:], socialFull[3,:], label = ("4")); axs[1].plot(socialFull[7,:], socialFull[4,:], label = ("5")); axs[1].plot(socialFull[7,:], socialFull[5,:], label = ("6")); plt.sca(axs[1]); plt.xlabel('$\epsilon$'); plt.grid(); plt.show();
[ "crab.apples00@gmail.com" ]
crab.apples00@gmail.com
e82febb5abecfd35f1dda27388170c2e24862189
0879afed748a17c9de862500c1b7503c4aea1034
/chemical-photo-analyzer-master/danish.py
84cdbf7fecc0c4e8460c9a53519afd2d0f71fa83
[]
no_license
foxtrotmike/chemsaber
926af3a3c6d8b7ed838242dc13b32447928942ee
0b8eb17f6e16c7639265dc8988fa999fbd94714e
refs/heads/master
2020-06-27T16:22:14.253565
2019-08-01T10:35:37
2019-08-01T10:35:37
199,996,206
0
0
null
null
null
null
UTF-8
Python
false
false
2,509
py
import serial import time import numpy as np import serial.tools.list_ports import random from datetime import datetime def writeRGB(x,y,z): RGBvalue = x,y,z setRGB = str(RGBvalue) ard.write(setRGB.encode()) def readVoltage(): ard.flush() time.sleep(0.2) a = ard.readline() return a def RW(x,y,z): writeRGB(x,y,z) time.sleep(0.1) return readVoltage() def sample(R=None): if R is None: R = [[255,0,0],[0,255,0],[0,0,255],[255,255,255]] Z = [] rr = None RW(0,0,0) for x,y,z in R: for _ in range(2): #set value and read twice, keep second reading only r = RW(x,y,z) try: rr = list(np.array(np.array(r.strip().split())[[1,3,5,9,10,11,12,16,17,18,19]],dtype=np.int)) except Exception as e: print(e) print(rr) if rr is not None: Z.append(rr) RW(0,0,0) Z = np.array(Z) Z = Z[:,[0,1,2,5,6,9,10]] rgb = Z[:,[0,1,2]] s1 = np.mean(Z[:,3:4],axis=1) s2 = np.mean(Z[:,5:6],axis=1) ZR = np.hstack((rgb,np.atleast_2d(s1).T,np.atleast_2d(s2).T)) return Z if __name__=='__main__': # code for automatic discovery and connection. try: ard except NameError: port = 'COM20' ports = list(serial.tools.list_ports.comports()) for p in ports: if 'CH340' in p.description or 'arduino' in p.description.lower(): port = p.device ard = serial.Serial(port,9600,timeout=1) print("Device Connected on %s."%(port)) print("Initiating Startup Sequence (0RGBW0). Standby!") time.sleep(2) sample() time.sleep(1) print("Startup Sequence Completed. Device Ready!") break else: raise Exception("Device not found!") sample_name = "empty" seeds = [7,random.randrange(2**32-1)]# for seed in seeds: np.random.seed(seed) R = np.random.randint(0,255,size=(50,3))#[[0,0,0],[0,0,255],[0,255,0],[0,255,255],[255,0,0],[255,0,255],[255,255,0],[255,255,255]] ZR = sample(R) fname = sample_name+'_'+datetime.now().strftime('%Y-%m-%d-%H-%M-%S')+"#"+str(seed)+".spv" np.savetxt(fname,ZR,fmt="%d") print(fname+" Saved.")
[ "noreply@github.com" ]
foxtrotmike.noreply@github.com
ec1a2c058317b511d0867d6fd68a928832eda934
f4b60f5e49baf60976987946c20a8ebca4880602
/lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/fv/rsctxtoospfctxpol.py
24471250b333be80cb7836f09ea259df48c17457
[]
no_license
cqbomb/qytang_aci
12e508d54d9f774b537c33563762e694783d6ba8
a7fab9d6cda7fadcc995672e55c0ef7e7187696e
refs/heads/master
2022-12-21T13:30:05.240231
2018-12-04T01:46:53
2018-12-04T01:46:53
159,911,666
0
0
null
2022-12-07T23:53:02
2018-12-01T05:17:50
Python
UTF-8
Python
false
false
9,042
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.mit.meta import StatsClassMeta from cobra.mit.meta import CounterMeta from cobra.mit.meta import PropMeta from cobra.mit.meta import Category from cobra.mit.meta import SourceRelationMeta from cobra.mit.meta import NamedSourceRelationMeta from cobra.mit.meta import TargetRelationMeta from cobra.mit.meta import DeploymentPathMeta, DeploymentCategory from cobra.model.category import MoCategory, PropCategory, CounterCategory from cobra.mit.mo import Mo # ################################################## class RsCtxToOspfCtxPol(Mo): """ A source relation to the per-address family OSPF context policy. """ meta = NamedSourceRelationMeta("cobra.model.fv.RsCtxToOspfCtxPol", "cobra.model.ospf.CtxPol") meta.targetNameProps["name"] = "tnOspfCtxPolName" meta.cardinality = SourceRelationMeta.N_TO_M meta.moClassName = "fvRsCtxToOspfCtxPol" meta.rnFormat = "rsctxToOspfCtxPol-[%(tnOspfCtxPolName)s]-%(af)s" meta.category = MoCategory.RELATIONSHIP_TO_LOCAL meta.label = "OSPF Context Policy" meta.writeAccessMask = 0x2001 meta.readAccessMask = 0x2001 meta.isDomainable = False meta.isReadOnly = False meta.isConfigurable = True meta.isDeletable = True meta.isContextRoot = False meta.childClasses.add("cobra.model.fault.Inst") meta.childClasses.add("cobra.model.fault.Counts") meta.childClasses.add("cobra.model.health.Inst") meta.childNamesAndRnPrefix.append(("cobra.model.fault.Counts", "fltCnts")) meta.childNamesAndRnPrefix.append(("cobra.model.fault.Inst", "fault-")) meta.childNamesAndRnPrefix.append(("cobra.model.health.Inst", "health")) meta.parentClasses.add("cobra.model.fv.Ctx") meta.superClasses.add("cobra.model.reln.Inst") meta.superClasses.add("cobra.model.reln.To") meta.superClasses.add("cobra.model.pol.NToRef") meta.rnPrefixes = [ ('rsctxToOspfCtxPol-', True), ('-', True), ] prop = PropMeta("str", "af", "af", 17597, PropCategory.REGULAR) prop.label = "None" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True prop.defaultValue = 2 prop.defaultValueStr = "ipv6-ucast" prop._addConstant("ipv4-ucast", "ipv4-unicast-address-family", 1) prop._addConstant("ipv6-ucast", "ipv6-unicast-address-family", 2) meta.props.add("af", prop) prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "forceResolve", "forceResolve", 107, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = True prop.defaultValueStr = "yes" prop._addConstant("no", None, False) prop._addConstant("yes", None, True) meta.props.add("forceResolve", prop) prop = PropMeta("str", "lcOwn", "lcOwn", 9, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "local" prop._addConstant("implicit", "implicit", 4) prop._addConstant("local", "local", 0) prop._addConstant("policy", "policy", 1) prop._addConstant("replica", "replica", 2) prop._addConstant("resolveOnBehalf", "resolvedonbehalf", 3) meta.props.add("lcOwn", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "monPolDn", "monPolDn", 17603, PropCategory.REGULAR) prop.label = "Monitoring policy attached to this observable object" prop.isImplicit = True prop.isAdmin = True meta.props.add("monPolDn", prop) prop = PropMeta("str", "rType", "rType", 106, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 1 prop.defaultValueStr = "mo" prop._addConstant("local", "local", 3) prop._addConstant("mo", "mo", 1) prop._addConstant("service", "service", 2) meta.props.add("rType", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "state", "state", 103, PropCategory.REGULAR) prop.label = "State" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "unformed" prop._addConstant("cardinality-violation", "cardinality-violation", 5) prop._addConstant("formed", "formed", 1) prop._addConstant("invalid-target", "invalid-target", 4) prop._addConstant("missing-target", "missing-target", 2) prop._addConstant("unformed", "unformed", 0) meta.props.add("state", prop) prop = PropMeta("str", "stateQual", "stateQual", 104, PropCategory.REGULAR) prop.label = "State Qualifier" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "none" prop._addConstant("default-target", "default-target", 2) prop._addConstant("mismatch-target", "mismatch-target", 1) prop._addConstant("none", "none", 0) meta.props.add("stateQual", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "tCl", "tCl", 17599, PropCategory.REGULAR) prop.label = "Target-class" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 1416 prop.defaultValueStr = "ospfCtxPol" prop._addConstant("ospfCtxPol", None, 1416) prop._addConstant("unspecified", "unspecified", 0) meta.props.add("tCl", prop) prop = PropMeta("str", "tContextDn", "tContextDn", 4990, PropCategory.REGULAR) prop.label = "Target-context" prop.isImplicit = True prop.isAdmin = True meta.props.add("tContextDn", prop) prop = PropMeta("str", "tDn", "tDn", 100, PropCategory.REGULAR) prop.label = "Target-dn" prop.isImplicit = True prop.isAdmin = True meta.props.add("tDn", prop) prop = PropMeta("str", "tRn", "tRn", 4989, PropCategory.REGULAR) prop.label = "Target-rn" prop.isImplicit = True prop.isAdmin = True prop.range = [(0, 512)] meta.props.add("tRn", prop) prop = PropMeta("str", "tType", "tType", 4988, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "name" prop._addConstant("all", "all", 2) prop._addConstant("mo", "mo", 1) prop._addConstant("name", "name", 0) meta.props.add("tType", prop) prop = PropMeta("str", "tnOspfCtxPolName", "tnOspfCtxPolName", 17598, PropCategory.REGULAR) prop.label = "Name" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True prop.range = [(1, 64)] prop.regex = ['[a-zA-Z0-9_.:-]+'] meta.props.add("tnOspfCtxPolName", prop) prop = PropMeta("str", "uid", "uid", 8, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True meta.props.add("uid", prop) meta.namingProps.append(getattr(meta.props, "tnOspfCtxPolName")) getattr(meta.props, "tnOspfCtxPolName").needDelimiter = True meta.namingProps.append(getattr(meta.props, "af")) # Deployment Meta meta.deploymentQuery = True meta.deploymentType = "Ancestor" meta.deploymentQueryPaths.append(DeploymentPathMeta("CtxToNwIf", "Private Network to Interface", "cobra.model.nw.If")) def __init__(self, parentMoOrDn, tnOspfCtxPolName, af, markDirty=True, **creationProps): namingVals = [tnOspfCtxPolName, af] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps) # End of package file # ##################################################
[ "collinsctk@qytang.com" ]
collinsctk@qytang.com
4a1e70fcd7ac0a62ae24699996d64e72c9bd7d03
831a17de24e216623def3ae5ad1e2acca4a5e1ce
/Python/flask/lib/python2.7/UserDict.py
6912a244d42e9f6917d343da257a53754d157fca
[]
no_license
Keuha/ios-pics-flask-server
3eee9caaed1921c02aa61cfdb0c338200d1590cf
3f4cb51c59ced33fac42cb96222a8fd8e46edb2d
refs/heads/master
2021-06-02T15:35:44.135609
2020-04-06T15:28:38
2020-04-06T15:28:38
35,171,792
6
2
null
null
null
null
UTF-8
Python
false
false
99
py
/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py
[ "petriz_f@epitech.eu" ]
petriz_f@epitech.eu
8a19d1a7e5dc4a7a6f059bc0cf46b9727d7169c4
c0285320e0abf238e6d67c2fe4cb3495a6227a40
/Bot.py
1ab5a38832c1ba9f4a14d6b334e1a79044ab787a
[]
no_license
mharvy/RedditBot
edfb02df7ef857326e3636620c5e48266972e8b4
53b9dd51d0e31ea679888ed3ff5cf0cb2a9cbd1c
refs/heads/master
2021-07-10T02:47:45.497888
2017-10-11T01:16:30
2017-10-11T01:16:30
105,603,243
0
0
null
null
null
null
UTF-8
Python
false
false
333
py
import praw reddit = praw.Reddit('bot1') subreddit = reddit.subreddit("testingground4bots") for submission in subreddit.new(limit=10): print("Title: " + submission.title) print("Score: " + str(submission.score)) print("Upvotes/Downvotes: " + str(submission.ups) + "/" + str(submission.downs) + "\n\n")
[ "noreply@github.com" ]
mharvy.noreply@github.com
3705d6628ca7f9c0175c12c5e79138b0bc3be4c0
1eee2c9c105148904d0fb47cee227cfd20241b76
/alpha/alpha_beats_28.py
5bfdccc7f1e53b5628dc5209c82fea3bfca59b63
[]
no_license
fred-hz/zeta
be9f6f466b75767cc1a45a4004d1c84e5d559b6b
e7b631447fff6e58928d6ac15702338b7cc8e3e7
refs/heads/master
2021-09-05T01:03:31.387379
2018-01-23T04:15:58
2018-01-23T04:15:58
118,187,345
0
0
null
null
null
null
UTF-8
Python
false
false
1,281
py
from alpha.alpha_base import AlphaBase import numpy as np import util class AlphaBeats_28(AlphaBase): def initialize(self): self.delay = int(self.params['delay']) self.is_valid = self.context.is_valid self.alpha = self.context.alpha self.cps = self.context.fetch_data('adj_close') self.low = self.context.fetch_data('adj_low') def compute_day(self, di): indicator = np.zeros(len(self.context.ii_list)) indicator.flat = np.nan for ii in range(len(self.context.ii_list)): if self.is_valid[di][ii]: if np.where(-np.isnan(self.low[di - self.delay - np.arange(20), ii]))[0].size == 0: continue indicator[ii] = np.nanargmin(self.low[di-self.delay-np.arange(20), ii]) util.rank(indicator) for ii in range(len(self.context.ii_list)): if self.is_valid[di][ii]: temp = np.nanmean(self.cps[di-self.delay-np.arange(5), ii]) if abs(temp) > 1e-5: self.alpha[ii] = (temp - self.cps[di-self.delay][ii]) / temp * (indicator - 0.5) def dependencies(self): self.register_dependency('adj_close') self.register_dependency('adj_low')
[ "zibo_zhao@berkeley.edu" ]
zibo_zhao@berkeley.edu
668871e10073d954c41583cabaa257be2781c805
971ba1a95d7d7a675bcf386aec9c3000efd6d0bc
/homework_big/topYear.py
2c40b47b7dfea352924bf80736eeef86626b082e
[]
no_license
wangli-wangli/python
57108c8cf107a23168e4b539d2adf0a0e625bb5f
e99abed20efc73ec9a182be611eca92e2b562567
refs/heads/master
2020-03-26T23:27:55.125608
2019-06-29T04:51:39
2019-06-29T04:51:39
145,544,071
0
0
null
null
null
null
UTF-8
Python
false
false
1,517
py
#coding=utf-8 import pandas as pd import matplotlib.pyplot as plt import pylab as pl #用于修改x轴坐标 def topYearOuput(): plt.rcParams['font.sans-serif'] = ['SimHei'] # 用来正常显示中文标签 plt.rcParams['axes.unicode_minus'] = False # 用来正常显示负号 plt.style.use('ggplot') #默认绘图风格很难看,替换为好看的ggplot风格 fig = plt.figure(figsize=(8,5)) #设置图片大小 colors1 = '#6D6D6D' #设置图表title、text标注的颜色 columns = ['index', 'thumb', 'name', 'star', 'time', 'area', 'score'] #设置表头 df = pd.read_csv('maoyan_top100.csv',encoding = "utf-8",header = None,names =columns,index_col = 'index') #打开表格 print( df['time']) # 从日期中提取年份 df['year'] = df['time'].map(lambda x:x.split('-')[0]) print(df['year']) # print(df.info()) # print(df.head()) # 统计各年上映的电影数量 grouped_year = df.groupby('year') grouped_year_amount = grouped_year.year.count() top_year = grouped_year_amount.sort_values(ascending = False) # 绘图 top_year.plot(kind = 'bar',color = 'orangered') #颜色设置为橙红色 for x,y in enumerate(list(top_year.values)): plt.text(x,y+0.1,'%s' %round(y,1),ha = 'center',color = colors1) plt.title('电影数量年份排名',color = colors1) plt.xlabel('年份(年)') plt.ylabel('数量(部)') plt.tight_layout() # plt.savefig('电影数量年份排名.png') plt.show()
[ "33982322+wangli-wangli@users.noreply.github.com" ]
33982322+wangli-wangli@users.noreply.github.com
5f042357ce4755b0b73969f346665bf0304b6569
7d8a4d58fc4c5a73ce8c85e513253a86d6290d3b
/script.module.eggscrapers/lib/eggscrapers/modules/workers.py
0699f6d316130d4fa9ee280485fcae4f73959dcd
[]
no_license
bopopescu/icon
cda26d4463d264b7e2080da51f29d84cc48dfb81
e385a6225dd11b7fea5a11215d655cf5006bb018
refs/heads/master
2022-01-12T19:00:04.951604
2019-07-10T05:35:44
2019-07-10T05:35:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
946
py
# -*- coding: utf-8 -*- ''' Eggman Add-on This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. ''' import threading class Thread(threading.Thread): def __init__(self, target, *args): self._target = target self._args = args threading.Thread.__init__(self) def run(self): self._target(*self._args)
[ "kodi15887@gmail.com" ]
kodi15887@gmail.com
3da80f7326faeac9625bf3619359881719b070c3
4c1c53d260beb352459a09662871add028891de5
/setup.py
eec464bbe6b2d1bc3a9eb97e75030001fed8cdb1
[]
no_license
mdsaifkhan20001/flask1
a9aa44d09fe0e82c1a046b726d82fc5810b39042
f503977c97ca82992fa32bf0aaf321c895bdd7a3
refs/heads/main
2023-09-06T02:50:26.315887
2021-11-25T04:44:44
2021-11-25T04:44:44
431,716,128
0
0
null
null
null
null
UTF-8
Python
false
false
206
py
from setuptools import setup, find_packages setup( name="docker-heroku", version="0.0.3", description="ML project", author="Avnish yadav", packages=find_packages(), license="MIT" )
[ "mdsaifkhan20001@gmail.com" ]
mdsaifkhan20001@gmail.com
58d7ed4dd0ded6467ec1dc3a95004a54f9d2042d
fdc9d4d29b7f5b198b83f1f05cf799f23b668dcc
/manage.py
937861a1f1d7cb1b5264481823b34194acfae760
[]
no_license
BlackBanjo/PACS
ebcc8964b0ca76575b9470ecb23ed59efd73fa8f
2eff35b42242f2a02ed75cfc990ab6aaf442e1f2
refs/heads/master
2020-06-24T18:50:21.839138
2019-09-17T09:41:16
2019-09-17T09:41:16
199,051,814
0
0
null
null
null
null
UTF-8
Python
false
false
624
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'PACS.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's installed and " "available on your PYTHONPATH environment variable? Did you " "forget to activate a virtual environment?" ) from exc execute_from_command_line(sys.argv) if __name__ == '__main__': main()
[ "ziga.kotnik.klovar@gmail.com" ]
ziga.kotnik.klovar@gmail.com
d90a2fdc68e9306668edf110c88036b68980aaaf
09fcbd9e9c4caf247f238c22d09aff0a38ac52a0
/code/utils/functions.py
719d3ba52ebdab62a84468124f817305ba2cca6f
[ "BSD-3-Clause" ]
permissive
Program-Bear/WalkingNetwork
ee92b61a7458033f5bbe396db1c8a4f1e1a7b0cf
b19ab91ba85e08992bf6afa865655deeaa19c509
refs/heads/master
2021-09-09T13:31:11.585208
2018-01-03T12:13:09
2018-01-03T12:13:09
125,521,601
0
3
null
null
null
null
UTF-8
Python
false
false
2,350
py
import torch from torch.nn.functional import softmax from torch.autograd import Variable def sample_gumbel(shape, eps=1e-10): """ Sample from Gumbel(0, 1) based on https://github.com/ericjang/gumbel-softmax/blob/3c8584924603869e90ca74ac20a6a03d99a91ef9/Categorical%20VAE.ipynb , (MIT license) """ U = torch.rand(shape).float() return - torch.log(eps - torch.log(U + eps)) def gumbel_softmax_sample(logits, tau=1, eps=1e-10): """ Draw a sample from the Gumbel-Softmax distribution based on https://github.com/ericjang/gumbel-softmax/blob/3c8584924603869e90ca74ac20a6a03d99a91ef9/Categorical%20VAE.ipynb (MIT license) """ gumbel_noise = sample_gumbel(logits.size(), eps=eps) y = logits.cpu() + Variable(gumbel_noise) return softmax(y / tau) def gumbel_softmax(logits, tau=1, hard=False, eps=1e-10): """ Sample from the Gumbel-Softmax distribution and optionally discretize. Args: logits: [batch_size, n_class] unnormalized log-probs tau: non-negative scalar temperature hard: if True, take argmax, but differentiate w.r.t. soft sample y Returns: [batch_size, n_class] sample from the Gumbel-Softmax distribution. If hard=True, then the returned sample will be one-hot, otherwise it will be a probability distribution that sums to 1 across classes Constraints: - this implementation only works on batch_size x num_features tensor for now based on https://github.com/ericjang/gumbel-softmax/blob/3c8584924603869e90ca74ac20a6a03d99a91ef9/Categorical%20VAE.ipynb , (MIT license) """ shape = logits.size() assert len(shape) == 2 y_soft = gumbel_softmax_sample(logits, tau=tau, eps=eps) if hard: _, k = y_soft.data.max(-1) # this bit is based on # https://discuss.pytorch.org/t/stop-gradients-for-st-gumbel-softmax/530/5 y_hard = torch.FloatTensor(*shape).zero_().scatter_(-1, k.view(-1, 1), 1.0) # this cool bit of code achieves two things: # - makes the output value exactly one-hot (since we add then # subtract y_soft value) # - makes the gradient equal to y_soft gradient (since we strip # all other gradients) y = Variable(y_hard - y_soft.data) + y_soft else: y = y_soft return y.cuda()
[ "prokilchu@gmail.com" ]
prokilchu@gmail.com
9500aa334d1daba13d7d173c5f462b375f143dd5
d063684dd03293eb0f980568af088d26ab087dbe
/debadmin/migrations/0075_auto_20191108_1225.py
dd5f3b44bf87cdc1a4bd8999b7965e71e5bee1f2
[]
no_license
abhaysantra/debscientific
ce88e5ef44da8d6771c3652ed0ad02900ccd8ed2
88ec65616fd24052bbdbba8b00beba85493f5aea
refs/heads/master
2020-11-26T22:09:33.820247
2019-12-20T07:58:43
2019-12-20T07:58:43
229,213,810
0
0
null
null
null
null
UTF-8
Python
false
false
1,072
py
# Generated by Django 2.2.6 on 2019-11-08 06:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('debadmin', '0074_auto_20191107_1914'), ] operations = [ migrations.AddField( model_name='order_details', name='cancel_date', field=models.DateField(null=True), ), migrations.AddField( model_name='order_details', name='cancel_reason', field=models.TextField(null=True), ), migrations.AddField( model_name='order_details', name='deliver_date', field=models.DateField(null=True), ), migrations.AddField( model_name='order_details', name='return_date', field=models.DateField(null=True), ), migrations.AddField( model_name='order_details', name='return_reason', field=models.TextField(null=True), ), ]
[ "abhay.santra@gmail.com" ]
abhay.santra@gmail.com
3aa97b853fd98ddf44122b5bcd60123d34d92249
162e0e4791188bd44f6ce5225ff3b1f0b1aa0b0d
/mrex/neighbors/tests/test_nca.py
aae03f4cc2ab2f30e92c437813adba3fbbd1ac11
[]
no_license
testsleeekGithub/trex
2af21fa95f9372f153dbe91941a93937480f4e2f
9d27a9b44d814ede3996a37365d63814214260ae
refs/heads/master
2020-08-01T11:47:43.926750
2019-11-06T06:47:19
2019-11-06T06:47:19
210,987,245
1
0
null
null
null
null
UTF-8
Python
false
false
20,758
py
# coding: utf-8 """ Testing for Neighborhood Component Analysis module (mrex.neighbors.nca) """ # Authors: William de Vazelhes <wdevazelhes@gmail.com> # John Chiotellis <ioannis.chiotellis@in.tum.de> # License: BSD 3 clause import pytest import re import numpy as np from numpy.testing import assert_array_equal, assert_array_almost_equal from scipy.optimize import check_grad from mrex import clone from mrex.exceptions import ConvergenceWarning from mrex.utils import check_random_state from mrex.utils.testing import (assert_raises, assert_raise_message, assert_warns_message) from mrex.datasets import load_iris, make_classification, make_blobs from mrex.neighbors.nca import NeighborhoodComponentsAnalysis from mrex.metrics import pairwise_distances rng = check_random_state(0) # load and shuffle iris dataset iris = load_iris() perm = rng.permutation(iris.target.size) iris_data = iris.data[perm] iris_target = iris.target[perm] EPS = np.finfo(float).eps def test_simple_example(): """Test on a simple example. Puts four points in the input space where the opposite labels points are next to each other. After transform the samples from the same class should be next to each other. """ X = np.array([[0, 0], [0, 1], [2, 0], [2, 1]]) y = np.array([1, 0, 1, 0]) nca = NeighborhoodComponentsAnalysis(n_components=2, init='identity', random_state=42) nca.fit(X, y) X_t = nca.transform(X) assert_array_equal(pairwise_distances(X_t).argsort()[:, 1], np.array([2, 3, 0, 1])) def test_toy_example_collapse_points(): """Test on a toy example of three points that should collapse We build a simple example: two points from the same class and a point from a different class in the middle of them. On this simple example, the new (transformed) points should all collapse into one single point. Indeed, the objective is 2/(1 + exp(d/2)), with d the euclidean distance between the two samples from the same class. This is maximized for d=0 (because d>=0), with an objective equal to 1 (loss=-1.). """ rng = np.random.RandomState(42) input_dim = 5 two_points = rng.randn(2, input_dim) X = np.vstack([two_points, two_points.mean(axis=0)[np.newaxis, :]]) y = [0, 0, 1] class LossStorer: def __init__(self, X, y): self.loss = np.inf # initialize the loss to very high # Initialize a fake NCA and variables needed to compute the loss: self.fake_nca = NeighborhoodComponentsAnalysis() self.fake_nca.n_iter_ = np.inf self.X, y, _ = self.fake_nca._validate_params(X, y) self.same_class_mask = y[:, np.newaxis] == y[np.newaxis, :] def callback(self, transformation, n_iter): """Stores the last value of the loss function""" self.loss, _ = self.fake_nca._loss_grad_lbfgs(transformation, self.X, self.same_class_mask, -1.0) loss_storer = LossStorer(X, y) nca = NeighborhoodComponentsAnalysis(random_state=42, callback=loss_storer.callback) X_t = nca.fit_transform(X, y) print(X_t) # test that points are collapsed into one point assert_array_almost_equal(X_t - X_t[0], 0.) assert abs(loss_storer.loss + 1) < 1e-10 def test_finite_differences(): """Test gradient of loss function Assert that the gradient is almost equal to its finite differences approximation. """ # Initialize the transformation `M`, as well as `X` and `y` and `NCA` rng = np.random.RandomState(42) X, y = make_classification() M = rng.randn(rng.randint(1, X.shape[1] + 1), X.shape[1]) nca = NeighborhoodComponentsAnalysis() nca.n_iter_ = 0 mask = y[:, np.newaxis] == y[np.newaxis, :] def fun(M): return nca._loss_grad_lbfgs(M, X, mask)[0] def grad(M): return nca._loss_grad_lbfgs(M, X, mask)[1] # compute relative error rel_diff = check_grad(fun, grad, M.ravel()) / np.linalg.norm(grad(M)) np.testing.assert_almost_equal(rel_diff, 0., decimal=5) def test_params_validation(): # Test that invalid parameters raise value error X = np.arange(12).reshape(4, 3) y = [1, 1, 2, 2] NCA = NeighborhoodComponentsAnalysis rng = np.random.RandomState(42) # TypeError assert_raises(TypeError, NCA(max_iter='21').fit, X, y) assert_raises(TypeError, NCA(verbose='true').fit, X, y) assert_raises(TypeError, NCA(tol='1').fit, X, y) assert_raises(TypeError, NCA(n_components='invalid').fit, X, y) assert_raises(TypeError, NCA(warm_start=1).fit, X, y) # ValueError assert_raise_message(ValueError, "`init` must be 'auto', 'pca', 'lda', 'identity', " "'random' or a numpy array of shape " "(n_components, n_features).", NCA(init=1).fit, X, y) assert_raise_message(ValueError, '`max_iter`= -1, must be >= 1.', NCA(max_iter=-1).fit, X, y) init = rng.rand(5, 3) assert_raise_message(ValueError, 'The output dimensionality ({}) of the given linear ' 'transformation `init` cannot be greater than its ' 'input dimensionality ({}).' .format(init.shape[0], init.shape[1]), NCA(init=init).fit, X, y) n_components = 10 assert_raise_message(ValueError, 'The preferred dimensionality of the ' 'projected space `n_components` ({}) cannot ' 'be greater than the given data ' 'dimensionality ({})!' .format(n_components, X.shape[1]), NCA(n_components=n_components).fit, X, y) def test_transformation_dimensions(): X = np.arange(12).reshape(4, 3) y = [1, 1, 2, 2] # Fail if transformation input dimension does not match inputs dimensions transformation = np.array([[1, 2], [3, 4]]) assert_raises(ValueError, NeighborhoodComponentsAnalysis(init=transformation).fit, X, y) # Fail if transformation output dimension is larger than # transformation input dimension transformation = np.array([[1, 2], [3, 4], [5, 6]]) # len(transformation) > len(transformation[0]) assert_raises(ValueError, NeighborhoodComponentsAnalysis(init=transformation).fit, X, y) # Pass otherwise transformation = np.arange(9).reshape(3, 3) NeighborhoodComponentsAnalysis(init=transformation).fit(X, y) def test_n_components(): rng = np.random.RandomState(42) X = np.arange(12).reshape(4, 3) y = [1, 1, 2, 2] init = rng.rand(X.shape[1] - 1, 3) # n_components = X.shape[1] != transformation.shape[0] n_components = X.shape[1] nca = NeighborhoodComponentsAnalysis(init=init, n_components=n_components) assert_raise_message(ValueError, 'The preferred dimensionality of the ' 'projected space `n_components` ({}) does not match ' 'the output dimensionality of the given ' 'linear transformation `init` ({})!' .format(n_components, init.shape[0]), nca.fit, X, y) # n_components > X.shape[1] n_components = X.shape[1] + 2 nca = NeighborhoodComponentsAnalysis(init=init, n_components=n_components) assert_raise_message(ValueError, 'The preferred dimensionality of the ' 'projected space `n_components` ({}) cannot ' 'be greater than the given data ' 'dimensionality ({})!' .format(n_components, X.shape[1]), nca.fit, X, y) # n_components < X.shape[1] nca = NeighborhoodComponentsAnalysis(n_components=2, init='identity') nca.fit(X, y) def test_init_transformation(): rng = np.random.RandomState(42) X, y = make_blobs(n_samples=30, centers=6, n_features=5, random_state=0) # Start learning from scratch nca = NeighborhoodComponentsAnalysis(init='identity') nca.fit(X, y) # Initialize with random nca_random = NeighborhoodComponentsAnalysis(init='random') nca_random.fit(X, y) # Initialize with auto nca_auto = NeighborhoodComponentsAnalysis(init='auto') nca_auto.fit(X, y) # Initialize with PCA nca_pca = NeighborhoodComponentsAnalysis(init='pca') nca_pca.fit(X, y) # Initialize with LDA nca_lda = NeighborhoodComponentsAnalysis(init='lda') nca_lda.fit(X, y) init = rng.rand(X.shape[1], X.shape[1]) nca = NeighborhoodComponentsAnalysis(init=init) nca.fit(X, y) # init.shape[1] must match X.shape[1] init = rng.rand(X.shape[1], X.shape[1] + 1) nca = NeighborhoodComponentsAnalysis(init=init) assert_raise_message(ValueError, 'The input dimensionality ({}) of the given ' 'linear transformation `init` must match the ' 'dimensionality of the given inputs `X` ({}).' .format(init.shape[1], X.shape[1]), nca.fit, X, y) # init.shape[0] must be <= init.shape[1] init = rng.rand(X.shape[1] + 1, X.shape[1]) nca = NeighborhoodComponentsAnalysis(init=init) assert_raise_message(ValueError, 'The output dimensionality ({}) of the given ' 'linear transformation `init` cannot be ' 'greater than its input dimensionality ({}).' .format(init.shape[0], init.shape[1]), nca.fit, X, y) # init.shape[0] must match n_components init = rng.rand(X.shape[1], X.shape[1]) n_components = X.shape[1] - 2 nca = NeighborhoodComponentsAnalysis(init=init, n_components=n_components) assert_raise_message(ValueError, 'The preferred dimensionality of the ' 'projected space `n_components` ({}) does not match ' 'the output dimensionality of the given ' 'linear transformation `init` ({})!' .format(n_components, init.shape[0]), nca.fit, X, y) @pytest.mark.parametrize('n_samples', [3, 5, 7, 11]) @pytest.mark.parametrize('n_features', [3, 5, 7, 11]) @pytest.mark.parametrize('n_classes', [5, 7, 11]) @pytest.mark.parametrize('n_components', [3, 5, 7, 11]) def test_auto_init(n_samples, n_features, n_classes, n_components): # Test that auto choose the init as expected with every configuration # of order of n_samples, n_features, n_classes and n_components. rng = np.random.RandomState(42) nca_base = NeighborhoodComponentsAnalysis(init='auto', n_components=n_components, max_iter=1, random_state=rng) if n_classes >= n_samples: pass # n_classes > n_samples is impossible, and n_classes == n_samples # throws an error from lda but is an absurd case else: X = rng.randn(n_samples, n_features) y = np.tile(range(n_classes), n_samples // n_classes + 1)[:n_samples] if n_components > n_features: # this would return a ValueError, which is already tested in # test_params_validation pass else: nca = clone(nca_base) nca.fit(X, y) if n_components <= min(n_classes - 1, n_features): nca_other = clone(nca_base).set_params(init='lda') elif n_components < min(n_features, n_samples): nca_other = clone(nca_base).set_params(init='pca') else: nca_other = clone(nca_base).set_params(init='identity') nca_other.fit(X, y) assert_array_almost_equal(nca.components_, nca_other.components_) def test_warm_start_validation(): X, y = make_classification(n_samples=30, n_features=5, n_classes=4, n_redundant=0, n_informative=5, random_state=0) nca = NeighborhoodComponentsAnalysis(warm_start=True, max_iter=5) nca.fit(X, y) X_less_features, y = make_classification(n_samples=30, n_features=4, n_classes=4, n_redundant=0, n_informative=4, random_state=0) assert_raise_message(ValueError, 'The new inputs dimensionality ({}) does not ' 'match the input dimensionality of the ' 'previously learned transformation ({}).' .format(X_less_features.shape[1], nca.components_.shape[1]), nca.fit, X_less_features, y) def test_warm_start_effectiveness(): # A 1-iteration second fit on same data should give almost same result # with warm starting, and quite different result without warm starting. nca_warm = NeighborhoodComponentsAnalysis(warm_start=True, random_state=0) nca_warm.fit(iris_data, iris_target) transformation_warm = nca_warm.components_ nca_warm.max_iter = 1 nca_warm.fit(iris_data, iris_target) transformation_warm_plus_one = nca_warm.components_ nca_cold = NeighborhoodComponentsAnalysis(warm_start=False, random_state=0) nca_cold.fit(iris_data, iris_target) transformation_cold = nca_cold.components_ nca_cold.max_iter = 1 nca_cold.fit(iris_data, iris_target) transformation_cold_plus_one = nca_cold.components_ diff_warm = np.sum(np.abs(transformation_warm_plus_one - transformation_warm)) diff_cold = np.sum(np.abs(transformation_cold_plus_one - transformation_cold)) assert diff_warm < 3.0, ("Transformer changed significantly after one " "iteration even though it was warm-started.") assert diff_cold > diff_warm, ("Cold-started transformer changed less " "significantly than warm-started " "transformer after one iteration.") @pytest.mark.parametrize('init_name', ['pca', 'lda', 'identity', 'random', 'precomputed']) def test_verbose(init_name, capsys): # assert there is proper output when verbose = 1, for every initialization # except auto because auto will call one of the others rng = np.random.RandomState(42) X, y = make_blobs(n_samples=30, centers=6, n_features=5, random_state=0) regexp_init = r'... done in \ *\d+\.\d{2}s' msgs = {'pca': "Finding principal components" + regexp_init, 'lda': "Finding most discriminative components" + regexp_init} if init_name == 'precomputed': init = rng.randn(X.shape[1], X.shape[1]) else: init = init_name nca = NeighborhoodComponentsAnalysis(verbose=1, init=init) nca.fit(X, y) out, _ = capsys.readouterr() # check output lines = re.split('\n+', out) # if pca or lda init, an additional line is printed, so we test # it and remove it to test the rest equally among initializations if init_name in ['pca', 'lda']: assert re.match(msgs[init_name], lines[0]) lines = lines[1:] assert lines[0] == '[NeighborhoodComponentsAnalysis]' header = '{:>10} {:>20} {:>10}'.format('Iteration', 'Objective Value', 'Time(s)') assert lines[1] == '[NeighborhoodComponentsAnalysis] {}'.format(header) assert lines[2] == ('[NeighborhoodComponentsAnalysis] {}' .format('-' * len(header))) for line in lines[3:-2]: # The following regex will match for instance: # '[NeighborhoodComponentsAnalysis] 0 6.988936e+01 0.01' assert re.match(r'\[NeighborhoodComponentsAnalysis\] *\d+ *\d\.\d{6}e' r'[+|-]\d+\ *\d+\.\d{2}', line) assert re.match(r'\[NeighborhoodComponentsAnalysis\] Training took\ *' r'\d+\.\d{2}s\.', lines[-2]) assert lines[-1] == '' def test_no_verbose(capsys): # assert by default there is no output (verbose=0) nca = NeighborhoodComponentsAnalysis() nca.fit(iris_data, iris_target) out, _ = capsys.readouterr() # check output assert(out == '') def test_singleton_class(): X = iris_data y = iris_target # one singleton class singleton_class = 1 ind_singleton, = np.where(y == singleton_class) y[ind_singleton] = 2 y[ind_singleton[0]] = singleton_class nca = NeighborhoodComponentsAnalysis(max_iter=30) nca.fit(X, y) # One non-singleton class ind_1, = np.where(y == 1) ind_2, = np.where(y == 2) y[ind_1] = 0 y[ind_1[0]] = 1 y[ind_2] = 0 y[ind_2[0]] = 2 nca = NeighborhoodComponentsAnalysis(max_iter=30) nca.fit(X, y) # Only singleton classes ind_0, = np.where(y == 0) ind_1, = np.where(y == 1) ind_2, = np.where(y == 2) X = X[[ind_0[0], ind_1[0], ind_2[0]]] y = y[[ind_0[0], ind_1[0], ind_2[0]]] nca = NeighborhoodComponentsAnalysis(init='identity', max_iter=30) nca.fit(X, y) assert_array_equal(X, nca.transform(X)) def test_one_class(): X = iris_data[iris_target == 0] y = iris_target[iris_target == 0] nca = NeighborhoodComponentsAnalysis(max_iter=30, n_components=X.shape[1], init='identity') nca.fit(X, y) assert_array_equal(X, nca.transform(X)) def test_callback(capsys): X = iris_data y = iris_target nca = NeighborhoodComponentsAnalysis(callback='my_cb') assert_raises(ValueError, nca.fit, X, y) max_iter = 10 def my_cb(transformation, n_iter): assert transformation.shape == (iris_data.shape[1]**2,) rem_iter = max_iter - n_iter print('{} iterations remaining...'.format(rem_iter)) # assert that my_cb is called nca = NeighborhoodComponentsAnalysis(max_iter=max_iter, callback=my_cb, verbose=1) nca.fit(iris_data, iris_target) out, _ = capsys.readouterr() # check output assert('{} iterations remaining...'.format(max_iter - 1) in out) def test_expected_transformation_shape(): """Test that the transformation has the expected shape.""" X = iris_data y = iris_target class TransformationStorer: def __init__(self, X, y): # Initialize a fake NCA and variables needed to call the loss # function: self.fake_nca = NeighborhoodComponentsAnalysis() self.fake_nca.n_iter_ = np.inf self.X, y, _ = self.fake_nca._validate_params(X, y) self.same_class_mask = y[:, np.newaxis] == y[np.newaxis, :] def callback(self, transformation, n_iter): """Stores the last value of the transformation taken as input by the optimizer""" self.transformation = transformation transformation_storer = TransformationStorer(X, y) cb = transformation_storer.callback nca = NeighborhoodComponentsAnalysis(max_iter=5, callback=cb) nca.fit(X, y) assert transformation_storer.transformation.size == X.shape[1]**2 def test_convergence_warning(): nca = NeighborhoodComponentsAnalysis(max_iter=2, verbose=1) cls_name = nca.__class__.__name__ assert_warns_message(ConvergenceWarning, '[{}] NCA did not converge'.format(cls_name), nca.fit, iris_data, iris_target) @pytest.mark.parametrize('param, value', [('n_components', np.int32(3)), ('max_iter', np.int32(100)), ('tol', np.float32(0.0001))]) def test_parameters_valid_types(param, value): # check that no error is raised when parameters have numpy integer or # floating types. nca = NeighborhoodComponentsAnalysis(**{param: value}) X = iris_data y = iris_target nca.fit(X, y)
[ "shkolanovaya@gmail.com" ]
shkolanovaya@gmail.com
8f06edb067427872d40d29ef97e33cffafcc5c31
56b36ddf920b5f43e922cb84e8f420f1ad91a889
/Leetcode/Leetcode-Minimum Area Rectangle.py
bac5a430a77fc7b720b63b147c68a99ab884d1bd
[]
no_license
chithien0909/Competitive-Programming
9ede2072e85d696ccf143118b17638bef9fdc07c
1262024a99b34547a3556c54427b86b243594e3c
refs/heads/master
2022-07-23T16:47:16.566430
2020-05-12T08:44:30
2020-05-12T08:44:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
687
py
from collections import defaultdict class Solution: def minAreaRect(self, points) -> int: if len(points) <= 3: return 0 x= defaultdict(set) for xC, yC in points: x[xC].add(yC) m = float('inf') for p1 in points: for p2 in points: if p1[0] == p2[0] or p1[1] == p2[1]: continue else: if p2[1] in x[p1[0]] and p1[1] in x[p2[0]]: t = abs(p1[0] - p2[0]) * abs(p1[1]-p2[1]) m = min(t,m) return m if m < float('inf') else 0 s = Solution() print(s.minAreaRect([[1,1],[1,3],[3,1],[3,3],[4,1],[4,3]]))
[ "ntle1@pipeline.sbcc.edu" ]
ntle1@pipeline.sbcc.edu
7a5f37ad2f3ff8cf53a9b3b4ca81d5f74320aa45
649078315f93e2d76fad95c59f234701ef055cb8
/test/test_baseSubscriber.py
820a50160e7e984fa738df7e2c5d59094e7878bd
[ "MIT" ]
permissive
jaebradley/nba_player_news
207f4555f662c9187e9ab931774a0863556529f8
35ac64c369c33f1232fa76bd5bcc1c0704d868bb
refs/heads/master
2022-11-22T08:25:08.993567
2017-06-14T00:36:52
2017-06-14T00:36:52
89,762,719
2
0
MIT
2022-11-11T17:00:18
2017-04-29T04:06:01
Python
UTF-8
Python
false
false
353
py
from unittest import TestCase from nba_player_news.data.subscribers import BaseSubscriber class TestBaseSubscriber(TestCase): subscriber = BaseSubscriber(subscription_channel_name="foo") def expect_process_message_to_not_be_implemented(self): self.assertRaises(NotImplementedError, self.subscriber.process_message(message="bar"))
[ "jae.b.bradley@gmail.com" ]
jae.b.bradley@gmail.com
cd922e3fe434db3882b4bb6ff21e2f42305f9d3b
1f556263f6af920f3c145df1a9ba446c087c406b
/day4.py
47846abb208791ee3722000bedcd3531507c25eb
[]
no_license
jon3141/adventofcode2020
5abd9c9b90f6bd581ecd80c1d9c50d012c62ed23
243cec193c41603c851dbb749da155fd770b97c2
refs/heads/master
2023-02-03T20:06:39.985603
2020-12-24T20:41:36
2020-12-24T20:41:36
319,451,793
0
0
null
null
null
null
UTF-8
Python
false
false
1,923
py
with open('day4.txt') as f: passports = f.read().split('\n\n') fields = sorted(['byr', 'iyr', 'eyr', 'hgt', 'hcl', 'ecl','pid', 'cid']) optional_fields = sorted(['byr', 'iyr', 'eyr', 'hgt', 'hcl', 'ecl','pid']) def parse_passport(passp): p = {} passp = passp.replace('\n', ' ') parts = passp.split(' ') for p1 in parts: p[p1.split(':')[0]] = p1.split(':')[1] return p ps = [] for passp in passports: ps.append(parse_passport(passp)) correct_count = 0 def verify_passport(pas, verify_fields=False): any_not_in = True p = list(pas.keys()) for f in optional_fields: if f not in p: any_not_in = False break if any_not_in and verify_fields: valid = True if int(pas['byr']) < 1920 or int(pas['byr']) > 2002: valid = False if int(pas['iyr']) < 2010 or int(pas['iyr']) > 2020: valid = False if int(pas['eyr']) < 2020 or int(pas['eyr']) > 2030: valid = False if 'cm' in pas['hgt'] or 'in' in pas['hgt']: if 'cm' in pas['hgt']: if int(pas['hgt'][0:-2]) < 150 or int(pas['hgt'][0:-2]) > 193: valid = False elif 'in' in pas['hgt']: if int(pas['hgt'][0:-2]) < 59 or int(pas['hgt'][0:-2]) > 76: valid = False if 'cm' not in pas['hgt'] and 'in' not in pas['hgt']: valid = False valid_chars = '0123456789abcdef' def check_hcl(hcl): thcl = hcl[1:] for h in hcl: if h not in valid_chars: return False return True if '#' not in pas['hcl'] or len(pas['hcl']) != 7 or not check_hcl(pas['hcl']): valid = False valid_colors = ['amb', 'blu', 'brn', 'gry', 'grn', 'hzl', 'oth'] if pas['ecl'] not in valid_colors: valid = False if len(pas['pid']) != 9: valid = False try: int(pas['pid']) except: valid = False any_not_in = valid return any_not_in for p in ps: if verify_passport(p): correct_count += 1 print(correct_count) verified = 0 for p in ps: if verify_passport(p, verify_fields=True): verified += 1 print(verified)
[ "jonathan.hoyle@ruralsourcing.com" ]
jonathan.hoyle@ruralsourcing.com
bd05b2fff1cb696a69f0dd7de9605ba9e7ee8df3
1167211a8b0376fd58b8cf296b2507d8ec7727a2
/divide_and_conquer/sorting.py
511b36526a9cb4dd4fd5b857252afee52e0024d9
[]
no_license
Dina-Nashaat/Data-Structures-and-Algorithms-Nanodegree
ec554a05648e396a702e8af265b6e1f35b066f9c
fdbf5c462b19a4c06cd94f2b1388a0330f74912d
refs/heads/master
2020-08-03T10:02:07.021313
2019-12-14T21:35:51
2019-12-14T21:35:51
211,712,603
0
0
null
null
null
null
UTF-8
Python
false
false
1,821
py
# arr = [p...r] # GROUP L (less than pivot) : [p ... q-1] # GROUP G (greater than pivot): [q ... j - 1] # GROUP U (unknown): [ j ... r - 1] # GROUP P (pivot): [r] def partition(arr, p, r): q, j = p, p pivot = 0 while j < r: if arr[j] > pivot: j += 1 else: arr[j], arr[q] = arr[q], arr[j] j += 1 q += 1 arr[r], arr[q] = arr[q], arr[r] return q def _quicksort(arr, start, end): if start > end: return pivot_index = partition(arr, start, end) _quicksort(arr, start, pivot_index - 1) _quicksort(arr, pivot_index + 1, end) def quicksort(arr): return _quicksort(arr, 0, len(arr) - 1) def mergesort(arr): if len(arr) == 1: return arr mid = len(arr) // 2 left = mergesort(arr[:mid]) right = mergesort(arr[mid:]) return merge(left, right) def merge(left, right): left_index = 0 right_index = 0 merged = [] while left_index < len(left) and right_index < len(right): if left[left_index] < right[right_index]: merged.append(right[right_index]) right_index += 1 else: merged.append(left[left_index]) left_index += 1 merged += left[left_index:] merged += right[right_index:] return merged # arr1 = [8, 3, 1, 7, 0, 10, 2, 1] # quicksort(arr1) # print('quicksort', arr1) # arr2 = [8, 3, 1, 7, 0, 10, 2, 1] # print('mergesort', mergesort(arr2)) def partition0(arr, p, r): q, j = p, p pivot = 0 while j < r: if arr[j] <= pivot: j += 1 else: arr[j], arr[q] = arr[q], arr[j] j += 1 q += 1 arr[r], arr[q] = arr[q], arr[r] return q arr = [1, 2, 6,0, 3, 9, 0, 2, 1] partition0(arr, 0, len(arr) - 1) print(arr)
[ "dina.nashaat@gmail.com" ]
dina.nashaat@gmail.com
3474d649827048490b01c4bd6540d59d2e1c9c7c
aa51b1eb7d9cc0227b4206eae64c9ebcf0f58420
/bookstore/settings.py
b99ee80dc291fa2fe4212d97f8385b7d7e8125ff
[]
no_license
vishnudut/BookPark
3897ab8ad2a92648024113f153176bc28d11219d
78176ba66667d95e836130fd7c29d3e057077cbb
refs/heads/master
2021-06-17T21:19:08.017929
2017-04-28T13:24:40
2017-04-28T13:24:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,132
py
""" Django settings for bookstore project. Generated by 'django-admin startproject' using Django 1.9.6. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '9-z4rcca34$xv2wl$01o%xkj@kk*fw5cnhhp*49m#*=pjd3^r6' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'store', 'social.apps.django_app.default', 'registration', 'bootstrap3', 'bootstrap_themes', 'compressor', ] MIDDLEWARE_CLASSES = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] ROOT_URLCONF = 'bookstore.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'social.apps.django_app.context_processors.backends', 'social.apps.django_app.context_processors.login_redirect', 'django.template.context_processors.media', ], }, }, ] WSGI_APPLICATION = 'bookstore.wsgi.application' # Database # https://docs.djangoproject.com/en/1.9/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } AUTHENTICATION_BACKENDS = ( 'social.backends.facebook.FacebookOAuth2', 'django.contrib.auth.backends.ModelBackend', ) # Password validation # https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] # Internationalization # https://docs.djangoproject.com/en/1.9/topics/i18n/ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'Asia/Kolkata' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.9/howto/static-files/ STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR,'static/') COMPRESS_ENABLED = True STATICFILES_FINDERS = { 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'compressor.finders.CompressorFinder', } MEDIA_ROOT = os.path.join(BASE_DIR,'media/') MEDIA_URL = '/media/' #Registration ACCOUNT_ACTIVATION_DAYS = 7 REGISTRATION_AUTO_LOGIN = True LOGIN_REDIRECT_URL = '/store/' #Email Settings EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" EMAIL_HOST = "smtp.gmail.com" EMAIL_HOST_USER = "sarthaktester@gmail.com" EMAIL_HOST_PASSWORD = "ihavethedasta" EMAIL_PORT = 587 EMAIL_USE_TLS = True DEFAULT_FROM_EMAIL = "books@theattic.com" #Social Auth - Facebook SOCIAL_AUTH_FACEBOOK_KEY = '561711150674700' SOCIAL_AUTH_FACEBOOK_SECRET = '3fd80821317288c722fafd366cacbc56' LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatters': { 'basic': { 'format': '%(asctime)s %(name)-20s %(levelname)-8s %(module)s | %(message)s' }, }, 'handlers': { 'file': { 'level': 'DEBUG', 'class': 'logging.handlers.RotatingFileHandler', 'formatter': 'basic', 'maxBytes': 10000, 'backupCount': 10, 'filename': os.path.join(BASE_DIR, 'mystery_books.log'), }, }, 'loggers': { 'store': { 'handlers': ['file'], 'level': 'DEBUG', }, } }
[ "vvdut99@gmail.com" ]
vvdut99@gmail.com
793073e51592d4314f06fcc0fcbb400e1d8cd9dd
6872caaa6c3bb59995627064ed1ab63df403bdf6
/eyantra_provider/venv/Lib/site-packages/authlib/specs/rfc7523/auth.py
6d737c5ac49b7c82dd49f815df2b3a207dff03bc
[ "MIT" ]
permissive
Andreaf2395/OpenID-Provider
3189780631d9057140e233930ace72e9bfc76e58
cdedd42cc49e6f03e3b2570c03fb1f4a2c83be34
refs/heads/Sameeksha_Final_Provider
2023-08-21T16:05:42.864159
2020-06-18T18:47:16
2020-06-18T18:47:16
273,314,708
0
0
MIT
2020-06-18T18:48:34
2020-06-18T18:44:29
Python
UTF-8
Python
false
false
71
py
from authlib.oauth2.rfc7523 import register_session_client_auth_method
[ "sameekshabhatia6@gmail.com" ]
sameekshabhatia6@gmail.com
13f9cb4172792197995f94a7b5666bbf20479355
532ff624f00c64c7fd1d6c762ee9796b04a1d97f
/neighboor/models.py
a93b01cfd9ed02442941e885e88226aaf30403e7
[]
no_license
claudinemahoro/neighboorhood
bcb0dfd19ba55d3e1fe7a3482ccbd52bc87b9703
816ae312a86bd40b6fb8bece310cb7f063f44497
refs/heads/master
2023-02-21T14:10:06.702396
2021-02-01T22:33:13
2021-02-01T22:33:13
333,750,000
0
0
null
null
null
null
UTF-8
Python
false
false
2,205
py
from django.db import models from django.contrib.auth.models import User class NeighbourHood(models.Model): name = models.CharField(max_length =30) user = models.ForeignKey(User, on_delete=models.CASCADE, related_name="neighbor") location = models.CharField(max_length =30) cover = models.ImageField(upload_to='pic/') health_tell = models.IntegerField() police_number = models.IntegerField() def __str__(self): return self.name @classmethod def get_specific_hood(cls,id): hood = cls.objects.get(id=id) return hood def save_hood(self): self.save() def delete_hood(self): self.delete() class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE, related_name='profile') profile_picture = models.ImageField(upload_to='images/') bio = models.TextField(max_length=500) contact = models.CharField(max_length=200) def __str__(self): return self.bio def save_profile(self): self.save() def delete_profile(self): self.delete() class Post(models.Model): title = models.CharField(max_length=120, null=True) post = models.TextField() @classmethod def get_all_posts(cls): posts=cls.objects.all().prefetch_related('comment_set') return posts def save_post(self): self.save() def delete_post(self): self.delete() class Business(models.Model): name = models.CharField(max_length=120) email = models.EmailField(max_length=254) description = models.TextField(blank=True) # neighbourhood = models.ForeignKey(NeighbourHood, on_delete=models.CASCADE, related_name='business') # user = models.ForeignKey(Profile, on_delete=models.CASCADE, related_name='owner') @classmethod def get_specific_bus(cls,id): bus = cls.objects.get(id=id) return bus class Comment(models.Model): posted_by=models.ForeignKey(User, on_delete=models.CASCADE,null=True) comment_image=models.ForeignKey(Post,on_delete=models.CASCADE,null=True) comment=models.CharField(max_length=20,null=True) def __str__(self): return self.posted_by
[ "claudinemah3@gmail.com" ]
claudinemah3@gmail.com
7669bd88e1fa42984a432de347c4cb1d13ccb3c7
b4c7b5dfe6235d1072d8b7e8a4f347085647ffb6
/ex16.py
6953130fd17405669667cde54069023022d9d6ba
[]
no_license
tiennv90/learn-python
154a77679a9c9ec7a43784f8c6d6572d1dba3eaf
a3486d235df39b5912fd4fe5dec8cc519a20951c
refs/heads/master
2021-03-27T12:45:31.419549
2017-07-20T08:43:52
2017-07-20T08:43:52
97,209,425
0
0
null
null
null
null
UTF-8
Python
false
false
691
py
from sys import argv script, filename = argv print ("We're going to erase %r." % filename) print ("If you don't want that, hit Crtl-C") print ("If you do want that, hit RETURN") input ("?") print ("Opening the file ....") target = open(filename, 'w') print ("Truncating the file. Goodbye!") target.truncate() print ("Now I'm going to ask you for three lines") line1 = input("line 1:") line2 = input("line 2:") line3 = input("line 3:") print ("I'm going to write these to the file") target.write(line1) target.write("\n") target.write(line2) target.write("\n") target.write(line3) target.write("\n") print ("Finally we close the file") target.close()
[ "tiennv90@gmail.com" ]
tiennv90@gmail.com
1c2e6ef139921b3c9b71877febf1379448208ba0
4159244962c209fb5815945a5622335e13db1a88
/algorithmic-toolbox/week4_divide_and_conquer/1_binary_search/binary_search.py
71d1fc115a178760e1fd83461b94286d72fd2bba
[ "MIT" ]
permissive
hsgrewal/algorithms
19be02ee4fa427dbf6f091507d21f3d8529fdacc
b7532cc14221490128bb6aa12b06d20656855b8d
refs/heads/main
2023-04-22T04:16:35.639385
2021-05-07T03:33:31
2021-05-07T03:33:31
354,602,945
0
0
null
null
null
null
UTF-8
Python
false
false
762
py
# Uses python3 import sys def binary_search(a, x): left, right = 0, len(a) - 1 while left <= right: mid = (left + right) // 2 if a[mid] == x: return mid elif a[mid] < x: left = mid + 1 elif a[mid] > x: right = mid - 1 return -1 def linear_search(a, x): for i in range(len(a)): if a[i] == x: return i return -1 if __name__ == '__main__': input = sys.stdin.read() data = list(map(int, input.split())) n = data[0] m = data[n + 1] a = data[1 : n + 1] for x in data[n + 2:]: # replace with the call to binary_search when implemented #print(linear_search(a, x), end = ' ') print(binary_search(a, x), end=' ')
[ "harkishangrewal@gmail.com" ]
harkishangrewal@gmail.com
07985a4f579fa355a9a7fce78a2516fbf7521d8c
9b367d3f0930a4dfd5f097273a12265fbb706b31
/textProjectByAli/manage.py
6fa59a0390d5eea0b49bb3e98b00ee2c3a0a568b
[]
no_license
AliHassanUOS/Remove-Punctuation-Project
a4988f07c685d5e385a279bd67c8c12df4af5c4d
652cd09668b3ce61904333feb3a624b1b2c1ed42
refs/heads/master
2022-12-18T05:29:52.972379
2020-09-21T08:00:13
2020-09-21T08:00:13
297,268,640
0
0
null
null
null
null
UTF-8
Python
false
false
636
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'textProjectByAli.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's installed and " "available on your PYTHONPATH environment variable? Did you " "forget to activate a virtual environment?" ) from exc execute_from_command_line(sys.argv) if __name__ == '__main__': main()
[ "alihasanuos@gmail.com" ]
alihasanuos@gmail.com
2ecf72dd92e31c21cc0628b8f129c0fac3815492
111ed7326dc8fdd585d6d1dcd50f8cdb5e6fdbdf
/test/acled_parser.py
daa9cc192712955be29c3524dfbd74caca629bb4
[]
no_license
danielosen/DataScience
9be9d86ec118b6ac5fc97c71bd5bda0282834dec
5e13eafeef5941b3c9c7ecbc562da99df860eb70
refs/heads/master
2020-05-23T10:13:53.210439
2017-03-28T19:32:30
2017-03-28T19:32:30
80,406,663
1
1
null
null
null
null
UTF-8
Python
false
false
633
py
import panda_io import numpy as np import matplotlib.pyplot as plt def get_fatality_class(fatality): '''given a number of fatalities, return the defined class membership''' if fatality < 1: #no fatalities return 0 elif fatality < 12: #if no values, report mentions, many, several, etc. return 1 elif fatality < 100:#if no values, report mentions dozens return 2 else: #if no values, report mentions hundreds return 3 data = panda_io.csvreader('data_realtime.csv', column_list_of_names = ['YEAR','FATALITIES']) x = [n in range(2001,2018)] z = data['FATALITIES'].groupby(data['YEAR']) plt.plot(x,z,'+') plt.show()
[ "danieleo@student.matnat.uio.no" ]
danieleo@student.matnat.uio.no
0bc4c31363bfacfdbf73ded9bcb584ea11c6b0ee
d41f309dc17a86cba6008b866bb2b1a7b56ddd24
/train_mask_detector.py
2004e00bcad8b5e9e5b3d80c78471883f767b2ab
[]
no_license
hisowo/Face_Mask_Detector
c569e6a00334ebe0540aa5c67e72d796f3e43d3a
643add9567ca1e04f57c2685e08fb87b509b5861
refs/heads/master
2022-11-29T12:19:11.192512
2020-07-30T14:25:13
2020-07-30T14:25:13
283,796,405
0
0
null
null
null
null
UTF-8
Python
false
false
5,465
py
# USAGE # python train_mask_detector.py --dataset dataset # import the necessary packages from tensorflow.keras.preprocessing.image import ImageDataGenerator from tensorflow.keras.applications import MobileNetV2 from tensorflow.keras.layers import AveragePooling2D from tensorflow.keras.layers import Dropout from tensorflow.keras.layers import Flatten from tensorflow.keras.layers import Dense from tensorflow.keras.layers import Input from tensorflow.keras.models import Model from tensorflow.keras.optimizers import Adam from tensorflow.keras.applications.mobilenet_v2 import preprocess_input from tensorflow.keras.preprocessing.image import img_to_array from tensorflow.keras.preprocessing.image import load_img from tensorflow.keras.utils import to_categorical from sklearn.preprocessing import LabelBinarizer from sklearn.model_selection import train_test_split from sklearn.metrics import classification_report from imutils import paths import matplotlib.pyplot as plt import numpy as np import argparse import os # construct the argument parser and parse the arguments ap = argparse.ArgumentParser() ap.add_argument("-d", "--dataset", required=True, help="path to input dataset") ap.add_argument("-p", "--plot", type=str, default="plot.png", help="path to output loss/accuracy plot") ap.add_argument("-m", "--model", type=str, default="mask_detector.model", help="path to output face mask detector model") args = vars(ap.parse_args()) # initialize the initial learning rate, number of epochs to train for, # and batch size INIT_LR = 1e-4 EPOCHS = 20 BS = 32 # grab the list of images in our dataset directory, then initialize # the list of data (i.e., images) and class images print("[INFO] loading images...") imagePaths = list(paths.list_images(args["dataset"])) print("imagePaths : {}".format(imagePaths)) data = [] labels = [] # loop over the image paths for imagePath in imagePaths: # extract the class label from the filename label = imagePath.split(os.path.sep)[-2] # load the input image (224x224) and preprocess it image = load_img(imagePath, target_size=(224, 224)) image = img_to_array(image) image = preprocess_input(image) # update the data and labels lists, respectively data.append(image) labels.append(label) # convert the data and labels to NumPy arrays data = np.array(data, dtype="float32") labels = np.array(labels) # perform one-hot encoding on the labels lb = LabelBinarizer() labels = lb.fit_transform(labels) labels = to_categorical(labels) # partition the data into training and testing splits using 80% of # the data for training and the remaining 20% for testing (trainX, testX, trainY, testY) = train_test_split(data, labels, test_size=0.20, stratify=labels, random_state=42) # construct the training image generator for data augmentation aug = ImageDataGenerator( rotation_range=20, zoom_range=0.15, width_shift_range=0.2, height_shift_range=0.2, shear_range=0.15, horizontal_flip=True, fill_mode="nearest") # load the MobileNetV2 network, ensuring the head FC layer sets are # left off baseModel = MobileNetV2(weights="imagenet", include_top=False, input_tensor=Input(shape=(224, 224, 3))) # construct the head of the model that will be placed on top of the # the base model headModel = baseModel.output headModel = AveragePooling2D(pool_size=(7, 7))(headModel) headModel = Flatten(name="flatten")(headModel) headModel = Dense(128, activation="relu")(headModel) headModel = Dropout(0.5)(headModel) headModel = Dense(2, activation="softmax")(headModel) # place the head FC model on top of the base model (this will become # the actual model we will train) model = Model(inputs=baseModel.input, outputs=headModel) # loop over all layers in the base model and freeze them so they will # *not* be updated during the first training process for layer in baseModel.layers: layer.trainable = False ################# model.summary() ################# # compile our model print("[INFO] compiling model...") opt = Adam(lr=INIT_LR, decay=INIT_LR / EPOCHS) model.compile(loss="binary_crossentropy", optimizer=opt, metrics=["accuracy"]) # train the head of the network print("[INFO] training head...") H = model.fit( aug.flow(trainX, trainY, batch_size=BS), steps_per_epoch=len(trainX) // BS, validation_data=(testX, testY), validation_steps=len(testX) // BS, epochs=EPOCHS) # make predictions on the testing set print("[INFO] evaluating network...") predIdxs = model.predict(testX, batch_size=BS) # for each image in the testing set we need to find the index of the # label with corresponding largest predicted probability predIdxs = np.argmax(predIdxs, axis=1) # show a nicely formatted classification report print(classification_report(testY.argmax(axis=1), predIdxs, target_names=lb.classes_)) # serialize the model to disk print("[INFO] saving mask detector model...") model.save(args["model"], save_format="h5") # plot the training loss and accuracy N = EPOCHS plt.style.use("ggplot") plt.figure() plt.plot(np.arange(0, N), H.history["loss"], label="train_loss") plt.plot(np.arange(0, N), H.history["val_loss"], label="val_loss") plt.plot(np.arange(0, N), H.history["accuracy"], label="train_acc") plt.plot(np.arange(0, N), H.history["val_accuracy"], label="val_acc") plt.title("Training Loss and Accuracy") plt.xlabel("Epoch #") plt.ylabel("Loss/Accuracy") plt.legend(loc="lower left") plt.savefig(args["plot"]) # 실행 명령어 # python train_mask_detector.py --dataset dataset
[ "hisowo@gmail.com" ]
hisowo@gmail.com
6dc378479902b6b4f79b6b6bc980e9850cd58384
97eac22b5be14650892de9f7d92310f6313d37e7
/xchk_mysql_content/apps.py
e45da61b9330b15ae9fabf08401935f3e5bdcfca
[]
no_license
v-nys/xchk-mysql-content
8f0394d9afde0fbc85d90e09e11782e38cf53ddf
628f899ceed6d8228d3bc65de28106ea90fbd694
refs/heads/master
2022-12-08T17:38:11.686855
2020-09-05T13:51:41
2020-09-05T13:51:41
286,280,221
0
0
null
null
null
null
UTF-8
Python
false
false
105
py
from django.apps import AppConfig class MySQLcontentConfig(AppConfig): name = 'xchk_mysql_content'
[ "vincentnys@gmail.com" ]
vincentnys@gmail.com
46dfde8b2041244d6ae133d01572576d6944bc71
98f7bb1314330138f0cb9901e764f6da8cd5605b
/5_python基础/3_字典.py
15720e3b4ac0d7bcd22295c0e97684183fa0bb02
[]
no_license
1071183139/biji
c964e197ea0845dbfdd98213743130668770f929
02c2e6f69ceb557448b959c44723b4bf498e90c9
refs/heads/master
2022-12-17T06:46:27.920479
2019-10-26T12:02:54
2019-10-26T12:02:54
217,701,979
0
0
null
2022-12-07T23:55:02
2019-10-26T11:57:28
Python
UTF-8
Python
false
false
2,053
py
# 根据键访问值 info = {'name': '班长', 'id': 100, 'sex': 'f', 'address': '地球亚洲中国北京'} # print(info['name']) # print(info['names']) # 键不存在会报错 # get 获取 设置默认值 不存在不会报错 # print(info.get('id')) # print(info.get('ids','没有这个键')) # 常见的操作 (修改,增减,删除) # 修改元素 # new_id=input('请输入元素') # info['id']=new_id # print(info1) # 增加元素 第二个例子 # 如果访问的键存在,就是修改值 # info['id']=18 # print(info) # 如果访问的键不存在,就是增加元素。 # info['id']=18 # print(info) # 删除元素(del clear) # del info[] 或者 del info 删除整个字典 # del info['name'] print(info) # del info['pp'] # 键不存在会报错 # print(info) # del info #一种是del加空格,另一种是del() # print(info) # 删除字典后,字典就不存在。 # clear 清除字典 字典还是存在的,只不过是空字典。 # info.clear() # print(info) # {} # 常见的操作2 (len ,keys ,values,items,has_key) # len 测量字典中,键值对的个数 # print(len(info)) # keys 返回一个包含字典所有KEY的列表 # print(info.keys()) # values 返回一个包含字典中所有值的列表 # print(info.values()) # items 返回一个包含所有(键,值)元祖的列表 # print(info.items()) #[('name', '班长'), ('id', 100), ('sex', 'f'), ('address', '地球亚洲中国北京')] # in, not in 判断键是否在字典中 # print('name' in info) # 遍历 for item in info.items(): print(item) for key,value in info.items(): print(key,value) # print(type(key,value)) # 带下标的索引 chars = ['a', 'b', 'c', 'd','f'] chars1=('a','c','v','d','h') # i = 0 # for chr in chars: # print("%d %s"%(i, chr)) # i += 1 # enumerate # 枚举 列表和元祖都可以。 for i,chr in enumerate(chars1): print('%d %s'%(i,chr)) a=(1,2,3,4) b=('a','b','c','d') c=a+b print(a+b)
[ "1071183139@qq.com" ]
1071183139@qq.com
fa14b434145cd963ca27a6eef951a8dff89d13d1
62bbfb6c50bba16304202aea96d1de4990f95e04
/dependencies/pulumi_aws/secretsmanager/secret_policy.py
81618991d5edb3f606dbf67e2ea3567c4dac6497
[]
no_license
adriell/lambda-autoservico-storagegateway
b40b8717c8de076e61bbd422461c7d624a0d2273
f6e3dea61b004b73943a5438c658d3f019f106f7
refs/heads/main
2023-03-16T14:41:16.821675
2021-03-11T03:30:33
2021-03-11T03:30:33
345,865,704
0
1
null
null
null
null
UTF-8
Python
false
false
5,885
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables __all__ = ['SecretPolicy'] class SecretPolicy(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, block_public_policy: Optional[pulumi.Input[bool]] = None, policy: Optional[pulumi.Input[str]] = None, secret_arn: Optional[pulumi.Input[str]] = None, __props__=None, __name__=None, __opts__=None): """ Provides a resource to manage AWS Secrets Manager secret policy. ## Example Usage ### Basic ```python import pulumi import pulumi_aws as aws example_secret = aws.secretsmanager.Secret("exampleSecret") example_secret_policy = aws.secretsmanager.SecretPolicy("exampleSecretPolicy", secret_arn=example_secret.arn, policy=\"\"\"{ "Version": "2012-10-17", "Statement": [ { "Sid": "EnableAllPermissions", "Effect": "Allow", "Principal": { "AWS": "*" }, "Action": "secretsmanager:GetSecretValue", "Resource": "*" } ] } \"\"\") ``` ## Import `aws_secretsmanager_secret_policy` can be imported by using the secret Amazon Resource Name (ARN), e.g. ```sh $ pulumi import aws:secretsmanager/secretPolicy:SecretPolicy example arn:aws:secretsmanager:us-east-1:123456789012:secret:example-123456 ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[bool] block_public_policy: Makes an optional API call to Zelkova to validate the Resource Policy to prevent broad access to your secret. :param pulumi.Input[str] secret_arn: Secret ARN. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() __props__['block_public_policy'] = block_public_policy if policy is None and not opts.urn: raise TypeError("Missing required property 'policy'") __props__['policy'] = policy if secret_arn is None and not opts.urn: raise TypeError("Missing required property 'secret_arn'") __props__['secret_arn'] = secret_arn super(SecretPolicy, __self__).__init__( 'aws:secretsmanager/secretPolicy:SecretPolicy', resource_name, __props__, opts) @staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, block_public_policy: Optional[pulumi.Input[bool]] = None, policy: Optional[pulumi.Input[str]] = None, secret_arn: Optional[pulumi.Input[str]] = None) -> 'SecretPolicy': """ Get an existing SecretPolicy resource's state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[bool] block_public_policy: Makes an optional API call to Zelkova to validate the Resource Policy to prevent broad access to your secret. :param pulumi.Input[str] secret_arn: Secret ARN. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = dict() __props__["block_public_policy"] = block_public_policy __props__["policy"] = policy __props__["secret_arn"] = secret_arn return SecretPolicy(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter(name="blockPublicPolicy") def block_public_policy(self) -> pulumi.Output[Optional[bool]]: """ Makes an optional API call to Zelkova to validate the Resource Policy to prevent broad access to your secret. """ return pulumi.get(self, "block_public_policy") @property @pulumi.getter def policy(self) -> pulumi.Output[str]: return pulumi.get(self, "policy") @property @pulumi.getter(name="secretArn") def secret_arn(self) -> pulumi.Output[str]: """ Secret ARN. """ return pulumi.get(self, "secret_arn") def translate_output_property(self, prop): return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop def translate_input_property(self, prop): return _tables.SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop
[ "adriel@infoway-pi.com.br" ]
adriel@infoway-pi.com.br
f12371f5db7c714ad232526003737361ec84e362
3ddcd31237fb1d2530868bbd841c8b1d8d013c00
/qc_rel.py
26b5a1fbb80c7633f59794a35bea96cb1ed8f139
[]
no_license
jtnedoctor/picopili
42ca85c04ac1f92d14bd226ea2b287439d8a9223
8f64f7d81f4720fc10cd4def00ca3f20d8c6b2c6
refs/heads/master
2023-06-01T19:22:47.171993
2021-05-17T21:53:23
2021-05-17T21:53:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
15
py
./bin/qc_rel.py
[ "rwalters@broadinstitute.org" ]
rwalters@broadinstitute.org
553f3d89c11483b36ae1a20c082db45382ae9e15
3b786d3854e830a4b46ee55851ca186becbfa650
/SystemTesting/pylib/nsx/vsm/edge/edge_sslvpnconfig_schema/edge_sslvpnconfig_layout_configuration_schema.py
68a4bace81fb3982ea88b3dfde93326a01c98ec6
[]
no_license
Cloudxtreme/MyProject
d81f8d38684333c22084b88141b712c78b140777
5b55817c050b637e2747084290f6206d2e622938
refs/heads/master
2021-05-31T10:26:42.951835
2015-12-10T09:57:04
2015-12-10T09:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
885
py
import base_schema class SSLVPNConfigLayoutConfigurationSchema(base_schema.BaseSchema): _schema_name = "layoutConfiguration" def __init__(self, py_dict=None): """ Constructor to create SSLVPNConfigLayoutConfigurationSchema object @param py_dict : python dictionary to construct this object """ super(SSLVPNConfigLayoutConfigurationSchema, self).__init__() self.set_data_type('xml') self.portalTitle = None self.companyName = None self.logoExtention = None self.logoUri = None self.logoBackgroundColor = None self.titleColor = None self.topFrameColor = None self.menuBarColor = None self.rowAlternativeColor = None self.bodyColor = None self.rowColor = None if py_dict is not None: self.get_object_from_py_dict(py_dict)
[ "bpei@vmware.com" ]
bpei@vmware.com
c47ab8e7d986152e8f436c75f1e649796e2231bb
054bc8696bdd429e2b3ba706feb72c0fb604047f
/python/utils/CheckInRange/CheckInRange.py
b984a85c12b190cb26df2a3aebfbf2bf794a9fde
[]
no_license
wavefancy/WallaceBroad
076ea9257cec8a3e1c8f53151ccfc7c5c0d7200f
fbd00e6f60e54140ed5b4e470a8bdd5edeffae21
refs/heads/master
2022-02-22T04:56:49.943595
2022-02-05T12:15:23
2022-02-05T12:15:23
116,978,485
2
3
null
null
null
null
UTF-8
Python
false
false
2,555
py
#!/usr/bin/env python3 """ Keep/Remove records in range. @Author: wavefancy@gmail.com Usage: CheckInRange.py -r file -c int [-e] CheckInRange.py -h | --help | -v | --version | -f | --format Notes: 1. Read content from stdin, and output result to stdout. 2. Column index start from 1. Options: -c int Column index for value. -r file Range file, two columns, range_start range_end. -e Exclude(Remove) records in defined range, default Include(Keep). -f --format Show example. -h --help Show this screen. -v --version Show version. """ import sys from docopt import docopt from signal import signal, SIGPIPE, SIG_DFL signal(SIGPIPE,SIG_DFL) # pip install pyinterval # https://pyinterval.readthedocs.io/en/latest/install.html try: from interval import interval except: sys.stderr.write('ERROR for import package "interval"!\nPlease install by "pip install pyinterval"!\n') sys.exit(-1) def ShowFormat(): print(''' # input #----------------- 100 10 1000000 20 5000000 20 7000000 3 10000000 30 #range file: #----------------- 1000000 5000000 # cat in.txt | python3 CheckInRange.py -r range.txt -c 1 #----------------- 1000000 20 5000000 20 cat in.txt | python3 CheckInRange.py -r range.txt -c 1 -e #----------------- 100 10 7000000 3 10000000 30 ''') if __name__ == '__main__': args = docopt(__doc__, version='3.0') #print(args) if(args['--format']): ShowFormat() sys.exit(-1) # colValue = int(args['-c']) -1 keep = True if args['-e']: keep = False irange = interval() with open(args['-r'],'r') as inf: for line in inf: line = line.strip() if line: ss = line.split() irange = irange | interval[float(ss[0]), float(ss[1])] #------------------------------------------------- for line in sys.stdin: line = line.strip() if line: ss = line.split() try: v = int(ss[colValue]) if keep: if v in irange: sys.stdout.write('%s\n'%(line)) else: if not (v in irange): sys.stdout.write('%s\n'%(line)) except ValueError: sys.stderr.write('WARN: parse value error(skiped): %s\n'%(line)) sys.stdout.flush() sys.stdout.close() sys.stderr.flush() sys.stderr.close()
[ "wavefancy@gmail.com" ]
wavefancy@gmail.com
3a199d4f50f97feee7246f2b129a3ee7e36209fe
7d9661d3b63397e8b75c331643c06ae775b69e17
/profiles/admin.py
ac5de1bc7adcca06465131f6a39a433bdd54f030
[]
no_license
LittleBlue418/Author-Site
b32b758ef4160acb1dd42d333e42e1fbf57db52c
273ff9b8470b1414e9b1598333b265a075624c04
refs/heads/master
2022-12-22T07:11:45.980493
2020-09-30T20:44:21
2020-09-30T20:44:21
291,706,669
0
1
null
null
null
null
UTF-8
Python
false
false
946
py
from django.contrib import admin from .models import UserProfile class UserProfileAdmin(admin.ModelAdmin): list_display = ( 'user', 'default_street_address1', 'default_postcode', 'default_country', ) list_display_links = ( 'user', 'default_street_address1', 'default_postcode', 'default_country', ) search_fields = ( 'user', 'default_street_address1', 'default_postcode', 'default_country', ) fieldsets = ( (None, { 'fields': ('user', 'default_phone_number') }), ('Default Address', { 'fields': ('default_street_address1', 'default_street_address2', 'default_town_or_city', 'default_county', 'default_postcode', 'default_country', ) }) ) list_per_page = 25 admin.site.register(UserProfile, UserProfileAdmin)
[ "hollyathomas88@gmail.com" ]
hollyathomas88@gmail.com
607be8af08490cdeb3c8bebdd88c48c0eb7029a9
d1ad7bfeb3f9e3724f91458277284f7d0fbe4b2d
/react/003-react-django-justdjango/backend/env/lib/python3.6/operator.py
fd9d9c6e64c46a252a453b8f263544655f85d35c
[]
no_license
qu4ku/tutorials
01d2d5a3e8740477d896476d02497d729a833a2b
ced479c5f81c8aff0c4c89d2a572227824445a38
refs/heads/master
2023-03-10T20:21:50.590017
2023-03-04T21:57:08
2023-03-04T21:57:08
94,262,493
0
0
null
2023-01-04T21:37:16
2017-06-13T22:07:54
PHP
UTF-8
Python
false
false
58
py
/Users/kamilwroniewicz/anaconda3/lib/python3.6/operator.py
[ "qu4ku@hotmail.com" ]
qu4ku@hotmail.com
00275cfd208c42a93aefef26df347846f07fa4ab
8fca3d8d8ef0af168a05dca7440ca74b42fce8d7
/build/explo_bot/catkin_generated/pkg.develspace.context.pc.py
ba302fb6724cf2027c70ad708fd7e27d13767bc7
[]
no_license
CarSanoja/Localization_Project
f938959821dc18dd31e3c5f4188eb35ce7ea1414
e41877e9b0799310fd4b7cef5cedd6fde3c50507
refs/heads/master
2020-03-23T21:03:45.043435
2018-07-27T04:42:15
2018-07-27T04:42:15
142,079,018
0
0
null
null
null
null
UTF-8
Python
false
false
392
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "explo_bot" PROJECT_SPACE_DIR = "/home/robond/Documents/Localization_Project/devel" PROJECT_VERSION = "0.0.0"
[ "wuopcarlos@gmail.com" ]
wuopcarlos@gmail.com
82a535bcf1ac49a0530f8b1435d3329a2280a09b
118124f2e903dab8a425c6d99e7ac8fa6f559aa4
/devel/py-repoze.xmliter/files/patch-setup.py
ccbbb76a7d9156aabc0ee41314c870b7f15170f0
[]
no_license
mneumann/DPorts
30b3abfdf58b63698bc66c8614073e3366b5fd71
d511cdf563ed8133ea75670bfa6e3e895495fefd
refs/heads/master
2020-12-26T00:46:41.527700
2015-01-27T14:54:22
2015-01-27T14:54:22
28,131,197
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
--- setup.py.orig 2014-09-21 15:40:44 UTC +++ setup.py @@ -43,7 +43,7 @@ setup(name='repoze.xmliter', author_email="repoze-dev@lists.repoze.org", url="http://www.repoze.org", license="BSD-derived (http://www.repoze.org/LICENSE.txt)", - packages=find_packages(), + packages = ['repoze', 'repoze.xmliter'], include_package_data=True, namespace_packages=['repoze'], zip_safe=False,
[ "nobody@home.ok" ]
nobody@home.ok
11860b27e7f8233dd8e6e478a19f8677f0a2e6b7
b7364101527fa3d234ac42e35eeab1d2986bc19f
/dict_client.py
30e9f1b60d4ddce5b59c210b5f8594f837a76c05
[]
no_license
Mrhechunlin/-
579fd82c4ae73a179aa5b4b719eb0fdf554966c8
ab70859daeccaa4780920f5ff1afb4fa836f47a5
refs/heads/master
2020-03-30T04:19:57.549112
2018-09-28T12:46:38
2018-09-28T12:46:38
150,735,637
0
0
null
null
null
null
UTF-8
Python
false
false
3,664
py
# -*- coding: utf-8 -*- #!/usr/bin/ python3 ''' 电子词典客户端 项目名称:电子词典 相关技术:Mysql等 作者:何春林 QQ:243205112 邮箱:243205112@qq.com 日期:2018-09-28 ''' from socket import * import sys import getpass #创建网络连接 def main(): if len(sys.argv)<3: print("argv is error") return HOST=sys.argv[1] PORT=int(sys.argv[2]) s=socket() try: s.connect((HOST,PORT)) except Exception as e: print(e) return while True: print(''' ==========Welcome=========== -- 1.注册 2.登录  3.退出-- ============================ ''') try: cmd=int(input("请输入选项:")) except Exception as e: print("命令错误") continue if cmd not in [1,2,3]: print("请输入正确选项") sys.stdin.flush() continue elif cmd==1: r=do_zhuce(s) if r==0: print("注册成功") elif r==1: print("用户存在") else: print("注册失败") elif cmd==2: name=do_login(s) if name: print("登录成功") login(s,name) else: print("用户名和密码不正确") elif cmd==3: s.send(b"E") sys.exit("谢谢使用") def do_zhuce(s): while 1: name=input("user:") passwd=getpass.getpass("passwd:") passwd1=getpass.getpass("again:") if (" "in name) or (" "in passwd): print("用户名和密码不能有空格") continue if passwd != passwd1: print("两次密码不一致") continue msg="R {} {}".format(name,passwd) s.send(msg.encode()) data=s.recv(1024).decode() if data =="OK": return 0 elif data=="NO": return 1 else: return 2 def do_login(s): name=input("user:") passwd=getpass.getpass("passwd:") msg="L {} {}".format(name,passwd) s.send(msg.encode()) data=s.recv(128).decode() if data=="OK": return name else: return def login(s,name): while 1: print(''' ========查询界面================ 1. 查词  2.历史记录 3.退出 =============================== ''') try: cmd=int(input("请输入选项:")) except Exception as e: print("命令错误") continue if cmd not in [1,2,3]: print("请输入正确选项") sys.stdin.flush() continue elif cmd==1: do_query(s,name) elif cmd==2: do_hist(s,name) elif cmd==3: return def do_query(s,name): while True: word=input("输入单词:") if word=="##": break msg="Q {} {}".format(name,word) s.send(msg.encode()) date=s.recv(128).decode() if date=="OK": date=s.recv(2048).decode() print(date) else: print("没有查到该单词") def do_hist(s,name): msg="H {}".format(name) s.send(msg.encode()) date=s.recv(128).decode() if date=="OK": while True: date=s.recv(1024).decode() if date=="##": break print(date) else: print("没有历史记录") if __name__ == '__main__': main()
[ "243205112@qq.com" ]
243205112@qq.com
024d663ec6247259c4849e881e211d74a27a846a
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/Generators/PowhegControl/examples/processes/MC15.101010.PowhegPythia8EvtGen_A14NNPDF23_VBF_W_example.py
0eed1637cfa4f4c7d9a0b3470d317a5272088e7b
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
1,095
py
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration #-------------------------------------------------------------- # EVGEN configuration #-------------------------------------------------------------- evgenConfig.description = "POWHEG+Pythia8 VBF W production with A14 NNPDF2.3 tune." evgenConfig.keywords = ["SM", "VBF", "W"] evgenConfig.contact = ["james.robinson@cern.ch"] # -------------------------------------------------------------- # Load ATLAS defaults for the Powheg VBF_W process # -------------------------------------------------------------- include("PowhegControl/PowhegControl_VBF_W_Common.py") # -------------------------------------------------------------- # Generate events # -------------------------------------------------------------- PowhegConfig.generate() #-------------------------------------------------------------- # Pythia8 showering with the A14 NNPDF2.3 tune #-------------------------------------------------------------- include("MC15JobOptions/Pythia8_A14_NNPDF23LO_EvtGen_Common.py") include("MC15JobOptions/Pythia8_Powheg.py")
[ "rushioda@lxplus754.cern.ch" ]
rushioda@lxplus754.cern.ch
3bd8a7286c2d157071564f7720f1716d41f3eea0
de6695f11f51d74945781cb0a8b3501ec43fdcb3
/post/post/items.py
9915037f3e7bde85ad4f0ebb232fbe27d1d66420
[]
no_license
somnusx/scrapy_project
325437b9f4cae58d219f65a09e8f262e2a45a451
b04f8f40470af6022e21083c3f78e3f812c55328
refs/heads/master
2021-01-12T15:00:26.571783
2016-11-27T10:27:03
2016-11-27T10:27:03
69,781,067
0
0
null
null
null
null
UTF-8
Python
false
false
283
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class PostItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() pass
[ "1459853598@qq.com" ]
1459853598@qq.com
7d77907d67969dbeb7a841f56e36294174ac81b0
2e2cb71a102c144427f3a3d4c3f2717472e1a2ac
/SPD.py
6257cf5234470ceb1b82217a8de233f0b56533d4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
pdhung3012/RegGNN
740af76d90740c38f6be502ed6f9495b6d59a4a8
a383562121d205f7bb86751242882b7e815eee3f
refs/heads/main
2023-07-08T13:43:41.903844
2021-08-16T07:55:31
2021-08-16T07:55:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,128
py
''' Tools for computing topological features in Riemannian space. Code taken from https://morphomatics.github.io/, created by Felix Ambellan and Martin Hanik and Christoph von Tycowicz, 2021. ''' import numpy as np import numpy.random as rnd import numpy.linalg as la from scipy.linalg import logm, expm_frechet from pymanopt.manifolds.manifold import Manifold from pymanopt.tools.multi import multisym class SPD(Manifold): """Returns the product manifold Sym+(d)^k, i.e., a product of k dxd symmetric positive matrices (SPD). manifold = SPD(k, d) Elements of Sym+(d)^k are represented as arrays of size kxdxd where every dxd slice is an SPD matrix, i.e., a symmetric matrix S with positive eigenvalues. The Riemannian metric used is the product Log-Euclidean metric that is induced by the standard Euclidean trace metric; see Arsigny, V., Fillard, P., Pennec, X., and Ayache., N. Fast and simple computations on tensors with Log-Euclidean metrics. """ def __init__(self, k=1, d=3): if d <= 0: raise RuntimeError("d must be an integer no less than 1.") if k == 1: self._name = 'Manifold of symmetric positive definite {d} x {d} matrices'.format(d=d, k=k) elif k > 1: self._name = 'Manifold of {k} symmetric positive definite {d} x {d} matrices (Sym^+({d}))^{k}'.format(d=d, k=k) else: raise RuntimeError("k must be an integer no less than 1.") self._k = k self._d = d def __str__(self): return self._name @property def dim(self): return int((self._d*(self._d+1)/2) * self._k) @property def typicaldist(self): # typical affine invariant distance return np.sqrt(self._k * 6) def inner(self, S, X, Y): """product metric""" return np.sum(np.einsum('...ij,...ij', X, Y)) def norm(self, S, X): """norm from product metric""" return np.sqrt(self.inner(S, X, X)) def proj(self, X, H): """orthogonal (with respect to the Euclidean inner product) projection of ambient vector ((k,3,3) array) onto the tangent space at X""" return dlog(X, multisym(H)) def egrad2rgrad(self,X,D): # should be adj_dexp instead of dexp (however, dexp appears to be self-adjoint for symmetric matrices) return dexp(log_mat(X), multisym(D)) def ehess2rhess(self, X, Hess): # TODO return def exp(self, S, X): """Riemannian exponential with base point S evaluated at X""" assert S.shape == X.shape # (avoid additional exp/log) Y = X + log_mat(S) vals, vecs = la.eigh(Y) return np.einsum('...ij,...j,...kj', vecs, np.exp(vals), vecs) retr = exp def log(self, S, U): """Riemannian logarithm with base point S evaluated at U""" assert S.shape == U.shape # (avoid additional log/exp) return log_mat(U) - log_mat(S) def geopoint(self, S, T, t): """ Evaluate the geodesic from S to T at time t in [0, 1]""" assert S.shape == T.shape and np.isscalar(t) return self.exp(S, t * self.log(S, T)) def rand(self): S = np.random.random((self._k, self._d, self._d)) return np.einsum('...ij,...kj', S, S) def randvec(self, X): Y = self.rand() y = self.log(X, Y) return y / self.norm(X, y) def zerovec(self, X): return np.zeros((self._k, self._d, self._d)) def transp(self, S, T, X): """Parallel transport for Sym+(d)^k. :param S: element of Symp+(d)^k :param T: element of Symp+(d)^k :param X: tangent vector at S :return: parallel transport of X to the tangent space at T """ assert S.shape == T.shape == X.shape # if X were not in algebra but at tangent space at S #return dexp(log_mat(T), dlog(S, X)) return X def eleminner(self, R, X, Y): """element-wise inner product""" return np.einsum('...ij,...ij', X, Y) def elemnorm(self, R, X): """element-wise norm""" return np.sqrt(self.eleminner(R, X, X)) def projToGeodesic(self, X, Y, P, max_iter=10): ''' :arg X, Y: elements of Symp+(d)^k defining geodesic X->Y. :arg P: element of Symp+(d)^k to be projected to X->Y. :returns: projection of P to X->Y ''' assert X.shape == Y.shape assert Y.shape == P.shape # all tagent vectors in common space i.e. algebra v = self.log(X, Y) v /= self.norm(X, v) w = self.log(X, P) d = self.inner(X, v, w) return self.exp(X, d * v) def pairmean(self, S, T): assert S.shape == T.shape return self.exp(S, 0.5 * self.log(S, T)) def dist(self, S, T): """Distance function in Sym+(d)^k""" return self.norm(S, self.log(S,T)) def adjJacobi(self, S, T, t, X): """Evaluates an adjoint Jacobi field along the geodesic gam from S to T :param S: element of the space of differential coordinates :param T: element of the space of differential coordinates :param t: scalar in [0,1] :param X: tangent vector at gam(t) :return: tangent vector at X """ assert S.shape == T.shape == X.shape and np.isscalar(t) U = self.geopoint(S, T, t) return (1 - t) * self.transp(U, S, X) def adjDxgeo(self, S, T, t, X): """Evaluates the adjoint of the differential of the geodesic gamma from S to T w.r.t the starting point S at X, i.e, the adjoint of d_S gamma(t; ., T) applied to X, which is en element of the tangent space at gamma(t). """ assert S.shape == T.shape == X.shape and np.isscalar(t) return self.adjJacobi(S, T, t, X) def adjDygeo(self, S, T, t, X): """Evaluates the adjoint of the differential of the geodesic gamma from S to T w.r.t the endpoint T at X, i.e, the adjoint of d_T gamma(t; S, .) applied to X, which is en element of the tangent space at gamma(t). """ assert S.shape == T.shape == X.shape and np.isscalar(t) return self.adjJacobi(T, S, 1 - t, X) def log_mat(U): """Matrix logarithm, only use for normal matrices U, i.e., U * U^T = U^T * U""" vals, vecs = la.eigh(U) vals = np.log(np.where(vals > 1e-10, vals, 1)) return np.real(np.einsum('...ij,...j,...kj', vecs, vals, vecs)) def dexp(X, G): """Evaluate the derivative of the matrix exponential at X in direction G. """ return np.array([expm_frechet(X[i],G[i])[1] for i in range(X.shape[0])]) def dlog(X, G): """Evaluate the derivative of the matrix logarithm at X in direction G. """ n = X.shape[1] # set up [[X, G], [0, X]] W = np.hstack((np.dstack((X, G)), np.dstack((np.zeros_like(X), X)))) return np.array([logm(W[i])[:n, n:] for i in range(X.shape[0])]) def vectime3d(x, A): """ :param x: vector of length k :param A: array of size k x n x m :return: k x n x m array such that the j-th n x m slice of A is multiplied with the j-th element of x """ assert np.size(x.shape[0]) == 2 and np.size(A) == 3 assert x.shape[0] == 1 or x.shape[1] == 1 assert x.shape[0] == A.shape[0] or x.shape[1] == A.shape[0] if x.shape[0] == 1: x = x.T A = np.einsum('kij->ijk', A) return np.einsum('ijk->kij', x * A) def vectime3dB(x, A): """ :param x: vector of length k :param A: array of size k x n x m :return: k x n x m array such that the j-th n x m slice of A is multiplied with the j-th element of x In case of k=1, x * A is returned. """ if np.isscalar(x) and A.ndim == 2: return x * A x = np.atleast_2d(x) assert x.ndim <= 2 and np.size(A.shape) == 3 assert x.shape[0] == 1 or x.shape[1] == 1 assert x.shape[0] == A.shape[0] or x.shape[1] == A.shape[0] if x.shape[1] == 1: x = x.T A = np.einsum('kij->ijk', A) return np.einsum('ijk->kij', x * A)
[ "islem.rekik@gmail.com" ]
islem.rekik@gmail.com
7e58cd1ebe20b19dcd6485effb047893a346e0b2
fb27c98c222f4c25cda1b663a6867264c9d92b10
/django_tut/001/dsvpug/dsvpug/settings.py
a3f3c6d2d352a01f523e79c0ac8de98052df4f71
[]
no_license
gmgray/dsvpug
fa39febcd2939418f5a6015f404e1652eaed6471
fdb5eaf3465f93c14b9f835e7fc8222605eb14ec
refs/heads/master
2020-04-08T03:39:21.106332
2018-12-18T16:01:38
2018-12-18T16:01:38
158,984,826
0
0
null
null
null
null
UTF-8
Python
false
false
3,100
py
""" Django settings for dsvpug project. Generated by 'django-admin startproject' using Django 2.1.4. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '+x3cmr*i!s)$v3o^e#fu$-3p+1hb@0&wu@6k2zcy74^moxf!ps' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'bage', ] MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] ROOT_URLCONF = 'dsvpug.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] WSGI_APPLICATION = 'dsvpug.wsgi.application' # Database # https://docs.djangoproject.com/en/2.1/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } # Password validation # https://docs.djangoproject.com/en/2.1/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] # Internationalization # https://docs.djangoproject.com/en/2.1/topics/i18n/ LANGUAGE_CODE = 'pl-pl' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/2.1/howto/static-files/ STATIC_URL = '/static/'
[ "gabriel.milczarek@dsv.com" ]
gabriel.milczarek@dsv.com