From d88129af3cc375f8fc0511c5cdfacfde218a9af4 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 7 Jul 2022 07:14:00 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- analyticshub/v1beta1/analyticshub-api.json | 4 +- analyticshub/v1beta1/analyticshub-gen.go | 2 +- androidpublisher/v3/androidpublisher-api.json | 4 +- androidpublisher/v3/androidpublisher-gen.go | 9 +- api-list.json | 6 +- .../v2/baremetalsolution-api.json | 12 +- baremetalsolution/v2/baremetalsolution-gen.go | 3 + chat/v1/chat-api.json | 6 +- chat/v1/chat-gen.go | 4 +- chromemanagement/v1/chromemanagement-api.json | 313 +++++- chromemanagement/v1/chromemanagement-gen.go | 355 ++++++- cloudprofiler/v2/cloudprofiler-api.json | 4 +- cloudprofiler/v2/cloudprofiler-gen.go | 2 +- cloudsupport/v2beta/cloudsupport-api.json | 6 +- cloudsupport/v2beta/cloudsupport-gen.go | 3 + compute/v0.alpha/compute-api.json | 371 ++++++- compute/v0.alpha/compute-gen.go | 961 +++++++++++++++++- compute/v0.beta/compute-api.json | 188 +++- compute/v0.beta/compute-gen.go | 349 ++++++- compute/v1/compute-api.json | 188 +++- compute/v1/compute-gen.go | 349 ++++++- content/v2.1/content-api.json | 8 +- content/v2.1/content-gen.go | 20 +- dataflow/v1b3/dataflow-api.json | 6 +- dataflow/v1b3/dataflow-gen.go | 5 +- dataproc/v1/dataproc-api.json | 30 +- dataproc/v1/dataproc-gen.go | 72 +- eventarc/v1/eventarc-api.json | 98 +- eventarc/v1/eventarc-gen.go | 369 ++++++- firebase/v1beta1/firebase-api.json | 165 ++- firebase/v1beta1/firebase-gen.go | 592 ++++++++++- gkehub/v1/gkehub-api.json | 6 +- gkehub/v1/gkehub-gen.go | 5 + gkehub/v1alpha/gkehub-api.json | 6 +- gkehub/v1alpha/gkehub-gen.go | 7 +- gkehub/v1beta/gkehub-api.json | 8 +- gkehub/v1beta/gkehub-gen.go | 7 +- healthcare/v1/healthcare-api.json | 8 +- healthcare/v1/healthcare-gen.go | 3 + healthcare/v1beta1/healthcare-api.json | 25 +- healthcare/v1beta1/healthcare-gen.go | 60 ++ metastore/v1alpha/metastore-api.json | 4 +- metastore/v1alpha/metastore-gen.go | 9 +- metastore/v1beta/metastore-api.json | 4 +- metastore/v1beta/metastore-gen.go | 9 +- .../v1/paymentsresellersubscription-api.json | 52 +- .../v1/paymentsresellersubscription-gen.go | 81 +- .../v1/streetviewpublish-api.json | 104 +- streetviewpublish/v1/streetviewpublish-gen.go | 183 ++++ tpu/v2alpha1/tpu-api.json | 44 +- tpu/v2alpha1/tpu-gen.go | 174 ++++ 51 files changed, 5084 insertions(+), 219 deletions(-) diff --git a/analyticshub/v1beta1/analyticshub-api.json b/analyticshub/v1beta1/analyticshub-api.json index d547a3256e3..4c95b46c0e0 100644 --- a/analyticshub/v1beta1/analyticshub-api.json +++ b/analyticshub/v1beta1/analyticshub-api.json @@ -765,7 +765,7 @@ } } }, - "revision": "20220501", + "revision": "20220701", "rootUrl": "https://analyticshub.googleapis.com/", "schemas": { "AuditConfig": { @@ -1337,7 +1337,7 @@ "type": "object" }, "SubscribeListingResponse": { - "description": "Message for response when you subscribe to a listing. Empty for now.", + "description": "Message for response when you subscribe to a listing.", "id": "SubscribeListingResponse", "properties": {}, "type": "object" diff --git a/analyticshub/v1beta1/analyticshub-gen.go b/analyticshub/v1beta1/analyticshub-gen.go index 70c330f66a1..124a70aee46 100644 --- a/analyticshub/v1beta1/analyticshub-gen.go +++ b/analyticshub/v1beta1/analyticshub-gen.go @@ -1328,7 +1328,7 @@ func (s *SubscribeListingRequest) MarshalJSON() ([]byte, error) { } // SubscribeListingResponse: Message for response when you subscribe to -// a listing. Empty for now. +// a listing. type SubscribeListingResponse struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/androidpublisher/v3/androidpublisher-api.json b/androidpublisher/v3/androidpublisher-api.json index f6527ef5f4d..2de98e5df6b 100644 --- a/androidpublisher/v3/androidpublisher-api.json +++ b/androidpublisher/v3/androidpublisher-api.json @@ -3915,7 +3915,7 @@ } } }, - "revision": "20220609", + "revision": "20220704", "rootUrl": "https://androidpublisher.googleapis.com/", "schemas": { "AcquisitionTargetingRule": { @@ -4071,7 +4071,7 @@ "type": "string" }, "legacyCompatible": { - "description": "Whether the renewing base plan is compatible with legacy version of the Play Billing Library (prior to version 3) or not. Only one renewing base plan can be marked as legacy compatible for a given subscription.", + "description": "Whether the renewing base plan is backward compatible. The backward compatible base plan is returned by the Google Play Billing Library deprecated method querySkuDetailsAsync(). Only one renewing base plan can be marked as legacy compatible for a given subscription.", "type": "boolean" }, "prorationMode": { diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index 66f1c4c57bb..bcb05aa9fb0 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -813,10 +813,11 @@ type AutoRenewingBasePlanType struct { // default value will be used based on the recurring period duration. GracePeriodDuration string `json:"gracePeriodDuration,omitempty"` - // LegacyCompatible: Whether the renewing base plan is compatible with - // legacy version of the Play Billing Library (prior to version 3) or - // not. Only one renewing base plan can be marked as legacy compatible - // for a given subscription. + // LegacyCompatible: Whether the renewing base plan is backward + // compatible. The backward compatible base plan is returned by the + // Google Play Billing Library deprecated method querySkuDetailsAsync(). + // Only one renewing base plan can be marked as legacy compatible for a + // given subscription. LegacyCompatible bool `json:"legacyCompatible,omitempty"` // ProrationMode: The proration mode for the base plan determines what diff --git a/api-list.json b/api-list.json index 702daf04cd6..79b9354973a 100644 --- a/api-list.json +++ b/api-list.json @@ -577,7 +577,7 @@ "name": "baremetalsolution", "version": "v1alpha1", "title": "Bare Metal Solution API", - "description": "Bare Metal Solution provides hardware to run specialized workloads with low latency on Google Cloud.", + "description": "Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center.", "discoveryRestUrl": "https://baremetalsolution.googleapis.com/$discovery/rest?version=v1alpha1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", @@ -592,7 +592,7 @@ "name": "baremetalsolution", "version": "v1", "title": "Bare Metal Solution API", - "description": "Bare Metal Solution provides hardware to run specialized workloads with low latency on Google Cloud.", + "description": "Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center.", "discoveryRestUrl": "https://baremetalsolution.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", @@ -607,7 +607,7 @@ "name": "baremetalsolution", "version": "v2", "title": "Bare Metal Solution API", - "description": "Bare Metal Solution provides hardware to run specialized workloads with low latency on Google Cloud.", + "description": "Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center.", "discoveryRestUrl": "https://baremetalsolution.googleapis.com/$discovery/rest?version=v2", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", diff --git a/baremetalsolution/v2/baremetalsolution-api.json b/baremetalsolution/v2/baremetalsolution-api.json index 1f4d76cedce..f2c243dd8f1 100644 --- a/baremetalsolution/v2/baremetalsolution-api.json +++ b/baremetalsolution/v2/baremetalsolution-api.json @@ -1027,7 +1027,7 @@ } } }, - "revision": "20220615", + "revision": "20220627", "rootUrl": "https://baremetalsolution.googleapis.com/", "schemas": { "AllowedClient": { @@ -2017,11 +2017,17 @@ "description": "The state of the NFS share.", "enum": [ "STATE_UNSPECIFIED", - "PROVISIONED" + "PROVISIONED", + "CREATING", + "UPDATING", + "DELETING" ], "enumDescriptions": [ "The share is in an unknown state.", - "The share has been provisioned." + "The share has been provisioned.", + "The NFS Share is being created.", + "The NFS Share is being updated.", + "The NFS Share has been requested to be deleted." ], "type": "string" }, diff --git a/baremetalsolution/v2/baremetalsolution-gen.go b/baremetalsolution/v2/baremetalsolution-gen.go index a84c1c2492f..33671d35dda 100644 --- a/baremetalsolution/v2/baremetalsolution-gen.go +++ b/baremetalsolution/v2/baremetalsolution-gen.go @@ -1567,6 +1567,9 @@ type NfsShare struct { // Possible values: // "STATE_UNSPECIFIED" - The share is in an unknown state. // "PROVISIONED" - The share has been provisioned. + // "CREATING" - The NFS Share is being created. + // "UPDATING" - The NFS Share is being updated. + // "DELETING" - The NFS Share has been requested to be deleted. State string `json:"state,omitempty"` // Volume: The volume containing the share. diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 970c31d5cf2..23de35ec9e9 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -385,13 +385,13 @@ "parameterOrder": [], "parameters": { "pageSize": { - "description": "Requested page size. The value is capped at 1000. Server may return fewer results than requested. If unspecified, server will default to 100.", + "description": "Optional. Requested page size. The value is capped at 1000. Server may return fewer results than requested. If unspecified, server will default to 100.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "A token identifying a page of results the server should return.", + "description": "Optional. A token identifying a page of results the server should return.", "location": "query", "type": "string" } @@ -642,7 +642,7 @@ } } }, - "revision": "20220619", + "revision": "20220701", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 15c51a30d87..67607351529 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -5312,13 +5312,13 @@ func (c *SpacesListCall) Do(opts ...googleapi.CallOption) (*ListSpacesResponse, // "parameterOrder": [], // "parameters": { // "pageSize": { - // "description": "Requested page size. The value is capped at 1000. Server may return fewer results than requested. If unspecified, server will default to 100.", + // "description": "Optional. Requested page size. The value is capped at 1000. Server may return fewer results than requested. If unspecified, server will default to 100.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A token identifying a page of results the server should return.", + // "description": "Optional. A token identifying a page of results the server should return.", // "location": "query", // "type": "string" // } diff --git a/chromemanagement/v1/chromemanagement-api.json b/chromemanagement/v1/chromemanagement-api.json index e56a8c05b56..039af15cc75 100644 --- a/chromemanagement/v1/chromemanagement-api.json +++ b/chromemanagement/v1/chromemanagement-api.json @@ -519,7 +519,7 @@ } } }, - "revision": "20220606", + "revision": "20220703", "rootUrl": "https://chromemanagement.googleapis.com/", "schemas": { "GoogleChromeManagementV1AndroidAppInfo": { @@ -1150,6 +1150,16 @@ "readOnly": true, "type": "string" }, + "keylockerConfigured": { + "description": "Output only. Whether keylocker is configured.`TRUE` = Enabled; `FALSE` = disabled. Only reported if keylockerSupported = `TRUE`.", + "readOnly": true, + "type": "boolean" + }, + "keylockerSupported": { + "description": "Output only. Whether keylocker is supported.", + "readOnly": true, + "type": "boolean" + }, "maxClockSpeed": { "description": "Output only. The max CPU clock speed in kHz.", "format": "int32", @@ -1429,6 +1439,38 @@ }, "type": "object" }, + "GoogleChromeManagementV1HttpsLatencyRoutineData": { + "description": "Data that describes the result of the HTTPS latency diagnostics routine, with the HTTPS requests issued to Google websites.", + "id": "GoogleChromeManagementV1HttpsLatencyRoutineData", + "properties": { + "latency": { + "description": "Output only. HTTPS latency if routine succeeded or failed because of HIGH_LATENCY or VERY_HIGH_LATENCY.", + "format": "google-duration", + "readOnly": true, + "type": "string" + }, + "problem": { + "description": "Output only. HTTPS latency routine problem if a problem occurred.", + "enum": [ + "HTTPS_LATENCY_PROBLEM_UNSPECIFIED", + "FAILED_DNS_RESOLUTIONS", + "FAILED_HTTPS_REQUESTS", + "HIGH_LATENCY", + "VERY_HIGH_LATENCY" + ], + "enumDescriptions": [ + "HTTPS latency problem not specified.", + "One or more DNS resolutions resulted in a failure.", + "One or more HTTPS requests resulted in a failure.", + "Average HTTPS request latency time between 500ms and 1000ms is high.", + "Average HTTPS request latency time greater than 1000ms is very high." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleChromeManagementV1InstalledApp": { "description": "Describes an installed app.", "id": "GoogleChromeManagementV1InstalledApp", @@ -1567,6 +1609,11 @@ "readOnly": true, "type": "string" }, + "totalMemoryEncryption": { + "$ref": "GoogleChromeManagementV1TotalMemoryEncryptionInfo", + "description": "Output only. Total memory encryption info for the device.", + "readOnly": true + }, "totalRamBytes": { "description": "Output only. Total RAM in bytes.", "format": "int64", @@ -1607,20 +1654,160 @@ }, "type": "object" }, + "GoogleChromeManagementV1NetworkDevice": { + "description": "Network device.", + "id": "GoogleChromeManagementV1NetworkDevice", + "properties": { + "iccid": { + "description": "Output only. The integrated circuit card ID associated with the device's sim card.", + "readOnly": true, + "type": "string" + }, + "imei": { + "description": "Output only. IMEI (if applicable) of the corresponding network device.", + "readOnly": true, + "type": "string" + }, + "macAddress": { + "description": "Output only. MAC address (if applicable) of the corresponding network device.", + "readOnly": true, + "type": "string" + }, + "mdn": { + "description": "Output only. The mobile directory number associated with the device's sim card.", + "readOnly": true, + "type": "string" + }, + "meid": { + "description": "Output only. MEID (if applicable) of the corresponding network device.", + "readOnly": true, + "type": "string" + }, + "type": { + "description": "Output only. Network device type.", + "enum": [ + "NETWORK_DEVICE_TYPE_UNSPECIFIED", + "CELLULAR_DEVICE", + "ETHERNET_DEVICE", + "WIFI_DEVICE" + ], + "enumDescriptions": [ + "Network device type not specified.", + "Cellular device.", + "Ethernet device.", + "Wifi device." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleChromeManagementV1NetworkDiagnosticsReport": { + "description": "Network testing results to determine the health of the device's network connection, for example whether the HTTPS latency is high or normal.", + "id": "GoogleChromeManagementV1NetworkDiagnosticsReport", + "properties": { + "httpsLatencyData": { + "$ref": "GoogleChromeManagementV1HttpsLatencyRoutineData", + "description": "Output only. HTTPS latency test data.", + "readOnly": true + }, + "reportTime": { + "description": "Output only. Timestamp of when the diagnostics were collected.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleChromeManagementV1NetworkInfo": { + "description": "Network devices info.", + "id": "GoogleChromeManagementV1NetworkInfo", + "properties": { + "networkDevices": { + "description": "Output only. List of network devices.", + "items": { + "$ref": "GoogleChromeManagementV1NetworkDevice" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, "GoogleChromeManagementV1NetworkStatusReport": { "description": "State of visible/configured networks.", "id": "GoogleChromeManagementV1NetworkStatusReport", "properties": { + "connectionState": { + "description": "Output only. Current connection state of the network.", + "enum": [ + "NETWORK_CONNECTION_STATE_UNSPECIFIED", + "ONLINE", + "CONNECTED", + "PORTAL", + "CONNECTING", + "NOT_CONNECTED" + ], + "enumDescriptions": [ + "Network connection state unspecified.", + "The network is connected and internet connectivity is available.", + "The network is connected and not in a detected portal state, but internet connectivity may not be available.", + "The network is connected but a portal state was detected. Internet connectivity may be limited.", + "The network is in the process of connecting.", + "The network is not connected." + ], + "readOnly": true, + "type": "string" + }, + "connectionType": { + "description": "Output only. Network connection type.", + "enum": [ + "NETWORK_TYPE_UNSPECIFIED", + "CELLULAR", + "ETHERNET", + "TETHER", + "VPN", + "WIFI" + ], + "enumDescriptions": [ + "Network connection type unspecified", + "Cellular network connection.", + "Ethernet network connection.", + "Tether network connection.", + "VPN network connection.", + "Wifi network connection." + ], + "readOnly": true, + "type": "string" + }, + "encryptionOn": { + "description": "Output only. Whether the wifi encryption key is turned off.", + "readOnly": true, + "type": "boolean" + }, "gatewayIpAddress": { "description": "Output only. Gateway IP address.", "readOnly": true, "type": "string" }, + "guid": { + "description": "Output only. Network connection guid.", + "readOnly": true, + "type": "string" + }, "lanIpAddress": { "description": "Output only. LAN IP address.", "readOnly": true, "type": "string" }, + "receivingBitRateMbps": { + "description": "Output only. Receiving bit rate measured in megabytes per second.", + "format": "int64", + "readOnly": true, + "type": "string" + }, "reportTime": { "description": "Output only. Time at which the network state was reported.", "format": "google-datetime", @@ -1638,6 +1825,29 @@ "format": "int32", "readOnly": true, "type": "integer" + }, + "transmissionBitRateMbps": { + "description": "Output only. Transmission bit rate measured in megabytes per second.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "transmissionPowerDbm": { + "description": "Output only. Transmission power measured in decibels.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "wifiLinkQuality": { + "description": "Output only. Wifi link quality. Value ranges from [0, 70]. 0 indicates no signal and 70 indicates a strong signal.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "wifiPowerManagementEnabled": { + "description": "Output only. Wifi power management enabled", + "readOnly": true, + "type": "boolean" } }, "type": "object" @@ -1845,6 +2055,19 @@ "readOnly": true, "type": "string" }, + "networkDiagnosticsReport": { + "description": "Output only. Network diagnostics collected periodically.", + "items": { + "$ref": "GoogleChromeManagementV1NetworkDiagnosticsReport" + }, + "readOnly": true, + "type": "array" + }, + "networkInfo": { + "$ref": "GoogleChromeManagementV1NetworkInfo", + "description": "Output only. Network devices information.", + "readOnly": true + }, "networkStatusReport": { "description": "Output only. Network specs collected periodically.", "items": { @@ -1883,6 +2106,94 @@ }, "readOnly": true, "type": "array" + }, + "thunderboltInfo": { + "description": "Output only. Information on Thunderbolt bus.", + "items": { + "$ref": "GoogleChromeManagementV1ThunderboltInfo" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "GoogleChromeManagementV1ThunderboltInfo": { + "description": "Thunderbolt bus info.", + "id": "GoogleChromeManagementV1ThunderboltInfo", + "properties": { + "securityLevel": { + "description": "Security level of the Thunderbolt bus.", + "enum": [ + "THUNDERBOLT_SECURITY_LEVEL_UNSPECIFIED", + "THUNDERBOLT_SECURITY_NONE_LEVEL", + "THUNDERBOLT_SECURITY_USER_LEVEL", + "THUNDERBOLT_SECURITY_SECURE_LEVEL", + "THUNDERBOLT_SECURITY_DP_ONLY_LEVEL", + "THUNDERBOLT_SECURITY_USB_ONLY_LEVEL", + "THUNDERBOLT_SECURITY_NO_PCIE_LEVEL" + ], + "enumDescriptions": [ + "Thunderbolt security level is not set.", + "All devices are automatically connected by the firmware. No user approval is needed.", + "User is asked whether the device is allowed to be connected.", + "User is asked whether the device is allowed to be connected. In addition the device is sent a challenge that should match the expected one based on a random key written to the key sysfs attribute", + "The firmware automatically creates tunnels for Thunderbolt.", + "The firmware automatically creates tunnels for the USB controller and Display Port in a dock. All PCIe links downstream of the dock are removed.", + "PCIE tunneling is disabled." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleChromeManagementV1TotalMemoryEncryptionInfo": { + "description": "Memory encryption information of a device.", + "id": "GoogleChromeManagementV1TotalMemoryEncryptionInfo", + "properties": { + "encryptionAlgorithm": { + "description": "Memory encryption algorithm.", + "enum": [ + "MEMORY_ENCRYPTION_ALGORITHM_UNSPECIFIED", + "MEMORY_ENCRYPTION_ALGORITHM_UNKNOWN", + "MEMORY_ENCRYPTION_ALGORITHM_AES_XTS_128", + "MEMORY_ENCRYPTION_ALGORITHM_AES_XTS_256" + ], + "enumDescriptions": [ + "Memory encryption algorithm is not set.", + "The memory encryption algorithm being used is unknown.", + "The memory encryption algorithm is using the AES_XTS encryption algorithm with a 128 bit block cypher.", + "The memory encryption algorithm is using the AES_XTS encryption algorithm with a 256 bit block cypher." + ], + "type": "string" + }, + "encryptionState": { + "description": "The state of memory encryption on the device.", + "enum": [ + "MEMORY_ENCRYPTION_STATE_UNSPECIFIED", + "MEMORY_ENCRYPTION_STATE_UNKNOWN", + "MEMORY_ENCRYPTION_STATE_DISABLED", + "MEMORY_ENCRYPTION_STATE_TME", + "MEMORY_ENCRYPTION_STATE_MKTME" + ], + "enumDescriptions": [ + "Memory encryption state is not set.", + "The memory encryption state is unknown.", + "Memory encrpytion on the device is disabled.", + "Memory encryption on the device uses total memory encryption.", + "Memory encryption on the device uses multi-key total memory encryption." + ], + "type": "string" + }, + "keyLength": { + "description": "The length of the encryption keys.", + "format": "int64", + "type": "string" + }, + "maxKeys": { + "description": "The maximum number of keys that can be used for encryption.", + "format": "int64", + "type": "string" } }, "type": "object" diff --git a/chromemanagement/v1/chromemanagement-gen.go b/chromemanagement/v1/chromemanagement-gen.go index bf48041007a..e31aa1ca776 100644 --- a/chromemanagement/v1/chromemanagement-gen.go +++ b/chromemanagement/v1/chromemanagement-gen.go @@ -998,6 +998,14 @@ type GoogleChromeManagementV1CpuInfo struct { // "X64" - x64 architecture Architecture string `json:"architecture,omitempty"` + // KeylockerConfigured: Output only. Whether keylocker is + // configured.`TRUE` = Enabled; `FALSE` = disabled. Only reported if + // keylockerSupported = `TRUE`. + KeylockerConfigured bool `json:"keylockerConfigured,omitempty"` + + // KeylockerSupported: Output only. Whether keylocker is supported. + KeylockerSupported bool `json:"keylockerSupported,omitempty"` + // MaxClockSpeed: Output only. The max CPU clock speed in kHz. MaxClockSpeed int64 `json:"maxClockSpeed,omitempty"` @@ -1390,6 +1398,53 @@ func (s *GoogleChromeManagementV1GraphicsStatusReport) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleChromeManagementV1HttpsLatencyRoutineData: Data that describes +// the result of the HTTPS latency diagnostics routine, with the HTTPS +// requests issued to Google websites. +type GoogleChromeManagementV1HttpsLatencyRoutineData struct { + // Latency: Output only. HTTPS latency if routine succeeded or failed + // because of HIGH_LATENCY or VERY_HIGH_LATENCY. + Latency string `json:"latency,omitempty"` + + // Problem: Output only. HTTPS latency routine problem if a problem + // occurred. + // + // Possible values: + // "HTTPS_LATENCY_PROBLEM_UNSPECIFIED" - HTTPS latency problem not + // specified. + // "FAILED_DNS_RESOLUTIONS" - One or more DNS resolutions resulted in + // a failure. + // "FAILED_HTTPS_REQUESTS" - One or more HTTPS requests resulted in a + // failure. + // "HIGH_LATENCY" - Average HTTPS request latency time between 500ms + // and 1000ms is high. + // "VERY_HIGH_LATENCY" - Average HTTPS request latency time greater + // than 1000ms is very high. + Problem string `json:"problem,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Latency") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Latency") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleChromeManagementV1HttpsLatencyRoutineData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementV1HttpsLatencyRoutineData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleChromeManagementV1InstalledApp: Describes an installed app. type GoogleChromeManagementV1InstalledApp struct { // AppId: Output only. Unique identifier of the app. For Chrome apps and @@ -1515,6 +1570,10 @@ type GoogleChromeManagementV1MemoryInfo struct { // AvailableRamBytes: Output only. Amount of available RAM in bytes. AvailableRamBytes int64 `json:"availableRamBytes,omitempty,string"` + // TotalMemoryEncryption: Output only. Total memory encryption info for + // the device. + TotalMemoryEncryption *GoogleChromeManagementV1TotalMemoryEncryptionInfo `json:"totalMemoryEncryption,omitempty"` + // TotalRamBytes: Output only. Total RAM in bytes. TotalRamBytes int64 `json:"totalRamBytes,omitempty,string"` @@ -1582,15 +1641,172 @@ func (s *GoogleChromeManagementV1MemoryStatusReport) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleChromeManagementV1NetworkDevice: Network device. +type GoogleChromeManagementV1NetworkDevice struct { + // Iccid: Output only. The integrated circuit card ID associated with + // the device's sim card. + Iccid string `json:"iccid,omitempty"` + + // Imei: Output only. IMEI (if applicable) of the corresponding network + // device. + Imei string `json:"imei,omitempty"` + + // MacAddress: Output only. MAC address (if applicable) of the + // corresponding network device. + MacAddress string `json:"macAddress,omitempty"` + + // Mdn: Output only. The mobile directory number associated with the + // device's sim card. + Mdn string `json:"mdn,omitempty"` + + // Meid: Output only. MEID (if applicable) of the corresponding network + // device. + Meid string `json:"meid,omitempty"` + + // Type: Output only. Network device type. + // + // Possible values: + // "NETWORK_DEVICE_TYPE_UNSPECIFIED" - Network device type not + // specified. + // "CELLULAR_DEVICE" - Cellular device. + // "ETHERNET_DEVICE" - Ethernet device. + // "WIFI_DEVICE" - Wifi device. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Iccid") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Iccid") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleChromeManagementV1NetworkDevice) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementV1NetworkDevice + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleChromeManagementV1NetworkDiagnosticsReport: Network testing +// results to determine the health of the device's network connection, +// for example whether the HTTPS latency is high or normal. +type GoogleChromeManagementV1NetworkDiagnosticsReport struct { + // HttpsLatencyData: Output only. HTTPS latency test data. + HttpsLatencyData *GoogleChromeManagementV1HttpsLatencyRoutineData `json:"httpsLatencyData,omitempty"` + + // ReportTime: Output only. Timestamp of when the diagnostics were + // collected. + ReportTime string `json:"reportTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "HttpsLatencyData") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "HttpsLatencyData") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleChromeManagementV1NetworkDiagnosticsReport) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementV1NetworkDiagnosticsReport + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleChromeManagementV1NetworkInfo: Network devices info. +type GoogleChromeManagementV1NetworkInfo struct { + // NetworkDevices: Output only. List of network devices. + NetworkDevices []*GoogleChromeManagementV1NetworkDevice `json:"networkDevices,omitempty"` + + // ForceSendFields is a list of field names (e.g. "NetworkDevices") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NetworkDevices") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleChromeManagementV1NetworkInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementV1NetworkInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleChromeManagementV1NetworkStatusReport: State of // visible/configured networks. type GoogleChromeManagementV1NetworkStatusReport struct { + // ConnectionState: Output only. Current connection state of the + // network. + // + // Possible values: + // "NETWORK_CONNECTION_STATE_UNSPECIFIED" - Network connection state + // unspecified. + // "ONLINE" - The network is connected and internet connectivity is + // available. + // "CONNECTED" - The network is connected and not in a detected portal + // state, but internet connectivity may not be available. + // "PORTAL" - The network is connected but a portal state was + // detected. Internet connectivity may be limited. + // "CONNECTING" - The network is in the process of connecting. + // "NOT_CONNECTED" - The network is not connected. + ConnectionState string `json:"connectionState,omitempty"` + + // ConnectionType: Output only. Network connection type. + // + // Possible values: + // "NETWORK_TYPE_UNSPECIFIED" - Network connection type unspecified + // "CELLULAR" - Cellular network connection. + // "ETHERNET" - Ethernet network connection. + // "TETHER" - Tether network connection. + // "VPN" - VPN network connection. + // "WIFI" - Wifi network connection. + ConnectionType string `json:"connectionType,omitempty"` + + // EncryptionOn: Output only. Whether the wifi encryption key is turned + // off. + EncryptionOn bool `json:"encryptionOn,omitempty"` + // GatewayIpAddress: Output only. Gateway IP address. GatewayIpAddress string `json:"gatewayIpAddress,omitempty"` + // Guid: Output only. Network connection guid. + Guid string `json:"guid,omitempty"` + // LanIpAddress: Output only. LAN IP address. LanIpAddress string `json:"lanIpAddress,omitempty"` + // ReceivingBitRateMbps: Output only. Receiving bit rate measured in + // megabytes per second. + ReceivingBitRateMbps int64 `json:"receivingBitRateMbps,omitempty,string"` + // ReportTime: Output only. Time at which the network state was // reported. ReportTime string `json:"reportTime,omitempty"` @@ -1602,7 +1818,23 @@ type GoogleChromeManagementV1NetworkStatusReport struct { // measured in decibels. SignalStrengthDbm int64 `json:"signalStrengthDbm,omitempty"` - // ForceSendFields is a list of field names (e.g. "GatewayIpAddress") to + // TransmissionBitRateMbps: Output only. Transmission bit rate measured + // in megabytes per second. + TransmissionBitRateMbps int64 `json:"transmissionBitRateMbps,omitempty,string"` + + // TransmissionPowerDbm: Output only. Transmission power measured in + // decibels. + TransmissionPowerDbm int64 `json:"transmissionPowerDbm,omitempty"` + + // WifiLinkQuality: Output only. Wifi link quality. Value ranges from + // [0, 70]. 0 indicates no signal and 70 indicates a strong signal. + WifiLinkQuality int64 `json:"wifiLinkQuality,omitempty,string"` + + // WifiPowerManagementEnabled: Output only. Wifi power management + // enabled + WifiPowerManagementEnabled bool `json:"wifiPowerManagementEnabled,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConnectionState") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1610,7 +1842,7 @@ type GoogleChromeManagementV1NetworkStatusReport struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GatewayIpAddress") to + // NullFields is a list of field names (e.g. "ConnectionState") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -1838,6 +2070,13 @@ type GoogleChromeManagementV1TelemetryDevice struct { // Name: Output only. Resource name of the device. Name string `json:"name,omitempty"` + // NetworkDiagnosticsReport: Output only. Network diagnostics collected + // periodically. + NetworkDiagnosticsReport []*GoogleChromeManagementV1NetworkDiagnosticsReport `json:"networkDiagnosticsReport,omitempty"` + + // NetworkInfo: Output only. Network devices information. + NetworkInfo *GoogleChromeManagementV1NetworkInfo `json:"networkInfo,omitempty"` + // NetworkStatusReport: Output only. Network specs collected // periodically. NetworkStatusReport []*GoogleChromeManagementV1NetworkStatusReport `json:"networkStatusReport,omitempty"` @@ -1862,6 +2101,9 @@ type GoogleChromeManagementV1TelemetryDevice struct { // periodically. StorageStatusReport []*GoogleChromeManagementV1StorageStatusReport `json:"storageStatusReport,omitempty"` + // ThunderboltInfo: Output only. Information on Thunderbolt bus. + ThunderboltInfo []*GoogleChromeManagementV1ThunderboltInfo `json:"thunderboltInfo,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` @@ -1890,6 +2132,115 @@ func (s *GoogleChromeManagementV1TelemetryDevice) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleChromeManagementV1ThunderboltInfo: Thunderbolt bus info. +type GoogleChromeManagementV1ThunderboltInfo struct { + // SecurityLevel: Security level of the Thunderbolt bus. + // + // Possible values: + // "THUNDERBOLT_SECURITY_LEVEL_UNSPECIFIED" - Thunderbolt security + // level is not set. + // "THUNDERBOLT_SECURITY_NONE_LEVEL" - All devices are automatically + // connected by the firmware. No user approval is needed. + // "THUNDERBOLT_SECURITY_USER_LEVEL" - User is asked whether the + // device is allowed to be connected. + // "THUNDERBOLT_SECURITY_SECURE_LEVEL" - User is asked whether the + // device is allowed to be connected. In addition the device is sent a + // challenge that should match the expected one based on a random key + // written to the key sysfs attribute + // "THUNDERBOLT_SECURITY_DP_ONLY_LEVEL" - The firmware automatically + // creates tunnels for Thunderbolt. + // "THUNDERBOLT_SECURITY_USB_ONLY_LEVEL" - The firmware automatically + // creates tunnels for the USB controller and Display Port in a dock. + // All PCIe links downstream of the dock are removed. + // "THUNDERBOLT_SECURITY_NO_PCIE_LEVEL" - PCIE tunneling is disabled. + SecurityLevel string `json:"securityLevel,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SecurityLevel") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "SecurityLevel") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleChromeManagementV1ThunderboltInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementV1ThunderboltInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleChromeManagementV1TotalMemoryEncryptionInfo: Memory encryption +// information of a device. +type GoogleChromeManagementV1TotalMemoryEncryptionInfo struct { + // EncryptionAlgorithm: Memory encryption algorithm. + // + // Possible values: + // "MEMORY_ENCRYPTION_ALGORITHM_UNSPECIFIED" - Memory encryption + // algorithm is not set. + // "MEMORY_ENCRYPTION_ALGORITHM_UNKNOWN" - The memory encryption + // algorithm being used is unknown. + // "MEMORY_ENCRYPTION_ALGORITHM_AES_XTS_128" - The memory encryption + // algorithm is using the AES_XTS encryption algorithm with a 128 bit + // block cypher. + // "MEMORY_ENCRYPTION_ALGORITHM_AES_XTS_256" - The memory encryption + // algorithm is using the AES_XTS encryption algorithm with a 256 bit + // block cypher. + EncryptionAlgorithm string `json:"encryptionAlgorithm,omitempty"` + + // EncryptionState: The state of memory encryption on the device. + // + // Possible values: + // "MEMORY_ENCRYPTION_STATE_UNSPECIFIED" - Memory encryption state is + // not set. + // "MEMORY_ENCRYPTION_STATE_UNKNOWN" - The memory encryption state is + // unknown. + // "MEMORY_ENCRYPTION_STATE_DISABLED" - Memory encrpytion on the + // device is disabled. + // "MEMORY_ENCRYPTION_STATE_TME" - Memory encryption on the device + // uses total memory encryption. + // "MEMORY_ENCRYPTION_STATE_MKTME" - Memory encryption on the device + // uses multi-key total memory encryption. + EncryptionState string `json:"encryptionState,omitempty"` + + // KeyLength: The length of the encryption keys. + KeyLength int64 `json:"keyLength,omitempty,string"` + + // MaxKeys: The maximum number of keys that can be used for encryption. + MaxKeys int64 `json:"maxKeys,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "EncryptionAlgorithm") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EncryptionAlgorithm") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleChromeManagementV1TotalMemoryEncryptionInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementV1TotalMemoryEncryptionInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleRpcStatus: The `Status` type defines a logical error model that // is suitable for different programming environments, including REST // APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each diff --git a/cloudprofiler/v2/cloudprofiler-api.json b/cloudprofiler/v2/cloudprofiler-api.json index 2c9c0d9f36e..acbe276756b 100644 --- a/cloudprofiler/v2/cloudprofiler-api.json +++ b/cloudprofiler/v2/cloudprofiler-api.json @@ -216,7 +216,7 @@ } } }, - "revision": "20211016", + "revision": "20220627", "rootUrl": "https://cloudprofiler.googleapis.com/", "schemas": { "CreateProfileRequest": { @@ -273,7 +273,7 @@ "type": "string" }, "target": { - "description": "Target is the service name used to group related deployments: * Service name for App Engine Flex / Standard. * Cluster and container name for GKE. * User-specified string for direct Compute Engine profiling (e.g. Java). * Job name for Dataflow. Validation regex: `^[a-z]([-a-z0-9_.]{0,253}[a-z0-9])?$`.", + "description": "Target is the service name used to group related deployments: * Service name for App Engine Flex / Standard. * Cluster and container name for GKE. * User-specified string for direct Compute Engine profiling (e.g. Java). * Job name for Dataflow. Validation regex: `^[a-z0-9]([-a-z0-9_.]{0,253}[a-z0-9])?$`.", "type": "string" } }, diff --git a/cloudprofiler/v2/cloudprofiler-gen.go b/cloudprofiler/v2/cloudprofiler-gen.go index d25d6926df7..f081e93974c 100644 --- a/cloudprofiler/v2/cloudprofiler-gen.go +++ b/cloudprofiler/v2/cloudprofiler-gen.go @@ -249,7 +249,7 @@ type Deployment struct { // * Service name for App Engine Flex / Standard. * Cluster and // container name for GKE. * User-specified string for direct Compute // Engine profiling (e.g. Java). * Job name for Dataflow. Validation - // regex: `^a-z ([-a-z0-9_.]{0,253}[a-z0-9])?$`. + // regex: `^a-z0-9 ([-a-z0-9_.]{0,253}[a-z0-9])?$`. Target string `json:"target,omitempty"` // ForceSendFields is a list of field names (e.g. "Labels") to diff --git a/cloudsupport/v2beta/cloudsupport-api.json b/cloudsupport/v2beta/cloudsupport-api.json index 39d013dc6bc..a3a9c000de1 100644 --- a/cloudsupport/v2beta/cloudsupport-api.json +++ b/cloudsupport/v2beta/cloudsupport-api.json @@ -575,7 +575,7 @@ } } }, - "revision": "20220516", + "revision": "20220703", "rootUrl": "https://cloudsupport.googleapis.com/", "schemas": { "Actor": { @@ -720,6 +720,10 @@ ], "type": "string" }, + "projectId": { + "description": "The ID of the project associated with the case.", + "type": "string" + }, "severity": { "description": "The severity of this case. Deprecated. Use priority instead.", "enum": [ diff --git a/cloudsupport/v2beta/cloudsupport-gen.go b/cloudsupport/v2beta/cloudsupport-gen.go index 1b5dc4a81ad..af01ff29d5c 100644 --- a/cloudsupport/v2beta/cloudsupport-gen.go +++ b/cloudsupport/v2beta/cloudsupport-gen.go @@ -387,6 +387,9 @@ type Case struct { // fully available. Priority string `json:"priority,omitempty"` + // ProjectId: The ID of the project associated with the case. + ProjectId string `json:"projectId,omitempty"` + // Severity: The severity of this case. Deprecated. Use priority // instead. // diff --git a/compute/v0.alpha/compute-api.json b/compute/v0.alpha/compute-api.json index 1188e087491..0d8e3355c9c 100644 --- a/compute/v0.alpha/compute-api.json +++ b/compute/v0.alpha/compute-api.json @@ -14287,6 +14287,138 @@ } } }, + "interconnectRemoteLocations": { + "methods": { + "get": { + "description": "Returns the details for the specified interconnect remote location. Gets a list of available interconnect remote locations by making a list() request.", + "flatPath": "projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}", + "httpMethod": "GET", + "id": "compute.interconnectRemoteLocations.get", + "parameterOrder": [ + "project", + "interconnectRemoteLocation" + ], + "parameters": { + "interconnectRemoteLocation": { + "description": "Name of the interconnect remote location to return.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}", + "response": { + "$ref": "InterconnectRemoteLocation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "list": { + "description": "Retrieves the list of interconnect remote locations available to the specified project.", + "flatPath": "projects/{project}/global/interconnectRemoteLocations", + "httpMethod": "GET", + "id": "compute.interconnectRemoteLocations.list", + "parameterOrder": [ + "project" + ], + "parameters": { + "filter": { + "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`.", + "location": "query", + "type": "string" + }, + "maxResults": { + "default": "500", + "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", + "format": "uint32", + "location": "query", + "minimum": "0", + "type": "integer" + }, + "orderBy": { + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", + "location": "query", + "type": "string" + }, + "pageToken": { + "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.", + "location": "query", + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.", + "location": "query", + "type": "boolean" + } + }, + "path": "projects/{project}/global/interconnectRemoteLocations", + "response": { + "$ref": "InterconnectRemoteLocationList" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource.", + "flatPath": "projects/{project}/global/interconnectRemoteLocations/{resource}/testIamPermissions", + "httpMethod": "POST", + "id": "compute.interconnectRemoteLocations.testIamPermissions", + "parameterOrder": [ + "project", + "resource" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "resource": { + "description": "Name or id of the resource for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/global/interconnectRemoteLocations/{resource}/testIamPermissions", + "request": { + "$ref": "TestPermissionsRequest" + }, + "response": { + "$ref": "TestPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + } + } + }, "interconnects": { "methods": { "delete": { @@ -39221,7 +39353,7 @@ } } }, - "revision": "20220614", + "revision": "20220621", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -56265,6 +56397,229 @@ }, "type": "object" }, + "InterconnectRemoteLocation": { + "description": "Represents an Cross-Cloud Interconnect Remote Location resource. You can use this resource to find remote location details about an Interconnect attachment (VLAN).", + "id": "InterconnectRemoteLocation", + "properties": { + "address": { + "description": "[Output Only] The postal address of the Point of Presence, each line in the address is separated by a newline character.", + "type": "string" + }, + "city": { + "description": "[Output Only] Metropolitan area designator that indicates which city an interconnect is located. For example: \"Chicago, IL\", \"Amsterdam, Netherlands\".", + "type": "string" + }, + "continent": { + "description": "[Output Only] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA ", + "enum": [ + "AFRICA", + "ASIA_PAC", + "EUROPE", + "NORTH_AMERICA", + "SOUTH_AMERICA" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "creationTimestamp": { + "description": "[Output Only] Creation timestamp in RFC3339 text format.", + "type": "string" + }, + "description": { + "description": "[Output Only] An optional description of the resource.", + "type": "string" + }, + "facilityProvider": { + "description": "[Output Only] The name of the provider for this facility (e.g., EQUINIX).", + "type": "string" + }, + "facilityProviderFacilityId": { + "description": "[Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1).", + "type": "string" + }, + "id": { + "description": "[Output Only] The unique identifier for the resource. This identifier is defined by the server.", + "format": "uint64", + "type": "string" + }, + "kind": { + "default": "compute#interconnectRemoteLocation", + "description": "[Output Only] Type of the resource. Always compute#interconnectRemoteLocation for interconnect remote locations.", + "type": "string" + }, + "name": { + "description": "[Output Only] Name of the resource.", + "type": "string" + }, + "peeringdbFacilityId": { + "description": "[Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in peeringdb).", + "type": "string" + }, + "permittedConnections": { + "$ref": "InterconnectRemoteLocationPermittedConnections", + "description": "[Output-only] Permitted connections." + }, + "remoteService": { + "description": "[Output Only] Indicates the service provider present at the remote location. Example values: \"Amazon Web Services\", \"Microsoft Azure\".", + "type": "string" + }, + "selfLink": { + "description": "[Output Only] Server-defined URL for the resource.", + "type": "string" + }, + "selfLinkWithId": { + "description": "[Output Only] Server-defined URL for this resource with the resource id.", + "type": "string" + }, + "status": { + "description": "[Output Only] The status of this InterconnectRemoteLocation, which can take one of the following values: - CLOSED: The InterconnectRemoteLocation is closed and is unavailable for provisioning new Cross-Cloud Interconnects. - AVAILABLE: The InterconnectRemoteLocation is available for provisioning new Cross-Cloud Interconnects. ", + "enum": [ + "AVAILABLE", + "CLOSED" + ], + "enumDescriptions": [ + "The InterconnectRemoteLocation is available for provisioning new Cross-Cloud Interconnects.", + "The InterconnectRemoteLocation is closed for provisioning new Cross-Cloud Interconnects." + ], + "type": "string" + } + }, + "type": "object" + }, + "InterconnectRemoteLocationList": { + "description": "Response to the list request, and contains a list of interconnect remote locations.", + "id": "InterconnectRemoteLocationList", + "properties": { + "id": { + "description": "[Output Only] Unique identifier for the resource; defined by the server.", + "type": "string" + }, + "items": { + "description": "A list of InterconnectRemoteLocation resources.", + "items": { + "$ref": "InterconnectRemoteLocation" + }, + "type": "array" + }, + "kind": { + "default": "compute#interconnectRemoteLocationList", + "description": "[Output Only] Type of resource. Always compute#interconnectRemoteLocationList for lists of interconnect remote locations.", + "type": "string" + }, + "nextPageToken": { + "description": "[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.", + "type": "string" + }, + "selfLink": { + "description": "[Output Only] Server-defined URL for this resource.", + "type": "string" + }, + "warning": { + "description": "[Output Only] Informational warning message.", + "properties": { + "code": { + "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "CLEANUP_FAILED", + "DEPRECATED_RESOURCE_USED", + "DEPRECATED_TYPE_USED", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "EXPERIMENTAL_TYPE_USED", + "EXTERNAL_API_WARNING", + "FIELD_VALUE_OVERRIDEN", + "INJECTED_KERNELS_DEPRECATED", + "LARGE_DEPLOYMENT_WARNING", + "MISSING_TYPE_DEPENDENCY", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_NOT_RUNNING", + "NOT_CRITICAL_ERROR", + "NO_RESULTS_ON_PAGE", + "PARTIAL_SUCCESS", + "REQUIRED_TOS_AGREEMENT", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "RESOURCE_NOT_DELETED", + "SCHEMA_VALIDATION_IGNORED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "UNDECLARED_PROPERTIES", + "UNREACHABLE" + ], + "enumDescriptions": [ + "Warning about failed cleanup of transient changes made by a failed operation.", + "A link to a deprecated resource was created.", + "When deploying and at least one of the resources has a type marked as deprecated", + "The user created a boot disk that is larger than image size.", + "When deploying and at least one of the resources has a type marked as experimental", + "Warning that is present in an external api call", + "Warning that value of a field has been overridden. Deprecated unused field.", + "The operation involved use of an injected kernel, which is deprecated.", + "When deploying a deployment with a exceedingly large number of resources", + "A resource depends on a missing type", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's next hop instance cannot ip forward.", + "The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance does not have a status of RUNNING.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "No results are present on a particular list page.", + "Success is reported, but some results may be missing due to errors", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "Warning that a resource is in use.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "When a resource schema validation is ignored.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "When undeclared properties in the schema are present", + "A given scope cannot be reached." + ], + "type": "string" + }, + "data": { + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "items": { + "properties": { + "key": { + "description": "[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).", + "type": "string" + }, + "value": { + "description": "[Output Only] A warning data value corresponding to the key.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "[Output Only] A human-readable description of the warning code.", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "InterconnectRemoteLocationPermittedConnections": { + "id": "InterconnectRemoteLocationPermittedConnections", + "properties": { + "interconnectLocation": { + "description": "[Output-only] URL of an Interconnect location that is permitted to connect to this Interconnect remote location.", + "type": "string" + } + }, + "type": "object" + }, "InterconnectsGetDiagnosticsResponse": { "description": "Response for the InterconnectsGetDiagnosticsRequest.", "id": "InterconnectsGetDiagnosticsResponse", @@ -69739,6 +70094,20 @@ "description": "An instance-attached disk resource.", "id": "SavedDisk", "properties": { + "architecture": { + "description": "[Output Only] The architecture of the attached disk.", + "enum": [ + "ARCHITECTURE_UNSPECIFIED", + "ARM64", + "X86_64" + ], + "enumDescriptions": [ + "Default value indicating Architecture is not set.", + "Machines with architecture ARM64", + "Machines with architecture X86_64" + ], + "type": "string" + }, "kind": { "default": "compute#savedDisk", "description": "[Output Only] Type of the resource. Always compute#savedDisk for attached disks.", diff --git a/compute/v0.alpha/compute-gen.go b/compute/v0.alpha/compute-gen.go index 9f2bc997cfa..faaed7a37be 100644 --- a/compute/v0.alpha/compute-gen.go +++ b/compute/v0.alpha/compute-gen.go @@ -175,6 +175,7 @@ func New(client *http.Client) (*Service, error) { s.InstantSnapshots = NewInstantSnapshotsService(s) s.InterconnectAttachments = NewInterconnectAttachmentsService(s) s.InterconnectLocations = NewInterconnectLocationsService(s) + s.InterconnectRemoteLocations = NewInterconnectRemoteLocationsService(s) s.Interconnects = NewInterconnectsService(s) s.LicenseCodes = NewLicenseCodesService(s) s.Licenses = NewLicensesService(s) @@ -310,6 +311,8 @@ type Service struct { InterconnectLocations *InterconnectLocationsService + InterconnectRemoteLocations *InterconnectRemoteLocationsService + Interconnects *InterconnectsService LicenseCodes *LicenseCodesService @@ -727,6 +730,15 @@ type InterconnectLocationsService struct { s *Service } +func NewInterconnectRemoteLocationsService(s *Service) *InterconnectRemoteLocationsService { + rs := &InterconnectRemoteLocationsService{s: s} + return rs +} + +type InterconnectRemoteLocationsService struct { + s *Service +} + func NewInterconnectsService(s *Service) *InterconnectsService { rs := &InterconnectsService{s: s} return rs @@ -28421,6 +28433,336 @@ func (s *InterconnectOutageNotification) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// InterconnectRemoteLocation: Represents an Cross-Cloud Interconnect +// Remote Location resource. You can use this resource to find remote +// location details about an Interconnect attachment (VLAN). +type InterconnectRemoteLocation struct { + // Address: [Output Only] The postal address of the Point of Presence, + // each line in the address is separated by a newline character. + Address string `json:"address,omitempty"` + + // City: [Output Only] Metropolitan area designator that indicates which + // city an interconnect is located. For example: "Chicago, IL", + // "Amsterdam, Netherlands". + City string `json:"city,omitempty"` + + // Continent: [Output Only] Continent for this location, which can take + // one of the following values: - AFRICA - ASIA_PAC - EUROPE - + // NORTH_AMERICA - SOUTH_AMERICA + // + // Possible values: + // "AFRICA" + // "ASIA_PAC" + // "EUROPE" + // "NORTH_AMERICA" + // "SOUTH_AMERICA" + Continent string `json:"continent,omitempty"` + + // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text + // format. + CreationTimestamp string `json:"creationTimestamp,omitempty"` + + // Description: [Output Only] An optional description of the resource. + Description string `json:"description,omitempty"` + + // FacilityProvider: [Output Only] The name of the provider for this + // facility (e.g., EQUINIX). + FacilityProvider string `json:"facilityProvider,omitempty"` + + // FacilityProviderFacilityId: [Output Only] A provider-assigned + // Identifier for this facility (e.g., Ashburn-DC1). + FacilityProviderFacilityId string `json:"facilityProviderFacilityId,omitempty"` + + // Id: [Output Only] The unique identifier for the resource. This + // identifier is defined by the server. + Id uint64 `json:"id,omitempty,string"` + + // Kind: [Output Only] Type of the resource. Always + // compute#interconnectRemoteLocation for interconnect remote locations. + Kind string `json:"kind,omitempty"` + + // Name: [Output Only] Name of the resource. + Name string `json:"name,omitempty"` + + // PeeringdbFacilityId: [Output Only] The peeringdb identifier for this + // facility (corresponding with a netfac type in peeringdb). + PeeringdbFacilityId string `json:"peeringdbFacilityId,omitempty"` + + // PermittedConnections: [Output-only] Permitted connections. + PermittedConnections *InterconnectRemoteLocationPermittedConnections `json:"permittedConnections,omitempty"` + + // RemoteService: [Output Only] Indicates the service provider present + // at the remote location. Example values: "Amazon Web Services", + // "Microsoft Azure". + RemoteService string `json:"remoteService,omitempty"` + + // SelfLink: [Output Only] Server-defined URL for the resource. + SelfLink string `json:"selfLink,omitempty"` + + // SelfLinkWithId: [Output Only] Server-defined URL for this resource + // with the resource id. + SelfLinkWithId string `json:"selfLinkWithId,omitempty"` + + // Status: [Output Only] The status of this InterconnectRemoteLocation, + // which can take one of the following values: - CLOSED: The + // InterconnectRemoteLocation is closed and is unavailable for + // provisioning new Cross-Cloud Interconnects. - AVAILABLE: The + // InterconnectRemoteLocation is available for provisioning new + // Cross-Cloud Interconnects. + // + // Possible values: + // "AVAILABLE" - The InterconnectRemoteLocation is available for + // provisioning new Cross-Cloud Interconnects. + // "CLOSED" - The InterconnectRemoteLocation is closed for + // provisioning new Cross-Cloud Interconnects. + Status string `json:"status,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Address") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Address") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *InterconnectRemoteLocation) MarshalJSON() ([]byte, error) { + type NoMethod InterconnectRemoteLocation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InterconnectRemoteLocationList: Response to the list request, and +// contains a list of interconnect remote locations. +type InterconnectRemoteLocationList struct { + // Id: [Output Only] Unique identifier for the resource; defined by the + // server. + Id string `json:"id,omitempty"` + + // Items: A list of InterconnectRemoteLocation resources. + Items []*InterconnectRemoteLocation `json:"items,omitempty"` + + // Kind: [Output Only] Type of resource. Always + // compute#interconnectRemoteLocationList for lists of interconnect + // remote locations. + Kind string `json:"kind,omitempty"` + + // 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. + NextPageToken string `json:"nextPageToken,omitempty"` + + // SelfLink: [Output Only] Server-defined URL for this resource. + SelfLink string `json:"selfLink,omitempty"` + + // Warning: [Output Only] Informational warning message. + Warning *InterconnectRemoteLocationListWarning `json:"warning,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Id") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Id") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *InterconnectRemoteLocationList) MarshalJSON() ([]byte, error) { + type NoMethod InterconnectRemoteLocationList + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InterconnectRemoteLocationListWarning: [Output Only] Informational +// warning message. +type InterconnectRemoteLocationListWarning struct { + // Code: [Output Only] A warning code, if applicable. For example, + // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in + // the response. + // + // Possible values: + // "CLEANUP_FAILED" - Warning about failed cleanup of transient + // changes made by a failed operation. + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was + // created. + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as deprecated + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk + // that is larger than image size. + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "EXTERNAL_API_WARNING" - Warning that is present in an external api + // call + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an + // injected kernel, which is deprecated. + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is + // not assigned to an instance on the network. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot + // ip forward. + // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's + // nextHopInstance URL refers to an instance that does not have an ipv6 + // interface on the same network as the route. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL + // refers to an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance + // URL refers to an instance that is not on the same network as the + // route. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not + // have a status of RUNNING. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to + // continue the process despite the mentioned error. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list + // page. + // "PARTIAL_SUCCESS" - Success is reported, but some results may be + // missing due to errors + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource + // that requires a TOS they have not accepted. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a + // resource is in use. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to + // auto-delete could not be deleted because they were in use. + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in + // instance group manager is valid as such, but its application does not + // make a lot of sense, because it allows only single instance in + // instance group. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema + // are present + // "UNREACHABLE" - A given scope cannot be reached. + Code string `json:"code,omitempty"` + + // Data: [Output Only] Metadata about this warning in key: value format. + // For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" + // } + Data []*InterconnectRemoteLocationListWarningData `json:"data,omitempty"` + + // Message: [Output Only] A human-readable description of the warning + // code. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *InterconnectRemoteLocationListWarning) MarshalJSON() ([]byte, error) { + type NoMethod InterconnectRemoteLocationListWarning + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type InterconnectRemoteLocationListWarningData struct { + // Key: [Output Only] A key that provides more detail on the warning + // being returned. For example, for warnings where there are no results + // in a list request for a particular zone, this key might be scope and + // the key value might be the zone name. Other examples might be a key + // indicating a deprecated resource and a suggested replacement, or a + // warning about invalid network settings (for example, if an instance + // attempts to perform IP forwarding but is not enabled for IP + // forwarding). + Key string `json:"key,omitempty"` + + // Value: [Output Only] A warning data value corresponding to the key. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Key") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *InterconnectRemoteLocationListWarningData) MarshalJSON() ([]byte, error) { + type NoMethod InterconnectRemoteLocationListWarningData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type InterconnectRemoteLocationPermittedConnections struct { + // InterconnectLocation: [Output-only] URL of an Interconnect location + // that is permitted to connect to this Interconnect remote location. + InterconnectLocation string `json:"interconnectLocation,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "InterconnectLocation") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "InterconnectLocation") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *InterconnectRemoteLocationPermittedConnections) MarshalJSON() ([]byte, error) { + type NoMethod InterconnectRemoteLocationPermittedConnections + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // InterconnectsGetDiagnosticsResponse: Response for the // InterconnectsGetDiagnosticsRequest. type InterconnectsGetDiagnosticsResponse struct { @@ -49115,6 +49457,15 @@ func (s *SavedAttachedDisk) MarshalJSON() ([]byte, error) { // SavedDisk: An instance-attached disk resource. type SavedDisk struct { + // Architecture: [Output Only] The architecture of the attached disk. + // + // Possible values: + // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture + // is not set. + // "ARM64" - Machines with architecture ARM64 + // "X86_64" - Machines with architecture X86_64 + Architecture string `json:"architecture,omitempty"` + // Kind: [Output Only] Type of the resource. Always compute#savedDisk // for attached disks. Kind string `json:"kind,omitempty"` @@ -49138,7 +49489,7 @@ type SavedDisk struct { // "UP_TO_DATE" StorageBytesStatus string `json:"storageBytesStatus,omitempty"` - // ForceSendFields is a list of field names (e.g. "Kind") to + // ForceSendFields is a list of field names (e.g. "Architecture") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -49146,10 +49497,10 @@ type SavedDisk struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Architecture") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -124744,6 +125095,606 @@ func (c *InterconnectLocationsTestIamPermissionsCall) Do(opts ...googleapi.CallO } +// method id "compute.interconnectRemoteLocations.get": + +type InterconnectRemoteLocationsGetCall struct { + s *Service + project string + interconnectRemoteLocation string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns the details for the specified interconnect remote +// location. Gets a list of available interconnect remote locations by +// making a list() request. +// +// - interconnectRemoteLocation: Name of the interconnect remote +// location to return. +// - project: Project ID for this request. +func (r *InterconnectRemoteLocationsService) Get(project string, interconnectRemoteLocation string) *InterconnectRemoteLocationsGetCall { + c := &InterconnectRemoteLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.interconnectRemoteLocation = interconnectRemoteLocation + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *InterconnectRemoteLocationsGetCall) Fields(s ...googleapi.Field) *InterconnectRemoteLocationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *InterconnectRemoteLocationsGetCall) IfNoneMatch(entityTag string) *InterconnectRemoteLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *InterconnectRemoteLocationsGetCall) Context(ctx context.Context) *InterconnectRemoteLocationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *InterconnectRemoteLocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *InterconnectRemoteLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "interconnectRemoteLocation": c.interconnectRemoteLocation, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.interconnectRemoteLocations.get" call. +// Exactly one of *InterconnectRemoteLocation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *InterconnectRemoteLocation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *InterconnectRemoteLocationsGetCall) Do(opts ...googleapi.CallOption) (*InterconnectRemoteLocation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &InterconnectRemoteLocation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the details for the specified interconnect remote location. Gets a list of available interconnect remote locations by making a list() request.", + // "flatPath": "projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}", + // "httpMethod": "GET", + // "id": "compute.interconnectRemoteLocations.get", + // "parameterOrder": [ + // "project", + // "interconnectRemoteLocation" + // ], + // "parameters": { + // "interconnectRemoteLocation": { + // "description": "Name of the interconnect remote location to return.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}", + // "response": { + // "$ref": "InterconnectRemoteLocation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// method id "compute.interconnectRemoteLocations.list": + +type InterconnectRemoteLocationsListCall struct { + s *Service + project string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Retrieves the list of interconnect remote locations available +// to the specified project. +// +// - project: Project ID for this request. +func (r *InterconnectRemoteLocationsService) List(project string) *InterconnectRemoteLocationsListCall { + c := &InterconnectRemoteLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + return c +} + +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most Compute resources +// support two types of filter expressions: expressions that support +// regular expressions and expressions that follow API improvement +// proposal AIP-160. If you want to use AIP-160, your expression must +// specify the field name, an operator, and the value that you want to +// use for filtering. The value must be a string, a number, or a +// boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` +// or `:`. For example, if you are filtering Compute Engine instances, +// you can exclude instances named `example-instance` by specifying +// `name != example-instance`. The `:` operator can be used with string +// fields to match substrings. For non-string fields it is equivalent to +// the `=` operator. The `:*` comparison can be used to test whether a +// key has been defined. For example, to find all objects with `owner` +// label use: ``` labels.owner:* ``` You can also filter nested fields. +// For example, you could specify `scheduling.automaticRestart = false` +// to include instances only if they are not scheduled for automatic +// restarts. You can use filtering on nested fields to filter based on +// resource labels. To filter on multiple expressions, provide each +// separate expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` If you want to use a +// regular expression, use the `eq` (equal) or `ne` (not equal) operator +// against a single un-parenthesized expression with or without quotes +// or against multiple parenthesized expressions. Examples: `fieldname +// eq unquoted literal` `fieldname eq 'single quoted literal'` +// `fieldname eq "double quoted literal" `(fieldname1 eq literal) +// (fieldname2 ne "literal")` The literal value is interpreted as a +// regular expression using Google RE2 library syntax. The literal value +// must match the entire field. For example, to filter for instances +// that do not end with name "instance", you would use `name ne +// .*instance`. +func (c *InterconnectRemoteLocationsListCall) Filter(filter string) *InterconnectRemoteLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// MaxResults sets the optional parameter "maxResults": The maximum +// number of results per page that should be returned. If the number of +// available results is larger than `maxResults`, Compute Engine returns +// a `nextPageToken` that can be used to get the next page of results in +// subsequent list requests. Acceptable values are `0` to `500`, +// inclusive. (Default: `500`) +func (c *InterconnectRemoteLocationsListCall) MaxResults(maxResults int64) *InterconnectRemoteLocationsListCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": Sorts list results by +// a certain order. By default, results are returned in alphanumerical +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. +func (c *InterconnectRemoteLocationsListCall) OrderBy(orderBy string) *InterconnectRemoteLocationsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Set `pageToken` to the `nextPageToken` returned by a +// previous list request to get the next page of results. +func (c *InterconnectRemoteLocationsListCall) PageToken(pageToken string) *InterconnectRemoteLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter +// "returnPartialSuccess": Opt-in for partial success behavior which +// provides partial results in case of failure. The default value is +// false. +func (c *InterconnectRemoteLocationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *InterconnectRemoteLocationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *InterconnectRemoteLocationsListCall) Fields(s ...googleapi.Field) *InterconnectRemoteLocationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *InterconnectRemoteLocationsListCall) IfNoneMatch(entityTag string) *InterconnectRemoteLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *InterconnectRemoteLocationsListCall) Context(ctx context.Context) *InterconnectRemoteLocationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *InterconnectRemoteLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *InterconnectRemoteLocationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/interconnectRemoteLocations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.interconnectRemoteLocations.list" call. +// Exactly one of *InterconnectRemoteLocationList or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *InterconnectRemoteLocationList.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *InterconnectRemoteLocationsListCall) Do(opts ...googleapi.CallOption) (*InterconnectRemoteLocationList, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &InterconnectRemoteLocationList{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves the list of interconnect remote locations available to the specified project.", + // "flatPath": "projects/{project}/global/interconnectRemoteLocations", + // "httpMethod": "GET", + // "id": "compute.interconnectRemoteLocations.list", + // "parameterOrder": [ + // "project" + // ], + // "parameters": { + // "filter": { + // "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`.", + // "location": "query", + // "type": "string" + // }, + // "maxResults": { + // "default": "500", + // "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", + // "format": "uint32", + // "location": "query", + // "minimum": "0", + // "type": "integer" + // }, + // "orderBy": { + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "location": "query", + // "type": "string" + // }, + // "pageToken": { + // "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.", + // "location": "query", + // "type": "string" + // }, + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "returnPartialSuccess": { + // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "projects/{project}/global/interconnectRemoteLocations", + // "response": { + // "$ref": "InterconnectRemoteLocationList" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *InterconnectRemoteLocationsListCall) Pages(ctx context.Context, f func(*InterconnectRemoteLocationList) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "compute.interconnectRemoteLocations.testIamPermissions": + +type InterconnectRemoteLocationsTestIamPermissionsCall struct { + s *Service + project string + resource string + testpermissionsrequest *TestPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. +// +// - project: Project ID for this request. +// - resource: Name or id of the resource for this request. +func (r *InterconnectRemoteLocationsService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *InterconnectRemoteLocationsTestIamPermissionsCall { + c := &InterconnectRemoteLocationsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.resource = resource + c.testpermissionsrequest = testpermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *InterconnectRemoteLocationsTestIamPermissionsCall) Fields(s ...googleapi.Field) *InterconnectRemoteLocationsTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *InterconnectRemoteLocationsTestIamPermissionsCall) Context(ctx context.Context) *InterconnectRemoteLocationsTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *InterconnectRemoteLocationsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *InterconnectRemoteLocationsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testpermissionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/interconnectRemoteLocations/{resource}/testIamPermissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.interconnectRemoteLocations.testIamPermissions" call. +// Exactly one of *TestPermissionsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *TestPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *InterconnectRemoteLocationsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &TestPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns permissions that a caller has on the specified resource.", + // "flatPath": "projects/{project}/global/interconnectRemoteLocations/{resource}/testIamPermissions", + // "httpMethod": "POST", + // "id": "compute.interconnectRemoteLocations.testIamPermissions", + // "parameterOrder": [ + // "project", + // "resource" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "resource": { + // "description": "Name or id of the resource for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/global/interconnectRemoteLocations/{resource}/testIamPermissions", + // "request": { + // "$ref": "TestPermissionsRequest" + // }, + // "response": { + // "$ref": "TestPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + // method id "compute.interconnects.delete": type InterconnectsDeleteCall struct { diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index ca0ee49acbc..0c523d9430b 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -35452,7 +35452,7 @@ } } }, - "revision": "20220614", + "revision": "20220621", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -36572,6 +36572,20 @@ "description": "An instance-attached disk resource.", "id": "AttachedDisk", "properties": { + "architecture": { + "description": "[Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64.", + "enum": [ + "ARCHITECTURE_UNSPECIFIED", + "ARM64", + "X86_64" + ], + "enumDescriptions": [ + "Default value indicating Architecture is not set.", + "Machines with architecture ARM64", + "Machines with architecture X86_64" + ], + "type": "string" + }, "autoDelete": { "description": "Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).", "type": "boolean" @@ -36683,6 +36697,20 @@ "description": "[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 field is persisted and returned for instanceTemplate and not returned in the context of instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.", "id": "AttachedDiskInitializeParams", "properties": { + "architecture": { + "description": "The architecture of the attached disk. Valid values are arm64 or x86_64.", + "enum": [ + "ARCHITECTURE_UNSPECIFIED", + "ARM64", + "X86_64" + ], + "enumDescriptions": [ + "Default value indicating Architecture is not set.", + "Machines with architecture ARM64", + "Machines with architecture X86_64" + ], + "type": "string" + }, "description": { "description": "An optional description. Provide this property when creating the disk.", "type": "string" @@ -40052,6 +40080,20 @@ "description": "Represents a Persistent Disk resource. Google Compute Engine has two Disk resources: * [Zonal](/compute/docs/reference/rest/beta/disks) * [Regional](/compute/docs/reference/rest/beta/regionDisks) Persistent disks are required for running your VM instances. Create both boot and non-boot (data) persistent disks. For more information, read Persistent Disks. For more storage options, read Storage options. The disks resource represents a zonal persistent disk. For more information, read Zonal persistent disks. The regionDisks resource represents a regional persistent disk. For more information, read Regional resources.", "id": "Disk", "properties": { + "architecture": { + "description": "The architecture of the disk. Valid values are ARM64 or X86_64.", + "enum": [ + "ARCHITECTURE_UNSPECIFIED", + "ARM64", + "X86_64" + ], + "enumDescriptions": [ + "Default value indicating Architecture is not set.", + "Machines with architecture ARM64", + "Machines with architecture X86_64" + ], + "type": "string" + }, "creationTimestamp": { "description": "[Output Only] Creation timestamp in RFC3339 text format.", "type": "string" @@ -41196,6 +41238,28 @@ }, "type": "object" }, + "ErrorInfo": { + "description": "Describes the cause of the error with structured details. Example of an error when contacting the \"pubsub.googleapis.com\" API when it is not enabled: { \"reason\": \"API_DISABLED\" \"domain\": \"googleapis.com\" \"metadata\": { \"resource\": \"projects/123\", \"service\": \"pubsub.googleapis.com\" } } This response indicates that the pubsub.googleapis.com API is not enabled. Example of an error that is returned when attempting to create a Spanner instance in a region that is out of stock: { \"reason\": \"STOCKOUT\" \"domain\": \"spanner.googleapis.com\", \"metadata\": { \"availableRegions\": \"us-central1,us-east2\" } }", + "id": "ErrorInfo", + "properties": { + "domain": { + "description": "The logical grouping to which the \"reason\" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: \"pubsub.googleapis.com\". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is \"googleapis.com\".", + "type": "string" + }, + "metadatas": { + "additionalProperties": { + "type": "string" + }, + "description": "Additional structured details about this error. Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {\"instanceLimit\": \"100/request\"}, should be returned as, {\"instanceLimitPerRequest\": \"100\"}, if the client exceeds the number of instances that can be created in a single (batch) request.", + "type": "object" + }, + "reason": { + "description": "The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match /[A-Z0-9_]+/.", + "type": "string" + } + }, + "type": "object" + }, "ExchangedPeeringRoute": { "id": "ExchangedPeeringRoute", "properties": { @@ -44113,6 +44177,35 @@ }, "type": "object" }, + "Help": { + "description": "Provides links to documentation or for performing an out of band action. For example, if a quota check failed with an error indicating the calling project hasn't enabled the accessed service, this can contain a URL pointing directly to the right place in the developer console to flip the bit.", + "id": "Help", + "properties": { + "links": { + "description": "URL(s) pointing to additional information on handling the current error.", + "items": { + "$ref": "HelpLink" + }, + "type": "array" + } + }, + "type": "object" + }, + "HelpLink": { + "description": "Describes a URL link.", + "id": "HelpLink", + "properties": { + "description": { + "description": "Describes what the link offers.", + "type": "string" + }, + "url": { + "description": "The URL of the link.", + "type": "string" + } + }, + "type": "object" + }, "HostRule": { "description": "UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService.", "id": "HostRule", @@ -44898,6 +44991,20 @@ "description": "Represents an Image resource. You can use images to create boot disks for your VM instances. For more information, read Images.", "id": "Image", "properties": { + "architecture": { + "description": "The architecture of the image. Valid values are ARM64 or X86_64.", + "enum": [ + "ARCHITECTURE_UNSPECIFIED", + "ARM64", + "X86_64" + ], + "enumDescriptions": [ + "Default value indicating Architecture is not set.", + "Machines with architecture ARM64", + "Machines with architecture X86_64" + ], + "type": "string" + }, "archiveSizeBytes": { "description": "Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).", "format": "int64", @@ -50236,6 +50343,21 @@ }, "type": "object" }, + "LocalizedMessage": { + "description": "Provides a localized error message that is safe to return to the user which can be attached to an RPC error.", + "id": "LocalizedMessage", + "properties": { + "locale": { + "description": "The locale used following the specification defined at http://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: \"en-US\", \"fr-CH\", \"es-MX\"", + "type": "string" + }, + "message": { + "description": "The localized error message in the above locale.", + "type": "string" + } + }, + "type": "object" + }, "LocationPolicy": { "description": "Configuration for location policy among multiple possible locations (e.g. preferences for zone selection among zones in a single region).", "id": "LocationPolicy", @@ -51209,6 +51331,24 @@ "description": "[Output Only] The error type identifier for this error.", "type": "string" }, + "errorDetails": { + "description": "[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.", + "items": { + "properties": { + "errorInfo": { + "$ref": "ErrorInfo" + }, + "help": { + "$ref": "Help" + }, + "localizedMessage": { + "$ref": "LocalizedMessage" + } + }, + "type": "object" + }, + "type": "array" + }, "location": { "description": "[Output Only] Indicates the field in the request that caused the error. This property is optional.", "type": "string" @@ -54778,6 +54918,24 @@ "description": "[Output Only] The error type identifier for this error.", "type": "string" }, + "errorDetails": { + "description": "[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.", + "items": { + "properties": { + "errorInfo": { + "$ref": "ErrorInfo" + }, + "help": { + "$ref": "Help" + }, + "localizedMessage": { + "$ref": "LocalizedMessage" + } + }, + "type": "object" + }, + "type": "array" + }, "location": { "description": "[Output Only] Indicates the field in the request that caused the error. This property is optional.", "type": "string" @@ -61831,6 +61989,20 @@ "description": "An instance-attached disk resource.", "id": "SavedDisk", "properties": { + "architecture": { + "description": "[Output Only] The architecture of the attached disk.", + "enum": [ + "ARCHITECTURE_UNSPECIFIED", + "ARM64", + "X86_64" + ], + "enumDescriptions": [ + "Default value indicating Architecture is not set.", + "Machines with architecture ARM64", + "Machines with architecture X86_64" + ], + "type": "string" + }, "kind": { "default": "compute#savedDisk", "description": "[Output Only] Type of the resource. Always compute#savedDisk for attached disks.", @@ -63717,6 +63889,20 @@ "description": "Represents a Persistent Disk Snapshot resource. You can use snapshots to back up data on a regular interval. For more information, read Creating persistent disk snapshots.", "id": "Snapshot", "properties": { + "architecture": { + "description": "[Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64.", + "enum": [ + "ARCHITECTURE_UNSPECIFIED", + "ARM64", + "X86_64" + ], + "enumDescriptions": [ + "Default value indicating Architecture is not set.", + "Machines with architecture ARM64", + "Machines with architecture X86_64" + ], + "type": "string" + }, "autoCreated": { "description": "[Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk.", "type": "boolean" diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index 3d3f26ed6d2..cf8a7f2cf37 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -2957,6 +2957,16 @@ func (s *AllocationSpecificSKUReservation) MarshalJSON() ([]byte, error) { // AttachedDisk: An instance-attached disk resource. type AttachedDisk struct { + // Architecture: [Output Only] The architecture of the attached disk. + // Valid values are ARM64 or X86_64. + // + // Possible values: + // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture + // is not set. + // "ARM64" - Machines with architecture ARM64 + // "X86_64" - Machines with architecture X86_64 + Architecture string `json:"architecture,omitempty"` + // AutoDelete: Specifies whether the disk will be auto-deleted when the // instance is deleted (but not when the disk is detached from the // instance). @@ -3081,7 +3091,7 @@ type AttachedDisk struct { // created. UserLicenses []string `json:"userLicenses,omitempty"` - // ForceSendFields is a list of field names (e.g. "AutoDelete") to + // ForceSendFields is a list of field names (e.g. "Architecture") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3089,10 +3099,10 @@ type AttachedDisk struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AutoDelete") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Architecture") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -3112,6 +3122,16 @@ func (s *AttachedDisk) MarshalJSON() ([]byte, error) { // property is mutually exclusive with the source property; you can only // define one or the other, but not both. type AttachedDiskInitializeParams struct { + // Architecture: The architecture of the attached disk. Valid values are + // arm64 or x86_64. + // + // Possible values: + // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture + // is not set. + // "ARM64" - Machines with architecture ARM64 + // "X86_64" - Machines with architecture X86_64 + Architecture string `json:"architecture,omitempty"` + // Description: An optional description. Provide this property when // creating the disk. Description string `json:"description,omitempty"` @@ -3223,7 +3243,7 @@ type AttachedDiskInitializeParams struct { // the source snapshot. SourceSnapshotEncryptionKey *CustomerEncryptionKey `json:"sourceSnapshotEncryptionKey,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to + // ForceSendFields is a list of field names (e.g. "Architecture") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3231,7 +3251,7 @@ type AttachedDiskInitializeParams struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Description") to include + // NullFields is a list of field names (e.g. "Architecture") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as @@ -8662,6 +8682,16 @@ func (s *DeprecationStatus) MarshalJSON() ([]byte, error) { // persistent disks. The regionDisks resource represents a regional // persistent disk. For more information, read Regional resources. type Disk struct { + // Architecture: The architecture of the disk. Valid values are ARM64 or + // X86_64. + // + // Possible values: + // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture + // is not set. + // "ARM64" - Machines with architecture ARM64 + // "X86_64" - Machines with architecture X86_64 + Architecture string `json:"architecture,omitempty"` + // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` @@ -8946,21 +8976,20 @@ type Disk struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreationTimestamp") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "Architecture") to + // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreationTimestamp") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Architecture") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -10480,6 +10509,64 @@ func (s *Duration) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ErrorInfo: Describes the cause of the error with structured details. +// Example of an error when contacting the "pubsub.googleapis.com" API +// when it is not enabled: { "reason": "API_DISABLED" "domain": +// "googleapis.com" "metadata": { "resource": "projects/123", "service": +// "pubsub.googleapis.com" } } This response indicates that the +// pubsub.googleapis.com API is not enabled. Example of an error that is +// returned when attempting to create a Spanner instance in a region +// that is out of stock: { "reason": "STOCKOUT" "domain": +// "spanner.googleapis.com", "metadata": { "availableRegions": +// "us-central1,us-east2" } } +type ErrorInfo struct { + // Domain: The logical grouping to which the "reason" belongs. The error + // domain is typically the registered service name of the tool or + // product that generates the error. Example: "pubsub.googleapis.com". + // If the error is generated by some common infrastructure, the error + // domain must be a globally unique value that identifies the + // infrastructure. For Google API infrastructure, the error domain is + // "googleapis.com". + Domain string `json:"domain,omitempty"` + + // Metadatas: Additional structured details about this error. Keys + // should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in + // length. When identifying the current value of an exceeded limit, the + // units should be contained in the key, not the value. For example, + // rather than {"instanceLimit": "100/request"}, should be returned as, + // {"instanceLimitPerRequest": "100"}, if the client exceeds the number + // of instances that can be created in a single (batch) request. + Metadatas map[string]string `json:"metadatas,omitempty"` + + // Reason: The reason of the error. This is a constant value that + // identifies the proximate cause of the error. Error reasons are unique + // within a particular domain of errors. This should be at most 63 + // characters and match /[A-Z0-9_]+/. + Reason string `json:"reason,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Domain") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Domain") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ErrorInfo) MarshalJSON() ([]byte, error) { + type NoMethod ErrorInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type ExchangedPeeringRoute struct { // DestRange: The destination range of the route. DestRange string `json:"destRange,omitempty"` @@ -15058,6 +15145,70 @@ func (s *HealthStatusForNetworkEndpoint) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Help: Provides links to documentation or for performing an out of +// band action. For example, if a quota check failed with an error +// indicating the calling project hasn't enabled the accessed service, +// this can contain a URL pointing directly to the right place in the +// developer console to flip the bit. +type Help struct { + // Links: URL(s) pointing to additional information on handling the + // current error. + Links []*HelpLink `json:"links,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Links") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Links") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Help) MarshalJSON() ([]byte, error) { + type NoMethod Help + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// HelpLink: Describes a URL link. +type HelpLink struct { + // Description: Describes what the link offers. + Description string `json:"description,omitempty"` + + // Url: The URL of the link. + Url string `json:"url,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Description") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *HelpLink) MarshalJSON() ([]byte, error) { + type NoMethod HelpLink + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // HostRule: UrlMaps A host-matching rule for a URL. If matched, will // use the named PathMatcher to select the BackendService. type HostRule struct { @@ -16504,6 +16655,16 @@ func (s *HttpsHealthCheckListWarningData) MarshalJSON() ([]byte, error) { // Image: Represents an Image resource. You can use images to create // boot disks for your VM instances. For more information, read Images. type Image struct { + // Architecture: The architecture of the image. Valid values are ARM64 + // or X86_64. + // + // Possible values: + // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture + // is not set. + // "ARM64" - Machines with architecture ARM64 + // "X86_64" - Machines with architecture X86_64 + Architecture string `json:"architecture,omitempty"` + // ArchiveSizeBytes: Size of the image tar.gz archive stored in Google // Cloud Storage (in bytes). ArchiveSizeBytes int64 `json:"archiveSizeBytes,omitempty,string"` @@ -16719,7 +16880,7 @@ type Image struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ArchiveSizeBytes") to + // ForceSendFields is a list of field names (e.g. "Architecture") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -16727,13 +16888,12 @@ type Image struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ArchiveSizeBytes") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Architecture") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -24849,6 +25009,40 @@ func (s *LocalDisk) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LocalizedMessage: Provides a localized error message that is safe to +// return to the user which can be attached to an RPC error. +type LocalizedMessage struct { + // Locale: The locale used following the specification defined at + // http://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", + // "fr-CH", "es-MX" + Locale string `json:"locale,omitempty"` + + // Message: The localized error message in the above locale. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Locale") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Locale") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LocalizedMessage) MarshalJSON() ([]byte, error) { + type NoMethod LocalizedMessage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // LocationPolicy: Configuration for location policy among multiple // possible locations (e.g. preferences for zone selection among zones // in a single region). @@ -26392,6 +26586,13 @@ type ManagedInstanceLastAttemptErrorsErrors struct { // Code: [Output Only] The error type identifier for this error. Code string `json:"code,omitempty"` + // ErrorDetails: [Output Only] An optional list of messages that contain + // the error details. There is a set of defined message types to use for + // providing details.The syntax depends on the error code. For example, + // QuotaExceededInfo will have details when the error code is + // QUOTA_EXCEEDED. + ErrorDetails []*ManagedInstanceLastAttemptErrorsErrorsErrorDetails `json:"errorDetails,omitempty"` + // Location: [Output Only] Indicates the field in the request that // caused the error. This property is optional. Location string `json:"location,omitempty"` @@ -26422,6 +26623,36 @@ func (s *ManagedInstanceLastAttemptErrorsErrors) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type ManagedInstanceLastAttemptErrorsErrorsErrorDetails struct { + ErrorInfo *ErrorInfo `json:"errorInfo,omitempty"` + + Help *Help `json:"help,omitempty"` + + LocalizedMessage *LocalizedMessage `json:"localizedMessage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ErrorInfo") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ErrorInfo") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ManagedInstanceLastAttemptErrorsErrorsErrorDetails) MarshalJSON() ([]byte, error) { + type NoMethod ManagedInstanceLastAttemptErrorsErrorsErrorDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type ManagedInstanceVersion struct { // InstanceTemplate: [Output Only] The intended template of the // instance. This field is empty when current_action is one of { @@ -32134,6 +32365,13 @@ type OperationErrorErrors struct { // Code: [Output Only] The error type identifier for this error. Code string `json:"code,omitempty"` + // ErrorDetails: [Output Only] An optional list of messages that contain + // the error details. There is a set of defined message types to use for + // providing details.The syntax depends on the error code. For example, + // QuotaExceededInfo will have details when the error code is + // QUOTA_EXCEEDED. + ErrorDetails []*OperationErrorErrorsErrorDetails `json:"errorDetails,omitempty"` + // Location: [Output Only] Indicates the field in the request that // caused the error. This property is optional. Location string `json:"location,omitempty"` @@ -32164,6 +32402,36 @@ func (s *OperationErrorErrors) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type OperationErrorErrorsErrorDetails struct { + ErrorInfo *ErrorInfo `json:"errorInfo,omitempty"` + + Help *Help `json:"help,omitempty"` + + LocalizedMessage *LocalizedMessage `json:"localizedMessage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ErrorInfo") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ErrorInfo") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *OperationErrorErrorsErrorDetails) MarshalJSON() ([]byte, error) { + type NoMethod OperationErrorErrorsErrorDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type OperationWarnings struct { // Code: [Output Only] A warning code, if applicable. For example, // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in @@ -42654,6 +42922,15 @@ func (s *SavedAttachedDisk) MarshalJSON() ([]byte, error) { // SavedDisk: An instance-attached disk resource. type SavedDisk struct { + // Architecture: [Output Only] The architecture of the attached disk. + // + // Possible values: + // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture + // is not set. + // "ARM64" - Machines with architecture ARM64 + // "X86_64" - Machines with architecture X86_64 + Architecture string `json:"architecture,omitempty"` + // Kind: [Output Only] Type of the resource. Always compute#savedDisk // for attached disks. Kind string `json:"kind,omitempty"` @@ -42677,7 +42954,7 @@ type SavedDisk struct { // "UP_TO_DATE" StorageBytesStatus string `json:"storageBytesStatus,omitempty"` - // ForceSendFields is a list of field names (e.g. "Kind") to + // ForceSendFields is a list of field names (e.g. "Architecture") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -42685,10 +42962,10 @@ type SavedDisk struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Architecture") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -45749,6 +46026,16 @@ func (s *SignedUrlKey) MarshalJSON() ([]byte, error) { // snapshots to back up data on a regular interval. For more // information, read Creating persistent disk snapshots. type Snapshot struct { + // Architecture: [Output Only] The architecture of the snapshot. Valid + // values are ARM64 or X86_64. + // + // Possible values: + // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture + // is not set. + // "ARM64" - Machines with architecture ARM64 + // "X86_64" - Machines with architecture X86_64 + Architecture string `json:"architecture,omitempty"` + // AutoCreated: [Output Only] Set to true if snapshots are automatically // created by applying resource policy on the target disk. AutoCreated bool `json:"autoCreated,omitempty"` @@ -45904,7 +46191,7 @@ type Snapshot struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AutoCreated") to + // ForceSendFields is a list of field names (e.g. "Architecture") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -45912,7 +46199,7 @@ type Snapshot struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AutoCreated") to include + // NullFields is a list of field names (e.g. "Architecture") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index ddf6ce56428..b82961d0af4 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -31172,7 +31172,7 @@ } } }, - "revision": "20220614", + "revision": "20220621", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -32260,6 +32260,20 @@ "description": "An instance-attached disk resource.", "id": "AttachedDisk", "properties": { + "architecture": { + "description": "[Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64.", + "enum": [ + "ARCHITECTURE_UNSPECIFIED", + "ARM64", + "X86_64" + ], + "enumDescriptions": [ + "Default value indicating Architecture is not set.", + "Machines with architecture ARM64", + "Machines with architecture X86_64" + ], + "type": "string" + }, "autoDelete": { "description": "Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).", "type": "boolean" @@ -32360,6 +32374,20 @@ "description": "[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 field is persisted and returned for instanceTemplate and not returned in the context of instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.", "id": "AttachedDiskInitializeParams", "properties": { + "architecture": { + "description": "The architecture of the attached disk. Valid values are arm64 or x86_64.", + "enum": [ + "ARCHITECTURE_UNSPECIFIED", + "ARM64", + "X86_64" + ], + "enumDescriptions": [ + "Default value indicating Architecture is not set.", + "Machines with architecture ARM64", + "Machines with architecture X86_64" + ], + "type": "string" + }, "description": { "description": "An optional description. Provide this property when creating the disk.", "type": "string" @@ -35661,6 +35689,20 @@ "description": "Represents a Persistent Disk resource. Google Compute Engine has two Disk resources: * [Zonal](/compute/docs/reference/rest/v1/disks) * [Regional](/compute/docs/reference/rest/v1/regionDisks) Persistent disks are required for running your VM instances. Create both boot and non-boot (data) persistent disks. For more information, read Persistent Disks. For more storage options, read Storage options. The disks resource represents a zonal persistent disk. For more information, read Zonal persistent disks. The regionDisks resource represents a regional persistent disk. For more information, read Regional resources.", "id": "Disk", "properties": { + "architecture": { + "description": "The architecture of the disk. Valid values are ARM64 or X86_64.", + "enum": [ + "ARCHITECTURE_UNSPECIFIED", + "ARM64", + "X86_64" + ], + "enumDescriptions": [ + "Default value indicating Architecture is not set.", + "Machines with architecture ARM64", + "Machines with architecture X86_64" + ], + "type": "string" + }, "creationTimestamp": { "description": "[Output Only] Creation timestamp in RFC3339 text format.", "type": "string" @@ -36759,6 +36801,28 @@ }, "type": "object" }, + "ErrorInfo": { + "description": "Describes the cause of the error with structured details. Example of an error when contacting the \"pubsub.googleapis.com\" API when it is not enabled: { \"reason\": \"API_DISABLED\" \"domain\": \"googleapis.com\" \"metadata\": { \"resource\": \"projects/123\", \"service\": \"pubsub.googleapis.com\" } } This response indicates that the pubsub.googleapis.com API is not enabled. Example of an error that is returned when attempting to create a Spanner instance in a region that is out of stock: { \"reason\": \"STOCKOUT\" \"domain\": \"spanner.googleapis.com\", \"metadata\": { \"availableRegions\": \"us-central1,us-east2\" } }", + "id": "ErrorInfo", + "properties": { + "domain": { + "description": "The logical grouping to which the \"reason\" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: \"pubsub.googleapis.com\". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is \"googleapis.com\".", + "type": "string" + }, + "metadatas": { + "additionalProperties": { + "type": "string" + }, + "description": "Additional structured details about this error. Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {\"instanceLimit\": \"100/request\"}, should be returned as, {\"instanceLimitPerRequest\": \"100\"}, if the client exceeds the number of instances that can be created in a single (batch) request.", + "type": "object" + }, + "reason": { + "description": "The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match /[A-Z0-9_]+/.", + "type": "string" + } + }, + "type": "object" + }, "ExchangedPeeringRoute": { "id": "ExchangedPeeringRoute", "properties": { @@ -39611,6 +39675,35 @@ }, "type": "object" }, + "Help": { + "description": "Provides links to documentation or for performing an out of band action. For example, if a quota check failed with an error indicating the calling project hasn't enabled the accessed service, this can contain a URL pointing directly to the right place in the developer console to flip the bit.", + "id": "Help", + "properties": { + "links": { + "description": "URL(s) pointing to additional information on handling the current error.", + "items": { + "$ref": "HelpLink" + }, + "type": "array" + } + }, + "type": "object" + }, + "HelpLink": { + "description": "Describes a URL link.", + "id": "HelpLink", + "properties": { + "description": { + "description": "Describes what the link offers.", + "type": "string" + }, + "url": { + "description": "The URL of the link.", + "type": "string" + } + }, + "type": "object" + }, "HostRule": { "description": "UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService.", "id": "HostRule", @@ -40363,6 +40456,20 @@ "description": "Represents an Image resource. You can use images to create boot disks for your VM instances. For more information, read Images.", "id": "Image", "properties": { + "architecture": { + "description": "The architecture of the image. Valid values are ARM64 or X86_64.", + "enum": [ + "ARCHITECTURE_UNSPECIFIED", + "ARM64", + "X86_64" + ], + "enumDescriptions": [ + "Default value indicating Architecture is not set.", + "Machines with architecture ARM64", + "Machines with architecture X86_64" + ], + "type": "string" + }, "archiveSizeBytes": { "description": "Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).", "format": "int64", @@ -45400,6 +45507,21 @@ }, "type": "object" }, + "LocalizedMessage": { + "description": "Provides a localized error message that is safe to return to the user which can be attached to an RPC error.", + "id": "LocalizedMessage", + "properties": { + "locale": { + "description": "The locale used following the specification defined at http://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: \"en-US\", \"fr-CH\", \"es-MX\"", + "type": "string" + }, + "message": { + "description": "The localized error message in the above locale.", + "type": "string" + } + }, + "type": "object" + }, "LocationPolicy": { "description": "Configuration for location policy among multiple possible locations (e.g. preferences for zone selection among zones in a single region).", "id": "LocationPolicy", @@ -46378,6 +46500,24 @@ "description": "[Output Only] The error type identifier for this error.", "type": "string" }, + "errorDetails": { + "description": "[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.", + "items": { + "properties": { + "errorInfo": { + "$ref": "ErrorInfo" + }, + "help": { + "$ref": "Help" + }, + "localizedMessage": { + "$ref": "LocalizedMessage" + } + }, + "type": "object" + }, + "type": "array" + }, "location": { "description": "[Output Only] Indicates the field in the request that caused the error. This property is optional.", "type": "string" @@ -49831,6 +49971,24 @@ "description": "[Output Only] The error type identifier for this error.", "type": "string" }, + "errorDetails": { + "description": "[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.", + "items": { + "properties": { + "errorInfo": { + "$ref": "ErrorInfo" + }, + "help": { + "$ref": "Help" + }, + "localizedMessage": { + "$ref": "LocalizedMessage" + } + }, + "type": "object" + }, + "type": "array" + }, "location": { "description": "[Output Only] Indicates the field in the request that caused the error. This property is optional.", "type": "string" @@ -56698,6 +56856,20 @@ "description": "An instance-attached disk resource.", "id": "SavedDisk", "properties": { + "architecture": { + "description": "[Output Only] The architecture of the attached disk.", + "enum": [ + "ARCHITECTURE_UNSPECIFIED", + "ARM64", + "X86_64" + ], + "enumDescriptions": [ + "Default value indicating Architecture is not set.", + "Machines with architecture ARM64", + "Machines with architecture X86_64" + ], + "type": "string" + }, "kind": { "default": "compute#savedDisk", "description": "[Output Only] Type of the resource. Always compute#savedDisk for attached disks.", @@ -58324,6 +58496,20 @@ "description": "Represents a Persistent Disk Snapshot resource. You can use snapshots to back up data on a regular interval. For more information, read Creating persistent disk snapshots.", "id": "Snapshot", "properties": { + "architecture": { + "description": "[Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64.", + "enum": [ + "ARCHITECTURE_UNSPECIFIED", + "ARM64", + "X86_64" + ], + "enumDescriptions": [ + "Default value indicating Architecture is not set.", + "Machines with architecture ARM64", + "Machines with architecture X86_64" + ], + "type": "string" + }, "autoCreated": { "description": "[Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk.", "type": "boolean" diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index 2c354061c18..88629bccddd 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -2882,6 +2882,16 @@ func (s *AllocationSpecificSKUReservation) MarshalJSON() ([]byte, error) { // AttachedDisk: An instance-attached disk resource. type AttachedDisk struct { + // Architecture: [Output Only] The architecture of the attached disk. + // Valid values are ARM64 or X86_64. + // + // Possible values: + // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture + // is not set. + // "ARM64" - Machines with architecture ARM64 + // "X86_64" - Machines with architecture X86_64 + Architecture string `json:"architecture,omitempty"` + // AutoDelete: Specifies whether the disk will be auto-deleted when the // instance is deleted (but not when the disk is detached from the // instance). @@ -2991,7 +3001,7 @@ type AttachedDisk struct { // "SCRATCH" Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "AutoDelete") to + // ForceSendFields is a list of field names (e.g. "Architecture") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2999,10 +3009,10 @@ type AttachedDisk struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AutoDelete") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Architecture") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -3022,6 +3032,16 @@ func (s *AttachedDisk) MarshalJSON() ([]byte, error) { // property is mutually exclusive with the source property; you can only // define one or the other, but not both. type AttachedDiskInitializeParams struct { + // Architecture: The architecture of the attached disk. Valid values are + // arm64 or x86_64. + // + // Possible values: + // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture + // is not set. + // "ARM64" - Machines with architecture ARM64 + // "X86_64" - Machines with architecture X86_64 + Architecture string `json:"architecture,omitempty"` + // Description: An optional description. Provide this property when // creating the disk. Description string `json:"description,omitempty"` @@ -3122,7 +3142,7 @@ type AttachedDiskInitializeParams struct { // the source snapshot. SourceSnapshotEncryptionKey *CustomerEncryptionKey `json:"sourceSnapshotEncryptionKey,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to + // ForceSendFields is a list of field names (e.g. "Architecture") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3130,7 +3150,7 @@ type AttachedDiskInitializeParams struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Description") to include + // NullFields is a list of field names (e.g. "Architecture") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as @@ -8462,6 +8482,16 @@ func (s *DeprecationStatus) MarshalJSON() ([]byte, error) { // persistent disks. The regionDisks resource represents a regional // persistent disk. For more information, read Regional resources. type Disk struct { + // Architecture: The architecture of the disk. Valid values are ARM64 or + // X86_64. + // + // Possible values: + // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture + // is not set. + // "ARM64" - Machines with architecture ARM64 + // "X86_64" - Machines with architecture X86_64 + Architecture string `json:"architecture,omitempty"` + // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` @@ -8700,21 +8730,20 @@ type Disk struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreationTimestamp") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "Architecture") to + // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreationTimestamp") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Architecture") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -10234,6 +10263,64 @@ func (s *Duration) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ErrorInfo: Describes the cause of the error with structured details. +// Example of an error when contacting the "pubsub.googleapis.com" API +// when it is not enabled: { "reason": "API_DISABLED" "domain": +// "googleapis.com" "metadata": { "resource": "projects/123", "service": +// "pubsub.googleapis.com" } } This response indicates that the +// pubsub.googleapis.com API is not enabled. Example of an error that is +// returned when attempting to create a Spanner instance in a region +// that is out of stock: { "reason": "STOCKOUT" "domain": +// "spanner.googleapis.com", "metadata": { "availableRegions": +// "us-central1,us-east2" } } +type ErrorInfo struct { + // Domain: The logical grouping to which the "reason" belongs. The error + // domain is typically the registered service name of the tool or + // product that generates the error. Example: "pubsub.googleapis.com". + // If the error is generated by some common infrastructure, the error + // domain must be a globally unique value that identifies the + // infrastructure. For Google API infrastructure, the error domain is + // "googleapis.com". + Domain string `json:"domain,omitempty"` + + // Metadatas: Additional structured details about this error. Keys + // should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in + // length. When identifying the current value of an exceeded limit, the + // units should be contained in the key, not the value. For example, + // rather than {"instanceLimit": "100/request"}, should be returned as, + // {"instanceLimitPerRequest": "100"}, if the client exceeds the number + // of instances that can be created in a single (batch) request. + Metadatas map[string]string `json:"metadatas,omitempty"` + + // Reason: The reason of the error. This is a constant value that + // identifies the proximate cause of the error. Error reasons are unique + // within a particular domain of errors. This should be at most 63 + // characters and match /[A-Z0-9_]+/. + Reason string `json:"reason,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Domain") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Domain") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ErrorInfo) MarshalJSON() ([]byte, error) { + type NoMethod ErrorInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type ExchangedPeeringRoute struct { // DestRange: The destination range of the route. DestRange string `json:"destRange,omitempty"` @@ -14748,6 +14835,70 @@ func (s *HealthStatusForNetworkEndpoint) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Help: Provides links to documentation or for performing an out of +// band action. For example, if a quota check failed with an error +// indicating the calling project hasn't enabled the accessed service, +// this can contain a URL pointing directly to the right place in the +// developer console to flip the bit. +type Help struct { + // Links: URL(s) pointing to additional information on handling the + // current error. + Links []*HelpLink `json:"links,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Links") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Links") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Help) MarshalJSON() ([]byte, error) { + type NoMethod Help + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// HelpLink: Describes a URL link. +type HelpLink struct { + // Description: Describes what the link offers. + Description string `json:"description,omitempty"` + + // Url: The URL of the link. + Url string `json:"url,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Description") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *HelpLink) MarshalJSON() ([]byte, error) { + type NoMethod HelpLink + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // HostRule: UrlMaps A host-matching rule for a URL. If matched, will // use the named PathMatcher to select the BackendService. type HostRule struct { @@ -16133,6 +16284,16 @@ func (s *HttpsHealthCheckListWarningData) MarshalJSON() ([]byte, error) { // Image: Represents an Image resource. You can use images to create // boot disks for your VM instances. For more information, read Images. type Image struct { + // Architecture: The architecture of the image. Valid values are ARM64 + // or X86_64. + // + // Possible values: + // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture + // is not set. + // "ARM64" - Machines with architecture ARM64 + // "X86_64" - Machines with architecture X86_64 + Architecture string `json:"architecture,omitempty"` + // ArchiveSizeBytes: Size of the image tar.gz archive stored in Google // Cloud Storage (in bytes). ArchiveSizeBytes int64 `json:"archiveSizeBytes,omitempty,string"` @@ -16312,7 +16473,7 @@ type Image struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ArchiveSizeBytes") to + // ForceSendFields is a list of field names (e.g. "Architecture") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -16320,13 +16481,12 @@ type Image struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ArchiveSizeBytes") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Architecture") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -23961,6 +24121,40 @@ func (s *LocalDisk) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LocalizedMessage: Provides a localized error message that is safe to +// return to the user which can be attached to an RPC error. +type LocalizedMessage struct { + // Locale: The locale used following the specification defined at + // http://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", + // "fr-CH", "es-MX" + Locale string `json:"locale,omitempty"` + + // Message: The localized error message in the above locale. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Locale") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Locale") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LocalizedMessage) MarshalJSON() ([]byte, error) { + type NoMethod LocalizedMessage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // LocationPolicy: Configuration for location policy among multiple // possible locations (e.g. preferences for zone selection among zones // in a single region). @@ -25506,6 +25700,13 @@ type ManagedInstanceLastAttemptErrorsErrors struct { // Code: [Output Only] The error type identifier for this error. Code string `json:"code,omitempty"` + // ErrorDetails: [Output Only] An optional list of messages that contain + // the error details. There is a set of defined message types to use for + // providing details.The syntax depends on the error code. For example, + // QuotaExceededInfo will have details when the error code is + // QUOTA_EXCEEDED. + ErrorDetails []*ManagedInstanceLastAttemptErrorsErrorsErrorDetails `json:"errorDetails,omitempty"` + // Location: [Output Only] Indicates the field in the request that // caused the error. This property is optional. Location string `json:"location,omitempty"` @@ -25536,6 +25737,36 @@ func (s *ManagedInstanceLastAttemptErrorsErrors) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type ManagedInstanceLastAttemptErrorsErrorsErrorDetails struct { + ErrorInfo *ErrorInfo `json:"errorInfo,omitempty"` + + Help *Help `json:"help,omitempty"` + + LocalizedMessage *LocalizedMessage `json:"localizedMessage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ErrorInfo") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ErrorInfo") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ManagedInstanceLastAttemptErrorsErrorsErrorDetails) MarshalJSON() ([]byte, error) { + type NoMethod ManagedInstanceLastAttemptErrorsErrorsErrorDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type ManagedInstanceVersion struct { // InstanceTemplate: [Output Only] The intended template of the // instance. This field is empty when current_action is one of { @@ -31055,6 +31286,13 @@ type OperationErrorErrors struct { // Code: [Output Only] The error type identifier for this error. Code string `json:"code,omitempty"` + // ErrorDetails: [Output Only] An optional list of messages that contain + // the error details. There is a set of defined message types to use for + // providing details.The syntax depends on the error code. For example, + // QuotaExceededInfo will have details when the error code is + // QUOTA_EXCEEDED. + ErrorDetails []*OperationErrorErrorsErrorDetails `json:"errorDetails,omitempty"` + // Location: [Output Only] Indicates the field in the request that // caused the error. This property is optional. Location string `json:"location,omitempty"` @@ -31085,6 +31323,36 @@ func (s *OperationErrorErrors) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type OperationErrorErrorsErrorDetails struct { + ErrorInfo *ErrorInfo `json:"errorInfo,omitempty"` + + Help *Help `json:"help,omitempty"` + + LocalizedMessage *LocalizedMessage `json:"localizedMessage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ErrorInfo") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ErrorInfo") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *OperationErrorErrorsErrorDetails) MarshalJSON() ([]byte, error) { + type NoMethod OperationErrorErrorsErrorDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type OperationWarnings struct { // Code: [Output Only] A warning code, if applicable. For example, // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in @@ -41253,6 +41521,15 @@ func (s *SavedAttachedDisk) MarshalJSON() ([]byte, error) { // SavedDisk: An instance-attached disk resource. type SavedDisk struct { + // Architecture: [Output Only] The architecture of the attached disk. + // + // Possible values: + // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture + // is not set. + // "ARM64" - Machines with architecture ARM64 + // "X86_64" - Machines with architecture X86_64 + Architecture string `json:"architecture,omitempty"` + // Kind: [Output Only] Type of the resource. Always compute#savedDisk // for attached disks. Kind string `json:"kind,omitempty"` @@ -41276,7 +41553,7 @@ type SavedDisk struct { // "UP_TO_DATE" StorageBytesStatus string `json:"storageBytesStatus,omitempty"` - // ForceSendFields is a list of field names (e.g. "Kind") to + // ForceSendFields is a list of field names (e.g. "Architecture") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -41284,10 +41561,10 @@ type SavedDisk struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Architecture") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -43954,6 +44231,16 @@ func (s *SignedUrlKey) MarshalJSON() ([]byte, error) { // snapshots to back up data on a regular interval. For more // information, read Creating persistent disk snapshots. type Snapshot struct { + // Architecture: [Output Only] The architecture of the snapshot. Valid + // values are ARM64 or X86_64. + // + // Possible values: + // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture + // is not set. + // "ARM64" - Machines with architecture ARM64 + // "X86_64" - Machines with architecture X86_64 + Architecture string `json:"architecture,omitempty"` + // AutoCreated: [Output Only] Set to true if snapshots are automatically // created by applying resource policy on the target disk. AutoCreated bool `json:"autoCreated,omitempty"` @@ -44093,7 +44380,7 @@ type Snapshot struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AutoCreated") to + // ForceSendFields is a list of field names (e.g. "Architecture") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -44101,7 +44388,7 @@ type Snapshot struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AutoCreated") to include + // NullFields is a list of field names (e.g. "Architecture") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as diff --git a/content/v2.1/content-api.json b/content/v2.1/content-api.json index e7c5ec36c15..c7f464e353d 100644 --- a/content/v2.1/content-api.json +++ b/content/v2.1/content-api.json @@ -5950,7 +5950,7 @@ } } }, - "revision": "20220623", + "revision": "20220701", "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { @@ -15215,7 +15215,7 @@ "type": "object" }, "Segments": { - "description": "Dimensions according to which metrics are segmented in the response. Values of product dimensions, e.g., offer id, reflect the state of a product at the time of the corresponding event, e.g., impression or order. Segment fields cannot be selected in queries without also selecting at least one metric field. Values are only set for dimensions requested explicitly in the request's search query.", + "description": "Dimensions according to which metrics are segmented in the response. Values of product dimensions, such as `offer_id`, reflect the state of a product at the time of the corresponding event, for example, impression or order. Segment fields cannot be selected in queries without also selecting at least one metric field. Values are only set for dimensions requested explicitly in the request's search query.", "id": "Segments", "properties": { "brand": { @@ -15243,7 +15243,7 @@ "type": "string" }, "currencyCode": { - "description": "Currency in which price metrics are represented, e.g., if you select `ordered_item_sales_micros`, the returned value will be represented by this currency.", + "description": "Currency in which price metrics are represented, for example, if you select `ordered_item_sales_micros`, the returned value will be represented by this currency.", "type": "string" }, "customLabel0": { @@ -15299,7 +15299,7 @@ "type": "string" }, "program": { - "description": "Program to which metrics apply, e.g., Free Product Listing.", + "description": "Program to which metrics apply, for example, Free Product Listing.", "enum": [ "PROGRAM_UNSPECIFIED", "SHOPPING_ADS", diff --git a/content/v2.1/content-gen.go b/content/v2.1/content-gen.go index 0a4dc05d67c..2efc91845d7 100644 --- a/content/v2.1/content-gen.go +++ b/content/v2.1/content-gen.go @@ -16208,11 +16208,12 @@ func (s *SearchResponse) MarshalJSON() ([]byte, error) { } // Segments: Dimensions according to which metrics are segmented in the -// response. Values of product dimensions, e.g., offer id, reflect the -// state of a product at the time of the corresponding event, e.g., -// impression or order. Segment fields cannot be selected in queries -// without also selecting at least one metric field. Values are only set -// for dimensions requested explicitly in the request's search query. +// response. Values of product dimensions, such as `offer_id`, reflect +// the state of a product at the time of the corresponding event, for +// example, impression or order. Segment fields cannot be selected in +// queries without also selecting at least one metric field. Values are +// only set for dimensions requested explicitly in the request's search +// query. type Segments struct { // Brand: Brand of the product. Brand string `json:"brand,omitempty"` @@ -16242,9 +16243,9 @@ type Segments struct { // in Google's product taxonomy. CategoryL5 string `json:"categoryL5,omitempty"` - // CurrencyCode: Currency in which price metrics are represented, e.g., - // if you select `ordered_item_sales_micros`, the returned value will be - // represented by this currency. + // CurrencyCode: Currency in which price metrics are represented, for + // example, if you select `ordered_item_sales_micros`, the returned + // value will be represented by this currency. CurrencyCode string `json:"currencyCode,omitempty"` // CustomLabel0: Custom label 0 for custom grouping of products. @@ -16299,7 +16300,8 @@ type Segments struct { // in merchant's own product taxonomy. ProductTypeL5 string `json:"productTypeL5,omitempty"` - // Program: Program to which metrics apply, e.g., Free Product Listing. + // Program: Program to which metrics apply, for example, Free Product + // Listing. // // Possible values: // "PROGRAM_UNSPECIFIED" - Not specified. diff --git a/dataflow/v1b3/dataflow-api.json b/dataflow/v1b3/dataflow-api.json index 8f6f6511567..20865155f92 100644 --- a/dataflow/v1b3/dataflow-api.json +++ b/dataflow/v1b3/dataflow-api.json @@ -2225,7 +2225,7 @@ } } }, - "revision": "20220513", + "revision": "20220629", "rootUrl": "https://dataflow.googleapis.com/", "schemas": { "ApproximateProgress": { @@ -3761,7 +3761,7 @@ "type": "string" }, "name": { - "description": "The user-specified Cloud Dataflow job name. Only one Job with a given name can exist in a project within one region at any given time. Jobs in different regions can have the same name. If a caller attempts to create a Job with the same name as an already-existing Job, the attempt returns the existing Job. The name must match the regular expression `[a-z]([-a-z0-9]{0,38}[a-z0-9])?`", + "description": "The user-specified Cloud Dataflow job name. Only one Job with a given name can exist in a project within one region at any given time. Jobs in different regions can have the same name. If a caller attempts to create a Job with the same name as an already-existing Job, the attempt returns the existing Job. The name must match the regular expression `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?`", "type": "string" }, "pipelineDescription": { @@ -4159,7 +4159,7 @@ "description": "The runtime environment for the job." }, "jobName": { - "description": "Required. The job name to use for the created job.", + "description": "Required. The job name to use for the created job. The name must match the regular expression `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?`", "type": "string" }, "parameters": { diff --git a/dataflow/v1b3/dataflow-gen.go b/dataflow/v1b3/dataflow-gen.go index d3007572321..ff824fbb05e 100644 --- a/dataflow/v1b3/dataflow-gen.go +++ b/dataflow/v1b3/dataflow-gen.go @@ -2811,7 +2811,7 @@ type Job struct { // time. Jobs in different regions can have the same name. If a caller // attempts to create a Job with the same name as an already-existing // Job, the attempt returns the existing Job. The name must match the - // regular expression `[a-z]([-a-z0-9]{0,38}[a-z0-9])?` + // regular expression `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?` Name string `json:"name,omitempty"` // PipelineDescription: Preliminary field: The format of this data may @@ -3452,7 +3452,8 @@ type LaunchTemplateParameters struct { // Environment: The runtime environment for the job. Environment *RuntimeEnvironment `json:"environment,omitempty"` - // JobName: Required. The job name to use for the created job. + // JobName: Required. The job name to use for the created job. The name + // must match the regular expression `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?` JobName string `json:"jobName,omitempty"` // Parameters: The runtime parameters to pass to the job. diff --git a/dataproc/v1/dataproc-api.json b/dataproc/v1/dataproc-api.json index 9968f51062f..aee3a2e5795 100644 --- a/dataproc/v1/dataproc-api.json +++ b/dataproc/v1/dataproc-api.json @@ -2444,7 +2444,7 @@ } } }, - "revision": "20220526", + "revision": "20220628", "rootUrl": "https://dataproc.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2945,6 +2945,14 @@ "description": "Metadata describing the operation.", "id": "ClusterOperationMetadata", "properties": { + "childOperationIds": { + "description": "Output only. Child operation ids", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "clusterName": { "description": "Output only. Name of the cluster for the operation.", "readOnly": true, @@ -3076,7 +3084,8 @@ "UPDATING", "STOPPING", "STOPPED", - "STARTING" + "STARTING", + "REPAIRING" ], "enumDescriptions": [ "The cluster state is unknown.", @@ -3088,7 +3097,8 @@ "The cluster is being updated. It continues to accept and process jobs.", "The cluster is being stopped. It cannot be used.", "The cluster is currently stopped. It is not ready for use.", - "The cluster is being started. It is not ready for use." + "The cluster is being started. It is not ready for use.", + "The cluster is being repaired. It is not ready for use." ], "readOnly": true, "type": "string" @@ -3133,7 +3143,7 @@ "id": "DataprocMetricConfig", "properties": { "metrics": { - "description": "Required. Metrics to enable.", + "description": "Required. Metrics sources to enable.", "items": { "$ref": "Metric" }, @@ -3178,7 +3188,7 @@ "type": "string" }, "numLocalSsds": { - "description": "Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.", + "description": "Optional. Number of attached SSDs, from 0 to 8 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.Note: Local SSD options may vary by machine type and number of vCPUs selected.", "format": "int32", "type": "integer" } @@ -3426,7 +3436,7 @@ "type": "array" }, "bootDiskKmsKey": { - "description": "Optional. The Customer Managed Encryption Key (CMEK) (https://cloud.google.com/compute/docs/disks/customer-managed-encryption) used to encrypt the boot disk attached to each node in the node pool. Specify the key using the following format: projects/KEY_PROJECT_ID /locations/LOCATION/keyRings/RING_NAME/cryptoKeys/KEY_NAME.", + "description": "Optional. The Customer Managed Encryption Key (CMEK) (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek) used to encrypt the boot disk attached to each node in the node pool. Specify the key using the following format: projects/KEY_PROJECT_ID/locations/LOCATION /keyRings/RING_NAME/cryptoKeys/KEY_NAME.", "type": "string" }, "localSsdCount": { @@ -4398,18 +4408,18 @@ "type": "object" }, "Metric": { - "description": "The metric source to enable, with any optional metrics, to override Dataproc default metrics.", + "description": "A Dataproc OSS metric.", "id": "Metric", "properties": { "metricOverrides": { - "description": "Optional. Optional Metrics to override the Dataproc default metrics configured for the metric source.", + "description": "Optional. Specify one or more available OSS metrics (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics) to collect for the metric course (for the SPARK metric source, any Spark metric (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be specified).Provide metrics in the following format: METRIC_SOURCE: INSTANCE:GROUP:METRIC Use camelcase as appropriate.Examples: yarn:ResourceManager:QueueMetrics:AppsCompleted spark:driver:DAGScheduler:job.allJobs sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed hiveserver2:JVM:Memory:NonHeapMemoryUsage.used Notes: Only the specified overridden metrics will be collected for the metric source. For example, if one or more spark:executive metrics are listed as metric overrides, other SPARK metrics will not be collected. The collection of the default metrics for other OSS metric sources is unaffected. For example, if both SPARK andd YARN metric sources are enabled, and overrides are provided for Spark metrics only, all default YARN metrics will be collected.", "items": { "type": "string" }, "type": "array" }, "metricSource": { - "description": "Required. MetricSource to enable.", + "description": "Required. Default metrics are collected unless metricOverrides are specified for the metric source (see Available OSS metrics (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics) for more information).", "enum": [ "METRIC_SOURCE_UNSPECIFIED", "MONITORING_AGENT_DEFAULTS", @@ -4421,7 +4431,7 @@ ], "enumDescriptions": [ "Required unspecified metric source.", - "Default monitoring agent metrics, which are published with an agent.googleapis.com prefix when Dataproc enables the monitoring agent in Compute Engine.", + "Default monitoring agent metrics. If this source is enabled, Dataproc enables the monitoring agent in Compute Engine, and collects default monitoring agent metrics, which are published with an agent.googleapis.com prefix.", "HDFS metric source.", "Spark metric source.", "YARN metric source.", diff --git a/dataproc/v1/dataproc-gen.go b/dataproc/v1/dataproc-gen.go index 801dc24646f..c986c4dc8f8 100644 --- a/dataproc/v1/dataproc-gen.go +++ b/dataproc/v1/dataproc-gen.go @@ -1071,6 +1071,9 @@ func (s *ClusterOperation) MarshalJSON() ([]byte, error) { // ClusterOperationMetadata: Metadata describing the operation. type ClusterOperationMetadata struct { + // ChildOperationIds: Output only. Child operation ids + ChildOperationIds []string `json:"childOperationIds,omitempty"` + // ClusterName: Output only. Name of the cluster for the operation. ClusterName string `json:"clusterName,omitempty"` @@ -1095,20 +1098,21 @@ type ClusterOperationMetadata struct { // Warnings: Output only. Errors encountered during operation execution. Warnings []string `json:"warnings,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterName") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "ChildOperationIds") + // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClusterName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChildOperationIds") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -1227,6 +1231,8 @@ type ClusterStatus struct { // "STOPPED" - The cluster is currently stopped. It is not ready for // use. // "STARTING" - The cluster is being started. It is not ready for use. + // "REPAIRING" - The cluster is being repaired. It is not ready for + // use. State string `json:"state,omitempty"` // StateStartTime: Output only. Time when this state was entered (see @@ -1305,7 +1311,7 @@ func (s *ConfidentialInstanceConfig) MarshalJSON() ([]byte, error) { // DataprocMetricConfig: Dataproc metric config. type DataprocMetricConfig struct { - // Metrics: Required. Metrics to enable. + // Metrics: Required. Metrics sources to enable. Metrics []*Metric `json:"metrics,omitempty"` // ForceSendFields is a list of field names (e.g. "Metrics") to @@ -1386,13 +1392,14 @@ type DiskConfig struct { // (https://cloud.google.com/compute/docs/disks/local-ssd#performance). LocalSsdInterface string `json:"localSsdInterface,omitempty"` - // NumLocalSsds: Optional. Number of attached SSDs, from 0 to 4 (default + // NumLocalSsds: Optional. Number of attached SSDs, from 0 to 8 (default // is 0). If SSDs are not attached, the boot disk is used to store // runtime logs and HDFS // (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If // one or more SSDs are attached, this runtime bulk data is spread // across them, and the boot disk contains only basic config and - // installed binaries. + // installed binaries.Note: Local SSD options may vary by machine type + // and number of vCPUs selected. NumLocalSsds int64 `json:"numLocalSsds,omitempty"` // ForceSendFields is a list of field names (e.g. "BootDiskSizeGb") to @@ -1885,10 +1892,11 @@ type GkeNodeConfig struct { Accelerators []*GkeNodePoolAcceleratorConfig `json:"accelerators,omitempty"` // BootDiskKmsKey: Optional. The Customer Managed Encryption Key (CMEK) - // (https://cloud.google.com/compute/docs/disks/customer-managed-encryption) + // (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek) // used to encrypt the boot disk attached to each node in the node pool. - // Specify the key using the following format: projects/KEY_PROJECT_ID - // /locations/LOCATION/keyRings/RING_NAME/cryptoKeys/KEY_NAME. + // Specify the key using the following format: + // projects/KEY_PROJECT_ID/locations/LOCATION + // /keyRings/RING_NAME/cryptoKeys/KEY_NAME. BootDiskKmsKey string `json:"bootDiskKmsKey,omitempty"` // LocalSsdCount: Optional. The number of local SSD disks to attach to @@ -3487,20 +3495,40 @@ func (s *MetastoreConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Metric: The metric source to enable, with any optional metrics, to -// override Dataproc default metrics. +// Metric: A Dataproc OSS metric. type Metric struct { - // MetricOverrides: Optional. Optional Metrics to override the Dataproc - // default metrics configured for the metric source. + // MetricOverrides: Optional. Specify one or more available OSS metrics + // (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics) + // to collect for the metric course (for the SPARK metric source, any + // Spark metric + // (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be + // specified).Provide metrics in the following format: METRIC_SOURCE: + // INSTANCE:GROUP:METRIC Use camelcase as appropriate.Examples: + // yarn:ResourceManager:QueueMetrics:AppsCompleted + // spark:driver:DAGScheduler:job.allJobs + // sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed + // hiveserver2:JVM:Memory:NonHeapMemoryUsage.used Notes: Only the + // specified overridden metrics will be collected for the metric source. + // For example, if one or more spark:executive metrics are listed as + // metric overrides, other SPARK metrics will not be collected. The + // collection of the default metrics for other OSS metric sources is + // unaffected. For example, if both SPARK andd YARN metric sources are + // enabled, and overrides are provided for Spark metrics only, all + // default YARN metrics will be collected. MetricOverrides []string `json:"metricOverrides,omitempty"` - // MetricSource: Required. MetricSource to enable. + // MetricSource: Required. Default metrics are collected unless + // metricOverrides are specified for the metric source (see Available + // OSS metrics + // (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics) + // for more information). // // Possible values: // "METRIC_SOURCE_UNSPECIFIED" - Required unspecified metric source. - // "MONITORING_AGENT_DEFAULTS" - Default monitoring agent metrics, - // which are published with an agent.googleapis.com prefix when Dataproc - // enables the monitoring agent in Compute Engine. + // "MONITORING_AGENT_DEFAULTS" - Default monitoring agent metrics. If + // this source is enabled, Dataproc enables the monitoring agent in + // Compute Engine, and collects default monitoring agent metrics, which + // are published with an agent.googleapis.com prefix. // "HDFS" - HDFS metric source. // "SPARK" - Spark metric source. // "YARN" - YARN metric source. diff --git a/eventarc/v1/eventarc-api.json b/eventarc/v1/eventarc-api.json index 2295eb72dcb..40a3a49187e 100644 --- a/eventarc/v1/eventarc-api.json +++ b/eventarc/v1/eventarc-api.json @@ -134,6 +134,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getGoogleChannelConfig": { + "description": "Get a GoogleChannelConfig", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/googleChannelConfig", + "httpMethod": "GET", + "id": "eventarc.projects.locations.getGoogleChannelConfig", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the config to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/googleChannelConfig$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleChannelConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists information about the supported locations for this service.", "flatPath": "v1/projects/{projectsId}/locations", @@ -174,6 +199,40 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "updateGoogleChannelConfig": { + "description": "Update a single GoogleChannelConfig", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/googleChannelConfig", + "httpMethod": "PATCH", + "id": "eventarc.projects.locations.updateGoogleChannelConfig", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the config. Must be in the format of, `projects/{project}/locations/{location}/googleChannelConfig`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/googleChannelConfig$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of \"*\".", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleChannelConfig" + }, + "response": { + "$ref": "GoogleChannelConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -1138,7 +1197,7 @@ } } }, - "revision": "20220607", + "revision": "20220628", "rootUrl": "https://eventarc.googleapis.com/", "schemas": { "AuditConfig": { @@ -1226,6 +1285,10 @@ "readOnly": true, "type": "string" }, + "cryptoKeyName": { + "description": "Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern `projects/*/locations/*/keyRings/*/cryptoKeys/*`.", + "type": "string" + }, "name": { "description": "Required. The resource name of the channel. Must be unique within the location on the project and must be in `projects/{project}/locations/{location}/channels/{channel_id}` format.", "type": "string" @@ -1251,7 +1314,7 @@ "Default value. This value is unused.", "The PENDING state indicates that a Channel has been created successfully and there is a new activation token available for the subscriber to use to convey the Channel to the provider in order to create a Connection.", "The ACTIVE state indicates that a Channel has been successfully connected with the event provider. An ACTIVE Channel is ready to receive and route events from the event provider.", - "The INACTIVE state means that the Channel cannot receive events permanently. There are two possible cases this state can happen: 1. The SaaS provider disconnected from this Channel. 2. The Channel activation token has expired but the SaaS provider wasn't connected. To re-establish a Connection with a provider, the subscriber should create a new Channel and give it to the provider." + "The INACTIVE state indicates that the Channel cannot receive events permanently. There are two possible cases this state can happen: 1. The SaaS provider disconnected from this Channel. 2. The Channel activation token has expired but the SaaS provider wasn't connected. To re-establish a Connection with a provider, the subscriber should create a new Channel and give it to the provider." ], "readOnly": true, "type": "string" @@ -1293,7 +1356,7 @@ "type": "string" }, "uid": { - "description": "Output only. / Output only. Server assigned ID of the resource. The server guarantees uniqueness and immutability until deleted.", + "description": "Output only. Server assigned ID of the resource. The server guarantees uniqueness and immutability until deleted.", "readOnly": true, "type": "string" }, @@ -1480,6 +1543,27 @@ }, "type": "object" }, + "GoogleChannelConfig": { + "description": "A GoogleChannelConfig is a resource that stores the custom settings respected by Eventarc first-party triggers in the matching region. Once configured, first-party event data will be protected using the specified custom managed encryption key instead of Google-managed encryption keys.", + "id": "GoogleChannelConfig", + "properties": { + "cryptoKeyName": { + "description": "Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern `projects/*/locations/*/keyRings/*/cryptoKeys/*`.", + "type": "string" + }, + "name": { + "description": "Required. The resource name of the config. Must be in the format of, `projects/{project}/locations/{location}/googleChannelConfig`.", + "type": "string" + }, + "updateTime": { + "description": "Output only. The last-modified time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleLongrunningCancelOperationRequest": { "description": "The request message for Operations.CancelOperation.", "id": "GoogleLongrunningCancelOperationRequest", @@ -1578,7 +1662,7 @@ "type": "array" }, "nextPageToken": { - "description": "A page token that can be sent to ListChannelConnections to request the next page. If this is empty, then there are no more pages.", + "description": "A page token that can be sent to `ListChannelConnections` to request the next page. If this is empty, then there are no more pages.", "type": "string" }, "unreachable": { @@ -1603,7 +1687,7 @@ "type": "array" }, "nextPageToken": { - "description": "A page token that can be sent to ListChannels to request the next page. If this is empty, then there are no more pages.", + "description": "A page token that can be sent to `ListChannels` to request the next page. If this is empty, then there are no more pages.", "type": "string" }, "unreachable": { @@ -1639,7 +1723,7 @@ "id": "ListProvidersResponse", "properties": { "nextPageToken": { - "description": "A page token that can be sent to ListProviders to request the next page. If this is empty, then there are no more pages.", + "description": "A page token that can be sent to `ListProviders` to request the next page. If this is empty, then there are no more pages.", "type": "string" }, "providers": { @@ -1664,7 +1748,7 @@ "id": "ListTriggersResponse", "properties": { "nextPageToken": { - "description": "A page token that can be sent to ListTriggers to request the next page. If this is empty, then there are no more pages.", + "description": "A page token that can be sent to `ListTriggers` to request the next page. If this is empty, then there are no more pages.", "type": "string" }, "triggers": { diff --git a/eventarc/v1/eventarc-gen.go b/eventarc/v1/eventarc-gen.go index 938addd6519..63c8534798e 100644 --- a/eventarc/v1/eventarc-gen.go +++ b/eventarc/v1/eventarc-gen.go @@ -402,6 +402,11 @@ type Channel struct { // CreateTime: Output only. The creation time. CreateTime string `json:"createTime,omitempty"` + // CryptoKeyName: Optional. Resource name of a KMS crypto key (managed + // by the user) used to encrypt/decrypt their event data. It must match + // the pattern `projects/*/locations/*/keyRings/*/cryptoKeys/*`. + CryptoKeyName string `json:"cryptoKeyName,omitempty"` + // Name: Required. The resource name of the channel. Must be unique // within the location on the project and must be in // `projects/{project}/locations/{location}/channels/{channel_id}` @@ -430,7 +435,7 @@ type Channel struct { // "ACTIVE" - The ACTIVE state indicates that a Channel has been // successfully connected with the event provider. An ACTIVE Channel is // ready to receive and route events from the event provider. - // "INACTIVE" - The INACTIVE state means that the Channel cannot + // "INACTIVE" - The INACTIVE state indicates that the Channel cannot // receive events permanently. There are two possible cases this state // can happen: 1. The SaaS provider disconnected from this Channel. 2. // The Channel activation token has expired but the SaaS provider wasn't @@ -498,8 +503,8 @@ type ChannelConnection struct { // Name: Required. The name of the connection. Name string `json:"name,omitempty"` - // Uid: Output only. / Output only. Server assigned ID of the resource. - // The server guarantees uniqueness and immutability until deleted. + // Uid: Output only. Server assigned ID of the resource. The server + // guarantees uniqueness and immutability until deleted. Uid string `json:"uid,omitempty"` // UpdateTime: Output only. The last-modified time. @@ -865,6 +870,52 @@ func (s *GKE) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleChannelConfig: A GoogleChannelConfig is a resource that stores +// the custom settings respected by Eventarc first-party triggers in the +// matching region. Once configured, first-party event data will be +// protected using the specified custom managed encryption key instead +// of Google-managed encryption keys. +type GoogleChannelConfig struct { + // CryptoKeyName: Optional. Resource name of a KMS crypto key (managed + // by the user) used to encrypt/decrypt their event data. It must match + // the pattern `projects/*/locations/*/keyRings/*/cryptoKeys/*`. + CryptoKeyName string `json:"cryptoKeyName,omitempty"` + + // Name: Required. The resource name of the config. Must be in the + // format of, + // `projects/{project}/locations/{location}/googleChannelConfig`. + Name string `json:"name,omitempty"` + + // UpdateTime: Output only. The last-modified time. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CryptoKeyName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CryptoKeyName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleChannelConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChannelConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleLongrunningCancelOperationRequest: The request message for // Operations.CancelOperation. type GoogleLongrunningCancelOperationRequest struct { @@ -1021,7 +1072,7 @@ type ListChannelConnectionsResponse struct { ChannelConnections []*ChannelConnection `json:"channelConnections,omitempty"` // NextPageToken: A page token that can be sent to - // ListChannelConnections to request the next page. If this is empty, + // `ListChannelConnections` to request the next page. If this is empty, // then there are no more pages. NextPageToken string `json:"nextPageToken,omitempty"` @@ -1063,7 +1114,7 @@ type ListChannelsResponse struct { // `page_size`. Channels []*Channel `json:"channels,omitempty"` - // NextPageToken: A page token that can be sent to ListChannels to + // NextPageToken: A page token that can be sent to `ListChannels` to // request the next page. If this is empty, then there are no more // pages. NextPageToken string `json:"nextPageToken,omitempty"` @@ -1138,7 +1189,7 @@ func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { // ListProvidersResponse: The response message for the `ListProviders` // method. type ListProvidersResponse struct { - // NextPageToken: A page token that can be sent to ListProviders to + // NextPageToken: A page token that can be sent to `ListProviders` to // request the next page. If this is empty, then there are no more // pages. NextPageToken string `json:"nextPageToken,omitempty"` @@ -1180,7 +1231,7 @@ func (s *ListProvidersResponse) MarshalJSON() ([]byte, error) { // ListTriggersResponse: The response message for the `ListTriggers` // method. type ListTriggersResponse struct { - // NextPageToken: A page token that can be sent to ListTriggers to + // NextPageToken: A page token that can be sent to `ListTriggers` to // request the next page. If this is empty, then there are no more // pages. NextPageToken string `json:"nextPageToken,omitempty"` @@ -2005,6 +2056,152 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, } +// method id "eventarc.projects.locations.getGoogleChannelConfig": + +type ProjectsLocationsGetGoogleChannelConfigCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetGoogleChannelConfig: Get a GoogleChannelConfig +// +// - name: The name of the config to get. +func (r *ProjectsLocationsService) GetGoogleChannelConfig(name string) *ProjectsLocationsGetGoogleChannelConfigCall { + c := &ProjectsLocationsGetGoogleChannelConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsGetGoogleChannelConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetGoogleChannelConfigCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsGetGoogleChannelConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetGoogleChannelConfigCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsGetGoogleChannelConfigCall) Context(ctx context.Context) *ProjectsLocationsGetGoogleChannelConfigCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsGetGoogleChannelConfigCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetGoogleChannelConfigCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.getGoogleChannelConfig" call. +// Exactly one of *GoogleChannelConfig or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleChannelConfig.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsGetGoogleChannelConfigCall) Do(opts ...googleapi.CallOption) (*GoogleChannelConfig, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleChannelConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Get a GoogleChannelConfig", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/googleChannelConfig", + // "httpMethod": "GET", + // "id": "eventarc.projects.locations.getGoogleChannelConfig", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the config to get.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/googleChannelConfig$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleChannelConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "eventarc.projects.locations.list": type ProjectsLocationsListCall struct { @@ -2214,6 +2411,164 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocat } } +// method id "eventarc.projects.locations.updateGoogleChannelConfig": + +type ProjectsLocationsUpdateGoogleChannelConfigCall struct { + s *Service + name string + googlechannelconfig *GoogleChannelConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateGoogleChannelConfig: Update a single GoogleChannelConfig +// +// - name: The resource name of the config. Must be in the format of, +// `projects/{project}/locations/{location}/googleChannelConfig`. +func (r *ProjectsLocationsService) UpdateGoogleChannelConfig(name string, googlechannelconfig *GoogleChannelConfig) *ProjectsLocationsUpdateGoogleChannelConfigCall { + c := &ProjectsLocationsUpdateGoogleChannelConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlechannelconfig = googlechannelconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": The fields to be +// updated; only fields explicitly provided are updated. If no field +// mask is provided, all provided fields in the request are updated. To +// update all fields, provide a field mask of "*". +func (c *ProjectsLocationsUpdateGoogleChannelConfigCall) UpdateMask(updateMask string) *ProjectsLocationsUpdateGoogleChannelConfigCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsUpdateGoogleChannelConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsUpdateGoogleChannelConfigCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsUpdateGoogleChannelConfigCall) Context(ctx context.Context) *ProjectsLocationsUpdateGoogleChannelConfigCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsUpdateGoogleChannelConfigCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsUpdateGoogleChannelConfigCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlechannelconfig) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.updateGoogleChannelConfig" call. +// Exactly one of *GoogleChannelConfig or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleChannelConfig.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsUpdateGoogleChannelConfigCall) Do(opts ...googleapi.CallOption) (*GoogleChannelConfig, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleChannelConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Update a single GoogleChannelConfig", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/googleChannelConfig", + // "httpMethod": "PATCH", + // "id": "eventarc.projects.locations.updateGoogleChannelConfig", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the config. Must be in the format of, `projects/{project}/locations/{location}/googleChannelConfig`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/googleChannelConfig$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of \"*\".", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleChannelConfig" + // }, + // "response": { + // "$ref": "GoogleChannelConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "eventarc.projects.locations.channelConnections.create": type ProjectsLocationsChannelConnectionsCreateCall struct { diff --git a/firebase/v1beta1/firebase-api.json b/firebase/v1beta1/firebase-api.json index 7c4f37b787d..d502a11b4b2 100644 --- a/firebase/v1beta1/firebase-api.json +++ b/firebase/v1beta1/firebase-api.json @@ -634,6 +634,34 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/firebase" ] + }, + "remove": { + "description": "Removes the specified AndroidApp from the project.", + "flatPath": "v1beta1/projects/{projectsId}/androidApps/{androidAppsId}:remove", + "httpMethod": "POST", + "id": "firebase.projects.androidApps.remove", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the AndroidApp, in the format: projects/ PROJECT_IDENTIFIER/androidApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/androidApps/APP_ID Refer to the AndroidApp [name](../projects.androidApps#AndroidApp.FIELDS.name) field for details about PROJECT_IDENTIFIER and APP_ID values.", + "location": "path", + "pattern": "^projects/[^/]+/androidApps/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:remove", + "request": { + "$ref": "RemoveAndroidAppRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -967,6 +995,34 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/firebase" ] + }, + "remove": { + "description": "Removes the specified IosApp from the project.", + "flatPath": "v1beta1/projects/{projectsId}/iosApps/{iosAppsId}:remove", + "httpMethod": "POST", + "id": "firebase.projects.iosApps.remove", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the IosApp, in the format: projects/ PROJECT_IDENTIFIER/iosApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/iosApps/APP_ID Refer to the IosApp [name](../projects.iosApps#IosApp.FIELDS.name) field for details about PROJECT_IDENTIFIER and APP_ID values.", + "location": "path", + "pattern": "^projects/[^/]+/iosApps/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:remove", + "request": { + "$ref": "RemoveIosAppRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } }, @@ -1135,13 +1191,41 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/firebase" ] + }, + "remove": { + "description": "Removes the specified WebApp from the project.", + "flatPath": "v1beta1/projects/{projectsId}/webApps/{webAppsId}:remove", + "httpMethod": "POST", + "id": "firebase.projects.webApps.remove", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the WebApp, in the format: projects/ PROJECT_IDENTIFIER/webApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/webApps/APP_ID Refer to the WebApp [name](../projects.webApps#WebApp.FIELDS.name) field for details about PROJECT_IDENTIFIER and APP_ID values.", + "location": "path", + "pattern": "^projects/[^/]+/webApps/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:remove", + "request": { + "$ref": "RemoveWebAppRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } } } }, - "revision": "20220624", + "revision": "20220704", "rootUrl": "https://firebase.googleapis.com/", "schemas": { "AddFirebaseRequest": { @@ -1297,19 +1381,23 @@ "id": "DefaultResources", "properties": { "hostingSite": { - "description": "The default Firebase Hosting site name, in the format: PROJECT_ID Though rare, your `projectId` might already be used as the name for an existing Hosting site in another project (learn more about creating non-default, [additional sites](https://firebase.google.com/docs/hosting/multisites)). In these cases, your `projectId` is appended with a hyphen then five alphanumeric characters to create your default Hosting site name. For example, if your `projectId` is `myproject123`, your default Hosting site name might be: `myproject123-a5c16`", + "description": "Output only. The default Firebase Hosting site name, in the format: PROJECT_ID Though rare, your `projectId` might already be used as the name for an existing Hosting site in another project (learn more about creating non-default, [additional sites](https://firebase.google.com/docs/hosting/multisites)). In these cases, your `projectId` is appended with a hyphen then five alphanumeric characters to create your default Hosting site name. For example, if your `projectId` is `myproject123`, your default Hosting site name might be: `myproject123-a5c16`", + "readOnly": true, "type": "string" }, "locationId": { - "description": "The ID of the Project's default GCP resource location. The location is one of the available [GCP resource locations](https://firebase.google.com/docs/projects/locations). This field is omitted if the default GCP resource location has not been finalized yet. To set a Project's default GCP resource location, call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) after you add Firebase resources to the Project.", + "description": "Output only. The ID of the Project's default GCP resource location. The location is one of the available [GCP resource locations](https://firebase.google.com/docs/projects/locations). This field is omitted if the default GCP resource location has not been finalized yet. To set a Project's default GCP resource location, call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) after you add Firebase resources to the Project.", + "readOnly": true, "type": "string" }, "realtimeDatabaseInstance": { - "description": "The default Firebase Realtime Database instance name, in the format: PROJECT_ID Though rare, your `projectId` might already be used as the name for an existing Realtime Database instance in another project (learn more about [database sharding](https://firebase.google.com/docs/database/usage/sharding)). In these cases, your `projectId` is appended with a hyphen then five alphanumeric characters to create your default Realtime Database instance name. For example, if your `projectId` is `myproject123`, your default database instance name might be: `myproject123-a5c16`", + "description": "Output only. The default Firebase Realtime Database instance name, in the format: PROJECT_ID Though rare, your `projectId` might already be used as the name for an existing Realtime Database instance in another project (learn more about [database sharding](https://firebase.google.com/docs/database/usage/sharding)). In these cases, your `projectId` is appended with a hyphen then five alphanumeric characters to create your default Realtime Database instance name. For example, if your `projectId` is `myproject123`, your default database instance name might be: `myproject123-a5c16`", + "readOnly": true, "type": "string" }, "storageBucket": { - "description": "The default Cloud Storage for Firebase storage bucket, in the format: PROJECT_ID.appspot.com", + "description": "Output only. The default Cloud Storage for Firebase storage bucket, in the format: PROJECT_ID.appspot.com", + "readOnly": true, "type": "string" } }, @@ -1335,6 +1423,10 @@ "description": "A high-level summary of an App.", "id": "FirebaseAppInfo", "properties": { + "apiKeyId": { + "description": "The key_id of the GCP ApiKey associated with this App. If set must have no restrictions, or only have restrictions that are valid for the associated Firebase App. Cannot be set to an empty value in update requests. If left unset on create requests, an existing valid API Key will be chosen, or if no valid API Keys exist, one will be provisioned for you.", + "type": "string" + }, "appId": { "description": "Output only. Immutable. The globally unique, Firebase-assigned identifier for the `WebApp`. This identifier should be treated as an opaque token, as the data format is not specified.", "readOnly": true, @@ -1400,17 +1492,20 @@ "type": "string" }, "projectId": { - "description": "Immutable. A user-assigned unique identifier for the Project. This identifier may appear in URLs or names for some Firebase resources associated with the Project, but it should generally be treated as a convenience alias to reference the Project.", + "description": "Output only. A user-assigned unique identifier for the Project. This identifier may appear in URLs or names for some Firebase resources associated with the Project, but it should generally be treated as a convenience alias to reference the Project.", + "readOnly": true, "type": "string" }, "projectNumber": { - "description": "Immutable. The globally unique, Google-assigned canonical identifier for the Project. Use this identifier when configuring integrations and/or making API calls to Firebase or third-party services.", + "description": "Output only. The globally unique, Google-assigned canonical identifier for the Project. Use this identifier when configuring integrations and/or making API calls to Firebase or third-party services.", "format": "int64", + "readOnly": true, "type": "string" }, "resources": { "$ref": "DefaultResources", - "description": "The default Firebase resources associated with the Project." + "description": "Output only. The default Firebase resources associated with the Project.", + "readOnly": true }, "state": { "description": "Output only. The lifecycle state of the Project. Updates to the state must be performed via com.google.cloudresourcemanager.v1.Projects.DeleteProject and com.google.cloudresourcemanager.v1.Projects.UndeleteProject", @@ -1731,6 +1826,60 @@ }, "type": "object" }, + "RemoveAndroidAppRequest": { + "id": "RemoveAndroidAppRequest", + "properties": { + "allowMissing": { + "description": "If set to true, and the App is not found, the request will succeed but no action will be taken on the server.", + "type": "boolean" + }, + "etag": { + "description": "Checksum provided in the AndroidApp entity, which if provided ensures the client has an up-to-date value before proceeding.", + "type": "string" + }, + "validateOnly": { + "description": "If set to true, only validate the request and do not delete the app.", + "type": "boolean" + } + }, + "type": "object" + }, + "RemoveIosAppRequest": { + "id": "RemoveIosAppRequest", + "properties": { + "allowMissing": { + "description": "If set to true, and the App is not found, the request will succeed but no action will be taken on the server.", + "type": "boolean" + }, + "etag": { + "description": "Checksum provided in the IosApp entity, which if provided ensures the client has an up-to-date value before proceeding.", + "type": "string" + }, + "validateOnly": { + "description": "If set to true, only validate the request and do not delete the app.", + "type": "boolean" + } + }, + "type": "object" + }, + "RemoveWebAppRequest": { + "id": "RemoveWebAppRequest", + "properties": { + "allowMissing": { + "description": "If set to true, and the App is not found, the request will succeed but no action will be taken on the server.", + "type": "boolean" + }, + "etag": { + "description": "Checksum provided in the WebApp entity, which if provided ensures the client has an up-to-date value before proceeding.", + "type": "string" + }, + "validateOnly": { + "description": "If set to true, only validate the request and do not delete the app.", + "type": "boolean" + } + }, + "type": "object" + }, "SearchFirebaseAppsResponse": { "id": "SearchFirebaseAppsResponse", "properties": { diff --git a/firebase/v1beta1/firebase-gen.go b/firebase/v1beta1/firebase-gen.go index d8f58f7f9a4..e4c7b8f895b 100644 --- a/firebase/v1beta1/firebase-gen.go +++ b/firebase/v1beta1/firebase-gen.go @@ -580,10 +580,10 @@ func (s *AndroidAppConfig) MarshalJSON() ([]byte, error) { // DefaultResources: The default resources associated with the Project. type DefaultResources struct { - // HostingSite: The default Firebase Hosting site name, in the format: - // PROJECT_ID Though rare, your `projectId` might already be used as the - // name for an existing Hosting site in another project (learn more - // about creating non-default, additional sites + // HostingSite: Output only. The default Firebase Hosting site name, in + // the format: PROJECT_ID Though rare, your `projectId` might already be + // used as the name for an existing Hosting site in another project + // (learn more about creating non-default, additional sites // (https://firebase.google.com/docs/hosting/multisites)). In these // cases, your `projectId` is appended with a hyphen then five // alphanumeric characters to create your default Hosting site name. For @@ -591,8 +591,8 @@ type DefaultResources struct { // site name might be: `myproject123-a5c16` HostingSite string `json:"hostingSite,omitempty"` - // LocationId: The ID of the Project's default GCP resource location. - // The location is one of the available GCP resource locations + // LocationId: Output only. The ID of the Project's default GCP resource + // location. The location is one of the available GCP resource locations // (https://firebase.google.com/docs/projects/locations). This field is // omitted if the default GCP resource location has not been finalized // yet. To set a Project's default GCP resource location, call @@ -600,8 +600,8 @@ type DefaultResources struct { // after you add Firebase resources to the Project. LocationId string `json:"locationId,omitempty"` - // RealtimeDatabaseInstance: The default Firebase Realtime Database - // instance name, in the format: PROJECT_ID Though rare, your + // RealtimeDatabaseInstance: Output only. The default Firebase Realtime + // Database instance name, in the format: PROJECT_ID Though rare, your // `projectId` might already be used as the name for an existing // Realtime Database instance in another project (learn more about // database sharding @@ -612,8 +612,8 @@ type DefaultResources struct { // your default database instance name might be: `myproject123-a5c16` RealtimeDatabaseInstance string `json:"realtimeDatabaseInstance,omitempty"` - // StorageBucket: The default Cloud Storage for Firebase storage bucket, - // in the format: PROJECT_ID.appspot.com + // StorageBucket: Output only. The default Cloud Storage for Firebase + // storage bucket, in the format: PROJECT_ID.appspot.com StorageBucket string `json:"storageBucket,omitempty"` // ForceSendFields is a list of field names (e.g. "HostingSite") to @@ -681,6 +681,14 @@ func (s *FinalizeDefaultLocationRequest) MarshalJSON() ([]byte, error) { // FirebaseAppInfo: A high-level summary of an App. type FirebaseAppInfo struct { + // ApiKeyId: The key_id of the GCP ApiKey associated with this App. If + // set must have no restrictions, or only have restrictions that are + // valid for the associated Firebase App. Cannot be set to an empty + // value in update requests. If left unset on create requests, an + // existing valid API Key will be chosen, or if no valid API Keys exist, + // one will be provisioned for you. + ApiKeyId string `json:"apiKeyId,omitempty"` + // AppId: Output only. Immutable. The globally unique, Firebase-assigned // identifier for the `WebApp`. This identifier should be treated as an // opaque token, as the data format is not specified. @@ -724,7 +732,7 @@ type FirebaseAppInfo struct { // "DELETED" - The app has been soft deleted. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "AppId") to + // ForceSendFields is a list of field names (e.g. "ApiKeyId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -732,8 +740,8 @@ type FirebaseAppInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AppId") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "ApiKeyId") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -772,20 +780,20 @@ type FirebaseProject struct { // PROJECT_IDENTIFIER in any response body will be the `ProjectId`. Name string `json:"name,omitempty"` - // ProjectId: Immutable. A user-assigned unique identifier for the + // ProjectId: Output only. A user-assigned unique identifier for the // Project. This identifier may appear in URLs or names for some // Firebase resources associated with the Project, but it should // generally be treated as a convenience alias to reference the Project. ProjectId string `json:"projectId,omitempty"` - // ProjectNumber: Immutable. The globally unique, Google-assigned + // ProjectNumber: Output only. The globally unique, Google-assigned // canonical identifier for the Project. Use this identifier when // configuring integrations and/or making API calls to Firebase or // third-party services. ProjectNumber int64 `json:"projectNumber,omitempty,string"` - // Resources: The default Firebase resources associated with the - // Project. + // Resources: Output only. The default Firebase resources associated + // with the Project. Resources *DefaultResources `json:"resources,omitempty"` // State: Output only. The lifecycle state of the Project. Updates to @@ -1426,6 +1434,114 @@ func (s *RemoveAnalyticsRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type RemoveAndroidAppRequest struct { + // AllowMissing: If set to true, and the App is not found, the request + // will succeed but no action will be taken on the server. + AllowMissing bool `json:"allowMissing,omitempty"` + + // Etag: Checksum provided in the AndroidApp entity, which if provided + // ensures the client has an up-to-date value before proceeding. + Etag string `json:"etag,omitempty"` + + // ValidateOnly: If set to true, only validate the request and do not + // delete the app. + ValidateOnly bool `json:"validateOnly,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllowMissing") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AllowMissing") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RemoveAndroidAppRequest) MarshalJSON() ([]byte, error) { + type NoMethod RemoveAndroidAppRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type RemoveIosAppRequest struct { + // AllowMissing: If set to true, and the App is not found, the request + // will succeed but no action will be taken on the server. + AllowMissing bool `json:"allowMissing,omitempty"` + + // Etag: Checksum provided in the IosApp entity, which if provided + // ensures the client has an up-to-date value before proceeding. + Etag string `json:"etag,omitempty"` + + // ValidateOnly: If set to true, only validate the request and do not + // delete the app. + ValidateOnly bool `json:"validateOnly,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllowMissing") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AllowMissing") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RemoveIosAppRequest) MarshalJSON() ([]byte, error) { + type NoMethod RemoveIosAppRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type RemoveWebAppRequest struct { + // AllowMissing: If set to true, and the App is not found, the request + // will succeed but no action will be taken on the server. + AllowMissing bool `json:"allowMissing,omitempty"` + + // Etag: Checksum provided in the WebApp entity, which if provided + // ensures the client has an up-to-date value before proceeding. + Etag string `json:"etag,omitempty"` + + // ValidateOnly: If set to true, only validate the request and do not + // delete the app. + ValidateOnly bool `json:"validateOnly,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllowMissing") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AllowMissing") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RemoveWebAppRequest) MarshalJSON() ([]byte, error) { + type NoMethod RemoveWebAppRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type SearchFirebaseAppsResponse struct { // Apps: One page of results from a call to `SearchFirebaseApps`. Apps []*FirebaseAppInfo `json:"apps,omitempty"` @@ -4600,6 +4716,154 @@ func (c *ProjectsAndroidAppsPatchCall) Do(opts ...googleapi.CallOption) (*Androi } +// method id "firebase.projects.androidApps.remove": + +type ProjectsAndroidAppsRemoveCall struct { + s *Service + nameid string + removeandroidapprequest *RemoveAndroidAppRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Remove: Removes the specified AndroidApp from the project. +// +// - name: The resource name of the AndroidApp, in the format: projects/ +// PROJECT_IDENTIFIER/androidApps/APP_ID Since an APP_ID is a unique +// identifier, the Unique Resource from Sub-Collection access pattern +// may be used here, in the format: projects/-/androidApps/APP_ID +// Refer to the AndroidApp name +// (../projects.androidApps#AndroidApp.FIELDS.name) field for details +// about PROJECT_IDENTIFIER and APP_ID values. +func (r *ProjectsAndroidAppsService) Remove(nameid string, removeandroidapprequest *RemoveAndroidAppRequest) *ProjectsAndroidAppsRemoveCall { + c := &ProjectsAndroidAppsRemoveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.nameid = nameid + c.removeandroidapprequest = removeandroidapprequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsAndroidAppsRemoveCall) Fields(s ...googleapi.Field) *ProjectsAndroidAppsRemoveCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsAndroidAppsRemoveCall) Context(ctx context.Context) *ProjectsAndroidAppsRemoveCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsAndroidAppsRemoveCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAndroidAppsRemoveCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.removeandroidapprequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:remove") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.nameid, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebase.projects.androidApps.remove" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsAndroidAppsRemoveCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Removes the specified AndroidApp from the project.", + // "flatPath": "v1beta1/projects/{projectsId}/androidApps/{androidAppsId}:remove", + // "httpMethod": "POST", + // "id": "firebase.projects.androidApps.remove", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the AndroidApp, in the format: projects/ PROJECT_IDENTIFIER/androidApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/androidApps/APP_ID Refer to the AndroidApp [name](../projects.androidApps#AndroidApp.FIELDS.name) field for details about PROJECT_IDENTIFIER and APP_ID values.", + // "location": "path", + // "pattern": "^projects/[^/]+/androidApps/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:remove", + // "request": { + // "$ref": "RemoveAndroidAppRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "firebase.projects.androidApps.sha.create": type ProjectsAndroidAppsShaCreateCall struct { @@ -6293,6 +6557,153 @@ func (c *ProjectsIosAppsPatchCall) Do(opts ...googleapi.CallOption) (*IosApp, er } +// method id "firebase.projects.iosApps.remove": + +type ProjectsIosAppsRemoveCall struct { + s *Service + nameid string + removeiosapprequest *RemoveIosAppRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Remove: Removes the specified IosApp from the project. +// +// - name: The resource name of the IosApp, in the format: projects/ +// PROJECT_IDENTIFIER/iosApps/APP_ID Since an APP_ID is a unique +// identifier, the Unique Resource from Sub-Collection access pattern +// may be used here, in the format: projects/-/iosApps/APP_ID Refer to +// the IosApp name (../projects.iosApps#IosApp.FIELDS.name) field for +// details about PROJECT_IDENTIFIER and APP_ID values. +func (r *ProjectsIosAppsService) Remove(nameid string, removeiosapprequest *RemoveIosAppRequest) *ProjectsIosAppsRemoveCall { + c := &ProjectsIosAppsRemoveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.nameid = nameid + c.removeiosapprequest = removeiosapprequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsIosAppsRemoveCall) Fields(s ...googleapi.Field) *ProjectsIosAppsRemoveCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsIosAppsRemoveCall) Context(ctx context.Context) *ProjectsIosAppsRemoveCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsIosAppsRemoveCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsIosAppsRemoveCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.removeiosapprequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:remove") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.nameid, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebase.projects.iosApps.remove" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsIosAppsRemoveCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Removes the specified IosApp from the project.", + // "flatPath": "v1beta1/projects/{projectsId}/iosApps/{iosAppsId}:remove", + // "httpMethod": "POST", + // "id": "firebase.projects.iosApps.remove", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the IosApp, in the format: projects/ PROJECT_IDENTIFIER/iosApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/iosApps/APP_ID Refer to the IosApp [name](../projects.iosApps#IosApp.FIELDS.name) field for details about PROJECT_IDENTIFIER and APP_ID values.", + // "location": "path", + // "pattern": "^projects/[^/]+/iosApps/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:remove", + // "request": { + // "$ref": "RemoveIosAppRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "firebase.projects.webApps.create": type ProjectsWebAppsCreateCall struct { @@ -7139,3 +7550,150 @@ func (c *ProjectsWebAppsPatchCall) Do(opts ...googleapi.CallOption) (*WebApp, er // } } + +// method id "firebase.projects.webApps.remove": + +type ProjectsWebAppsRemoveCall struct { + s *Service + nameid string + removewebapprequest *RemoveWebAppRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Remove: Removes the specified WebApp from the project. +// +// - name: The resource name of the WebApp, in the format: projects/ +// PROJECT_IDENTIFIER/webApps/APP_ID Since an APP_ID is a unique +// identifier, the Unique Resource from Sub-Collection access pattern +// may be used here, in the format: projects/-/webApps/APP_ID Refer to +// the WebApp name (../projects.webApps#WebApp.FIELDS.name) field for +// details about PROJECT_IDENTIFIER and APP_ID values. +func (r *ProjectsWebAppsService) Remove(nameid string, removewebapprequest *RemoveWebAppRequest) *ProjectsWebAppsRemoveCall { + c := &ProjectsWebAppsRemoveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.nameid = nameid + c.removewebapprequest = removewebapprequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsWebAppsRemoveCall) Fields(s ...googleapi.Field) *ProjectsWebAppsRemoveCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsWebAppsRemoveCall) Context(ctx context.Context) *ProjectsWebAppsRemoveCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsWebAppsRemoveCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsWebAppsRemoveCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.removewebapprequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:remove") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.nameid, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebase.projects.webApps.remove" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsWebAppsRemoveCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Removes the specified WebApp from the project.", + // "flatPath": "v1beta1/projects/{projectsId}/webApps/{webAppsId}:remove", + // "httpMethod": "POST", + // "id": "firebase.projects.webApps.remove", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the WebApp, in the format: projects/ PROJECT_IDENTIFIER/webApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/webApps/APP_ID Refer to the WebApp [name](../projects.webApps#WebApp.FIELDS.name) field for details about PROJECT_IDENTIFIER and APP_ID values.", + // "location": "path", + // "pattern": "^projects/[^/]+/webApps/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:remove", + // "request": { + // "$ref": "RemoveWebAppRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} diff --git a/gkehub/v1/gkehub-api.json b/gkehub/v1/gkehub-api.json index 7dd9705a6df..f84bdf239be 100644 --- a/gkehub/v1/gkehub-api.json +++ b/gkehub/v1/gkehub-api.json @@ -905,7 +905,7 @@ } } }, - "revision": "20220613", + "revision": "20220628", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosVMMembershipSpec": { @@ -1719,6 +1719,10 @@ "$ref": "ConfigManagementPolicyControllerMonitoring", "description": "Monitoring specifies the configuration of monitoring." }, + "mutationEnabled": { + "description": "Enable or disable mutation in policy controller. If true, mutation CRDs, webhook and controller deployment will be deployed to the cluster.", + "type": "boolean" + }, "referentialRulesEnabled": { "description": "Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.", "type": "boolean" diff --git a/gkehub/v1/gkehub-gen.go b/gkehub/v1/gkehub-gen.go index 295f0e7125a..b634656bbf1 100644 --- a/gkehub/v1/gkehub-gen.go +++ b/gkehub/v1/gkehub-gen.go @@ -1513,6 +1513,11 @@ type ConfigManagementPolicyController struct { // Monitoring: Monitoring specifies the configuration of monitoring. Monitoring *ConfigManagementPolicyControllerMonitoring `json:"monitoring,omitempty"` + // MutationEnabled: Enable or disable mutation in policy controller. If + // true, mutation CRDs, webhook and controller deployment will be + // deployed to the cluster. + MutationEnabled bool `json:"mutationEnabled,omitempty"` + // ReferentialRulesEnabled: Enables the ability to use Constraint // Templates that reference to objects other than the object currently // being evaluated. diff --git a/gkehub/v1alpha/gkehub-api.json b/gkehub/v1alpha/gkehub-api.json index 3b5a0c9d990..bc430e5a61a 100644 --- a/gkehub/v1alpha/gkehub-api.json +++ b/gkehub/v1alpha/gkehub-api.json @@ -1151,7 +1151,7 @@ } } }, - "revision": "20220621", + "revision": "20220628", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -2124,7 +2124,7 @@ "description": "Monitoring specifies the configuration of monitoring." }, "mutationEnabled": { - "description": "Enable users to try out mutation for PolicyController.", + "description": "Enable or disable mutation in policy controller. If true, mutation CRDs, webhook and controller deployment will be deployed to the cluster.", "type": "boolean" }, "referentialRulesEnabled": { @@ -3127,7 +3127,7 @@ }, "metering": { "$ref": "MeteringMembershipState", - "description": "Metering-specific spec." + "description": "Metering-specific state." }, "policycontroller": { "$ref": "PolicyControllerMembershipState", diff --git a/gkehub/v1alpha/gkehub-gen.go b/gkehub/v1alpha/gkehub-gen.go index bb2d479d2e5..67286a08de7 100644 --- a/gkehub/v1alpha/gkehub-gen.go +++ b/gkehub/v1alpha/gkehub-gen.go @@ -1831,8 +1831,9 @@ type ConfigManagementPolicyController struct { // Monitoring: Monitoring specifies the configuration of monitoring. Monitoring *ConfigManagementPolicyControllerMonitoring `json:"monitoring,omitempty"` - // MutationEnabled: Enable users to try out mutation for - // PolicyController. + // MutationEnabled: Enable or disable mutation in policy controller. If + // true, mutation CRDs, webhook and controller deployment will be + // deployed to the cluster. MutationEnabled bool `json:"mutationEnabled,omitempty"` // ReferentialRulesEnabled: Enables the ability to use Constraint @@ -3439,7 +3440,7 @@ type MembershipFeatureState struct { // Identityservice: Identity Service-specific state. Identityservice *IdentityServiceMembershipState `json:"identityservice,omitempty"` - // Metering: Metering-specific spec. + // Metering: Metering-specific state. Metering *MeteringMembershipState `json:"metering,omitempty"` // Policycontroller: Policycontroller-specific state. diff --git a/gkehub/v1beta/gkehub-api.json b/gkehub/v1beta/gkehub-api.json index 942133d92a6..b504bb937a8 100644 --- a/gkehub/v1beta/gkehub-api.json +++ b/gkehub/v1beta/gkehub-api.json @@ -670,7 +670,7 @@ } } }, - "revision": "20220621", + "revision": "20220628", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -1538,6 +1538,10 @@ "$ref": "ConfigManagementPolicyControllerMonitoring", "description": "Monitoring specifies the configuration of monitoring." }, + "mutationEnabled": { + "description": "Enable or disable mutation in policy controller. If true, mutation CRDs, webhook and controller deployment will be deployed to the cluster.", + "type": "boolean" + }, "referentialRulesEnabled": { "description": "Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.", "type": "boolean" @@ -2160,7 +2164,7 @@ }, "metering": { "$ref": "MeteringMembershipState", - "description": "Metering-specific spec." + "description": "Metering-specific state." }, "policycontroller": { "$ref": "PolicyControllerMembershipState", diff --git a/gkehub/v1beta/gkehub-gen.go b/gkehub/v1beta/gkehub-gen.go index 8607fbd0606..3e5a038c12c 100644 --- a/gkehub/v1beta/gkehub-gen.go +++ b/gkehub/v1beta/gkehub-gen.go @@ -1599,6 +1599,11 @@ type ConfigManagementPolicyController struct { // Monitoring: Monitoring specifies the configuration of monitoring. Monitoring *ConfigManagementPolicyControllerMonitoring `json:"monitoring,omitempty"` + // MutationEnabled: Enable or disable mutation in policy controller. If + // true, mutation CRDs, webhook and controller deployment will be + // deployed to the cluster. + MutationEnabled bool `json:"mutationEnabled,omitempty"` + // ReferentialRulesEnabled: Enables the ability to use Constraint // Templates that reference to objects other than the object currently // being evaluated. @@ -2568,7 +2573,7 @@ type MembershipFeatureState struct { // Identityservice: Identity Service-specific state. Identityservice *IdentityServiceMembershipState `json:"identityservice,omitempty"` - // Metering: Metering-specific spec. + // Metering: Metering-specific state. Metering *MeteringMembershipState `json:"metering,omitempty"` // Policycontroller: Policycontroller-specific state. diff --git a/healthcare/v1/healthcare-api.json b/healthcare/v1/healthcare-api.json index 788bdeea332..211aca49e4a 100644 --- a/healthcare/v1/healthcare-api.json +++ b/healthcare/v1/healthcare-api.json @@ -4053,7 +4053,7 @@ } } }, - "revision": "20220531", + "revision": "20220629", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "ActivateConsentRequest": { @@ -6347,11 +6347,13 @@ "description": "Specifies the output schema type. Schema type is required.", "enum": [ "SCHEMA_TYPE_UNSPECIFIED", - "ANALYTICS" + "ANALYTICS", + "ANALYTICS_V2" ], "enumDescriptions": [ "No schema type specified. This type is unsupported.", - "Analytics schema defined by the FHIR community. See https://github.com/FHIR/sql-on-fhir/blob/master/sql-on-fhir.md. BigQuery only allows a maximum of 10,000 columns per table. Due to this limitation, the server will not generate schemas for fields of type `Resource`, which can hold any resource type. The affected fields are `Parameters.parameter.resource`, `Bundle.entry.resource`, and `Bundle.entry.response.outcome`." + "Analytics schema defined by the FHIR community. See https://github.com/FHIR/sql-on-fhir/blob/master/sql-on-fhir.md. BigQuery only allows a maximum of 10,000 columns per table. Due to this limitation, the server will not generate schemas for fields of type `Resource`, which can hold any resource type. The affected fields are `Parameters.parameter.resource`, `Bundle.entry.resource`, and `Bundle.entry.response.outcome`.", + "Analytics V2, similar to schema defined by the FHIR community, with added support for extensions with one or more occurrences and contained resources in stringified JSON." ], "type": "string" } diff --git a/healthcare/v1/healthcare-gen.go b/healthcare/v1/healthcare-gen.go index 98fe43ccc02..e6fb5771144 100644 --- a/healthcare/v1/healthcare-gen.go +++ b/healthcare/v1/healthcare-gen.go @@ -4989,6 +4989,9 @@ type SchemaConfig struct { // type `Resource`, which can hold any resource type. The affected // fields are `Parameters.parameter.resource`, `Bundle.entry.resource`, // and `Bundle.entry.response.outcome`. + // "ANALYTICS_V2" - Analytics V2, similar to schema defined by the + // FHIR community, with added support for extensions with one or more + // occurrences and contained resources in stringified JSON. SchemaType string `json:"schemaType,omitempty"` // ForceSendFields is a list of field names (e.g. diff --git a/healthcare/v1beta1/healthcare-api.json b/healthcare/v1beta1/healthcare-api.json index d21f22ec5c9..e4a3dfe1da2 100644 --- a/healthcare/v1beta1/healthcare-api.json +++ b/healthcare/v1beta1/healthcare-api.json @@ -4865,7 +4865,7 @@ } } }, - "revision": "20220531", + "revision": "20220629", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "ActivateConsentRequest": { @@ -5545,6 +5545,21 @@ }, "type": "object" }, + "DeidentifiedStoreDestination": { + "description": "Contains configuration for streaming de-identified FHIR export.", + "id": "DeidentifiedStoreDestination", + "properties": { + "config": { + "$ref": "DeidentifyConfig", + "description": "The configuration to use when de-identifying resources that are added to this store." + }, + "store": { + "description": "The full resource name of a Cloud Healthcare FHIR store, for example, `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}`.", + "type": "string" + } + }, + "type": "object" + }, "DeidentifyConfig": { "description": "Configures de-id options specific to different types of content. Each submessage customizes the handling of an https://tools.ietf.org/html/rfc6838 media type or subtype. Configs are applied in a nested manner at runtime.", "id": "DeidentifyConfig", @@ -5637,6 +5652,10 @@ "resourceFilter": { "$ref": "FhirFilter", "description": "A filter specifying the resources to include in the output. If not specified, all resources are included in the output." + }, + "skipModifiedResources": { + "description": "If true, skips resources that are created or modified after the de-identify operation is created.", + "type": "boolean" } }, "type": "object" @@ -7976,6 +7995,10 @@ "$ref": "GoogleCloudHealthcareV1beta1FhirBigQueryDestination", "description": "The destination BigQuery structure that contains both the dataset location and corresponding schema config. The output is organized in one table per resource type. The server reuses the existing tables (if any) that are named after the resource types, e.g. \"Patient\", \"Observation\". When there is no existing table for a given resource type, the server attempts to create one. When a table schema doesn't align with the schema config, either because of existing incompatible schema or out of band incompatible modification, the server does not stream in new data. One resolution in this case is to delete the incompatible table and let the server recreate one, though the newly created table only contains data after the table recreation. BigQuery imposes a 1 MB limit on streaming insert row size, therefore any resource mutation that generates more than 1 MB of BigQuery data will not be streamed. Results are written to BigQuery tables according to the parameters in BigQueryDestination.WriteDisposition. Different versions of the same resource are distinguishable by the meta.versionId and meta.lastUpdated columns. The operation (CREATE/UPDATE/DELETE) that results in the new version is recorded in the meta.tag. The tables contain all historical resource versions since streaming was enabled. For query convenience, the server also creates one view per table of the same name containing only the current resource version. The streamed data in the BigQuery dataset is not guaranteed to be completely unique. The combination of the id and meta.versionId columns should ideally identify a single unique row. But in rare cases, duplicates may exist. At query time, users may use the SQL select statement to keep only one of the duplicate rows given an id and meta.versionId pair. Alternatively, the server created view mentioned above also filters out duplicates. If a resource mutation cannot be streamed to BigQuery, errors will be logged to Cloud Logging (see [Viewing error logs in Cloud Logging](https://cloud.google.com/healthcare/docs/how-tos/logging))." }, + "deidentifiedStoreDestination": { + "$ref": "DeidentifiedStoreDestination", + "description": "The destination FHIR store for de-identified resources. After this field is added, all subsequent creates/updates/patches to the source store will be de-identified using the provided configuration and applied to the destination store. Importing resources to the source store will not trigger the streaming. If the source store already contains resources when this option is enabled, those resources will not be copied to the destination store unless they are subsequently updated. This may result in invalid references in the destination store. Before adding this config, you must grant the healthcare.fhirResources.update permission on the destination store to your project's **Cloud Healthcare Service Agent** [service account](https://cloud.google.com/healthcare/docs/how-tos/permissions-healthcare-api-gcp-products#the_cloud_healthcare_service_agent). The destination store must set enable_update_create to true. The destination store must have disable_referential_integrity set to true. If a resource cannot be de-identified, errors will be logged to Cloud Logging (see [Viewing error logs in Cloud Logging](https://cloud.google.com/healthcare/docs/how-tos/logging))." + }, "resourceTypes": { "description": "Supply a FHIR resource type (such as \"Patient\" or \"Observation\"). See https://www.hl7.org/fhir/valueset-resource-types.html for a list of all FHIR resource types. The server treats an empty list as an intent to stream all the supported resource types in this FHIR store.", "items": { diff --git a/healthcare/v1beta1/healthcare-gen.go b/healthcare/v1beta1/healthcare-gen.go index 6be86c7c07a..18ab0f09afa 100644 --- a/healthcare/v1beta1/healthcare-gen.go +++ b/healthcare/v1beta1/healthcare-gen.go @@ -1689,6 +1689,42 @@ func (s *DateShiftConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DeidentifiedStoreDestination: Contains configuration for streaming +// de-identified FHIR export. +type DeidentifiedStoreDestination struct { + // Config: The configuration to use when de-identifying resources that + // are added to this store. + Config *DeidentifyConfig `json:"config,omitempty"` + + // Store: The full resource name of a Cloud Healthcare FHIR store, for + // example, + // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/f + // hirStores/{fhir_store_id}`. + Store string `json:"store,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Config") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Config") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DeidentifiedStoreDestination) MarshalJSON() ([]byte, error) { + type NoMethod DeidentifiedStoreDestination + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // DeidentifyConfig: Configures de-id options specific to different // types of content. Each submessage customizes the handling of an // https://tools.ietf.org/html/rfc6838 media type or subtype. Configs @@ -1870,6 +1906,10 @@ type DeidentifyFhirStoreRequest struct { // output. If not specified, all resources are included in the output. ResourceFilter *FhirFilter `json:"resourceFilter,omitempty"` + // SkipModifiedResources: If true, skips resources that are created or + // modified after the de-identify operation is created. + SkipModifiedResources bool `json:"skipModifiedResources,omitempty"` + // ForceSendFields is a list of field names (e.g. "Config") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -6696,6 +6736,26 @@ type StreamConfig struct { // (https://cloud.google.com/healthcare/docs/how-tos/logging)). BigqueryDestination *GoogleCloudHealthcareV1beta1FhirBigQueryDestination `json:"bigqueryDestination,omitempty"` + // DeidentifiedStoreDestination: The destination FHIR store for + // de-identified resources. After this field is added, all subsequent + // creates/updates/patches to the source store will be de-identified + // using the provided configuration and applied to the destination + // store. Importing resources to the source store will not trigger the + // streaming. If the source store already contains resources when this + // option is enabled, those resources will not be copied to the + // destination store unless they are subsequently updated. This may + // result in invalid references in the destination store. Before adding + // this config, you must grant the healthcare.fhirResources.update + // permission on the destination store to your project's **Cloud + // Healthcare Service Agent** service account + // (https://cloud.google.com/healthcare/docs/how-tos/permissions-healthcare-api-gcp-products#the_cloud_healthcare_service_agent). + // The destination store must set enable_update_create to true. The + // destination store must have disable_referential_integrity set to + // true. If a resource cannot be de-identified, errors will be logged to + // Cloud Logging (see Viewing error logs in Cloud Logging + // (https://cloud.google.com/healthcare/docs/how-tos/logging)). + DeidentifiedStoreDestination *DeidentifiedStoreDestination `json:"deidentifiedStoreDestination,omitempty"` + // ResourceTypes: Supply a FHIR resource type (such as "Patient" or // "Observation"). See // https://www.hl7.org/fhir/valueset-resource-types.html for a list of diff --git a/metastore/v1alpha/metastore-api.json b/metastore/v1alpha/metastore-api.json index b380c73a74d..49fda80fc40 100644 --- a/metastore/v1alpha/metastore-api.json +++ b/metastore/v1alpha/metastore-api.json @@ -1467,7 +1467,7 @@ } } }, - "revision": "20220615", + "revision": "20220627", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AuditConfig": { @@ -1806,7 +1806,7 @@ "additionalProperties": { "$ref": "BackendMetastore" }, - "description": "A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key is an integer that represents the order in which BackendMetastores should be evaluated to resolve database names at query time. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number.", + "description": "A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key represents the order in which BackendMetastores should be evaluated to resolve database names at query time and should be greater than or equal to zero. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number.", "type": "object" }, "createTime": { diff --git a/metastore/v1alpha/metastore-gen.go b/metastore/v1alpha/metastore-gen.go index 9ccb6be06e5..aba225a74a1 100644 --- a/metastore/v1alpha/metastore-gen.go +++ b/metastore/v1alpha/metastore-gen.go @@ -868,10 +868,11 @@ func (s *Expr) MarshalJSON() ([]byte, error) { type Federation struct { // BackendMetastores: A map from BackendMetastore rank to // BackendMetastores from which the federation service serves metadata - // at query time. The map key is an integer that represents the order in - // which BackendMetastores should be evaluated to resolve database names - // at query time. A BackendMetastore with a lower number will be - // evaluated before a BackendMetastore with a higher number. + // at query time. The map key represents the order in which + // BackendMetastores should be evaluated to resolve database names at + // query time and should be greater than or equal to zero. A + // BackendMetastore with a lower number will be evaluated before a + // BackendMetastore with a higher number. BackendMetastores map[string]BackendMetastore `json:"backendMetastores,omitempty"` // CreateTime: Output only. The time when the metastore federation was diff --git a/metastore/v1beta/metastore-api.json b/metastore/v1beta/metastore-api.json index 54faf902eed..34924328fd4 100644 --- a/metastore/v1beta/metastore-api.json +++ b/metastore/v1beta/metastore-api.json @@ -1467,7 +1467,7 @@ } } }, - "revision": "20220615", + "revision": "20220627", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AuditConfig": { @@ -1806,7 +1806,7 @@ "additionalProperties": { "$ref": "BackendMetastore" }, - "description": "A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key is an integer that represents the order in which BackendMetastores should be evaluated to resolve database names at query time. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number.", + "description": "A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key represents the order in which BackendMetastores should be evaluated to resolve database names at query time and should be greater than or equal to zero. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number.", "type": "object" }, "createTime": { diff --git a/metastore/v1beta/metastore-gen.go b/metastore/v1beta/metastore-gen.go index 14835d09555..1d2555ee2bb 100644 --- a/metastore/v1beta/metastore-gen.go +++ b/metastore/v1beta/metastore-gen.go @@ -868,10 +868,11 @@ func (s *Expr) MarshalJSON() ([]byte, error) { type Federation struct { // BackendMetastores: A map from BackendMetastore rank to // BackendMetastores from which the federation service serves metadata - // at query time. The map key is an integer that represents the order in - // which BackendMetastores should be evaluated to resolve database names - // at query time. A BackendMetastore with a lower number will be - // evaluated before a BackendMetastore with a higher number. + // at query time. The map key represents the order in which + // BackendMetastores should be evaluated to resolve database names at + // query time and should be greater than or equal to zero. A + // BackendMetastore with a lower number will be evaluated before a + // BackendMetastore with a higher number. BackendMetastores map[string]BackendMetastore `json:"backendMetastores,omitempty"` // CreateTime: Output only. The time when the metastore federation was diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json index 4678a6a42da..086dbe6250a 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json @@ -396,7 +396,7 @@ } } }, - "revision": "20220614", + "revision": "20220706", "rootUrl": "https://paymentsresellersubscription.googleapis.com/", "schemas": { "GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest": { @@ -754,6 +754,23 @@ }, "type": "object" }, + "GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod": { + "description": "A description of what time period or moment in time the product or service is being delivered over.", + "id": "GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod", + "properties": { + "endTime": { + "description": "Optional. The end time of the service period. Time is exclusive.", + "format": "google-datetime", + "type": "string" + }, + "startTime": { + "description": "Required. The start time of the service period. Time is inclusive.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudPaymentsResellerSubscriptionV1Subscription": { "description": "A Subscription resource managed by 3P Partners.", "id": "GoogleCloudPaymentsResellerSubscriptionV1Subscription", @@ -921,7 +938,7 @@ "type": "object" }, "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem": { - "description": "Individual line item definition of a subscription. Next id: 6", + "description": "Individual line item definition of a subscription. Next id: 8", "id": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem", "properties": { "description": { @@ -942,10 +959,30 @@ }, "type": "array" }, + "oneTimeRecurrenceDetails": { + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails", + "description": "Output only. Details only set for a ONE_TIME recurrence line item.", + "readOnly": true + }, "product": { "description": "Required. Product resource name that identifies one the line item The format is 'partners/{partner_id}/products/{product_id}'.", "type": "string" }, + "recurrenceType": { + "description": "Output only. The recurrence type of the line item.", + "enum": [ + "LINE_ITEM_RECURRENCE_TYPE_UNSPECIFIED", + "LINE_ITEM_RECURRENCE_TYPE_PERIODIC", + "LINE_ITEM_RECURRENCE_TYPE_ONE_TIME" + ], + "enumDescriptions": [ + "The line item recurrence type is unspecified.", + "The line item recurs periodically.", + "The line item does not recur in the future." + ], + "readOnly": true, + "type": "string" + }, "state": { "description": "Output only. The state of the line item.", "enum": [ @@ -970,6 +1007,17 @@ }, "type": "object" }, + "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails": { + "description": "Details for a ONE_TIME recurrence line item.", + "id": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails", + "properties": { + "servicePeriod": { + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod", + "description": "The service period of the ONE_TIME line item." + } + }, + "type": "object" + }, "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec": { "description": "Describes the spec for one promotion.", "id": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec", diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go index d6101dcd0e1..872f489d662 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go @@ -812,6 +812,41 @@ func (s *GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDe return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod: A description +// of what time period or moment in time the product or service is being +// delivered over. +type GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod struct { + // EndTime: Optional. The end time of the service period. Time is + // exclusive. + EndTime string `json:"endTime,omitempty"` + + // StartTime: Required. The start time of the service period. Time is + // inclusive. + StartTime string `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudPaymentsResellerSubscriptionV1Subscription: A Subscription // resource managed by 3P Partners. type GoogleCloudPaymentsResellerSubscriptionV1Subscription struct { @@ -1000,7 +1035,7 @@ func (s *GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetail } // GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem: -// Individual line item definition of a subscription. Next id: 6 +// Individual line item definition of a subscription. Next id: 8 type GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem struct { // Description: Output only. Description of this line item. Description string `json:"description,omitempty"` @@ -1019,10 +1054,25 @@ type GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem struct { // resource name only. LineItemPromotionSpecs []*GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec `json:"lineItemPromotionSpecs,omitempty"` + // OneTimeRecurrenceDetails: Output only. Details only set for a + // ONE_TIME recurrence line item. + OneTimeRecurrenceDetails *GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails `json:"oneTimeRecurrenceDetails,omitempty"` + // Product: Required. Product resource name that identifies one the line // item The format is 'partners/{partner_id}/products/{product_id}'. Product string `json:"product,omitempty"` + // RecurrenceType: Output only. The recurrence type of the line item. + // + // Possible values: + // "LINE_ITEM_RECURRENCE_TYPE_UNSPECIFIED" - The line item recurrence + // type is unspecified. + // "LINE_ITEM_RECURRENCE_TYPE_PERIODIC" - The line item recurs + // periodically. + // "LINE_ITEM_RECURRENCE_TYPE_ONE_TIME" - The line item does not recur + // in the future. + RecurrenceType string `json:"recurrenceType,omitempty"` + // State: Output only. The state of the line item. // // Possible values: @@ -1062,6 +1112,35 @@ func (s *GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem) MarshalJ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRe +// currenceDetails: Details for a ONE_TIME recurrence line item. +type GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails struct { + // ServicePeriod: The service period of the ONE_TIME line item. + ServicePeriod *GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod `json:"servicePeriod,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ServicePeriod") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ServicePeriod") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec: // Describes the spec for one promotion. type GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec struct { diff --git a/streetviewpublish/v1/streetviewpublish-api.json b/streetviewpublish/v1/streetviewpublish-api.json index 1886bb8a54e..11e39ed6eaf 100644 --- a/streetviewpublish/v1/streetviewpublish-api.json +++ b/streetviewpublish/v1/streetviewpublish-api.json @@ -533,7 +533,7 @@ } } }, - "revision": "20220628", + "revision": "20220703", "rootUrl": "https://streetviewpublish.googleapis.com/", "schemas": { "BatchDeletePhotosRequest": { @@ -623,6 +623,23 @@ "properties": {}, "type": "object" }, + "GpsDataGapFailureDetails": { + "description": "Details related to ProcessingFailureReason#GPS_DATA_GAP.", + "id": "GpsDataGapFailureDetails", + "properties": { + "gapDuration": { + "description": "The duration of the gap in GPS data that was found.", + "format": "google-duration", + "type": "string" + }, + "gapTime": { + "description": "Relative time (from the start of the video stream) when the gap started.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, "Imu": { "description": "IMU data from the device sensors.", "id": "Imu", @@ -651,6 +668,35 @@ }, "type": "object" }, + "ImuDataGapFailureDetails": { + "description": "Details related to ProcessingFailureReason#IMU_DATA_GAP.", + "id": "ImuDataGapFailureDetails", + "properties": { + "gapDuration": { + "description": "The duration of the gap in IMU data that was found.", + "format": "google-duration", + "type": "string" + }, + "gapTime": { + "description": "Relative time (from the start of the video stream) when the gap started.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "InsufficientGpsFailureDetails": { + "description": "Details related to ProcessingFailureReason#INSUFFICIENT_GPS.", + "id": "InsufficientGpsFailureDetails", + "properties": { + "gpsPointsFound": { + "description": "The number of GPS points that were found in the video.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "LatLng": { "description": "An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges.", "id": "LatLng", @@ -762,6 +808,18 @@ }, "type": "object" }, + "NotOutdoorsFailureDetails": { + "description": "Details related to ProcessingFailureReason#NOT_OUTDOORS.", + "id": "NotOutdoorsFailureDetails", + "properties": { + "time": { + "description": "Relative time (from the start of the video stream) when an indoor frame was found.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", @@ -944,6 +1002,11 @@ "readOnly": true, "type": "number" }, + "failureDetails": { + "$ref": "ProcessingFailureDetails", + "description": "Output only. If this sequence has `failure_reason` set, this may contain additional details about the failure.", + "readOnly": true + }, "failureReason": { "description": "Output only. If this sequence has processing_state = FAILED, this will contain the reason why it failed. If the processing_state is any other value, this field will be unset.", "enum": [ @@ -959,7 +1022,13 @@ "INTERNAL", "INVALID_VIDEO_FORMAT", "INVALID_VIDEO_DIMENSIONS", - "INVALID_CAPTURE_TIME" + "INVALID_CAPTURE_TIME", + "GPS_DATA_GAP", + "JUMPY_GPS", + "INVALID_IMU", + "IMU_DATA_GAP", + "UNSUPPORTED_CAMERA", + "NOT_OUTDOORS" ], "enumDescriptions": [ "The failure reason is unspecified, this is the default value.", @@ -974,7 +1043,13 @@ "A permanent failure in the underlying system occurred.", "The video format is invalid or unsupported.", "Invalid image aspect ratio found.", - "Invalid capture time. Timestamps were from the future." + "Invalid capture time. Timestamps were from the future.", + "GPS data contains a gap greater than 5 seconds in duration.", + "GPS data is too erratic to be processed.", + "IMU (Accelerometer, Gyroscope, etc.) data are not valid. They may be missing required fields (x, y, z or time), may not be formatted correctly, or any other issue that prevents our systems from parsing it.", + "IMU (Accelerometer, Gyroscope, etc.) data contain gaps greater than 0.1 seconds in duration.", + "The camera is not supported.", + "Some frames were indoors, which is unsupported." ], "readOnly": true, "type": "string" @@ -1129,6 +1204,29 @@ }, "type": "object" }, + "ProcessingFailureDetails": { + "description": "Additional details to accompany the ProcessingFailureReason enum. This message is always expected to be used in conjunction with ProcessingFailureReason, and the oneof value set in this message should match the FailureReason.", + "id": "ProcessingFailureDetails", + "properties": { + "gpsDataGapDetails": { + "$ref": "GpsDataGapFailureDetails", + "description": "See GpsDataGapFailureDetails." + }, + "imuDataGapDetails": { + "$ref": "ImuDataGapFailureDetails", + "description": "See ImuDataGapFailureDetails." + }, + "insufficientGpsDetails": { + "$ref": "InsufficientGpsFailureDetails", + "description": "See InsufficientGpsFailureDetails." + }, + "notOutdoorsDetails": { + "$ref": "NotOutdoorsFailureDetails", + "description": "See NotOutdoorsFailureDetails." + } + }, + "type": "object" + }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", diff --git a/streetviewpublish/v1/streetviewpublish-gen.go b/streetviewpublish/v1/streetviewpublish-gen.go index c457f4c7de3..493d826727d 100644 --- a/streetviewpublish/v1/streetviewpublish-gen.go +++ b/streetviewpublish/v1/streetviewpublish-gen.go @@ -383,6 +383,39 @@ type Empty struct { googleapi.ServerResponse `json:"-"` } +// GpsDataGapFailureDetails: Details related to +// ProcessingFailureReason#GPS_DATA_GAP. +type GpsDataGapFailureDetails struct { + // GapDuration: The duration of the gap in GPS data that was found. + GapDuration string `json:"gapDuration,omitempty"` + + // GapTime: Relative time (from the start of the video stream) when the + // gap started. + GapTime string `json:"gapTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GapDuration") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GapDuration") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GpsDataGapFailureDetails) MarshalJSON() ([]byte, error) { + type NoMethod GpsDataGapFailureDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Imu: IMU data from the device sensors. type Imu struct { // AccelMpsps: The accelerometer measurements in meters/sec^2 with @@ -420,6 +453,70 @@ func (s *Imu) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ImuDataGapFailureDetails: Details related to +// ProcessingFailureReason#IMU_DATA_GAP. +type ImuDataGapFailureDetails struct { + // GapDuration: The duration of the gap in IMU data that was found. + GapDuration string `json:"gapDuration,omitempty"` + + // GapTime: Relative time (from the start of the video stream) when the + // gap started. + GapTime string `json:"gapTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GapDuration") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GapDuration") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ImuDataGapFailureDetails) MarshalJSON() ([]byte, error) { + type NoMethod ImuDataGapFailureDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InsufficientGpsFailureDetails: Details related to +// ProcessingFailureReason#INSUFFICIENT_GPS. +type InsufficientGpsFailureDetails struct { + // GpsPointsFound: The number of GPS points that were found in the + // video. + GpsPointsFound int64 `json:"gpsPointsFound,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GpsPointsFound") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GpsPointsFound") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *InsufficientGpsFailureDetails) MarshalJSON() ([]byte, error) { + type NoMethod InsufficientGpsFailureDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // LatLng: An object that represents a latitude/longitude pair. This is // expressed as a pair of doubles to represent degrees latitude and // degrees longitude. Unless specified otherwise, this object must @@ -692,6 +789,36 @@ func (s *Measurement3d) UnmarshalJSON(data []byte) error { return nil } +// NotOutdoorsFailureDetails: Details related to +// ProcessingFailureReason#NOT_OUTDOORS. +type NotOutdoorsFailureDetails struct { + // Time: Relative time (from the start of the video stream) when an + // indoor frame was found. + Time string `json:"time,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Time") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Time") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *NotOutdoorsFailureDetails) MarshalJSON() ([]byte, error) { + type NoMethod NotOutdoorsFailureDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Operation: This resource represents a long-running operation that is // the result of a network API call. type Operation struct { @@ -928,6 +1055,10 @@ type PhotoSequence struct { // sequence in meters. DistanceMeters float64 `json:"distanceMeters,omitempty"` + // FailureDetails: Output only. If this sequence has `failure_reason` + // set, this may contain additional details about the failure. + FailureDetails *ProcessingFailureDetails `json:"failureDetails,omitempty"` + // FailureReason: Output only. If this sequence has processing_state = // FAILED, this will contain the reason why it failed. If the // processing_state is any other value, this field will be unset. @@ -951,6 +1082,17 @@ type PhotoSequence struct { // "INVALID_VIDEO_DIMENSIONS" - Invalid image aspect ratio found. // "INVALID_CAPTURE_TIME" - Invalid capture time. Timestamps were from // the future. + // "GPS_DATA_GAP" - GPS data contains a gap greater than 5 seconds in + // duration. + // "JUMPY_GPS" - GPS data is too erratic to be processed. + // "INVALID_IMU" - IMU (Accelerometer, Gyroscope, etc.) data are not + // valid. They may be missing required fields (x, y, z or time), may not + // be formatted correctly, or any other issue that prevents our systems + // from parsing it. + // "IMU_DATA_GAP" - IMU (Accelerometer, Gyroscope, etc.) data contain + // gaps greater than 0.1 seconds in duration. + // "UNSUPPORTED_CAMERA" - The camera is not supported. + // "NOT_OUTDOORS" - Some frames were indoors, which is unsupported. FailureReason string `json:"failureReason,omitempty"` // Filename: Output only. The filename of the upload. Does not include @@ -1194,6 +1336,47 @@ func (s *Pose) UnmarshalJSON(data []byte) error { return nil } +// ProcessingFailureDetails: Additional details to accompany the +// ProcessingFailureReason enum. This message is always expected to be +// used in conjunction with ProcessingFailureReason, and the oneof value +// set in this message should match the FailureReason. +type ProcessingFailureDetails struct { + // GpsDataGapDetails: See GpsDataGapFailureDetails. + GpsDataGapDetails *GpsDataGapFailureDetails `json:"gpsDataGapDetails,omitempty"` + + // ImuDataGapDetails: See ImuDataGapFailureDetails. + ImuDataGapDetails *ImuDataGapFailureDetails `json:"imuDataGapDetails,omitempty"` + + // InsufficientGpsDetails: See InsufficientGpsFailureDetails. + InsufficientGpsDetails *InsufficientGpsFailureDetails `json:"insufficientGpsDetails,omitempty"` + + // NotOutdoorsDetails: See NotOutdoorsFailureDetails. + NotOutdoorsDetails *NotOutdoorsFailureDetails `json:"notOutdoorsDetails,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GpsDataGapDetails") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GpsDataGapDetails") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ProcessingFailureDetails) MarshalJSON() ([]byte, error) { + type NoMethod ProcessingFailureDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Status: The `Status` type defines a logical error model that is // suitable for different programming environments, including REST APIs // and RPC APIs. It is used by gRPC (https://github.com/grpc). Each diff --git a/tpu/v2alpha1/tpu-api.json b/tpu/v2alpha1/tpu-api.json index 3bbcc2993c0..b126aa0a155 100644 --- a/tpu/v2alpha1/tpu-api.json +++ b/tpu/v2alpha1/tpu-api.json @@ -473,6 +473,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "simulateMaintenanceEvent": { + "description": "Simulates a maintenance event.", + "flatPath": "v2alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:simulateMaintenanceEvent", + "httpMethod": "POST", + "id": "tpu.projects.locations.nodes.simulateMaintenanceEvent", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha1/{+name}:simulateMaintenanceEvent", + "request": { + "$ref": "SimulateMaintenanceEventRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "start": { "description": "Starts a node.", "flatPath": "v2alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:start", @@ -731,7 +759,7 @@ } } }, - "revision": "20220412", + "revision": "20220629", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorType": { @@ -1383,6 +1411,20 @@ }, "type": "object" }, + "SimulateMaintenanceEventRequest": { + "description": "Request for SimulateMaintenanceEvent.", + "id": "SimulateMaintenanceEventRequest", + "properties": { + "workerIds": { + "description": "The 0-based worker ID. If it is empty, worker ID 0 will be selected for maintenance event simulation. A maintenance event will only be fired on the first specified worker ID. Future implementations may support firing on multiple workers.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "StartNodeRequest": { "description": "Request for StartNode.", "id": "StartNodeRequest", diff --git a/tpu/v2alpha1/tpu-gen.go b/tpu/v2alpha1/tpu-gen.go index b40f3a06528..96694af1837 100644 --- a/tpu/v2alpha1/tpu-gen.go +++ b/tpu/v2alpha1/tpu-gen.go @@ -1218,6 +1218,38 @@ func (s *ServiceIdentity) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SimulateMaintenanceEventRequest: Request for +// SimulateMaintenanceEvent. +type SimulateMaintenanceEventRequest struct { + // WorkerIds: The 0-based worker ID. If it is empty, worker ID 0 will be + // selected for maintenance event simulation. A maintenance event will + // only be fired on the first specified worker ID. Future + // implementations may support firing on multiple workers. + WorkerIds []string `json:"workerIds,omitempty"` + + // ForceSendFields is a list of field names (e.g. "WorkerIds") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "WorkerIds") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SimulateMaintenanceEventRequest) MarshalJSON() ([]byte, error) { + type NoMethod SimulateMaintenanceEventRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // StartNodeRequest: Request for StartNode. type StartNodeRequest struct { } @@ -3123,6 +3155,148 @@ func (c *ProjectsLocationsNodesPatchCall) Do(opts ...googleapi.CallOption) (*Ope } +// method id "tpu.projects.locations.nodes.simulateMaintenanceEvent": + +type ProjectsLocationsNodesSimulateMaintenanceEventCall struct { + s *Service + name string + simulatemaintenanceeventrequest *SimulateMaintenanceEventRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SimulateMaintenanceEvent: Simulates a maintenance event. +// +// - name: The resource name. +func (r *ProjectsLocationsNodesService) SimulateMaintenanceEvent(name string, simulatemaintenanceeventrequest *SimulateMaintenanceEventRequest) *ProjectsLocationsNodesSimulateMaintenanceEventCall { + c := &ProjectsLocationsNodesSimulateMaintenanceEventCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.simulatemaintenanceeventrequest = simulatemaintenanceeventrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsNodesSimulateMaintenanceEventCall) Fields(s ...googleapi.Field) *ProjectsLocationsNodesSimulateMaintenanceEventCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsNodesSimulateMaintenanceEventCall) Context(ctx context.Context) *ProjectsLocationsNodesSimulateMaintenanceEventCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsNodesSimulateMaintenanceEventCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNodesSimulateMaintenanceEventCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.simulatemaintenanceeventrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2alpha1/{+name}:simulateMaintenanceEvent") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "tpu.projects.locations.nodes.simulateMaintenanceEvent" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsNodesSimulateMaintenanceEventCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Simulates a maintenance event.", + // "flatPath": "v2alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:simulateMaintenanceEvent", + // "httpMethod": "POST", + // "id": "tpu.projects.locations.nodes.simulateMaintenanceEvent", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2alpha1/{+name}:simulateMaintenanceEvent", + // "request": { + // "$ref": "SimulateMaintenanceEventRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "tpu.projects.locations.nodes.start": type ProjectsLocationsNodesStartCall struct {