diff --git a/api_names.yaml b/api_names.yaml index b47b329b2..5bb83349d 100644 --- a/api_names.yaml +++ b/api_names.yaml @@ -862,6 +862,7 @@ "/genomics:v1/genomics.referencesets.search": search_reference_sets "/gmail:v1/gmail.users.getProfile": get_user_profile "/groupssettings:v1?force_alt_json" : true +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetProjectConfigRequest": set_project_config_request "/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest": create_auth_uri_request "/identitytoolkit:v3/IdentitytoolkitRelyingpartyDeleteAccountRequest": delete_account_request "/identitytoolkit:v3/IdentitytoolkitRelyingpartyDownloadAccountRequest": download_account_request diff --git a/api_names_out.yaml b/api_names_out.yaml index 5c1bd6105..38eb22d7a 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -838,6 +838,7 @@ "/genomics:v1/genomics.referencesets.search": search_reference_sets "/gmail:v1/gmail.users.getProfile": get_user_profile "/groupssettings:v1?force_alt_json": true +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetProjectConfigRequest": set_project_config_request "/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest": create_auth_uri_request "/identitytoolkit:v3/IdentitytoolkitRelyingpartyDeleteAccountRequest": delete_account_request "/identitytoolkit:v3/IdentitytoolkitRelyingpartyDownloadAccountRequest": download_account_request @@ -1089,6 +1090,10 @@ "/compute:beta/compute.addresses.list/pageToken": page_token "/compute:beta/compute.addresses.list/project": project "/compute:beta/compute.addresses.list/region": region +"/compute:beta/compute.addresses.testIamPermissions": test_address_iam_permissions +"/compute:beta/compute.addresses.testIamPermissions/project": project +"/compute:beta/compute.addresses.testIamPermissions/region": region +"/compute:beta/compute.addresses.testIamPermissions/resource": resource "/compute:beta/compute.autoscalers.aggregatedList/filter": filter "/compute:beta/compute.autoscalers.aggregatedList/maxResults": max_results "/compute:beta/compute.autoscalers.aggregatedList/orderBy": order_by @@ -1116,6 +1121,10 @@ "/compute:beta/compute.autoscalers.patch/autoscaler": autoscaler "/compute:beta/compute.autoscalers.patch/project": project "/compute:beta/compute.autoscalers.patch/zone": zone +"/compute:beta/compute.autoscalers.testIamPermissions": test_autoscaler_iam_permissions +"/compute:beta/compute.autoscalers.testIamPermissions/project": project +"/compute:beta/compute.autoscalers.testIamPermissions/resource": resource +"/compute:beta/compute.autoscalers.testIamPermissions/zone": zone "/compute:beta/compute.autoscalers.update": update_autoscaler "/compute:beta/compute.autoscalers.update/autoscaler": autoscaler "/compute:beta/compute.autoscalers.update/project": project @@ -1139,6 +1148,9 @@ "/compute:beta/compute.backendServices.patch": patch_backend_service "/compute:beta/compute.backendServices.patch/backendService": backend_service "/compute:beta/compute.backendServices.patch/project": project +"/compute:beta/compute.backendServices.testIamPermissions": test_backend_service_iam_permissions +"/compute:beta/compute.backendServices.testIamPermissions/project": project +"/compute:beta/compute.backendServices.testIamPermissions/resource": resource "/compute:beta/compute.backendServices.update": update_backend_service "/compute:beta/compute.backendServices.update/backendService": backend_service "/compute:beta/compute.backendServices.update/project": project @@ -1189,6 +1201,14 @@ "/compute:beta/compute.disks.resize/disk": disk "/compute:beta/compute.disks.resize/project": project "/compute:beta/compute.disks.resize/zone": zone +"/compute:beta/compute.disks.setLabels": set_disk_labels +"/compute:beta/compute.disks.setLabels/project": project +"/compute:beta/compute.disks.setLabels/resource": resource +"/compute:beta/compute.disks.setLabels/zone": zone +"/compute:beta/compute.disks.testIamPermissions": test_disk_iam_permissions +"/compute:beta/compute.disks.testIamPermissions/project": project +"/compute:beta/compute.disks.testIamPermissions/resource": resource +"/compute:beta/compute.disks.testIamPermissions/zone": zone "/compute:beta/compute.firewalls.delete": delete_firewall "/compute:beta/compute.firewalls.delete/firewall": firewall "/compute:beta/compute.firewalls.delete/project": project @@ -1206,6 +1226,9 @@ "/compute:beta/compute.firewalls.patch": patch_firewall "/compute:beta/compute.firewalls.patch/firewall": firewall "/compute:beta/compute.firewalls.patch/project": project +"/compute:beta/compute.firewalls.testIamPermissions": test_firewall_iam_permissions +"/compute:beta/compute.firewalls.testIamPermissions/project": project +"/compute:beta/compute.firewalls.testIamPermissions/resource": resource "/compute:beta/compute.firewalls.update": update_firewall "/compute:beta/compute.firewalls.update/firewall": firewall "/compute:beta/compute.firewalls.update/project": project @@ -1235,6 +1258,10 @@ "/compute:beta/compute.forwardingRules.setTarget/forwardingRule": forwarding_rule "/compute:beta/compute.forwardingRules.setTarget/project": project "/compute:beta/compute.forwardingRules.setTarget/region": region +"/compute:beta/compute.forwardingRules.testIamPermissions": test_forwarding_rule_iam_permissions +"/compute:beta/compute.forwardingRules.testIamPermissions/project": project +"/compute:beta/compute.forwardingRules.testIamPermissions/region": region +"/compute:beta/compute.forwardingRules.testIamPermissions/resource": resource "/compute:beta/compute.globalAddresses.delete": delete_global_address "/compute:beta/compute.globalAddresses.delete/address": address "/compute:beta/compute.globalAddresses.delete/project": project @@ -1249,6 +1276,9 @@ "/compute:beta/compute.globalAddresses.list/orderBy": order_by "/compute:beta/compute.globalAddresses.list/pageToken": page_token "/compute:beta/compute.globalAddresses.list/project": project +"/compute:beta/compute.globalAddresses.testIamPermissions": test_global_address_iam_permissions +"/compute:beta/compute.globalAddresses.testIamPermissions/project": project +"/compute:beta/compute.globalAddresses.testIamPermissions/resource": resource "/compute:beta/compute.globalForwardingRules.delete": delete_global_forwarding_rule "/compute:beta/compute.globalForwardingRules.delete/forwardingRule": forwarding_rule "/compute:beta/compute.globalForwardingRules.delete/project": project @@ -1265,6 +1295,9 @@ "/compute:beta/compute.globalForwardingRules.list/project": project "/compute:beta/compute.globalForwardingRules.setTarget/forwardingRule": forwarding_rule "/compute:beta/compute.globalForwardingRules.setTarget/project": project +"/compute:beta/compute.globalForwardingRules.testIamPermissions": test_global_forwarding_rule_iam_permissions +"/compute:beta/compute.globalForwardingRules.testIamPermissions/project": project +"/compute:beta/compute.globalForwardingRules.testIamPermissions/resource": resource "/compute:beta/compute.globalOperations.aggregatedList/filter": filter "/compute:beta/compute.globalOperations.aggregatedList/maxResults": max_results "/compute:beta/compute.globalOperations.aggregatedList/orderBy": order_by @@ -1299,6 +1332,9 @@ "/compute:beta/compute.httpHealthChecks.patch": patch_http_health_check "/compute:beta/compute.httpHealthChecks.patch/httpHealthCheck": http_health_check "/compute:beta/compute.httpHealthChecks.patch/project": project +"/compute:beta/compute.httpHealthChecks.testIamPermissions": test_http_health_check_iam_permissions +"/compute:beta/compute.httpHealthChecks.testIamPermissions/project": project +"/compute:beta/compute.httpHealthChecks.testIamPermissions/resource": resource "/compute:beta/compute.httpHealthChecks.update": update_http_health_check "/compute:beta/compute.httpHealthChecks.update/httpHealthCheck": http_health_check "/compute:beta/compute.httpHealthChecks.update/project": project @@ -1319,6 +1355,9 @@ "/compute:beta/compute.httpsHealthChecks.patch": patch_https_health_check "/compute:beta/compute.httpsHealthChecks.patch/httpsHealthCheck": https_health_check "/compute:beta/compute.httpsHealthChecks.patch/project": project +"/compute:beta/compute.httpsHealthChecks.testIamPermissions": test_https_health_check_iam_permissions +"/compute:beta/compute.httpsHealthChecks.testIamPermissions/project": project +"/compute:beta/compute.httpsHealthChecks.testIamPermissions/resource": resource "/compute:beta/compute.httpsHealthChecks.update": update_https_health_check "/compute:beta/compute.httpsHealthChecks.update/httpsHealthCheck": https_health_check "/compute:beta/compute.httpsHealthChecks.update/project": project @@ -1342,6 +1381,12 @@ "/compute:beta/compute.images.list/orderBy": order_by "/compute:beta/compute.images.list/pageToken": page_token "/compute:beta/compute.images.list/project": project +"/compute:beta/compute.images.setLabels": set_image_labels +"/compute:beta/compute.images.setLabels/project": project +"/compute:beta/compute.images.setLabels/resource": resource +"/compute:beta/compute.images.testIamPermissions": test_image_iam_permissions +"/compute:beta/compute.images.testIamPermissions/project": project +"/compute:beta/compute.images.testIamPermissions/resource": resource "/compute:beta/compute.instanceGroupManagers.abandonInstances/instanceGroupManager": instance_group_manager "/compute:beta/compute.instanceGroupManagers.abandonInstances/project": project "/compute:beta/compute.instanceGroupManagers.abandonInstances/zone": zone @@ -1391,6 +1436,10 @@ "/compute:beta/compute.instanceGroupManagers.setTargetPools/instanceGroupManager": instance_group_manager "/compute:beta/compute.instanceGroupManagers.setTargetPools/project": project "/compute:beta/compute.instanceGroupManagers.setTargetPools/zone": zone +"/compute:beta/compute.instanceGroupManagers.testIamPermissions": test_instance_group_manager_iam_permissions +"/compute:beta/compute.instanceGroupManagers.testIamPermissions/project": project +"/compute:beta/compute.instanceGroupManagers.testIamPermissions/resource": resource +"/compute:beta/compute.instanceGroupManagers.testIamPermissions/zone": zone "/compute:beta/compute.instanceGroups.addInstances/instanceGroup": instance_group "/compute:beta/compute.instanceGroups.addInstances/project": project "/compute:beta/compute.instanceGroups.addInstances/zone": zone @@ -1430,6 +1479,10 @@ "/compute:beta/compute.instanceGroups.setNamedPorts/instanceGroup": instance_group "/compute:beta/compute.instanceGroups.setNamedPorts/project": project "/compute:beta/compute.instanceGroups.setNamedPorts/zone": zone +"/compute:beta/compute.instanceGroups.testIamPermissions": test_instance_group_iam_permissions +"/compute:beta/compute.instanceGroups.testIamPermissions/project": project +"/compute:beta/compute.instanceGroups.testIamPermissions/resource": resource +"/compute:beta/compute.instanceGroups.testIamPermissions/zone": zone "/compute:beta/compute.instanceTemplates.delete": delete_instance_template "/compute:beta/compute.instanceTemplates.delete/instanceTemplate": instance_template "/compute:beta/compute.instanceTemplates.delete/project": project @@ -1444,6 +1497,9 @@ "/compute:beta/compute.instanceTemplates.list/orderBy": order_by "/compute:beta/compute.instanceTemplates.list/pageToken": page_token "/compute:beta/compute.instanceTemplates.list/project": project +"/compute:beta/compute.instanceTemplates.testIamPermissions": test_instance_template_iam_permissions +"/compute:beta/compute.instanceTemplates.testIamPermissions/project": project +"/compute:beta/compute.instanceTemplates.testIamPermissions/resource": resource "/compute:beta/compute.instances.addAccessConfig/instance": instance "/compute:beta/compute.instances.addAccessConfig/networkInterface": network_interface "/compute:beta/compute.instances.addAccessConfig/project": project @@ -1476,6 +1532,7 @@ "/compute:beta/compute.instances.getSerialPortOutput/instance": instance "/compute:beta/compute.instances.getSerialPortOutput/port": port "/compute:beta/compute.instances.getSerialPortOutput/project": project +"/compute:beta/compute.instances.getSerialPortOutput/start": start "/compute:beta/compute.instances.getSerialPortOutput/zone": zone "/compute:beta/compute.instances.insert": insert_instance "/compute:beta/compute.instances.insert/project": project @@ -1521,6 +1578,10 @@ "/compute:beta/compute.instances.stop/instance": instance "/compute:beta/compute.instances.stop/project": project "/compute:beta/compute.instances.stop/zone": zone +"/compute:beta/compute.instances.testIamPermissions": test_instance_iam_permissions +"/compute:beta/compute.instances.testIamPermissions/project": project +"/compute:beta/compute.instances.testIamPermissions/resource": resource +"/compute:beta/compute.instances.testIamPermissions/zone": zone "/compute:beta/compute.licenses.get": get_license "/compute:beta/compute.licenses.get/license": license "/compute:beta/compute.licenses.get/project": project @@ -1554,6 +1615,9 @@ "/compute:beta/compute.networks.list/orderBy": order_by "/compute:beta/compute.networks.list/pageToken": page_token "/compute:beta/compute.networks.list/project": project +"/compute:beta/compute.networks.testIamPermissions": test_network_iam_permissions +"/compute:beta/compute.networks.testIamPermissions/project": project +"/compute:beta/compute.networks.testIamPermissions/resource": resource "/compute:beta/compute.projects.get": get_project "/compute:beta/compute.projects.get/project": project "/compute:beta/compute.projects.setCommonInstanceMetadata/project": project @@ -1612,6 +1676,10 @@ "/compute:beta/compute.routers.patch/project": project "/compute:beta/compute.routers.patch/region": region "/compute:beta/compute.routers.patch/router": router +"/compute:beta/compute.routers.testIamPermissions": test_router_iam_permissions +"/compute:beta/compute.routers.testIamPermissions/project": project +"/compute:beta/compute.routers.testIamPermissions/region": region +"/compute:beta/compute.routers.testIamPermissions/resource": resource "/compute:beta/compute.routers.update": update_router "/compute:beta/compute.routers.update/project": project "/compute:beta/compute.routers.update/region": region @@ -1630,6 +1698,9 @@ "/compute:beta/compute.routes.list/orderBy": order_by "/compute:beta/compute.routes.list/pageToken": page_token "/compute:beta/compute.routes.list/project": project +"/compute:beta/compute.routes.testIamPermissions": test_route_iam_permissions +"/compute:beta/compute.routes.testIamPermissions/project": project +"/compute:beta/compute.routes.testIamPermissions/resource": resource "/compute:beta/compute.snapshots.delete": delete_snapshot "/compute:beta/compute.snapshots.delete/project": project "/compute:beta/compute.snapshots.delete/snapshot": snapshot @@ -1642,6 +1713,12 @@ "/compute:beta/compute.snapshots.list/orderBy": order_by "/compute:beta/compute.snapshots.list/pageToken": page_token "/compute:beta/compute.snapshots.list/project": project +"/compute:beta/compute.snapshots.setLabels": set_snapshot_labels +"/compute:beta/compute.snapshots.setLabels/project": project +"/compute:beta/compute.snapshots.setLabels/resource": resource +"/compute:beta/compute.snapshots.testIamPermissions": test_snapshot_iam_permissions +"/compute:beta/compute.snapshots.testIamPermissions/project": project +"/compute:beta/compute.snapshots.testIamPermissions/resource": resource "/compute:beta/compute.sslCertificates.delete": delete_ssl_certificate "/compute:beta/compute.sslCertificates.delete/project": project "/compute:beta/compute.sslCertificates.delete/sslCertificate": ssl_certificate @@ -1656,6 +1733,9 @@ "/compute:beta/compute.sslCertificates.list/orderBy": order_by "/compute:beta/compute.sslCertificates.list/pageToken": page_token "/compute:beta/compute.sslCertificates.list/project": project +"/compute:beta/compute.sslCertificates.testIamPermissions": test_ssl_certificate_iam_permissions +"/compute:beta/compute.sslCertificates.testIamPermissions/project": project +"/compute:beta/compute.sslCertificates.testIamPermissions/resource": resource "/compute:beta/compute.subnetworks.aggregatedList/filter": filter "/compute:beta/compute.subnetworks.aggregatedList/maxResults": max_results "/compute:beta/compute.subnetworks.aggregatedList/orderBy": order_by @@ -1679,6 +1759,10 @@ "/compute:beta/compute.subnetworks.list/pageToken": page_token "/compute:beta/compute.subnetworks.list/project": project "/compute:beta/compute.subnetworks.list/region": region +"/compute:beta/compute.subnetworks.testIamPermissions": test_subnetwork_iam_permissions +"/compute:beta/compute.subnetworks.testIamPermissions/project": project +"/compute:beta/compute.subnetworks.testIamPermissions/region": region +"/compute:beta/compute.subnetworks.testIamPermissions/resource": resource "/compute:beta/compute.targetHttpProxies.delete": delete_target_http_proxy "/compute:beta/compute.targetHttpProxies.delete/project": project "/compute:beta/compute.targetHttpProxies.delete/targetHttpProxy": target_http_proxy @@ -1695,6 +1779,9 @@ "/compute:beta/compute.targetHttpProxies.list/project": project "/compute:beta/compute.targetHttpProxies.setUrlMap/project": project "/compute:beta/compute.targetHttpProxies.setUrlMap/targetHttpProxy": target_http_proxy +"/compute:beta/compute.targetHttpProxies.testIamPermissions": test_target_http_proxy_iam_permissions +"/compute:beta/compute.targetHttpProxies.testIamPermissions/project": project +"/compute:beta/compute.targetHttpProxies.testIamPermissions/resource": resource "/compute:beta/compute.targetHttpsProxies.delete": delete_target_https_proxy "/compute:beta/compute.targetHttpsProxies.delete/project": project "/compute:beta/compute.targetHttpsProxies.delete/targetHttpsProxy": target_https_proxy @@ -1715,6 +1802,9 @@ "/compute:beta/compute.targetHttpsProxies.setUrlMap": set_target_https_proxy_url_map "/compute:beta/compute.targetHttpsProxies.setUrlMap/project": project "/compute:beta/compute.targetHttpsProxies.setUrlMap/targetHttpsProxy": target_https_proxy +"/compute:beta/compute.targetHttpsProxies.testIamPermissions": test_target_https_proxy_iam_permissions +"/compute:beta/compute.targetHttpsProxies.testIamPermissions/project": project +"/compute:beta/compute.targetHttpsProxies.testIamPermissions/resource": resource "/compute:beta/compute.targetInstances.aggregatedList/filter": filter "/compute:beta/compute.targetInstances.aggregatedList/maxResults": max_results "/compute:beta/compute.targetInstances.aggregatedList/orderBy": order_by @@ -1738,6 +1828,10 @@ "/compute:beta/compute.targetInstances.list/pageToken": page_token "/compute:beta/compute.targetInstances.list/project": project "/compute:beta/compute.targetInstances.list/zone": zone +"/compute:beta/compute.targetInstances.testIamPermissions": test_target_instance_iam_permissions +"/compute:beta/compute.targetInstances.testIamPermissions/project": project +"/compute:beta/compute.targetInstances.testIamPermissions/resource": resource +"/compute:beta/compute.targetInstances.testIamPermissions/zone": zone "/compute:beta/compute.targetPools.addHealthCheck/project": project "/compute:beta/compute.targetPools.addHealthCheck/region": region "/compute:beta/compute.targetPools.addHealthCheck/targetPool": target_pool @@ -1780,6 +1874,10 @@ "/compute:beta/compute.targetPools.setBackup/project": project "/compute:beta/compute.targetPools.setBackup/region": region "/compute:beta/compute.targetPools.setBackup/targetPool": target_pool +"/compute:beta/compute.targetPools.testIamPermissions": test_target_pool_iam_permissions +"/compute:beta/compute.targetPools.testIamPermissions/project": project +"/compute:beta/compute.targetPools.testIamPermissions/region": region +"/compute:beta/compute.targetPools.testIamPermissions/resource": resource "/compute:beta/compute.targetVpnGateways.aggregatedList/filter": filter "/compute:beta/compute.targetVpnGateways.aggregatedList/maxResults": max_results "/compute:beta/compute.targetVpnGateways.aggregatedList/orderBy": order_by @@ -1799,6 +1897,10 @@ "/compute:beta/compute.targetVpnGateways.list/pageToken": page_token "/compute:beta/compute.targetVpnGateways.list/project": project "/compute:beta/compute.targetVpnGateways.list/region": region +"/compute:beta/compute.targetVpnGateways.testIamPermissions": test_target_vpn_gateway_iam_permissions +"/compute:beta/compute.targetVpnGateways.testIamPermissions/project": project +"/compute:beta/compute.targetVpnGateways.testIamPermissions/region": region +"/compute:beta/compute.targetVpnGateways.testIamPermissions/resource": resource "/compute:beta/compute.urlMaps.delete": delete_url_map "/compute:beta/compute.urlMaps.delete/project": project "/compute:beta/compute.urlMaps.delete/urlMap": url_map @@ -1807,6 +1909,9 @@ "/compute:beta/compute.urlMaps.get/urlMap": url_map "/compute:beta/compute.urlMaps.insert": insert_url_map "/compute:beta/compute.urlMaps.insert/project": project +"/compute:beta/compute.urlMaps.invalidateCache": invalidate_url_map_cache +"/compute:beta/compute.urlMaps.invalidateCache/project": project +"/compute:beta/compute.urlMaps.invalidateCache/urlMap": url_map "/compute:beta/compute.urlMaps.list": list_url_maps "/compute:beta/compute.urlMaps.list/filter": filter "/compute:beta/compute.urlMaps.list/maxResults": max_results @@ -1816,6 +1921,9 @@ "/compute:beta/compute.urlMaps.patch": patch_url_map "/compute:beta/compute.urlMaps.patch/project": project "/compute:beta/compute.urlMaps.patch/urlMap": url_map +"/compute:beta/compute.urlMaps.testIamPermissions": test_url_map_iam_permissions +"/compute:beta/compute.urlMaps.testIamPermissions/project": project +"/compute:beta/compute.urlMaps.testIamPermissions/resource": resource "/compute:beta/compute.urlMaps.update": update_url_map "/compute:beta/compute.urlMaps.update/project": project "/compute:beta/compute.urlMaps.update/urlMap": url_map @@ -1845,6 +1953,10 @@ "/compute:beta/compute.vpnTunnels.list/pageToken": page_token "/compute:beta/compute.vpnTunnels.list/project": project "/compute:beta/compute.vpnTunnels.list/region": region +"/compute:beta/compute.vpnTunnels.testIamPermissions": test_vpn_tunnel_iam_permissions +"/compute:beta/compute.vpnTunnels.testIamPermissions/project": project +"/compute:beta/compute.vpnTunnels.testIamPermissions/region": region +"/compute:beta/compute.vpnTunnels.testIamPermissions/resource": resource "/compute:beta/compute.zoneOperations.delete": delete_zone_operation "/compute:beta/compute.zoneOperations.delete/operation": operation "/compute:beta/compute.zoneOperations.delete/project": project @@ -1994,6 +2106,7 @@ "/compute:beta/BackendService/backends/backend": backend "/compute:beta/BackendService/creationTimestamp": creation_timestamp "/compute:beta/BackendService/description": description +"/compute:beta/BackendService/enableCDN": enable_cdn "/compute:beta/BackendService/fingerprint": fingerprint "/compute:beta/BackendService/healthChecks": health_checks "/compute:beta/BackendService/healthChecks/health_check": health_check @@ -2016,6 +2129,8 @@ "/compute:beta/BackendServiceList/kind": kind "/compute:beta/BackendServiceList/nextPageToken": next_page_token "/compute:beta/BackendServiceList/selfLink": self_link +"/compute:beta/CacheInvalidationRule": cache_invalidation_rule +"/compute:beta/CacheInvalidationRule/path": path "/compute:beta/CustomerEncryptionKey": customer_encryption_key "/compute:beta/CustomerEncryptionKey/rawKey": raw_key "/compute:beta/CustomerEncryptionKey/rsaEncryptedKey": rsa_encrypted_key @@ -2032,6 +2147,9 @@ "/compute:beta/Disk/diskEncryptionKey": disk_encryption_key "/compute:beta/Disk/id": id "/compute:beta/Disk/kind": kind +"/compute:beta/Disk/labelFingerprint": label_fingerprint +"/compute:beta/Disk/labels": labels +"/compute:beta/Disk/labels/label": label "/compute:beta/Disk/lastAttachTimestamp": last_attach_timestamp "/compute:beta/Disk/lastDetachTimestamp": last_detach_timestamp "/compute:beta/Disk/licenses": licenses @@ -2175,6 +2293,10 @@ "/compute:beta/ForwardingRulesScopedList/warning/data/datum/key": key "/compute:beta/ForwardingRulesScopedList/warning/data/datum/value": value "/compute:beta/ForwardingRulesScopedList/warning/message": message +"/compute:beta/GlobalSetLabelsRequest": global_set_labels_request +"/compute:beta/GlobalSetLabelsRequest/labelFingerprint": label_fingerprint +"/compute:beta/GlobalSetLabelsRequest/labels": labels +"/compute:beta/GlobalSetLabelsRequest/labels/label": label "/compute:beta/HealthCheckReference": health_check_reference "/compute:beta/HealthCheckReference/healthCheck": health_check "/compute:beta/HealthStatus": health_status @@ -2239,6 +2361,9 @@ "/compute:beta/Image/id": id "/compute:beta/Image/imageEncryptionKey": image_encryption_key "/compute:beta/Image/kind": kind +"/compute:beta/Image/labelFingerprint": label_fingerprint +"/compute:beta/Image/labels": labels +"/compute:beta/Image/labels/label": label "/compute:beta/Image/licenses": licenses "/compute:beta/Image/licenses/license": license "/compute:beta/Image/name": name @@ -2646,6 +2771,7 @@ "/compute:beta/Project": project "/compute:beta/Project/commonInstanceMetadata": common_instance_metadata "/compute:beta/Project/creationTimestamp": creation_timestamp +"/compute:beta/Project/defaultServiceAccount": default_service_account "/compute:beta/Project/description": description "/compute:beta/Project/enabledFeatures": enabled_features "/compute:beta/Project/enabledFeatures/enabled_feature": enabled_feature @@ -2772,6 +2898,7 @@ "/compute:beta/RouterStatusBgpPeerStatus/state": state "/compute:beta/RouterStatusBgpPeerStatus/status": status "/compute:beta/RouterStatusBgpPeerStatus/uptime": uptime +"/compute:beta/RouterStatusBgpPeerStatus/uptimeSeconds": uptime_seconds "/compute:beta/RouterStatusResponse": router_status_response "/compute:beta/RouterStatusResponse/kind": kind "/compute:beta/RouterStatusResponse/result": result @@ -2792,7 +2919,9 @@ "/compute:beta/SerialPortOutput": serial_port_output "/compute:beta/SerialPortOutput/contents": contents "/compute:beta/SerialPortOutput/kind": kind +"/compute:beta/SerialPortOutput/next": next "/compute:beta/SerialPortOutput/selfLink": self_link +"/compute:beta/SerialPortOutput/start": start "/compute:beta/ServiceAccount": service_account "/compute:beta/ServiceAccount/email": email "/compute:beta/ServiceAccount/scopes": scopes @@ -2803,6 +2932,9 @@ "/compute:beta/Snapshot/diskSizeGb": disk_size_gb "/compute:beta/Snapshot/id": id "/compute:beta/Snapshot/kind": kind +"/compute:beta/Snapshot/labelFingerprint": label_fingerprint +"/compute:beta/Snapshot/labels": labels +"/compute:beta/Snapshot/labels/label": label "/compute:beta/Snapshot/licenses": licenses "/compute:beta/Snapshot/licenses/license": license "/compute:beta/Snapshot/name": name @@ -3041,6 +3173,12 @@ "/compute:beta/TestFailure/expectedService": expected_service "/compute:beta/TestFailure/host": host "/compute:beta/TestFailure/path": path +"/compute:beta/TestPermissionsRequest": test_permissions_request +"/compute:beta/TestPermissionsRequest/permissions": permissions +"/compute:beta/TestPermissionsRequest/permissions/permission": permission +"/compute:beta/TestPermissionsResponse": test_permissions_response +"/compute:beta/TestPermissionsResponse/permissions": permissions +"/compute:beta/TestPermissionsResponse/permissions/permission": permission "/compute:beta/UrlMap": url_map "/compute:beta/UrlMap/creationTimestamp": creation_timestamp "/compute:beta/UrlMap/defaultService": default_service @@ -3147,6 +3285,10 @@ "/compute:beta/ZoneList/kind": kind "/compute:beta/ZoneList/nextPageToken": next_page_token "/compute:beta/ZoneList/selfLink": self_link +"/compute:beta/ZoneSetLabelsRequest": zone_set_labels_request +"/compute:beta/ZoneSetLabelsRequest/labelFingerprint": label_fingerprint +"/compute:beta/ZoneSetLabelsRequest/labels": labels +"/compute:beta/ZoneSetLabelsRequest/labels/label": label "/adexchangebuyer:v1.4/fields": fields "/adexchangebuyer:v1.4/key": key "/adexchangebuyer:v1.4/quotaUser": quota_user @@ -5565,6 +5707,7 @@ "/analytics:v3/Account/permissions/effective": effective "/analytics:v3/Account/permissions/effective/effective": effective "/analytics:v3/Account/selfLink": self_link +"/analytics:v3/Account/starred": starred "/analytics:v3/Account/updated": updated "/analytics:v3/AccountRef": account_ref "/analytics:v3/AccountRef/href": href @@ -5585,6 +5728,7 @@ "/analytics:v3/AccountSummary/id": id "/analytics:v3/AccountSummary/kind": kind "/analytics:v3/AccountSummary/name": name +"/analytics:v3/AccountSummary/starred": starred "/analytics:v3/AccountSummary/webProperties": web_properties "/analytics:v3/AccountSummary/webProperties/web_property": web_property "/analytics:v3/AccountTicket": account_ticket @@ -6037,6 +6181,7 @@ "/analytics:v3/Profile/selfLink": self_link "/analytics:v3/Profile/siteSearchCategoryParameters": site_search_category_parameters "/analytics:v3/Profile/siteSearchQueryParameters": site_search_query_parameters +"/analytics:v3/Profile/starred": starred "/analytics:v3/Profile/stripSiteSearchCategoryParameters": strip_site_search_category_parameters "/analytics:v3/Profile/stripSiteSearchQueryParameters": strip_site_search_query_parameters "/analytics:v3/Profile/timezone": timezone @@ -6073,6 +6218,7 @@ "/analytics:v3/ProfileSummary/id": id "/analytics:v3/ProfileSummary/kind": kind "/analytics:v3/ProfileSummary/name": name +"/analytics:v3/ProfileSummary/starred": starred "/analytics:v3/ProfileSummary/type": type "/analytics:v3/Profiles": profiles "/analytics:v3/Profiles/items": items @@ -6203,6 +6349,7 @@ "/analytics:v3/WebPropertySummary/name": name "/analytics:v3/WebPropertySummary/profiles": profiles "/analytics:v3/WebPropertySummary/profiles/profile": profile +"/analytics:v3/WebPropertySummary/starred": starred "/analytics:v3/WebPropertySummary/websiteUrl": website_url "/analytics:v3/Webproperties": webproperties "/analytics:v3/Webproperties/items": items @@ -6235,6 +6382,7 @@ "/analytics:v3/Webproperty/permissions/effective/effective": effective "/analytics:v3/Webproperty/profileCount": profile_count "/analytics:v3/Webproperty/selfLink": self_link +"/analytics:v3/Webproperty/starred": starred "/analytics:v3/Webproperty/updated": updated "/analytics:v3/Webproperty/websiteUrl": website_url "/androidenterprise:v1/fields": fields @@ -6982,7 +7130,9 @@ "/appsactivity:v1/Target/mimeType": mime_type "/appsactivity:v1/Target/name": name "/appsactivity:v1/User": user +"/appsactivity:v1/User/isDeleted": is_deleted "/appsactivity:v1/User/name": name +"/appsactivity:v1/User/permissionId": permission_id "/appsactivity:v1/User/photo": photo "/appstate:v1/fields": fields "/appstate:v1/key": key @@ -7248,6 +7398,24 @@ "/bigquery:v2/bigquery.tables.update/datasetId": dataset_id "/bigquery:v2/bigquery.tables.update/projectId": project_id "/bigquery:v2/bigquery.tables.update/tableId": table_id +"/bigquery:v2/BigtableColumn": bigtable_column +"/bigquery:v2/BigtableColumn/encoding": encoding +"/bigquery:v2/BigtableColumn/fieldName": field_name +"/bigquery:v2/BigtableColumn/onlyReadLatest": only_read_latest +"/bigquery:v2/BigtableColumn/qualifierEncoded": qualifier_encoded +"/bigquery:v2/BigtableColumn/qualifierString": qualifier_string +"/bigquery:v2/BigtableColumn/type": type +"/bigquery:v2/BigtableColumnFamily": bigtable_column_family +"/bigquery:v2/BigtableColumnFamily/columns": columns +"/bigquery:v2/BigtableColumnFamily/columns/column": column +"/bigquery:v2/BigtableColumnFamily/encoding": encoding +"/bigquery:v2/BigtableColumnFamily/familyId": family_id +"/bigquery:v2/BigtableColumnFamily/onlyReadLatest": only_read_latest +"/bigquery:v2/BigtableColumnFamily/type": type +"/bigquery:v2/BigtableOptions": bigtable_options +"/bigquery:v2/BigtableOptions/columnFamilies": column_families +"/bigquery:v2/BigtableOptions/columnFamilies/column_family": column_family +"/bigquery:v2/BigtableOptions/ignoreUnspecifiedColumnFamilies": ignore_unspecified_column_families "/bigquery:v2/CsvOptions": csv_options "/bigquery:v2/CsvOptions/allowJaggedRows": allow_jagged_rows "/bigquery:v2/CsvOptions/allowQuotedNewlines": allow_quoted_newlines @@ -7313,6 +7481,8 @@ "/bigquery:v2/ExplainQueryStep/substeps": substeps "/bigquery:v2/ExplainQueryStep/substeps/substep": substep "/bigquery:v2/ExternalDataConfiguration": external_data_configuration +"/bigquery:v2/ExternalDataConfiguration/autodetect": autodetect +"/bigquery:v2/ExternalDataConfiguration/bigtableOptions": bigtable_options "/bigquery:v2/ExternalDataConfiguration/compression": compression "/bigquery:v2/ExternalDataConfiguration/csvOptions": csv_options "/bigquery:v2/ExternalDataConfiguration/ignoreUnknownValues": ignore_unknown_values @@ -8128,6 +8298,7 @@ "/books:v1/books.volumes.associated.list/source": source "/books:v1/books.volumes.associated.list/volumeId": volume_id "/books:v1/books.volumes.mybooks.list/acquireMethod": acquire_method +"/books:v1/books.volumes.mybooks.list/country": country "/books:v1/books.volumes.mybooks.list/locale": locale "/books:v1/books.volumes.mybooks.list/maxResults": max_results "/books:v1/books.volumes.mybooks.list/processingState": processing_state @@ -8396,6 +8567,7 @@ "/books:v1/Notification/kind": kind "/books:v1/Notification/notification_type": notification_type "/books:v1/Notification/pcampaign_id": pcampaign_id +"/books:v1/Notification/reason": reason "/books:v1/Notification/show_notification_settings_action": show_notification_settings_action "/books:v1/Notification/targetUrl": target_url "/books:v1/Notification/title": title @@ -9269,6 +9441,7 @@ "/cloudbuild:v1/BuiltImage/digest": digest "/cloudbuild:v1/BuiltImage/name": name "/cloudbuild:v1/StorageSource": storage_source +"/cloudbuild:v1/StorageSource/generation": generation "/cloudbuild:v1/StorageSource/bucket": bucket "/cloudbuild:v1/StorageSource/object": object "/cloudbuild:v1/Results": results @@ -9578,6 +9751,7 @@ "/clouduseraccounts:beta/Operation": operation "/clouduseraccounts:beta/Operation/clientOperationId": client_operation_id "/clouduseraccounts:beta/Operation/creationTimestamp": creation_timestamp +"/clouduseraccounts:beta/Operation/description": description "/clouduseraccounts:beta/Operation/endTime": end_time "/clouduseraccounts:beta/Operation/error": error "/clouduseraccounts:beta/Operation/error/errors": errors @@ -11887,6 +12061,7 @@ "/content:v2/DatafeedFetchSchedule/dayOfMonth": day_of_month "/content:v2/DatafeedFetchSchedule/fetchUrl": fetch_url "/content:v2/DatafeedFetchSchedule/hour": hour +"/content:v2/DatafeedFetchSchedule/minuteOfHour": minute_of_hour "/content:v2/DatafeedFetchSchedule/password": password "/content:v2/DatafeedFetchSchedule/timeZone": time_zone "/content:v2/DatafeedFetchSchedule/username": username @@ -17680,6 +17855,7 @@ "/games:v1/ApplicationCategory/primary": primary "/games:v1/ApplicationCategory/secondary": secondary "/games:v1/ApplicationVerifyResponse": application_verify_response +"/games:v1/ApplicationVerifyResponse/alternate_player_id": alternate_player_id "/games:v1/ApplicationVerifyResponse/kind": kind "/games:v1/ApplicationVerifyResponse/player_id": player_id "/games:v1/Category": category @@ -18739,6 +18915,7 @@ "/gmail:v1/gmail.users.drafts.get/id": id "/gmail:v1/gmail.users.drafts.get/userId": user_id "/gmail:v1/gmail.users.drafts.list": list_user_drafts +"/gmail:v1/gmail.users.drafts.list/includeSpamTrash": include_spam_trash "/gmail:v1/gmail.users.drafts.list/maxResults": max_results "/gmail:v1/gmail.users.drafts.list/pageToken": page_token "/gmail:v1/gmail.users.drafts.list/userId": user_id @@ -18769,6 +18946,8 @@ "/gmail:v1/gmail.users.labels.update": update_user_label "/gmail:v1/gmail.users.labels.update/id": id "/gmail:v1/gmail.users.labels.update/userId": user_id +"/gmail:v1/gmail.users.messages.batchDelete": batch_delete_messages +"/gmail:v1/gmail.users.messages.batchDelete/userId": user_id "/gmail:v1/gmail.users.messages.delete": delete_user_message "/gmail:v1/gmail.users.messages.delete/id": id "/gmail:v1/gmail.users.messages.delete/userId": user_id @@ -18833,6 +19012,9 @@ "/gmail:v1/gmail.users.threads.untrash": untrash_user_thread "/gmail:v1/gmail.users.threads.untrash/id": id "/gmail:v1/gmail.users.threads.untrash/userId": user_id +"/gmail:v1/BatchDeleteMessagesRequest": batch_delete_messages_request +"/gmail:v1/BatchDeleteMessagesRequest/ids": ids +"/gmail:v1/BatchDeleteMessagesRequest/ids/id": id "/gmail:v1/Draft": draft "/gmail:v1/Draft/id": id "/gmail:v1/Draft/message": message @@ -19421,14 +19603,18 @@ "/clouddebugger:v2/clouddebugger.debugger.debuggees.list": list_debugger_debuggees "/clouddebugger:v2/clouddebugger.debugger.debuggees.list/project": project "/clouddebugger:v2/clouddebugger.debugger.debuggees.list/includeInactive": include_inactive +"/clouddebugger:v2/clouddebugger.debugger.debuggees.list/clientVersion": client_version "/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.set": set_debugger_debuggee_breakpoint "/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.set/debuggeeId": debuggee_id +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.set/clientVersion": client_version "/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.get": get_debugger_debuggee_breakpoint "/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.get/debuggeeId": debuggee_id "/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.get/breakpointId": breakpoint_id +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.get/clientVersion": client_version "/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.delete": delete_debugger_debuggee_breakpoint "/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.delete/debuggeeId": debuggee_id "/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.delete/breakpointId": breakpoint_id +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.delete/clientVersion": client_version "/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list": list_debugger_debuggee_breakpoints "/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/debuggeeId": debuggee_id "/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/includeAllUsers": include_all_users @@ -19436,6 +19622,7 @@ "/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/action.value": action_value "/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/stripResults": strip_results "/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/waitToken": wait_token +"/clouddebugger:v2/clouddebugger.debugger.debuggees.breakpoints.list/clientVersion": client_version "/clouddebugger:v2/RegisterDebuggeeRequest": register_debuggee_request "/clouddebugger:v2/RegisterDebuggeeRequest/debuggee": debuggee "/clouddebugger:v2/Debuggee": debuggee @@ -19526,6 +19713,8 @@ "/clouddebugger:v2/Breakpoint/evaluatedExpressions/evaluated_expression": evaluated_expression "/clouddebugger:v2/Breakpoint/variableTable": variable_table "/clouddebugger:v2/Breakpoint/variableTable/variable_table": variable_table +"/clouddebugger:v2/Breakpoint/labels": labels +"/clouddebugger:v2/Breakpoint/labels/label": label "/clouddebugger:v2/SourceLocation": source_location "/clouddebugger:v2/SourceLocation/path": path "/clouddebugger:v2/SourceLocation/line": line @@ -19559,6 +19748,63 @@ "/clouddebugger:v2/ListDebuggeesResponse": list_debuggees_response "/clouddebugger:v2/ListDebuggeesResponse/debuggees": debuggees "/clouddebugger:v2/ListDebuggeesResponse/debuggees/debuggee": debuggee +"/cloudresourcemanager:v1/fields": fields +"/cloudresourcemanager:v1/key": key +"/cloudresourcemanager:v1/quotaUser": quota_user +"/cloudresourcemanager:v1/cloudresourcemanager.projects.get": get_project +"/cloudresourcemanager:v1/cloudresourcemanager.projects.get/projectId": project_id +"/cloudresourcemanager:v1/cloudresourcemanager.projects.list": list_projects +"/cloudresourcemanager:v1/cloudresourcemanager.projects.list/pageToken": page_token +"/cloudresourcemanager:v1/cloudresourcemanager.projects.list/pageSize": page_size +"/cloudresourcemanager:v1/cloudresourcemanager.projects.list/filter": filter +"/cloudresourcemanager:v1/cloudresourcemanager.projects.update": update_project +"/cloudresourcemanager:v1/cloudresourcemanager.projects.update/projectId": project_id +"/cloudresourcemanager:v1/cloudresourcemanager.projects.delete": delete_project +"/cloudresourcemanager:v1/cloudresourcemanager.projects.delete/projectId": project_id +"/cloudresourcemanager:v1/cloudresourcemanager.projects.undelete": undelete_project +"/cloudresourcemanager:v1/cloudresourcemanager.projects.undelete/projectId": project_id +"/cloudresourcemanager:v1/cloudresourcemanager.projects.getIamPolicy": get_project_iam_policy +"/cloudresourcemanager:v1/cloudresourcemanager.projects.getIamPolicy/resource": resource +"/cloudresourcemanager:v1/cloudresourcemanager.projects.setIamPolicy": set_project_iam_policy +"/cloudresourcemanager:v1/cloudresourcemanager.projects.setIamPolicy/resource": resource +"/cloudresourcemanager:v1/cloudresourcemanager.projects.testIamPermissions": test_project_iam_permissions +"/cloudresourcemanager:v1/cloudresourcemanager.projects.testIamPermissions/resource": resource +"/cloudresourcemanager:v1/Project": project +"/cloudresourcemanager:v1/Project/projectNumber": project_number +"/cloudresourcemanager:v1/Project/projectId": project_id +"/cloudresourcemanager:v1/Project/lifecycleState": lifecycle_state +"/cloudresourcemanager:v1/Project/name": name +"/cloudresourcemanager:v1/Project/createTime": create_time +"/cloudresourcemanager:v1/Project/labels": labels +"/cloudresourcemanager:v1/Project/labels/label": label +"/cloudresourcemanager:v1/Project/parent": parent +"/cloudresourcemanager:v1/ResourceId": resource_id +"/cloudresourcemanager:v1/ResourceId/type": type +"/cloudresourcemanager:v1/ResourceId/id": id +"/cloudresourcemanager:v1/ListProjectsResponse": list_projects_response +"/cloudresourcemanager:v1/ListProjectsResponse/projects": projects +"/cloudresourcemanager:v1/ListProjectsResponse/projects/project": project +"/cloudresourcemanager:v1/ListProjectsResponse/nextPageToken": next_page_token +"/cloudresourcemanager:v1/Empty": empty +"/cloudresourcemanager:v1/UndeleteProjectRequest": undelete_project_request +"/cloudresourcemanager:v1/GetIamPolicyRequest": get_iam_policy_request +"/cloudresourcemanager:v1/Policy": policy +"/cloudresourcemanager:v1/Policy/version": version +"/cloudresourcemanager:v1/Policy/bindings": bindings +"/cloudresourcemanager:v1/Policy/bindings/binding": binding +"/cloudresourcemanager:v1/Policy/etag": etag +"/cloudresourcemanager:v1/Binding": binding +"/cloudresourcemanager:v1/Binding/role": role +"/cloudresourcemanager:v1/Binding/members": members +"/cloudresourcemanager:v1/Binding/members/member": member +"/cloudresourcemanager:v1/SetIamPolicyRequest": set_iam_policy_request +"/cloudresourcemanager:v1/SetIamPolicyRequest/policy": policy +"/cloudresourcemanager:v1/TestIamPermissionsRequest": test_iam_permissions_request +"/cloudresourcemanager:v1/TestIamPermissionsRequest/permissions": permissions +"/cloudresourcemanager:v1/TestIamPermissionsRequest/permissions/permission": permission +"/cloudresourcemanager:v1/TestIamPermissionsResponse": test_iam_permissions_response +"/cloudresourcemanager:v1/TestIamPermissionsResponse/permissions": permissions +"/cloudresourcemanager:v1/TestIamPermissionsResponse/permissions/permission": permission "/cloudresourcemanager:v1beta1/fields": fields "/cloudresourcemanager:v1beta1/key": key "/cloudresourcemanager:v1beta1/quotaUser": quota_user @@ -20107,6 +20353,7 @@ "/genomics:v1/genomics.variants.delete/variantId": variant_id "/genomics:v1/genomics.variants.get": get_variant "/genomics:v1/genomics.variants.get/variantId": variant_id +"/genomics:v1/genomics.variants.merge": merge_variants "/genomics:v1/genomics.variants.stream": stream_variants "/genomics:v1/genomics.variantsets.create": create_variantset "/genomics:v1/genomics.variantsets.export/variantSetId": variant_set_id @@ -20292,6 +20539,8 @@ "/genomics:v1/StreamReadsRequest/referenceName": reference_name "/genomics:v1/StreamReadsRequest/start": start "/genomics:v1/StreamReadsRequest/end": end +"/genomics:v1/StreamReadsRequest/shard": shard +"/genomics:v1/StreamReadsRequest/totalShards": total_shards "/genomics:v1/StreamReadsResponse": stream_reads_response "/genomics:v1/StreamReadsResponse/alignments": alignments "/genomics:v1/StreamReadsResponse/alignments/alignment": alignment @@ -20433,6 +20682,10 @@ "/genomics:v1/VariantCall/info": info "/genomics:v1/VariantCall/info/info": info "/genomics:v1/VariantCall/info/info/info": info +"/genomics:v1/MergeVariantsRequest": merge_variants_request +"/genomics:v1/MergeVariantsRequest/variantSetId": variant_set_id +"/genomics:v1/MergeVariantsRequest/variants": variants +"/genomics:v1/MergeVariantsRequest/variants/variant": variant "/genomics:v1/SearchCallSetsRequest": search_call_sets_request "/genomics:v1/SearchCallSetsRequest/variantSetIds": variant_set_ids "/genomics:v1/SearchCallSetsRequest/variantSetIds/variant_set_id": variant_set_id @@ -20479,6 +20732,119 @@ "/genomics:v1/OperationMetadata/events/event": event "/genomics:v1/OperationEvent": operation_event "/genomics:v1/OperationEvent/description": description +"/iam:v1/fields": fields +"/iam:v1/key": key +"/iam:v1/quotaUser": quota_user +"/iam:v1/iam.projects.serviceAccounts.list": list_project_service_accounts +"/iam:v1/iam.projects.serviceAccounts.list/name": name +"/iam:v1/iam.projects.serviceAccounts.list/pageSize": page_size +"/iam:v1/iam.projects.serviceAccounts.list/pageToken": page_token +"/iam:v1/iam.projects.serviceAccounts.get": get_project_service_account +"/iam:v1/iam.projects.serviceAccounts.get/name": name +"/iam:v1/iam.projects.serviceAccounts.create": create_service_account +"/iam:v1/iam.projects.serviceAccounts.create/name": name +"/iam:v1/iam.projects.serviceAccounts.update": update_project_service_account +"/iam:v1/iam.projects.serviceAccounts.update/name": name +"/iam:v1/iam.projects.serviceAccounts.delete": delete_project_service_account +"/iam:v1/iam.projects.serviceAccounts.delete/name": name +"/iam:v1/iam.projects.serviceAccounts.signBlob": sign_service_account_blob +"/iam:v1/iam.projects.serviceAccounts.signBlob/name": name +"/iam:v1/iam.projects.serviceAccounts.getIamPolicy": get_project_service_account_iam_policy +"/iam:v1/iam.projects.serviceAccounts.getIamPolicy/resource": resource +"/iam:v1/iam.projects.serviceAccounts.setIamPolicy": set_service_account_iam_policy +"/iam:v1/iam.projects.serviceAccounts.setIamPolicy/resource": resource +"/iam:v1/iam.projects.serviceAccounts.testIamPermissions": test_service_account_iam_permissions +"/iam:v1/iam.projects.serviceAccounts.testIamPermissions/resource": resource +"/iam:v1/iam.projects.serviceAccounts.keys.list": list_project_service_account_keys +"/iam:v1/iam.projects.serviceAccounts.keys.list/name": name +"/iam:v1/iam.projects.serviceAccounts.keys.list/keyTypes": key_types +"/iam:v1/iam.projects.serviceAccounts.keys.get": get_project_service_account_key +"/iam:v1/iam.projects.serviceAccounts.keys.get/name": name +"/iam:v1/iam.projects.serviceAccounts.keys.create": create_service_account_key +"/iam:v1/iam.projects.serviceAccounts.keys.create/name": name +"/iam:v1/iam.projects.serviceAccounts.keys.delete": delete_project_service_account_key +"/iam:v1/iam.projects.serviceAccounts.keys.delete/name": name +"/iam:v1/ListServiceAccountsResponse": list_service_accounts_response +"/iam:v1/ListServiceAccountsResponse/accounts": accounts +"/iam:v1/ListServiceAccountsResponse/accounts/account": account +"/iam:v1/ListServiceAccountsResponse/nextPageToken": next_page_token +"/iam:v1/ServiceAccount": service_account +"/iam:v1/ServiceAccount/name": name +"/iam:v1/ServiceAccount/projectId": project_id +"/iam:v1/ServiceAccount/uniqueId": unique_id +"/iam:v1/ServiceAccount/email": email +"/iam:v1/ServiceAccount/displayName": display_name +"/iam:v1/ServiceAccount/etag": etag +"/iam:v1/ServiceAccount/oauth2ClientId": oauth2_client_id +"/iam:v1/CreateServiceAccountRequest": create_service_account_request +"/iam:v1/CreateServiceAccountRequest/accountId": account_id +"/iam:v1/CreateServiceAccountRequest/serviceAccount": service_account +"/iam:v1/Empty": empty +"/iam:v1/ListServiceAccountKeysResponse": list_service_account_keys_response +"/iam:v1/ListServiceAccountKeysResponse/keys": keys +"/iam:v1/ListServiceAccountKeysResponse/keys/key": key +"/iam:v1/ServiceAccountKey": service_account_key +"/iam:v1/ServiceAccountKey/name": name +"/iam:v1/ServiceAccountKey/privateKeyType": private_key_type +"/iam:v1/ServiceAccountKey/privateKeyData": private_key_data +"/iam:v1/ServiceAccountKey/validAfterTime": valid_after_time +"/iam:v1/ServiceAccountKey/validBeforeTime": valid_before_time +"/iam:v1/CreateServiceAccountKeyRequest": create_service_account_key_request +"/iam:v1/CreateServiceAccountKeyRequest/privateKeyType": private_key_type +"/iam:v1/SignBlobRequest": sign_blob_request +"/iam:v1/SignBlobRequest/bytesToSign": bytes_to_sign +"/iam:v1/SignBlobResponse": sign_blob_response +"/iam:v1/SignBlobResponse/keyId": key_id +"/iam:v1/SignBlobResponse/signature": signature +"/iam:v1/Policy": policy +"/iam:v1/Policy/version": version +"/iam:v1/Policy/bindings": bindings +"/iam:v1/Policy/bindings/binding": binding +"/iam:v1/Policy/rules": rules +"/iam:v1/Policy/rules/rule": rule +"/iam:v1/Policy/etag": etag +"/iam:v1/Binding": binding +"/iam:v1/Binding/role": role +"/iam:v1/Binding/members": members +"/iam:v1/Binding/members/member": member +"/iam:v1/Rule": rule +"/iam:v1/Rule/description": description +"/iam:v1/Rule/permissions": permissions +"/iam:v1/Rule/permissions/permission": permission +"/iam:v1/Rule/action": action +"/iam:v1/Rule/in": in +"/iam:v1/Rule/in/in": in +"/iam:v1/Rule/notIn": not_in +"/iam:v1/Rule/notIn/not_in": not_in +"/iam:v1/Rule/conditions": conditions +"/iam:v1/Rule/conditions/condition": condition +"/iam:v1/Rule/logConfig": log_config +"/iam:v1/Rule/logConfig/log_config": log_config +"/iam:v1/Condition": condition +"/iam:v1/Condition/iam": iam +"/iam:v1/Condition/sys": sys +"/iam:v1/Condition/svc": svc +"/iam:v1/Condition/op": op +"/iam:v1/Condition/value": value +"/iam:v1/Condition/values": values +"/iam:v1/Condition/values/value": value +"/iam:v1/LogConfig": log_config +"/iam:v1/LogConfig/counter": counter +"/iam:v1/LogConfig/dataAccess": data_access +"/iam:v1/LogConfig/cloudAudit": cloud_audit +"/iam:v1/CounterOptions": counter_options +"/iam:v1/CounterOptions/metric": metric +"/iam:v1/CounterOptions/field": field +"/iam:v1/DataAccessOptions": data_access_options +"/iam:v1/CloudAuditOptions": cloud_audit_options +"/iam:v1/SetIamPolicyRequest": set_iam_policy_request +"/iam:v1/SetIamPolicyRequest/policy": policy +"/iam:v1/TestIamPermissionsRequest": test_iam_permissions_request +"/iam:v1/TestIamPermissionsRequest/permissions": permissions +"/iam:v1/TestIamPermissionsRequest/permissions/permission": permission +"/iam:v1/TestIamPermissionsResponse": test_iam_permissions_response +"/iam:v1/TestIamPermissionsResponse/permissions": permissions +"/iam:v1/TestIamPermissionsResponse/permissions/permission": permission "/kgsearch:v1/fields": fields "/kgsearch:v1/key": key "/kgsearch:v1/quotaUser": quota_user @@ -21544,6 +21910,9 @@ "/identitytoolkit:v3/key": key "/identitytoolkit:v3/quotaUser": quota_user "/identitytoolkit:v3/userIp": user_ip +"/identitytoolkit:v3/identitytoolkit.relyingparty.getProjectConfig/delegatedProjectNumber": delegated_project_number +"/identitytoolkit:v3/identitytoolkit.relyingparty.getProjectConfig/projectNumber": project_number +"/identitytoolkit:v3/identitytoolkit.relyingparty.setProjectConfig": set_relyingparty_project_config "/identitytoolkit:v3/CreateAuthUriResponse": create_auth_uri_response "/identitytoolkit:v3/CreateAuthUriResponse/allProviders": all_providers "/identitytoolkit:v3/CreateAuthUriResponse/allProviders/all_provider": all_provider @@ -21561,6 +21930,13 @@ "/identitytoolkit:v3/DownloadAccountResponse/nextPageToken": next_page_token "/identitytoolkit:v3/DownloadAccountResponse/users": users "/identitytoolkit:v3/DownloadAccountResponse/users/user": user +"/identitytoolkit:v3/EmailTemplate": email_template +"/identitytoolkit:v3/EmailTemplate/body": body +"/identitytoolkit:v3/EmailTemplate/format": format +"/identitytoolkit:v3/EmailTemplate/from": from +"/identitytoolkit:v3/EmailTemplate/fromDisplayName": from_display_name +"/identitytoolkit:v3/EmailTemplate/replyTo": reply_to +"/identitytoolkit:v3/EmailTemplate/subject": subject "/identitytoolkit:v3/GetAccountInfoResponse": get_account_info_response "/identitytoolkit:v3/GetAccountInfoResponse/kind": kind "/identitytoolkit:v3/GetAccountInfoResponse/users": users @@ -21584,10 +21960,12 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/otaApp": ota_app "/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/providerId": provider_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartyDeleteAccountRequest/delegatedProjectNumber": delegated_project_number +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyDeleteAccountRequest/idToken": id_token "/identitytoolkit:v3/IdentitytoolkitRelyingpartyDeleteAccountRequest/localId": local_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartyDownloadAccountRequest/delegatedProjectNumber": delegated_project_number "/identitytoolkit:v3/IdentitytoolkitRelyingpartyDownloadAccountRequest/maxResults": max_results "/identitytoolkit:v3/IdentitytoolkitRelyingpartyDownloadAccountRequest/nextPageToken": next_page_token +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetAccountInfoRequest/delegatedProjectNumber": delegated_project_number "/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetAccountInfoRequest/email": email "/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetAccountInfoRequest/email/email": email "/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetAccountInfoRequest/idToken": id_token @@ -21595,9 +21973,15 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetAccountInfoRequest/localId/local_id": local_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse/allowPasswordUser": allow_password_user "/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse/apiKey": api_key +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse/authorizedDomains": authorized_domains +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse/authorizedDomains/authorized_domain": authorized_domain +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse/changeEmailTemplate": change_email_template "/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse/idpConfig": idp_config "/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse/idpConfig/idp_config": idp_config "/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse/projectId": project_id +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse/resetPasswordTemplate": reset_password_template +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse/useEmailSending": use_email_sending +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse/verifyEmailTemplate": verify_email_template "/identitytoolkit:v3/IdentitytoolkitRelyingpartyResetPasswordRequest/email": email "/identitytoolkit:v3/IdentitytoolkitRelyingpartyResetPasswordRequest/newPassword": new_password "/identitytoolkit:v3/IdentitytoolkitRelyingpartyResetPasswordRequest/oldPassword": old_password @@ -21605,6 +21989,10 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/captchaChallenge": captcha_challenge "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/captchaResponse": captcha_response "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/delegatedProjectNumber": delegated_project_number +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/deleteAttribute": delete_attribute +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/deleteAttribute/delete_attribute": delete_attribute +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/deleteProvider": delete_provider +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/deleteProvider/delete_provider": delete_provider "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/disableUser": disable_user "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/displayName": display_name "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/email": email @@ -21617,8 +22005,20 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/photoUrl": photo_url "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/provider": provider "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/provider/provider": provider +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/returnSecureToken": return_secure_token "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/upgradeToFederatedLogin": upgrade_to_federated_login "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetAccountInfoRequest/validSince": valid_since +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetProjectConfigRequest/allowPasswordUser": allow_password_user +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetProjectConfigRequest/apiKey": api_key +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetProjectConfigRequest/changeEmailTemplate": change_email_template +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetProjectConfigRequest/delegatedProjectNumber": delegated_project_number +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetProjectConfigRequest/idpConfig": idp_config +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetProjectConfigRequest/idpConfig/idp_config": idp_config +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetProjectConfigRequest/resetPasswordTemplate": reset_password_template +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetProjectConfigRequest/useEmailSending": use_email_sending +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetProjectConfigRequest/verifyEmailTemplate": verify_email_template +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetProjectConfigResponse": identitytoolkit_relyingparty_set_project_config_response +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetProjectConfigResponse/projectId": project_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartySignOutUserRequest/instanceId": instance_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartySignOutUserRequest/localId": local_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartySignOutUserResponse/localId": local_id @@ -21629,6 +22029,7 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartySignupNewUserRequest/idToken": id_token "/identitytoolkit:v3/IdentitytoolkitRelyingpartySignupNewUserRequest/instanceId": instance_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartySignupNewUserRequest/password": password +"/identitytoolkit:v3/IdentitytoolkitRelyingpartySignupNewUserRequest/returnSecureToken": return_secure_token "/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/delegatedProjectNumber": delegated_project_number "/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/hashAlgorithm": hash_algorithm "/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/memoryCost": memory_cost @@ -21644,8 +22045,10 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/postBody": post_body "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/requestUri": request_uri "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/returnRefreshToken": return_refresh_token +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/returnSecureToken": return_secure_token "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/sessionId": session_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyCustomTokenRequest/instanceId": instance_id +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyCustomTokenRequest/returnSecureToken": return_secure_token "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyCustomTokenRequest/token": token "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPasswordRequest/captchaChallenge": captcha_challenge "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPasswordRequest/captchaResponse": captcha_response @@ -21655,6 +22058,7 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPasswordRequest/instanceId": instance_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPasswordRequest/password": password "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPasswordRequest/pendingIdToken": pending_id_token +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyPasswordRequest/returnSecureToken": return_secure_token "/identitytoolkit:v3/IdpConfig": idp_config "/identitytoolkit:v3/IdpConfig/clientId": client_id "/identitytoolkit:v3/IdpConfig/enabled": enabled @@ -21675,6 +22079,7 @@ "/identitytoolkit:v3/SetAccountInfoResponse": set_account_info_response "/identitytoolkit:v3/SetAccountInfoResponse/displayName": display_name "/identitytoolkit:v3/SetAccountInfoResponse/email": email +"/identitytoolkit:v3/SetAccountInfoResponse/expiresIn": expires_in "/identitytoolkit:v3/SetAccountInfoResponse/idToken": id_token "/identitytoolkit:v3/SetAccountInfoResponse/kind": kind "/identitytoolkit:v3/SetAccountInfoResponse/newEmail": new_email @@ -21684,11 +22089,15 @@ "/identitytoolkit:v3/SetAccountInfoResponse/providerUserInfo/provider_user_info/displayName": display_name "/identitytoolkit:v3/SetAccountInfoResponse/providerUserInfo/provider_user_info/photoUrl": photo_url "/identitytoolkit:v3/SetAccountInfoResponse/providerUserInfo/provider_user_info/providerId": provider_id +"/identitytoolkit:v3/SetAccountInfoResponse/refreshToken": refresh_token "/identitytoolkit:v3/SignupNewUserResponse": signup_new_user_response "/identitytoolkit:v3/SignupNewUserResponse/displayName": display_name "/identitytoolkit:v3/SignupNewUserResponse/email": email +"/identitytoolkit:v3/SignupNewUserResponse/expiresIn": expires_in "/identitytoolkit:v3/SignupNewUserResponse/idToken": id_token "/identitytoolkit:v3/SignupNewUserResponse/kind": kind +"/identitytoolkit:v3/SignupNewUserResponse/localId": local_id +"/identitytoolkit:v3/SignupNewUserResponse/refreshToken": refresh_token "/identitytoolkit:v3/UploadAccountResponse": upload_account_response "/identitytoolkit:v3/UploadAccountResponse/error": error "/identitytoolkit:v3/UploadAccountResponse/error/error": error @@ -21711,6 +22120,7 @@ "/identitytoolkit:v3/UserInfo/providerUserInfo/provider_user_info/federatedId": federated_id "/identitytoolkit:v3/UserInfo/providerUserInfo/provider_user_info/photoUrl": photo_url "/identitytoolkit:v3/UserInfo/providerUserInfo/provider_user_info/providerId": provider_id +"/identitytoolkit:v3/UserInfo/providerUserInfo/provider_user_info/rawId": raw_id "/identitytoolkit:v3/UserInfo/salt": salt "/identitytoolkit:v3/UserInfo/validSince": valid_since "/identitytoolkit:v3/UserInfo/version": version @@ -21724,6 +22134,7 @@ "/identitytoolkit:v3/VerifyAssertionResponse/email": email "/identitytoolkit:v3/VerifyAssertionResponse/emailRecycled": email_recycled "/identitytoolkit:v3/VerifyAssertionResponse/emailVerified": email_verified +"/identitytoolkit:v3/VerifyAssertionResponse/expiresIn": expires_in "/identitytoolkit:v3/VerifyAssertionResponse/federatedId": federated_id "/identitytoolkit:v3/VerifyAssertionResponse/firstName": first_name "/identitytoolkit:v3/VerifyAssertionResponse/fullName": full_name @@ -21741,18 +22152,23 @@ "/identitytoolkit:v3/VerifyAssertionResponse/oauthExpireIn": oauth_expire_in "/identitytoolkit:v3/VerifyAssertionResponse/oauthRequestToken": oauth_request_token "/identitytoolkit:v3/VerifyAssertionResponse/oauthScope": oauth_scope +"/identitytoolkit:v3/VerifyAssertionResponse/oauthTokenSecret": oauth_token_secret "/identitytoolkit:v3/VerifyAssertionResponse/originalEmail": original_email "/identitytoolkit:v3/VerifyAssertionResponse/photoUrl": photo_url "/identitytoolkit:v3/VerifyAssertionResponse/providerId": provider_id +"/identitytoolkit:v3/VerifyAssertionResponse/refreshToken": refresh_token "/identitytoolkit:v3/VerifyAssertionResponse/timeZone": time_zone "/identitytoolkit:v3/VerifyAssertionResponse/verifiedProvider": verified_provider "/identitytoolkit:v3/VerifyAssertionResponse/verifiedProvider/verified_provider": verified_provider "/identitytoolkit:v3/VerifyCustomTokenResponse": verify_custom_token_response +"/identitytoolkit:v3/VerifyCustomTokenResponse/expiresIn": expires_in "/identitytoolkit:v3/VerifyCustomTokenResponse/idToken": id_token "/identitytoolkit:v3/VerifyCustomTokenResponse/kind": kind +"/identitytoolkit:v3/VerifyCustomTokenResponse/refreshToken": refresh_token "/identitytoolkit:v3/VerifyPasswordResponse": verify_password_response "/identitytoolkit:v3/VerifyPasswordResponse/displayName": display_name "/identitytoolkit:v3/VerifyPasswordResponse/email": email +"/identitytoolkit:v3/VerifyPasswordResponse/expiresIn": expires_in "/identitytoolkit:v3/VerifyPasswordResponse/idToken": id_token "/identitytoolkit:v3/VerifyPasswordResponse/kind": kind "/identitytoolkit:v3/VerifyPasswordResponse/localId": local_id @@ -21760,6 +22176,7 @@ "/identitytoolkit:v3/VerifyPasswordResponse/oauthAuthorizationCode": oauth_authorization_code "/identitytoolkit:v3/VerifyPasswordResponse/oauthExpireIn": oauth_expire_in "/identitytoolkit:v3/VerifyPasswordResponse/photoUrl": photo_url +"/identitytoolkit:v3/VerifyPasswordResponse/refreshToken": refresh_token "/identitytoolkit:v3/VerifyPasswordResponse/registered": registered "/licensing:v1/fields": fields "/licensing:v1/key": key @@ -26021,6 +26438,7 @@ "/youtube:v3/ChannelSettings/unsubscribedTrailer": unsubscribed_trailer "/youtube:v3/ChannelSnippet": channel_snippet "/youtube:v3/ChannelSnippet/country": country +"/youtube:v3/ChannelSnippet/customUrl": custom_url "/youtube:v3/ChannelSnippet/defaultLanguage": default_language "/youtube:v3/ChannelSnippet/description": description "/youtube:v3/ChannelSnippet/localized": localized diff --git a/generated/google/apis/adexchangebuyer_v1_4.rb b/generated/google/apis/adexchangebuyer_v1_4.rb index d62dc5712..9b36f93eb 100644 --- a/generated/google/apis/adexchangebuyer_v1_4.rb +++ b/generated/google/apis/adexchangebuyer_v1_4.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-exchange/buyer-rest module AdexchangebuyerV1_4 VERSION = 'V1_4' - REVISION = '20160222' + REVISION = '20160229' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/adsense_v1_4.rb b/generated/google/apis/adsense_v1_4.rb index 73ff285b4..ff545a5b7 100644 --- a/generated/google/apis/adsense_v1_4.rb +++ b/generated/google/apis/adsense_v1_4.rb @@ -20,13 +20,12 @@ module Google module Apis # AdSense Management API # - # Gives AdSense publishers access to their inventory and the ability to generate - # reports + # Accesses AdSense publishers' inventory and generates performance reports. # # @see https://developers.google.com/adsense/management/ module AdsenseV1_4 VERSION = 'V1_4' - REVISION = '20160223' + REVISION = '20160309' # View and manage your AdSense data AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense' diff --git a/generated/google/apis/adsense_v1_4/service.rb b/generated/google/apis/adsense_v1_4/service.rb index ed1223df0..8ce9adc8d 100644 --- a/generated/google/apis/adsense_v1_4/service.rb +++ b/generated/google/apis/adsense_v1_4/service.rb @@ -22,8 +22,7 @@ module Google module AdsenseV1_4 # AdSense Management API # - # Gives AdSense publishers access to their inventory and the ability to generate - # reports + # Accesses AdSense publishers' inventory and generates performance reports. # # @example # require 'google/apis/adsense_v1_4' diff --git a/generated/google/apis/adsensehost_v4_1.rb b/generated/google/apis/adsensehost_v4_1.rb index 70d358013..b0d702f35 100644 --- a/generated/google/apis/adsensehost_v4_1.rb +++ b/generated/google/apis/adsensehost_v4_1.rb @@ -20,13 +20,13 @@ module Google module Apis # AdSense Host API # - # Gives AdSense Hosts access to report generation, ad code generation, and - # publisher management capabilities. + # Generates performance reports, generates ad codes, and provides publisher + # management capabilities for AdSense Hosts. # # @see https://developers.google.com/adsense/host/ module AdsensehostV4_1 VERSION = 'V4_1' - REVISION = '20160223' + REVISION = '20160309' # View and manage your AdSense host data and associated accounts AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost' diff --git a/generated/google/apis/adsensehost_v4_1/service.rb b/generated/google/apis/adsensehost_v4_1/service.rb index f1f1106de..6ad489f8f 100644 --- a/generated/google/apis/adsensehost_v4_1/service.rb +++ b/generated/google/apis/adsensehost_v4_1/service.rb @@ -22,8 +22,8 @@ module Google module AdsensehostV4_1 # AdSense Host API # - # Gives AdSense Hosts access to report generation, ad code generation, and - # publisher management capabilities. + # Generates performance reports, generates ad codes, and provides publisher + # management capabilities for AdSense Hosts. # # @example # require 'google/apis/adsensehost_v4_1' diff --git a/generated/google/apis/analytics_v3.rb b/generated/google/apis/analytics_v3.rb index acb3a0c86..9a3e34f79 100644 --- a/generated/google/apis/analytics_v3.rb +++ b/generated/google/apis/analytics_v3.rb @@ -20,12 +20,12 @@ module Google module Apis # Google Analytics API # - # View and manage your Google Analytics data + # Views and manages your Google Analytics data. # # @see https://developers.google.com/analytics/ module AnalyticsV3 VERSION = 'V3' - REVISION = '20160223' + REVISION = '20160308' # View and manage your Google Analytics data AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics' diff --git a/generated/google/apis/analytics_v3/classes.rb b/generated/google/apis/analytics_v3/classes.rb index ebe7aafc8..ea7fe5fef 100644 --- a/generated/google/apis/analytics_v3/classes.rb +++ b/generated/google/apis/analytics_v3/classes.rb @@ -62,6 +62,12 @@ module Google # @return [String] attr_accessor :self_link + # Indicates whether this account is starred or not. + # Corresponds to the JSON property `starred` + # @return [Boolean] + attr_accessor :starred + alias_method :starred?, :starred + # Time the account was last modified. # Corresponds to the JSON property `updated` # @return [DateTime] @@ -80,6 +86,7 @@ module Google @name = args[:name] if args.key?(:name) @permissions = args[:permissions] if args.key?(:permissions) @self_link = args[:self_link] if args.key?(:self_link) + @starred = args[:starred] if args.key?(:starred) @updated = args[:updated] if args.key?(:updated) end @@ -255,6 +262,12 @@ module Google # @return [String] attr_accessor :name + # Indicates whether this account is starred or not. + # Corresponds to the JSON property `starred` + # @return [Boolean] + attr_accessor :starred + alias_method :starred?, :starred + # List of web properties under this account. # Corresponds to the JSON property `webProperties` # @return [Array] @@ -269,6 +282,7 @@ module Google @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) + @starred = args[:starred] if args.key?(:starred) @web_properties = args[:web_properties] if args.key?(:web_properties) end end @@ -3600,6 +3614,12 @@ module Google # @return [String] attr_accessor :site_search_query_parameters + # Indicates whether this view (profile) is starred or not. + # Corresponds to the JSON property `starred` + # @return [Boolean] + attr_accessor :starred + alias_method :starred?, :starred + # Whether or not Analytics will strip search category parameters from the URLs # in your reports. # Corresponds to the JSON property `stripSiteSearchCategoryParameters` @@ -3664,6 +3684,7 @@ module Google @self_link = args[:self_link] if args.key?(:self_link) @site_search_category_parameters = args[:site_search_category_parameters] if args.key?(:site_search_category_parameters) @site_search_query_parameters = args[:site_search_query_parameters] if args.key?(:site_search_query_parameters) + @starred = args[:starred] if args.key?(:starred) @strip_site_search_category_parameters = args[:strip_site_search_category_parameters] if args.key?(:strip_site_search_category_parameters) @strip_site_search_query_parameters = args[:strip_site_search_query_parameters] if args.key?(:strip_site_search_query_parameters) @timezone = args[:timezone] if args.key?(:timezone) @@ -3949,6 +3970,12 @@ module Google # @return [String] attr_accessor :name + # Indicates whether this view (profile) is starred or not. + # Corresponds to the JSON property `starred` + # @return [Boolean] + attr_accessor :starred + alias_method :starred?, :starred + # View (Profile) type. Supported types: WEB or APP. # Corresponds to the JSON property `type` # @return [String] @@ -3963,6 +3990,7 @@ module Google @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) + @starred = args[:starred] if args.key?(:starred) @type = args[:type] if args.key?(:type) end end @@ -4841,6 +4869,12 @@ module Google # @return [Array] attr_accessor :profiles + # Indicates whether this web property is starred or not. + # Corresponds to the JSON property `starred` + # @return [Boolean] + attr_accessor :starred + alias_method :starred?, :starred + # Website url for this web property. # Corresponds to the JSON property `websiteUrl` # @return [String] @@ -4858,6 +4892,7 @@ module Google @level = args[:level] if args.key?(:level) @name = args[:name] if args.key?(:name) @profiles = args[:profiles] if args.key?(:profiles) + @starred = args[:starred] if args.key?(:starred) @website_url = args[:website_url] if args.key?(:website_url) end end @@ -5006,6 +5041,12 @@ module Google # @return [String] attr_accessor :self_link + # Indicates whether this web property is starred or not. + # Corresponds to the JSON property `starred` + # @return [Boolean] + attr_accessor :starred + alias_method :starred?, :starred + # Time this web property was last modified. # Corresponds to the JSON property `updated` # @return [DateTime] @@ -5036,6 +5077,7 @@ module Google @permissions = args[:permissions] if args.key?(:permissions) @profile_count = args[:profile_count] if args.key?(:profile_count) @self_link = args[:self_link] if args.key?(:self_link) + @starred = args[:starred] if args.key?(:starred) @updated = args[:updated] if args.key?(:updated) @website_url = args[:website_url] if args.key?(:website_url) end diff --git a/generated/google/apis/analytics_v3/representations.rb b/generated/google/apis/analytics_v3/representations.rb index 611ff72dd..788c8eeda 100644 --- a/generated/google/apis/analytics_v3/representations.rb +++ b/generated/google/apis/analytics_v3/representations.rb @@ -599,6 +599,7 @@ module Google property :permissions, as: 'permissions', class: Google::Apis::AnalyticsV3::Account::Permissions, decorator: Google::Apis::AnalyticsV3::Account::Permissions::Representation property :self_link, as: 'selfLink' + property :starred, as: 'starred' property :updated, as: 'updated', type: DateTime end @@ -650,6 +651,7 @@ module Google property :id, as: 'id' property :kind, as: 'kind' property :name, as: 'name' + property :starred, as: 'starred' collection :web_properties, as: 'webProperties', class: Google::Apis::AnalyticsV3::WebPropertySummary, decorator: Google::Apis::AnalyticsV3::WebPropertySummary::Representation end @@ -1473,6 +1475,7 @@ module Google property :self_link, as: 'selfLink' property :site_search_category_parameters, as: 'siteSearchCategoryParameters' property :site_search_query_parameters, as: 'siteSearchQueryParameters' + property :starred, as: 'starred' property :strip_site_search_category_parameters, as: 'stripSiteSearchCategoryParameters' property :strip_site_search_query_parameters, as: 'stripSiteSearchQueryParameters' property :timezone, as: 'timezone' @@ -1555,6 +1558,7 @@ module Google property :id, as: 'id' property :kind, as: 'kind' property :name, as: 'name' + property :starred, as: 'starred' property :type, as: 'type' end end @@ -1777,6 +1781,7 @@ module Google property :name, as: 'name' collection :profiles, as: 'profiles', class: Google::Apis::AnalyticsV3::ProfileSummary, decorator: Google::Apis::AnalyticsV3::ProfileSummary::Representation + property :starred, as: 'starred' property :website_url, as: 'websiteUrl' end end @@ -1817,6 +1822,7 @@ module Google property :profile_count, as: 'profileCount' property :self_link, as: 'selfLink' + property :starred, as: 'starred' property :updated, as: 'updated', type: DateTime property :website_url, as: 'websiteUrl' diff --git a/generated/google/apis/analytics_v3/service.rb b/generated/google/apis/analytics_v3/service.rb index d757bcfbc..a03320356 100644 --- a/generated/google/apis/analytics_v3/service.rb +++ b/generated/google/apis/analytics_v3/service.rb @@ -22,7 +22,7 @@ module Google module AnalyticsV3 # Google Analytics API # - # View and manage your Google Analytics data + # Views and manages your Google Analytics data. # # @example # require 'google/apis/analytics_v3' @@ -1638,7 +1638,7 @@ module Google execute_or_queue_command(command, &block) end - # Updates an existing view (profile). This method supports patch semantics. + # Updates an existing goal. This method supports patch semantics. # @param [String] account_id # Account ID to update the goal. # @param [String] web_property_id @@ -1685,7 +1685,7 @@ module Google execute_or_queue_command(command, &block) end - # Updates an existing view (profile). + # Updates an existing goal. # @param [String] account_id # Account ID to update the goal. # @param [String] web_property_id diff --git a/generated/google/apis/androidenterprise_v1.rb b/generated/google/apis/androidenterprise_v1.rb index 68d9459ee..02fd55082 100644 --- a/generated/google/apis/androidenterprise_v1.rb +++ b/generated/google/apis/androidenterprise_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/android/work/play/emm-api module AndroidenterpriseV1 VERSION = 'V1' - REVISION = '20160212' + REVISION = '20160302' # Manage corporate Android devices AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise' diff --git a/generated/google/apis/appsactivity_v1.rb b/generated/google/apis/appsactivity_v1.rb index b4750d5e1..a1a009140 100644 --- a/generated/google/apis/appsactivity_v1.rb +++ b/generated/google/apis/appsactivity_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/google-apps/activity/ module AppsactivityV1 VERSION = 'V1' - REVISION = '20150723' + REVISION = '20160129' # View the activity history of your Google Apps AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity' diff --git a/generated/google/apis/appsactivity_v1/classes.rb b/generated/google/apis/appsactivity_v1/classes.rb index 28f047ef7..06f33c2b4 100644 --- a/generated/google/apis/appsactivity_v1/classes.rb +++ b/generated/google/apis/appsactivity_v1/classes.rb @@ -367,11 +367,25 @@ module Google class User include Google::Apis::Core::Hashable + # A boolean which indicates whether the specified User was deleted. If true, + # name, photo and permission_id will be omitted. + # Corresponds to the JSON property `isDeleted` + # @return [Boolean] + attr_accessor :is_deleted + alias_method :is_deleted?, :is_deleted + # The displayable name of the user. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name + # The permission ID associated with this user. Equivalent to the Drive API's + # permission ID for this user, returned as part of the Drive Permissions + # resource. + # Corresponds to the JSON property `permissionId` + # @return [String] + attr_accessor :permission_id + # Photo information for a user. # Corresponds to the JSON property `photo` # @return [Google::Apis::AppsactivityV1::Photo] @@ -383,7 +397,9 @@ module Google # Update properties of this object def update!(**args) + @is_deleted = args[:is_deleted] if args.key?(:is_deleted) @name = args[:name] if args.key?(:name) + @permission_id = args[:permission_id] if args.key?(:permission_id) @photo = args[:photo] if args.key?(:photo) end end diff --git a/generated/google/apis/appsactivity_v1/representations.rb b/generated/google/apis/appsactivity_v1/representations.rb index 3217a1eac..421e91634 100644 --- a/generated/google/apis/appsactivity_v1/representations.rb +++ b/generated/google/apis/appsactivity_v1/representations.rb @@ -196,7 +196,9 @@ module Google class User # @private class Representation < Google::Apis::Core::JsonRepresentation + property :is_deleted, as: 'isDeleted' property :name, as: 'name' + property :permission_id, as: 'permissionId' property :photo, as: 'photo', class: Google::Apis::AppsactivityV1::Photo, decorator: Google::Apis::AppsactivityV1::Photo::Representation end diff --git a/generated/google/apis/appstate_v1.rb b/generated/google/apis/appstate_v1.rb index 310460c90..b62fe74a9 100644 --- a/generated/google/apis/appstate_v1.rb +++ b/generated/google/apis/appstate_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services/web/api/states module AppstateV1 VERSION = 'V1' - REVISION = '20160222' + REVISION = '20160310' # View and manage your data for this application AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate' diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index a0a140370..8eb263ea4 100644 --- a/generated/google/apis/bigquery_v2.rb +++ b/generated/google/apis/bigquery_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryV2 VERSION = 'V2' - REVISION = '20160216' + REVISION = '20160304' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigquery_v2/classes.rb b/generated/google/apis/bigquery_v2/classes.rb index 54c9ec820..8425b007a 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -22,6 +22,169 @@ module Google module Apis module BigqueryV2 + # + class BigtableColumn + include Google::Apis::Core::Hashable + + # [Optional] The encoding of the values when the type is not STRING. Acceptable + # encoding values are: TEXT - indicates values are alphanumeric text strings. + # BINARY - indicates values are encoded using HBase Bytes.toBytes family of + # functions. 'encoding' can also be set at the column family level. However, the + # setting at this level takes precedence if 'encoding' is set at both levels. + # Corresponds to the JSON property `encoding` + # @return [String] + attr_accessor :encoding + + # [Optional] If the qualifier is not a valid BigQuery field identifier i.e. does + # not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as the + # column field name and is used as field name in queries. + # Corresponds to the JSON property `fieldName` + # @return [String] + attr_accessor :field_name + + # [Optional] If this is set, only the latest version of value in this column are + # exposed. 'onlyReadLatest' can also be set at the column family level. However, + # the setting at this level takes precedence if 'onlyReadLatest' is set at both + # levels. + # Corresponds to the JSON property `onlyReadLatest` + # @return [Boolean] + attr_accessor :only_read_latest + alias_method :only_read_latest?, :only_read_latest + + # [Required] Qualifier of the column. Columns in the parent column family that + # has this exact qualifier are exposed as . field. If the qualifier is valid UTF- + # 8 string, it can be specified in the qualifier_string field. Otherwise, a base- + # 64 encoded value must be set to qualifier_encoded. The column field name is + # the same as the column qualifier. However, if the qualifier is not a valid + # BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid + # identifier must be provided as field_name. + # Corresponds to the JSON property `qualifierEncoded` + # @return [String] + attr_accessor :qualifier_encoded + + # + # Corresponds to the JSON property `qualifierString` + # @return [String] + attr_accessor :qualifier_string + + # [Optional] The type to convert the value in cells of this column. The values + # are expected to be encoded using HBase Bytes.toBytes function when using the + # BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - + # BYTES STRING INTEGER FLOAT BOOLEAN Defaut type is BYTES. 'type' can also be + # set at the column family level. However, the setting at this level takes + # precedence if 'type' is set at both levels. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @encoding = args[:encoding] if args.key?(:encoding) + @field_name = args[:field_name] if args.key?(:field_name) + @only_read_latest = args[:only_read_latest] if args.key?(:only_read_latest) + @qualifier_encoded = args[:qualifier_encoded] if args.key?(:qualifier_encoded) + @qualifier_string = args[:qualifier_string] if args.key?(:qualifier_string) + @type = args[:type] if args.key?(:type) + end + end + + # + class BigtableColumnFamily + include Google::Apis::Core::Hashable + + # [Optional] Lists of columns that should be exposed as individual fields as + # opposed to a list of (column name, value) pairs. All columns whose qualifier + # matches a qualifier in this list can be accessed as .. Other columns can be + # accessed as a list through .Column field. + # Corresponds to the JSON property `columns` + # @return [Array] + attr_accessor :columns + + # [Optional] The encoding of the values when the type is not STRING. Acceptable + # encoding values are: TEXT - indicates values are alphanumeric text strings. + # BINARY - indicates values are encoded using HBase Bytes.toBytes family of + # functions. This can be overridden for a specific column by listing that column + # in 'columns' and specifying an encoding for it. + # Corresponds to the JSON property `encoding` + # @return [String] + attr_accessor :encoding + + # Identifier of the column family. + # Corresponds to the JSON property `familyId` + # @return [String] + attr_accessor :family_id + + # [Optional] If this is set only the latest version of value are exposed for all + # columns in this column family. This can be overridden for a specific column by + # listing that column in 'columns' and specifying a different setting for that + # column. + # Corresponds to the JSON property `onlyReadLatest` + # @return [Boolean] + attr_accessor :only_read_latest + alias_method :only_read_latest?, :only_read_latest + + # [Optional] The type to convert the value in cells of this column family. The + # values are expected to be encoded using HBase Bytes.toBytes function when + # using the BINARY encoding value. Following BigQuery types are allowed (case- + # sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Defaut type is BYTES. This can + # be overridden for a specific column by listing that column in 'columns' and + # specifying a type for it. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @columns = args[:columns] if args.key?(:columns) + @encoding = args[:encoding] if args.key?(:encoding) + @family_id = args[:family_id] if args.key?(:family_id) + @only_read_latest = args[:only_read_latest] if args.key?(:only_read_latest) + @type = args[:type] if args.key?(:type) + end + end + + # + class BigtableOptions + include Google::Apis::Core::Hashable + + # [Optional] List of column families to expose in the table schema along with + # their types. This list restricts the column families that can be referenced in + # queries and specifies their value types. You can use this list to do type + # conversions - see the 'type' field for more details. If you leave this list + # empty, all column families are present in the table schema and their values + # are read as BYTES. During a query only the column families referenced in that + # query are read from Bigtable. + # Corresponds to the JSON property `columnFamilies` + # @return [Array] + attr_accessor :column_families + + # [Optional] If field is true, then the column families that are not specified + # in columnFamilies list are not exposed in the table schema. Otherwise, they + # are read with BYTES type values. The default value is false. + # Corresponds to the JSON property `ignoreUnspecifiedColumnFamilies` + # @return [Boolean] + attr_accessor :ignore_unspecified_column_families + alias_method :ignore_unspecified_column_families?, :ignore_unspecified_column_families + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @column_families = args[:column_families] if args.key?(:column_families) + @ignore_unspecified_column_families = args[:ignore_unspecified_column_families] if args.key?(:ignore_unspecified_column_families) + end + end + # class CsvOptions include Google::Apis::Core::Hashable @@ -527,9 +690,21 @@ module Google class ExternalDataConfiguration include Google::Apis::Core::Hashable + # [Experimental] Try to detect schema and format options automatically. Any + # option specified explicitly will be honored. + # Corresponds to the JSON property `autodetect` + # @return [Boolean] + attr_accessor :autodetect + alias_method :autodetect?, :autodetect + + # [Optional] Additional options if sourceFormat is set to BIGTABLE. + # Corresponds to the JSON property `bigtableOptions` + # @return [Google::Apis::BigqueryV2::BigtableOptions] + attr_accessor :bigtable_options + # [Optional] The compression type of the data source. Possible values include # GZIP and NONE. The default value is NONE. This setting is ignored for Google - # Cloud Datastore backups. + # Cloud Bigtable, Google Cloud Datastore backups and Avro formats. # Corresponds to the JSON property `compression` # @return [String] attr_accessor :compression @@ -545,7 +720,9 @@ module Google # too many bad records, an invalid error is returned in the job result. The # default value is false. The sourceFormat property determines what BigQuery # treats as an extra value: CSV: Trailing columns JSON: Named values that don't - # match any column names Google Cloud Datastore backups: This setting is ignored. + # match any column names Google Cloud Bigtable: This setting is ignored. Google + # Cloud Datastore backups: This setting is ignored. Avro: This setting is + # ignored. # Corresponds to the JSON property `ignoreUnknownValues` # @return [Boolean] attr_accessor :ignore_unknown_values @@ -554,31 +731,39 @@ module Google # [Optional] The maximum number of bad records that BigQuery can ignore when # reading data. If the number of bad records exceeds this value, an invalid # error is returned in the job result. The default value is 0, which requires - # that all records are valid. This setting is ignored for Google Cloud Datastore - # backups. + # that all records are valid. This setting is ignored for Google Cloud Bigtable, + # Google Cloud Datastore backups and Avro formats. # Corresponds to the JSON property `maxBadRecords` # @return [Fixnum] attr_accessor :max_bad_records # [Optional] The schema for the data. Schema is required for CSV and JSON - # formats. Schema is disallowed for Google Cloud Datastore backups. + # formats. Schema is disallowed for Google Cloud Bigtable, Cloud Datastore + # backups, and Avro formats. # Corresponds to the JSON property `schema` # @return [Google::Apis::BigqueryV2::TableSchema] attr_accessor :schema # [Required] The data format. For CSV files, specify "CSV". For newline- - # delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Google Cloud Datastore - # backups, specify "DATASTORE_BACKUP". + # delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Avro files, specify " + # AVRO". For Google Cloud Datastore backups, specify "DATASTORE_BACKUP". [ + # Experimental] For Google Cloud Bigtable, specify "BIGTABLE". Please note that + # reading from Google Cloud Bigtable is experimental and has to be enabled for + # your project. Please contact Google Cloud Support to enable this for your + # project. # Corresponds to the JSON property `sourceFormat` # @return [String] attr_accessor :source_format - # [Required] The fully-qualified URIs that point to your data in Google Cloud - # Storage. Each URI can contain one '*' wildcard character and it must come - # after the 'bucket' name. Size limits related to load jobs apply to external - # data sources, plus an additional limit of 10 GB maximum size across all URIs. - # For Google Cloud Datastore backups, exactly one URI can be specified, and it - # must end with '.backup_info'. Also, the '*' wildcard character is not allowed. + # [Required] The fully-qualified URIs that point to your data in Google Cloud. + # For Google Cloud Storage URIs: Each URI can contain one '*' wildcard character + # and it must come after the 'bucket' name. Size limits related to load jobs + # apply to external data sources, plus an additional limit of 10 GB maximum size + # across all URIs. For Google Cloud Bigtable URIs: Exactly one URI can be + # specified and it has be a fully specified and valid HTTPS URL for a Google + # Cloud Bigtable table. For Google Cloud Datastore backups, exactly one URI can + # be specified, and it must end with '.backup_info'. Also, the '*' wildcard + # character is not allowed. # Corresponds to the JSON property `sourceUris` # @return [Array] attr_accessor :source_uris @@ -589,6 +774,8 @@ module Google # Update properties of this object def update!(**args) + @autodetect = args[:autodetect] if args.key?(:autodetect) + @bigtable_options = args[:bigtable_options] if args.key?(:bigtable_options) @compression = args[:compression] if args.key?(:compression) @csv_options = args[:csv_options] if args.key?(:csv_options) @ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values) diff --git a/generated/google/apis/bigquery_v2/representations.rb b/generated/google/apis/bigquery_v2/representations.rb index 37c5b14f9..439542af0 100644 --- a/generated/google/apis/bigquery_v2/representations.rb +++ b/generated/google/apis/bigquery_v2/representations.rb @@ -22,6 +22,24 @@ module Google module Apis module BigqueryV2 + class BigtableColumn + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BigtableColumnFamily + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BigtableOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CsvOptions class Representation < Google::Apis::Core::JsonRepresentation; end @@ -304,6 +322,39 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BigtableColumn + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :encoding, as: 'encoding' + property :field_name, as: 'fieldName' + property :only_read_latest, as: 'onlyReadLatest' + property :qualifier_encoded, :base64 => true, as: 'qualifierEncoded' + property :qualifier_string, as: 'qualifierString' + property :type, as: 'type' + end + end + + class BigtableColumnFamily + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :columns, as: 'columns', class: Google::Apis::BigqueryV2::BigtableColumn, decorator: Google::Apis::BigqueryV2::BigtableColumn::Representation + + property :encoding, as: 'encoding' + property :family_id, as: 'familyId' + property :only_read_latest, as: 'onlyReadLatest' + property :type, as: 'type' + end + end + + class BigtableOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :column_families, as: 'columnFamilies', class: Google::Apis::BigqueryV2::BigtableColumnFamily, decorator: Google::Apis::BigqueryV2::BigtableColumnFamily::Representation + + property :ignore_unspecified_column_families, as: 'ignoreUnspecifiedColumnFamilies' + end + end + class CsvOptions # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -420,6 +471,9 @@ module Google class ExternalDataConfiguration # @private class Representation < Google::Apis::Core::JsonRepresentation + property :autodetect, as: 'autodetect' + property :bigtable_options, as: 'bigtableOptions', class: Google::Apis::BigqueryV2::BigtableOptions, decorator: Google::Apis::BigqueryV2::BigtableOptions::Representation + property :compression, as: 'compression' property :csv_options, as: 'csvOptions', class: Google::Apis::BigqueryV2::CsvOptions, decorator: Google::Apis::BigqueryV2::CsvOptions::Representation diff --git a/generated/google/apis/books_v1.rb b/generated/google/apis/books_v1.rb index ba9eb6a2c..d47c40ac8 100644 --- a/generated/google/apis/books_v1.rb +++ b/generated/google/apis/books_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/books/docs/v1/getting_started module BooksV1 VERSION = 'V1' - REVISION = '20160113' + REVISION = '20160226' # Manage your books AUTH_BOOKS = 'https://www.googleapis.com/auth/books' diff --git a/generated/google/apis/books_v1/classes.rb b/generated/google/apis/books_v1/classes.rb index 9f3a86c05..be3d26e97 100644 --- a/generated/google/apis/books_v1/classes.rb +++ b/generated/google/apis/books_v1/classes.rb @@ -2021,6 +2021,11 @@ module Google # @return [String] attr_accessor :pcampaign_id + # + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + # # Corresponds to the JSON property `show_notification_settings_action` # @return [Boolean] @@ -2049,6 +2054,7 @@ module Google @kind = args[:kind] if args.key?(:kind) @notification_type = args[:notification_type] if args.key?(:notification_type) @pcampaign_id = args[:pcampaign_id] if args.key?(:pcampaign_id) + @reason = args[:reason] if args.key?(:reason) @show_notification_settings_action = args[:show_notification_settings_action] if args.key?(:show_notification_settings_action) @target_url = args[:target_url] if args.key?(:target_url) @title = args[:title] if args.key?(:title) diff --git a/generated/google/apis/books_v1/representations.rb b/generated/google/apis/books_v1/representations.rb index a61c5610c..011d215b4 100644 --- a/generated/google/apis/books_v1/representations.rb +++ b/generated/google/apis/books_v1/representations.rb @@ -1193,6 +1193,7 @@ module Google property :kind, as: 'kind' property :notification_type, as: 'notification_type' property :pcampaign_id, as: 'pcampaign_id' + property :reason, as: 'reason' property :show_notification_settings_action, as: 'show_notification_settings_action' property :target_url, as: 'targetUrl' property :title, as: 'title' diff --git a/generated/google/apis/books_v1/service.rb b/generated/google/apis/books_v1/service.rb index 6d555d97d..6d42be140 100644 --- a/generated/google/apis/books_v1/service.rb +++ b/generated/google/apis/books_v1/service.rb @@ -2091,6 +2091,8 @@ module Google # Return a list of books in My Library. # @param [Array, String] acquire_method # How the book was aquired + # @param [String] country + # ISO-3166-1 code to override the IP-based location. # @param [String] locale # ISO-639-1 language and ISO-3166-1 country code. Ex:'en_US'. Used for # generating recommendations. @@ -2124,11 +2126,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_my_books(acquire_method: nil, locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_my_books(acquire_method: nil, country: nil, locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'volumes/mybooks', options) command.response_representation = Google::Apis::BooksV1::Volumes::Representation command.response_class = Google::Apis::BooksV1::Volumes command.query['acquireMethod'] = acquire_method unless acquire_method.nil? + command.query['country'] = country unless country.nil? command.query['locale'] = locale unless locale.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['processingState'] = processing_state unless processing_state.nil? diff --git a/generated/google/apis/calendar_v3.rb b/generated/google/apis/calendar_v3.rb index 4cafa81fe..48e83c85c 100644 --- a/generated/google/apis/calendar_v3.rb +++ b/generated/google/apis/calendar_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/google-apps/calendar/firstapp module CalendarV3 VERSION = 'V3' - REVISION = '20160221' + REVISION = '20160306' # Manage your calendars AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar' diff --git a/generated/google/apis/cloudbuild_v1.rb b/generated/google/apis/cloudbuild_v1.rb index 53e490af0..7d21bd36a 100644 --- a/generated/google/apis/cloudbuild_v1.rb +++ b/generated/google/apis/cloudbuild_v1.rb @@ -20,13 +20,12 @@ module Google module Apis # Google Cloud Container Builder API # - # The Google Cloud Container Builder API lets you build container images in the - # cloud. + # Builds container images in the cloud. # # @see https://cloud.google.com/container-builder/docs/ module CloudbuildV1 VERSION = 'V1' - REVISION = '20160225' + REVISION = '20160310' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudbuild_v1/classes.rb b/generated/google/apis/cloudbuild_v1/classes.rb index 2732377f2..38135c16e 100644 --- a/generated/google/apis/cloudbuild_v1/classes.rb +++ b/generated/google/apis/cloudbuild_v1/classes.rb @@ -265,6 +265,12 @@ module Google class StorageSource include Google::Apis::Core::Hashable + # Google Cloud Storage generation for the object. If the generation is + # omitted, the latest generation will be used. + # Corresponds to the JSON property `generation` + # @return [String] + attr_accessor :generation + # Google Cloud Storage bucket containing source (see # [Bucket Name # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements) @@ -286,6 +292,7 @@ module Google # Update properties of this object def update!(**args) + @generation = args[:generation] if args.key?(:generation) @bucket = args[:bucket] if args.key?(:bucket) @object = args[:object] if args.key?(:object) end diff --git a/generated/google/apis/cloudbuild_v1/representations.rb b/generated/google/apis/cloudbuild_v1/representations.rb index ff0c6e657..b282a7b48 100644 --- a/generated/google/apis/cloudbuild_v1/representations.rb +++ b/generated/google/apis/cloudbuild_v1/representations.rb @@ -142,6 +142,7 @@ module Google class StorageSource # @private class Representation < Google::Apis::Core::JsonRepresentation + property :generation, as: 'generation' property :bucket, as: 'bucket' property :object, as: 'object' end diff --git a/generated/google/apis/cloudbuild_v1/service.rb b/generated/google/apis/cloudbuild_v1/service.rb index 15a5023ae..471adf2b4 100644 --- a/generated/google/apis/cloudbuild_v1/service.rb +++ b/generated/google/apis/cloudbuild_v1/service.rb @@ -22,8 +22,7 @@ module Google module CloudbuildV1 # Google Cloud Container Builder API # - # The Google Cloud Container Builder API lets you build container images in the - # cloud. + # Builds container images in the cloud. # # @example # require 'google/apis/cloudbuild_v1' diff --git a/generated/google/apis/clouddebugger_v2.rb b/generated/google/apis/clouddebugger_v2.rb index b7b417570..8ebfa4dd4 100644 --- a/generated/google/apis/clouddebugger_v2.rb +++ b/generated/google/apis/clouddebugger_v2.rb @@ -20,13 +20,13 @@ module Google module Apis # Google Cloud Debugger API # - # Lets you examine the stack and variables of your running application without + # Examines the call stack and variables of a running application without # stopping or slowing it down. # # @see https://cloud.google.com/tools/cloud-debugger module ClouddebuggerV2 VERSION = 'V2' - REVISION = '20151123' + REVISION = '20160309' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/clouddebugger_v2/classes.rb b/generated/google/apis/clouddebugger_v2/classes.rb index 778354b36..7d958d212 100644 --- a/generated/google/apis/clouddebugger_v2/classes.rb +++ b/generated/google/apis/clouddebugger_v2/classes.rb @@ -680,12 +680,18 @@ module Google # variables then would hold only a reference to it. The variable ` # var_table_index` field is an index into this repeated field. The stored # objects are nameless and get their name from the referencing variable. The - # effective variable is a merge of the referencing veariable and the referenced + # effective variable is a merge of the referencing variable and the referenced # variable. # Corresponds to the JSON property `variableTable` # @return [Array] attr_accessor :variable_table + # A set of custom breakpoint properties, populated by the agent, to be displayed + # to the user. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + def initialize(**args) update!(**args) end @@ -707,6 +713,7 @@ module Google @stack_frames = args[:stack_frames] if args.key?(:stack_frames) @evaluated_expressions = args[:evaluated_expressions] if args.key?(:evaluated_expressions) @variable_table = args[:variable_table] if args.key?(:variable_table) + @labels = args[:labels] if args.key?(:labels) end end diff --git a/generated/google/apis/clouddebugger_v2/representations.rb b/generated/google/apis/clouddebugger_v2/representations.rb index b41e2c81b..0c8a1e04b 100644 --- a/generated/google/apis/clouddebugger_v2/representations.rb +++ b/generated/google/apis/clouddebugger_v2/representations.rb @@ -369,6 +369,7 @@ module Google collection :variable_table, as: 'variableTable', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation + hash :labels, as: 'labels' end end diff --git a/generated/google/apis/clouddebugger_v2/service.rb b/generated/google/apis/clouddebugger_v2/service.rb index 433ced402..a161bfa83 100644 --- a/generated/google/apis/clouddebugger_v2/service.rb +++ b/generated/google/apis/clouddebugger_v2/service.rb @@ -22,7 +22,7 @@ module Google module ClouddebuggerV2 # Google Cloud Debugger API # - # Lets you examine the stack and variables of your running application without + # Examines the call stack and variables of a running application without # stopping or slowing it down. # # @example @@ -179,6 +179,9 @@ module Google # @param [Boolean] include_inactive # When set to `true`, the result includes all debuggees. Otherwise, the result # includes only debuggees that are active. + # @param [String] client_version + # The client version making the call. Following: `domain/type/version` (e.g., ` + # google.com/intellij/v1`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -196,12 +199,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_debugger_debuggees(project: nil, include_inactive: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_debugger_debuggees(project: nil, include_inactive: nil, client_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/debugger/debuggees', options) command.response_representation = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse::Representation command.response_class = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse command.query['project'] = project unless project.nil? command.query['includeInactive'] = include_inactive unless include_inactive.nil? + command.query['clientVersion'] = client_version unless client_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -211,6 +215,9 @@ module Google # @param [String] debuggee_id # ID of the debuggee where the breakpoint is to be set. # @param [Google::Apis::ClouddebuggerV2::Breakpoint] breakpoint_object + # @param [String] client_version + # The client version making the call. Following: `domain/type/version` (e.g., ` + # google.com/intellij/v1`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -228,13 +235,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def set_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, client_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', options) command.request_representation = Google::Apis::ClouddebuggerV2::Breakpoint::Representation command.request_object = breakpoint_object command.response_representation = Google::Apis::ClouddebuggerV2::SetBreakpointResponse::Representation command.response_class = Google::Apis::ClouddebuggerV2::SetBreakpointResponse command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? + command.query['clientVersion'] = client_version unless client_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -245,6 +253,9 @@ module Google # ID of the debuggee whose breakpoint to get. # @param [String] breakpoint_id # ID of the breakpoint to get. + # @param [String] client_version + # The client version making the call. Following: `domain/type/version` (e.g., ` + # google.com/intellij/v1`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -262,12 +273,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, fields: nil, quota_user: nil, options: nil, &block) + def get_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options) command.response_representation = Google::Apis::ClouddebuggerV2::GetBreakpointResponse::Representation command.response_class = Google::Apis::ClouddebuggerV2::GetBreakpointResponse command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil? + command.query['clientVersion'] = client_version unless client_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -278,6 +290,9 @@ module Google # ID of the debuggee whose breakpoint to delete. # @param [String] breakpoint_id # ID of the breakpoint to delete. + # @param [String] client_version + # The client version making the call. Following: `domain/type/version` (e.g., ` + # google.com/intellij/v1`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -295,12 +310,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, fields: nil, quota_user: nil, options: nil, &block) + def delete_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options) command.response_representation = Google::Apis::ClouddebuggerV2::Empty::Representation command.response_class = Google::Apis::ClouddebuggerV2::Empty command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil? + command.query['clientVersion'] = client_version unless client_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -326,6 +342,9 @@ module Google # from the last response. The error code `google.rpc.Code.ABORTED` (RPC) is # returned on wait timeout, which should be called again with the same ` # wait_token`. + # @param [String] client_version + # The client version making the call. Following: `domain/type/version` (e.g., ` + # google.com/intellij/v1`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -343,7 +362,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_debugger_debuggee_breakpoints(debuggee_id, include_all_users: nil, include_inactive: nil, action_value: nil, strip_results: nil, wait_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_debugger_debuggee_breakpoints(debuggee_id, include_all_users: nil, include_inactive: nil, action_value: nil, strip_results: nil, wait_token: nil, client_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints', options) command.response_representation = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse::Representation command.response_class = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse @@ -353,6 +372,7 @@ module Google command.query['action.value'] = action_value unless action_value.nil? command.query['stripResults'] = strip_results unless strip_results.nil? command.query['waitToken'] = wait_token unless wait_token.nil? + command.query['clientVersion'] = client_version unless client_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) diff --git a/generated/google/apis/cloudlatencytest_v2.rb b/generated/google/apis/cloudlatencytest_v2.rb index 9d88b316d..0d138b7fc 100644 --- a/generated/google/apis/cloudlatencytest_v2.rb +++ b/generated/google/apis/cloudlatencytest_v2.rb @@ -20,12 +20,12 @@ module Google module Apis # Google Cloud Network Performance Monitoring API # - # A Test API to report latency data. + # Reports latency data. # # @see module CloudlatencytestV2 VERSION = 'V2' - REVISION = '20150508' + REVISION = '20160309' # View monitoring data for all of your Google Cloud and API projects AUTH_MONITORING_READONLY = 'https://www.googleapis.com/auth/monitoring.readonly' diff --git a/generated/google/apis/cloudlatencytest_v2/service.rb b/generated/google/apis/cloudlatencytest_v2/service.rb index c5c1c738f..267945d90 100644 --- a/generated/google/apis/cloudlatencytest_v2/service.rb +++ b/generated/google/apis/cloudlatencytest_v2/service.rb @@ -22,7 +22,7 @@ module Google module CloudlatencytestV2 # Google Cloud Network Performance Monitoring API # - # A Test API to report latency data. + # Reports latency data. # # @example # require 'google/apis/cloudlatencytest_v2' diff --git a/generated/google/apis/cloudmonitoring_v2beta2.rb b/generated/google/apis/cloudmonitoring_v2beta2.rb index ac5c6bc05..83e30cc02 100644 --- a/generated/google/apis/cloudmonitoring_v2beta2.rb +++ b/generated/google/apis/cloudmonitoring_v2beta2.rb @@ -20,12 +20,12 @@ module Google module Apis # Cloud Monitoring API # - # API for accessing Google Cloud and API monitoring data. + # Accesses Google Cloud Monitoring data. # # @see https://cloud.google.com/monitoring/v2beta2/ module CloudmonitoringV2beta2 VERSION = 'V2beta2' - REVISION = '20160221' + REVISION = '20160228' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudmonitoring_v2beta2/service.rb b/generated/google/apis/cloudmonitoring_v2beta2/service.rb index c8f91d0a6..af0093db5 100644 --- a/generated/google/apis/cloudmonitoring_v2beta2/service.rb +++ b/generated/google/apis/cloudmonitoring_v2beta2/service.rb @@ -22,7 +22,7 @@ module Google module CloudmonitoringV2beta2 # Cloud Monitoring API # - # API for accessing Google Cloud and API monitoring data. + # Accesses Google Cloud Monitoring data. # # @example # require 'google/apis/cloudmonitoring_v2beta2' diff --git a/generated/google/apis/cloudresourcemanager_v1.rb b/generated/google/apis/cloudresourcemanager_v1.rb new file mode 100644 index 000000000..d7fdebd9a --- /dev/null +++ b/generated/google/apis/cloudresourcemanager_v1.rb @@ -0,0 +1,38 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/cloudresourcemanager_v1/service.rb' +require 'google/apis/cloudresourcemanager_v1/classes.rb' +require 'google/apis/cloudresourcemanager_v1/representations.rb' + +module Google + module Apis + # Google Cloud Resource Manager API + # + # The Google Cloud Resource Manager API provides methods for creating, reading, + # and updating project metadata. + # + # @see https://cloud.google.com/resource-manager + module CloudresourcemanagerV1 + VERSION = 'V1' + REVISION = '20160225' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # View your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' + end + end +end diff --git a/generated/google/apis/cloudresourcemanager_v1/classes.rb b/generated/google/apis/cloudresourcemanager_v1/classes.rb new file mode 100644 index 000000000..05fddd154 --- /dev/null +++ b/generated/google/apis/cloudresourcemanager_v1/classes.rb @@ -0,0 +1,355 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module CloudresourcemanagerV1 + + # A Project is a high-level Google Cloud Platform entity. It is a container for + # ACLs, APIs, AppEngine Apps, VMs, and other Google Cloud Platform resources. + class Project + include Google::Apis::Core::Hashable + + # The number uniquely identifying the project. Example: 415104041262 Read-only. + # Corresponds to the JSON property `projectNumber` + # @return [String] + attr_accessor :project_number + + # The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase + # letters, digits, or hyphens. It must start with a letter. Trailing hyphens are + # prohibited. Example: tokyo-rain-123 Read-only after creation. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # The Project lifecycle state. Read-only. + # Corresponds to the JSON property `lifecycleState` + # @return [String] + attr_accessor :lifecycle_state + + # The user-assigned name of the Project. It must be 4 to 30 characters. Allowed + # characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, + # double-quote, space, and exclamation point. Example: My Project Read-write. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Creation time. Read-only. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The labels associated with this Project. Label keys must be between 1 and 63 + # characters long and must conform to the following regular expression: \[a-z\](\ + # [-a-z0-9\]*\[a-z0-9\])?. Label values must be between 0 and 63 characters long + # and must conform to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?. + # No more than 256 labels can be associated with a given resource. Clients + # should store labels in a representation such as JSON that does not depend on + # specific characters being disallowed. Example: "environment" : "dev" Read- + # write. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # A container to reference an id for any resource type. A `resource` in Google + # Cloud Platform is a generic term for something you (a developer) may want to + # interact with through one of our API's. Some examples are an AppEngine app, a + # Compute Engine instance, a Cloud SQL database, and so on. + # Corresponds to the JSON property `parent` + # @return [Google::Apis::CloudresourcemanagerV1::ResourceId] + attr_accessor :parent + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @project_number = args[:project_number] if args.key?(:project_number) + @project_id = args[:project_id] if args.key?(:project_id) + @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state) + @name = args[:name] if args.key?(:name) + @create_time = args[:create_time] if args.key?(:create_time) + @labels = args[:labels] if args.key?(:labels) + @parent = args[:parent] if args.key?(:parent) + end + end + + # A container to reference an id for any resource type. A `resource` in Google + # Cloud Platform is a generic term for something you (a developer) may want to + # interact with through one of our API's. Some examples are an AppEngine app, a + # Compute Engine instance, a Cloud SQL database, and so on. + class ResourceId + include Google::Apis::Core::Hashable + + # Required field representing the resource type this id is for. At present, the + # only valid type is "organization". + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Required field for the type-specific id. This should correspond to the id used + # in the type-specific API's. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] if args.key?(:type) + @id = args[:id] if args.key?(:id) + end + end + + # A page of the response received from the ListProjects method. A paginated + # response where more pages are available has `next_page_token` set. This token + # can be used in a subsequent request to retrieve the next request page. + class ListProjectsResponse + include Google::Apis::Core::Hashable + + # The list of Projects that matched the list filter. This list can be paginated. + # Corresponds to the JSON property `projects` + # @return [Array] + attr_accessor :projects + + # Pagination token. If the result set is too large to fit in a single response, + # this token is returned. It encodes the position of the current result cursor. + # Feeding this value into a new list request with the `page_token` parameter + # gives the next page of the results. When `next_page_token` is not filled in, + # there is no next page and the list returned is the last page in the result set. + # Pagination tokens have a limited lifetime. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @projects = args[:projects] if args.key?(:projects) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The request sent to the UndeleteProject method. + class UndeleteProjectRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Request message for `GetIamPolicy` method. + class GetIamPolicyRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Defines an Identity and Access Management (IAM) policy. It is used to specify + # access control policies for Cloud Platform resources. A `Policy` consists of a + # list of `bindings`. A `Binding` binds a list of `members` to a `role`, where + # the members can be user accounts, Google groups, Google domains, and service + # accounts. A `role` is a named list of permissions defined by IAM. **Example** ` + # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ + # appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user: + # sean@example.com"] ` ] ` For a description of IAM and its features, see the [ + # IAM developer's guide](https://cloud.google.com/iam). + class Policy + include Google::Apis::Core::Hashable + + # Version of the `Policy`. The default version is 0. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + # Associates a list of `members` to a `role`. Multiple `bindings` must not be + # specified for the same `role`. `bindings` with no members will result in an + # error. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # `etag` is used for optimistic concurrency control as a way to help prevent + # simultaneous updates of a policy from overwriting each other. It is strongly + # suggested that systems make use of the `etag` in the read-modify-write cycle + # to perform policy updates in order to avoid race conditions: An `etag` is + # returned in the response to `getIamPolicy`, and systems are expected to put + # that etag in the request to `setIamPolicy` to ensure that their change will be + # applied to the same version of the policy. If no `etag` is provided in the + # call to `setIamPolicy`, then the existing policy is overwritten blindly. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @version = args[:version] if args.key?(:version) + @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) + end + end + + # Associates `members` with a `role`. + class Binding + include Google::Apis::Core::Hashable + + # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor` + # , or `roles/owner`. Required + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + # Specifies the identities requesting access for a Cloud Platform resource. ` + # members` can have the following values: * `allUsers`: A special identifier + # that represents anyone who is on the internet; with or without a Google + # account. * `allAuthenticatedUsers`: A special identifier that represents + # anyone who is authenticated with a Google account or a service account. * ` + # user:`emailid``: An email address that represents a specific Google account. + # For example, `alice@gmail.com` or `joe@example.com`. * `serviceAccount:` + # emailid``: An email address that represents a service account. For example, ` + # my-other-app@appspot.gserviceaccount.com`. * `group:`emailid``: An email + # address that represents a Google group. For example, `admins@example.com`. * ` + # domain:`domain``: A Google Apps domain name that represents all the users of + # that domain. For example, `google.com` or `example.com`. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @role = args[:role] if args.key?(:role) + @members = args[:members] if args.key?(:members) + end + end + + # Request message for `SetIamPolicy` method. + class SetIamPolicyRequest + include Google::Apis::Core::Hashable + + # Defines an Identity and Access Management (IAM) policy. It is used to specify + # access control policies for Cloud Platform resources. A `Policy` consists of a + # list of `bindings`. A `Binding` binds a list of `members` to a `role`, where + # the members can be user accounts, Google groups, Google domains, and service + # accounts. A `role` is a named list of permissions defined by IAM. **Example** ` + # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ + # appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user: + # sean@example.com"] ` ] ` For a description of IAM and its features, see the [ + # IAM developer's guide](https://cloud.google.com/iam). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::CloudresourcemanagerV1::Policy] + attr_accessor :policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policy = args[:policy] if args.key?(:policy) + end + end + + # Request message for `TestIamPermissions` method. + class TestIamPermissionsRequest + include Google::Apis::Core::Hashable + + # The set of permissions to check for the `resource`. Permissions with wildcards + # (such as '*' or 'storage.*') are not allowed. For more information see IAM + # Overview. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + + # Response message for `TestIamPermissions` method. + class TestIamPermissionsResponse + include Google::Apis::Core::Hashable + + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + end + end +end diff --git a/generated/google/apis/cloudresourcemanager_v1/representations.rb b/generated/google/apis/cloudresourcemanager_v1/representations.rb new file mode 100644 index 000000000..6e78f8572 --- /dev/null +++ b/generated/google/apis/cloudresourcemanager_v1/representations.rb @@ -0,0 +1,181 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module CloudresourcemanagerV1 + + class Project + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourceId + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListProjectsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UndeleteProjectRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Binding + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestIamPermissionsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestIamPermissionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Project + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :project_number, as: 'projectNumber' + property :project_id, as: 'projectId' + property :lifecycle_state, as: 'lifecycleState' + property :name, as: 'name' + property :create_time, as: 'createTime' + hash :labels, as: 'labels' + property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation + + end + end + + class ResourceId + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + property :id, as: 'id' + end + end + + class ListProjectsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1::Project, decorator: Google::Apis::CloudresourcemanagerV1::Project::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class UndeleteProjectRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Policy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :version, as: 'version' + collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1::Binding, decorator: Google::Apis::CloudresourcemanagerV1::Binding::Representation + + property :etag, :base64 => true, as: 'etag' + end + end + + class Binding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :role, as: 'role' + collection :members, as: 'members' + end + end + + class SetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1::Policy, decorator: Google::Apis::CloudresourcemanagerV1::Policy::Representation + + end + end + + class TestIamPermissionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class TestIamPermissionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + end + end +end diff --git a/generated/google/apis/cloudresourcemanager_v1/service.rb b/generated/google/apis/cloudresourcemanager_v1/service.rb new file mode 100644 index 000000000..039d02361 --- /dev/null +++ b/generated/google/apis/cloudresourcemanager_v1/service.rb @@ -0,0 +1,373 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module CloudresourcemanagerV1 + # Google Cloud Resource Manager API + # + # The Google Cloud Resource Manager API provides methods for creating, reading, + # and updating project metadata. + # + # @example + # require 'google/apis/cloudresourcemanager_v1' + # + # Cloudresourcemanager = Google::Apis::CloudresourcemanagerV1 # Alias the module + # service = Cloudresourcemanager::CloudresourcemanagerService.new + # + # @see https://cloud.google.com/resource-manager + class CloudresourcemanagerService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://cloudresourcemanager.googleapis.com/', '') + end + + # Retrieves the Project identified by the specified `project_id` (for example, ` + # my-project-123`). The caller must have read permissions for this Project. + # @param [String] project_id + # The Project ID (for example, `my-project-123`). Required. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Project] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1::Project] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}', options) + command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1::Project + command.params['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists Projects that are visible to the user and satisfy the specified filter. + # This method returns Projects in an unspecified order. New Projects do not + # necessarily appear at the end of the list. + # @param [String] page_token + # A pagination token returned from a previous call to ListProjects that + # indicates from where listing should continue. Optional. + # @param [Fixnum] page_size + # The maximum number of Projects to return in the response. The server can + # return fewer Projects than requested. If unspecified, server picks an + # appropriate default. Optional. + # @param [String] filter + # An expression for filtering the results of the request. Filter rules are case + # insensitive. The fields eligible for filtering are: + `name` + `id` + labels. + # key where *key* is the name of a label Some examples of using labels as + # filters: |Filter|Description| |------|-----------| |name:*|The project has a + # name.| |name:Howl|The project's name is `Howl` or `howl`.| |name:HOWL| + # Equivalent to above.| |NAME:howl|Equivalent to above.| |labels.color:*|The + # project has the label `color`.| |labels.color:red|The project's label `color` + # has the value `red`.| |labels.color:red label.size:big|The project's label ` + # color` has the value `red` and its label `size` has the value `big`. Optional. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListProjectsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1::ListProjectsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_projects(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects', options) + command.response_representation = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse + command.query['pageToken'] = page_token unless page_token.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['filter'] = filter unless filter.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the attributes of the Project identified by the specified `project_id` + # (for example, `my-project-123`). The caller must have modify permissions for + # this Project. + # @param [String] project_id + # The project ID (for example, `my-project-123`). Required. + # @param [Google::Apis::CloudresourcemanagerV1::Project] project_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Project] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1::Project] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1/projects/{projectId}', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation + command.request_object = project_object + command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1::Project + command.params['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Marks the Project identified by the specified `project_id` (for example, `my- + # project-123`) for deletion. This method will only affect the Project if the + # following criteria are met: + The Project does not have a billing account + # associated with it. + The Project has a lifecycle state of ACTIVE. This method + # changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. The + # deletion starts at an unspecified time, at which point the lifecycle state + # changes to DELETE_IN_PROGRESS. Until the deletion completes, you can check the + # lifecycle state checked by retrieving the Project with GetProject, and the + # Project remains visible to ListProjects. However, you cannot update the + # project. After the deletion completes, the Project is not retrievable by the + # GetProject and ListProjects methods. The caller must have modify permissions + # for this Project. + # @param [String] project_id + # The Project ID (for example, `foo-bar-123`). Required. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project(project_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/projects/{projectId}', options) + command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1::Empty + command.params['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Restores the Project identified by the specified `project_id` (for example, ` + # my-project-123`). You can only use this method for a Project that has a + # lifecycle state of DELETE_REQUESTED. After deletion starts, as indicated by a + # lifecycle state of DELETE_IN_PROGRESS, the Project cannot be restored. The + # caller must have modify permissions for this Project. + # @param [String] project_id + # The project ID (for example, `foo-bar-123`). Required. + # @param [Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest] undelete_project_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}:undelete', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest::Representation + command.request_object = undelete_project_request_object + command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1::Empty + command.params['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the IAM access control policy for the specified Project. Permission is + # denied if the policy or the resource does not exist. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. `resource` is + # usually specified as a path, such as `projects/*project*/zones/*zone*/disks/* + # disk*`. The format for the path specified in this value is resource specific + # and is specified in the `getIamPolicy` documentation. + # @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{resource}:getIamPolicy', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the IAM access control policy for the specified Project. Replaces any + # existing policy. The following constraints apply when using `setIamPolicy()`: + + # Project currently supports only `user:`emailid`` and `serviceAccount:`emailid` + # ` members in a `Binding` of a `Policy`. + To be added as an `owner`, a user + # must be invited via Cloud Platform console and must accept the invitation. + + # Members cannot be added to more than one role in the same policy. + There must + # be at least one owner who has accepted the Terms of Service (ToS) agreement in + # the policy. Calling `setIamPolicy()` to to remove the last ToS-accepted owner + # from the policy will fail. + Calling this method requires enabling the App + # Engine Admin API. Note: Removing service accounts from policies or changing + # their roles can render services completely inoperable. It is important to + # understand how the service account is being used before removing or updating + # its roles. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. `resource` is + # usually specified as a path, such as `projects/*project*/zones/*zone*/disks/* + # disk*`. The format for the path specified in this value is resource specific + # and is specified in the `setIamPolicy` documentation. + # @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{resource}:setIamPolicy', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified Project. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. ` + # resource` is usually specified as a path, such as `projects/*project*/zones/* + # zone*/disks/*disk*`. The format for the path specified in this value is + # resource specific and is specified in the `testIamPermissions` documentation. + # @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{resource}:testIamPermissions', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/cloudresourcemanager_v1beta1.rb b/generated/google/apis/cloudresourcemanager_v1beta1.rb index bb0a91e2d..13a195b6d 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1beta1 VERSION = 'V1beta1' - REVISION = '20160224' + REVISION = '20160225' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/clouduseraccounts_beta.rb b/generated/google/apis/clouduseraccounts_beta.rb index 7414ad66a..28226079d 100644 --- a/generated/google/apis/clouduseraccounts_beta.rb +++ b/generated/google/apis/clouduseraccounts_beta.rb @@ -20,12 +20,13 @@ module Google module Apis # Cloud User Accounts API # - # API for the Google Cloud User Accounts service. + # Creates and manages users and groups for accessing Google Compute Engine + # virtual machines. # # @see https://cloud.google.com/compute/docs/access/user-accounts/api/latest/ module ClouduseraccountsBeta VERSION = 'Beta' - REVISION = '20150924' + REVISION = '20160301' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/clouduseraccounts_beta/classes.rb b/generated/google/apis/clouduseraccounts_beta/classes.rb index 9484802dd..cbd6a6f00 100644 --- a/generated/google/apis/clouduseraccounts_beta/classes.rb +++ b/generated/google/apis/clouduseraccounts_beta/classes.rb @@ -348,8 +348,7 @@ module Google class Operation include Google::Apis::Core::Hashable - # [Output Only] An optional identifier specified by the client when the mutation - # was initiated. Must be unique for all Operation resources in the project. + # [Output Only] Reserved for future use. # Corresponds to the JSON property `clientOperationId` # @return [String] attr_accessor :client_operation_id @@ -359,8 +358,14 @@ module Google # @return [String] attr_accessor :creation_timestamp - # [Output Only] The time that this operation was completed. This is in RFC3339 - # text format. + # [Output Only] A textual description of the operation, which is set when the + # operation is created. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] The time that this operation was completed. This value is in + # RFC3339 text format. # Corresponds to the JSON property `endTime` # @return [String] attr_accessor :end_time @@ -378,23 +383,25 @@ module Google attr_accessor :http_error_message # [Output Only] If the operation fails, this field contains the HTTP error - # message that was returned, such as 404. + # status code that was returned. For example, a 404 means the resource was not + # found. # Corresponds to the JSON property `httpErrorStatusCode` # @return [Fixnum] attr_accessor :http_error_status_code - # [Output Only] Unique identifier for the resource; defined by the server. + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # [Output Only] The time that this operation was requested. This is in RFC3339 - # text format. + # [Output Only] The time that this operation was requested. This value is in + # RFC3339 text format. # Corresponds to the JSON property `insertTime` # @return [String] attr_accessor :insert_time - # [Output Only] Type of the resource. Always compute#operation for Operation + # [Output Only] Type of the resource. Always compute#operation for operation # resources. # Corresponds to the JSON property `kind` # @return [String] @@ -405,22 +412,22 @@ module Google # @return [String] attr_accessor :name - # [Output Only] Type of the operation, such as insert, compute.instanceGroups. - # update, or compute.instanceGroups.delete. + # [Output Only] The type of operation, such as insert, update, or delete, and so + # on. # Corresponds to the JSON property `operationType` # @return [String] attr_accessor :operation_type # [Output Only] An optional progress indicator that ranges from 0 to 100. There # is no requirement that this be linear or support any granularity of operations. - # This should not be used to guess at when the operation will be complete. This + # This should not be used to guess when the operation will be complete. This # number should monotonically increase as the operation progresses. # Corresponds to the JSON property `progress` # @return [Fixnum] attr_accessor :progress - # [Output Only] URL of the region where the operation resides. Only applicable - # for regional resources. + # [Output Only] The URL of the region where the operation resides. Only + # available when performing regional operations. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region @@ -430,14 +437,14 @@ module Google # @return [String] attr_accessor :self_link - # [Output Only] The time that this operation was started by the server. This is - # in RFC3339 text format. + # [Output Only] The time that this operation was started by the server. This + # value is in RFC3339 text format. # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time - # [Output Only] Status of the operation. Can be one of the following: PENDING, - # RUNNING, or DONE. + # [Output Only] The status of the operation, which can be one of the following: + # PENDING, RUNNING, or DONE. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -448,13 +455,13 @@ module Google # @return [String] attr_accessor :status_message - # [Output Only] Unique target ID which identifies a particular incarnation of - # the target. + # [Output Only] The unique target ID, which identifies a specific incarnation of + # the target resource. # Corresponds to the JSON property `targetId` # @return [String] attr_accessor :target_id - # [Output Only] URL of the resource the operation is mutating. + # [Output Only] The URL of the resource that the operation modifies. # Corresponds to the JSON property `targetLink` # @return [String] attr_accessor :target_link @@ -470,7 +477,8 @@ module Google # @return [Array] attr_accessor :warnings - # [Output Only] URL of the zone where the operation resides. + # [Output Only] The URL of the zone where the operation resides. Only available + # when performing per-zone operations. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -483,6 +491,7 @@ module Google def update!(**args) @client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) @end_time = args[:end_time] if args.key?(:end_time) @error = args[:error] if args.key?(:error) @http_error_message = args[:http_error_message] if args.key?(:http_error_message) @@ -533,7 +542,7 @@ module Google # @return [String] attr_accessor :code - # [Output Only] Indicates the field in the request which caused the error. This + # [Output Only] Indicates the field in the request that caused the error. This # property is optional. # Corresponds to the JSON property `location` # @return [String] @@ -561,17 +570,19 @@ module Google class Warning include Google::Apis::Core::Hashable - # [Output Only] The warning type identifier for this warning. + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. # Corresponds to the JSON property `code` # @return [String] attr_accessor :code - # [Output Only] Metadata for this warning in key: value format. + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` # Corresponds to the JSON property `data` # @return [Array] attr_accessor :data - # [Output Only] Optional human-readable details for this warning. + # [Output Only] A human-readable description of the warning code. # Corresponds to the JSON property `message` # @return [String] attr_accessor :message @@ -591,7 +602,13 @@ module Google class Datum include Google::Apis::Core::Hashable - # [Output Only] A key for the warning data. + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). # Corresponds to the JSON property `key` # @return [String] attr_accessor :key @@ -618,12 +635,13 @@ module Google class OperationList include Google::Apis::Core::Hashable - # [Output Only] Unique identifier for the resource; defined by the server. + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # [Output Only] The Operation resources. + # [Output Only] A list of Operation resources. # Corresponds to the JSON property `items` # @return [Array] attr_accessor :items @@ -634,7 +652,11 @@ module Google # @return [String] attr_accessor :kind - # [Output Only] A token used to continue a truncate. + # [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. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token diff --git a/generated/google/apis/clouduseraccounts_beta/representations.rb b/generated/google/apis/clouduseraccounts_beta/representations.rb index 8c6073dd6..be00387e6 100644 --- a/generated/google/apis/clouduseraccounts_beta/representations.rb +++ b/generated/google/apis/clouduseraccounts_beta/representations.rb @@ -236,6 +236,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :client_operation_id, as: 'clientOperationId' property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' property :end_time, as: 'endTime' property :error, as: 'error', class: Google::Apis::ClouduseraccountsBeta::Operation::Error, decorator: Google::Apis::ClouduseraccountsBeta::Operation::Error::Representation diff --git a/generated/google/apis/clouduseraccounts_beta/service.rb b/generated/google/apis/clouduseraccounts_beta/service.rb index 62d412de8..4f26bd4ca 100644 --- a/generated/google/apis/clouduseraccounts_beta/service.rb +++ b/generated/google/apis/clouduseraccounts_beta/service.rb @@ -22,7 +22,8 @@ module Google module ClouduseraccountsBeta # Cloud User Accounts API # - # API for the Google Cloud User Accounts service. + # Creates and manages users and groups for accessing Google Compute Engine + # virtual machines. # # @example # require 'google/apis/clouduseraccounts_beta' @@ -132,18 +133,32 @@ module Google # Project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must be in the format: FIELD_NAME - # COMPARISON_STRING LITERAL_STRING. - # The FIELD_NAME is the name of the field you want to compare. Only atomic field - # types are supported (string, number, boolean). The COMPARISON_STRING must be - # either eq (equals) or ne (not equals). The LITERAL_STRING is the string value - # to filter to. The literal value must be valid for the type of field (string, - # number, boolean). For string fields, the literal value is interpreted as a - # regular expression using RE2 syntax. The literal value must match the entire - # field. - # For example, filter=name ne example-instance. + # expression`. Your `expression` must be in the format: field_name + # comparison_string literal_string. + # The field_name is the name of the field you want to compare. Only atomic field + # types are supported (string, number, boolean). The comparison_string must be + # either eq (equals) or ne (not equals). The literal_string is the string value + # to filter to. The literal value must be valid for the type of field you are + # filtering by (string, number, boolean). For string fields, the literal value + # is interpreted as a regular expression using RE2 syntax. The literal value + # must match the entire field. + # For example, to filter for instances that do not have a name of example- + # instance, you would use filter=name ne example-instance. + # Compute Engine Beta API Only: If you use filtering in the Beta API, you can + # also filter on nested fields. For example, you could filter on instances that + # have set the scheduling.automaticRestart field to true. In particular, use + # filtering on nested fields to take advantage of instance labels to organize + # and filter results based on label values. + # The Beta API also supports filtering on multiple expressions by providing each + # separate expression within parentheses. For example, (scheduling. + # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are + # treated as AND expressions, meaning that resources must match all expressions + # to pass the filters. # @param [Fixnum] max_results - # Maximum count of results to be returned. + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. @@ -154,9 +169,8 @@ module Google # returned first. # Currently, only sorting by name or creationTimestamp desc is supported. # @param [String] page_token - # Specifies a page token to use. Use this parameter if you want to list the next - # page of results. Set pageToken to the nextPageToken returned by a previous - # list request. + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -354,18 +368,32 @@ module Google # Project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must be in the format: FIELD_NAME - # COMPARISON_STRING LITERAL_STRING. - # The FIELD_NAME is the name of the field you want to compare. Only atomic field - # types are supported (string, number, boolean). The COMPARISON_STRING must be - # either eq (equals) or ne (not equals). The LITERAL_STRING is the string value - # to filter to. The literal value must be valid for the type of field (string, - # number, boolean). For string fields, the literal value is interpreted as a - # regular expression using RE2 syntax. The literal value must match the entire - # field. - # For example, filter=name ne example-instance. + # expression`. Your `expression` must be in the format: field_name + # comparison_string literal_string. + # The field_name is the name of the field you want to compare. Only atomic field + # types are supported (string, number, boolean). The comparison_string must be + # either eq (equals) or ne (not equals). The literal_string is the string value + # to filter to. The literal value must be valid for the type of field you are + # filtering by (string, number, boolean). For string fields, the literal value + # is interpreted as a regular expression using RE2 syntax. The literal value + # must match the entire field. + # For example, to filter for instances that do not have a name of example- + # instance, you would use filter=name ne example-instance. + # Compute Engine Beta API Only: If you use filtering in the Beta API, you can + # also filter on nested fields. For example, you could filter on instances that + # have set the scheduling.automaticRestart field to true. In particular, use + # filtering on nested fields to take advantage of instance labels to organize + # and filter results based on label values. + # The Beta API also supports filtering on multiple expressions by providing each + # separate expression within parentheses. For example, (scheduling. + # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are + # treated as AND expressions, meaning that resources must match all expressions + # to pass the filters. # @param [Fixnum] max_results - # Maximum count of results to be returned. + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. @@ -376,9 +404,8 @@ module Google # returned first. # Currently, only sorting by name or creationTimestamp desc is supported. # @param [String] page_token - # Specifies a page token to use. Use this parameter if you want to list the next - # page of results. Set pageToken to the nextPageToken returned by a previous - # list request. + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -512,18 +539,32 @@ module Google # The fully-qualified URL of the virtual machine requesting the views. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must be in the format: FIELD_NAME - # COMPARISON_STRING LITERAL_STRING. - # The FIELD_NAME is the name of the field you want to compare. Only atomic field - # types are supported (string, number, boolean). The COMPARISON_STRING must be - # either eq (equals) or ne (not equals). The LITERAL_STRING is the string value - # to filter to. The literal value must be valid for the type of field (string, - # number, boolean). For string fields, the literal value is interpreted as a - # regular expression using RE2 syntax. The literal value must match the entire - # field. - # For example, filter=name ne example-instance. + # expression`. Your `expression` must be in the format: field_name + # comparison_string literal_string. + # The field_name is the name of the field you want to compare. Only atomic field + # types are supported (string, number, boolean). The comparison_string must be + # either eq (equals) or ne (not equals). The literal_string is the string value + # to filter to. The literal value must be valid for the type of field you are + # filtering by (string, number, boolean). For string fields, the literal value + # is interpreted as a regular expression using RE2 syntax. The literal value + # must match the entire field. + # For example, to filter for instances that do not have a name of example- + # instance, you would use filter=name ne example-instance. + # Compute Engine Beta API Only: If you use filtering in the Beta API, you can + # also filter on nested fields. For example, you could filter on instances that + # have set the scheduling.automaticRestart field to true. In particular, use + # filtering on nested fields to take advantage of instance labels to organize + # and filter results based on label values. + # The Beta API also supports filtering on multiple expressions by providing each + # separate expression within parentheses. For example, (scheduling. + # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are + # treated as AND expressions, meaning that resources must match all expressions + # to pass the filters. # @param [Fixnum] max_results - # Maximum count of results to be returned. + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. @@ -534,9 +575,8 @@ module Google # returned first. # Currently, only sorting by name or creationTimestamp desc is supported. # @param [String] page_token - # Specifies a page token to use. Use this parameter if you want to list the next - # page of results. Set pageToken to the nextPageToken returned by a previous - # list request. + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -737,18 +777,32 @@ module Google # Project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must be in the format: FIELD_NAME - # COMPARISON_STRING LITERAL_STRING. - # The FIELD_NAME is the name of the field you want to compare. Only atomic field - # types are supported (string, number, boolean). The COMPARISON_STRING must be - # either eq (equals) or ne (not equals). The LITERAL_STRING is the string value - # to filter to. The literal value must be valid for the type of field (string, - # number, boolean). For string fields, the literal value is interpreted as a - # regular expression using RE2 syntax. The literal value must match the entire - # field. - # For example, filter=name ne example-instance. + # expression`. Your `expression` must be in the format: field_name + # comparison_string literal_string. + # The field_name is the name of the field you want to compare. Only atomic field + # types are supported (string, number, boolean). The comparison_string must be + # either eq (equals) or ne (not equals). The literal_string is the string value + # to filter to. The literal value must be valid for the type of field you are + # filtering by (string, number, boolean). For string fields, the literal value + # is interpreted as a regular expression using RE2 syntax. The literal value + # must match the entire field. + # For example, to filter for instances that do not have a name of example- + # instance, you would use filter=name ne example-instance. + # Compute Engine Beta API Only: If you use filtering in the Beta API, you can + # also filter on nested fields. For example, you could filter on instances that + # have set the scheduling.automaticRestart field to true. In particular, use + # filtering on nested fields to take advantage of instance labels to organize + # and filter results based on label values. + # The Beta API also supports filtering on multiple expressions by providing each + # separate expression within parentheses. For example, (scheduling. + # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are + # treated as AND expressions, meaning that resources must match all expressions + # to pass the filters. # @param [Fixnum] max_results - # Maximum count of results to be returned. + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. @@ -759,9 +813,8 @@ module Google # returned first. # Currently, only sorting by name or creationTimestamp desc is supported. # @param [String] page_token - # Specifies a page token to use. Use this parameter if you want to list the next - # page of results. Set pageToken to the nextPageToken returned by a previous - # list request. + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index a337649a1..db3d3bb1a 100644 --- a/generated/google/apis/compute_beta.rb +++ b/generated/google/apis/compute_beta.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeBeta VERSION = 'Beta' - REVISION = '20160212' + REVISION = '20160302' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_beta/classes.rb b/generated/google/apis/compute_beta/classes.rb index dadf5ac45..42836ae04 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -95,7 +95,7 @@ module Google # @return [String] attr_accessor :kind - # Name of the resource; provided by the client when the resource is created. The + # Name of the resource. Provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the # name must be 1-63 characters long and match the regular expression [a-z]([-a- # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, @@ -310,7 +310,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -465,7 +465,7 @@ module Google # @return [String] attr_accessor :disk_size_gb - # Storage type of the disk. + # [Deprecated] Storage type of the disk. # Corresponds to the JSON property `diskStorageType` # @return [String] attr_accessor :disk_storage_type @@ -519,7 +519,10 @@ module Google end end - # + # Represents an Autoscaler resource. Autoscalers allow you to automatically + # scale virtual machine instances in managed instance groups according to an + # autoscaling policy that you define. For more information, read Autoscaling + # Groups of Instances. class Autoscaler include Google::Apis::Core::Hashable @@ -545,7 +548,7 @@ module Google # @return [String] attr_accessor :id - # Type of the resource. + # [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -565,8 +568,7 @@ module Google # @return [String] attr_accessor :self_link - # URL of Instance Group Manager or Replica Pool which will be controlled by - # Autoscaler. + # URL of the managed instance group that this autoscaler will scale. # Corresponds to the JSON property `target` # @return [String] attr_accessor :target @@ -609,7 +611,8 @@ module Google # @return [Hash] attr_accessor :items - # Type of resource. + # [Output Only] Type of resource. Always compute#autoscalerAggregatedList for + # aggregated lists of autoscalers. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -642,7 +645,7 @@ module Google end end - # Contains a list of persistent autoscaler resources. + # Contains a list of Autoscaler resources. class AutoscalerList include Google::Apis::Core::Hashable @@ -657,7 +660,8 @@ module Google # @return [Array] attr_accessor :items - # Type of resource. + # [Output Only] Type of resource. Always compute#autoscalerList for lists of + # autoscalers. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -694,13 +698,13 @@ module Google class AutoscalersScopedList include Google::Apis::Core::Hashable - # List of autoscalers contained in this scope. + # [Output Only] List of autoscalers contained in this scope. # Corresponds to the JSON property `autoscalers` # @return [Array] attr_accessor :autoscalers - # Informational warning which replaces the list of autoscalers when the list is - # empty. + # [Output Only] Informational warning which replaces the list of autoscalers + # when the list is empty. # Corresponds to the JSON property `warning` # @return [Google::Apis::ComputeBeta::AutoscalersScopedList::Warning] attr_accessor :warning @@ -715,8 +719,8 @@ module Google @warning = args[:warning] if args.key?(:warning) end - # Informational warning which replaces the list of autoscalers when the list is - # empty. + # [Output Only] Informational warning which replaces the list of autoscalers + # when the list is empty. class Warning include Google::Apis::Core::Hashable @@ -755,7 +759,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -785,11 +789,14 @@ module Google class AutoscalingPolicy include Google::Apis::Core::Hashable - # The number of seconds that the Autoscaler should wait between two succeeding - # changes to the number of virtual machines. You should define an interval that - # is at least as long as the initialization time of a virtual machine and the - # time it may take for replica pool to create the virtual machine. The default - # is 60 seconds. + # The number of seconds that the autoscaler should wait before it starts + # collecting information from a new instance. This prevents the autoscaler from + # collecting information when the instance is initializing, during which the + # collected usage would not be reliable. The default time autoscaler waits is 60 + # seconds. + # Virtual machine initialization times might vary because of numerous factors. + # We recommend that you test how long an instance may take to initialize. To do + # this, create an instance and time the startup process. # Corresponds to the JSON property `coolDownPeriodSec` # @return [Fixnum] attr_accessor :cool_down_period_sec @@ -799,27 +806,26 @@ module Google # @return [Google::Apis::ComputeBeta::AutoscalingPolicyCpuUtilization] attr_accessor :cpu_utilization - # Configuration parameters of autoscaling based on custom metric. + # Configuration parameters of autoscaling based on a custom metric. # Corresponds to the JSON property `customMetricUtilizations` # @return [Array] attr_accessor :custom_metric_utilizations - # Load balancing utilization policy. + # Configuration parameters of autoscaling based on load balancing. # Corresponds to the JSON property `loadBalancingUtilization` # @return [Google::Apis::ComputeBeta::AutoscalingPolicyLoadBalancingUtilization] attr_accessor :load_balancing_utilization - # The maximum number of replicas that the Autoscaler can scale up to. This field - # is required for config to be effective. Maximum number of replicas should be - # not lower than minimal number of replicas. Absolute limit for this value is - # defined in Autoscaler backend. + # The maximum number of instances that the autoscaler can scale up to. This is + # required when creating or updating an autoscaler. The maximum number of + # replicas should not be lower than minimal number of replicas. # Corresponds to the JSON property `maxNumReplicas` # @return [Fixnum] attr_accessor :max_num_replicas - # The minimum number of replicas that the Autoscaler can scale down to. Can't be - # less than 0. If not provided Autoscaler will choose default value depending on - # maximal number of replicas. + # The minimum number of replicas that the autoscaler can scale down to. This + # cannot be less than 0. If not provided, autoscaler will choose a default value + # depending on maximum number of instances allowed. # Corresponds to the JSON property `minNumReplicas` # @return [Fixnum] attr_accessor :min_num_replicas @@ -843,10 +849,15 @@ module Google class AutoscalingPolicyCpuUtilization include Google::Apis::Core::Hashable - # The target utilization that the Autoscaler should maintain. It is represented - # as a fraction of used cores. For example: 6 cores used in 8-core VM are - # represented here as 0.75. Must be a float value between (0, 1]. If not defined, - # the default is 0.8. + # The target CPU utilization that the autoscaler should maintain. Must be a + # float value in the range (0, 1]. If not specified, the default is 0.8. + # If the CPU level is below the target utilization, the autoscaler scales down + # the number of instances until it reaches the minimum number of instances you + # specified or until the average CPU of your instances reaches the target + # utilization. + # If the average CPU is above the target utilization, the autoscaler scales up + # until it reaches the maximum number of instances you specified or until the + # average utilization reaches the target utilization. # Corresponds to the JSON property `utilizationTarget` # @return [Float] attr_accessor :utilization_target @@ -865,22 +876,30 @@ module Google class AutoscalingPolicyCustomMetricUtilization include Google::Apis::Core::Hashable - # Identifier of the metric. It should be a Cloud Monitoring metric. The metric - # can not have negative values. The metric should be an utilization metric ( - # increasing number of VMs handling requests x times should reduce average value - # of the metric roughly x times). For example you could use: compute.googleapis. - # com/instance/network/received_bytes_count. + # The identifier of the Cloud Monitoring metric. The metric cannot have negative + # values and should be a utilization metric, which means that the number of + # virtual machines handling requests should increase or decrease proportionally + # to the metric. The metric must also have a label of compute.googleapis.com/ + # resource_id with the value of the instance's unique ID, although this alone + # does not guarantee that the metric is valid. + # For example, the following is a valid metric: + # compute.googleapis.com/instance/network/received_bytes_count + # The following is not a valid metric because it does not increase or decrease + # based on usage: + # compute.googleapis.com/instance/cpu/reserved_cores # Corresponds to the JSON property `metric` # @return [String] attr_accessor :metric - # Target value of the metric which Autoscaler should maintain. Must be a + # Target value of the metric which autoscaler should maintain. Must be a # positive value. # Corresponds to the JSON property `utilizationTarget` # @return [Float] attr_accessor :utilization_target - # Defines type in which utilization_target is expressed. + # Defines how target utilization value is expressed for a Cloud Monitoring + # metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. If not specified, + # the default is GAUGE. # Corresponds to the JSON property `utilizationTargetType` # @return [String] attr_accessor :utilization_target_type @@ -897,16 +916,13 @@ module Google end end - # Load balancing utilization policy. + # Configuration parameters of autoscaling based on load balancing. class AutoscalingPolicyLoadBalancingUtilization include Google::Apis::Core::Hashable - # Fraction of backend capacity utilization (set in HTTP load balancing - # configuration) that Autoscaler should maintain. Must be a positive float value. - # If not defined, the default is 0.8. For example if your maxRatePerInstance - # capacity (in HTTP Load Balancing configuration) is set at 10 and you would - # like to keep number of instances such that each instance receives 7 QPS on - # average, set this to 0.7. + # Fraction of backend capacity utilization (set in HTTP(s) load balancing + # configuration) that autoscaler should maintain. Must be a positive float value. + # If not defined, the default is 0.8. # Corresponds to the JSON property `utilizationTarget` # @return [Float] attr_accessor :utilization_target @@ -1015,6 +1031,12 @@ module Google # @return [String] attr_accessor :description + # If true, enable Cloud CDN for this BackendService. + # Corresponds to the JSON property `enableCDN` + # @return [Boolean] + attr_accessor :enable_cdn + alias_method :enable_cdn?, :enable_cdn + # Fingerprint of this resource. A hash of the contents stored in this object. # This field is used in optimistic locking. This field will be ignored when # inserting a BackendService. An up-to-date fingerprint must be provided in @@ -1090,6 +1112,7 @@ module Google @backends = args[:backends] if args.key?(:backends) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) + @enable_cdn = args[:enable_cdn] if args.key?(:enable_cdn) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @health_checks = args[:health_checks] if args.key?(:health_checks) @id = args[:id] if args.key?(:id) @@ -1178,6 +1201,25 @@ module Google end end + # + class CacheInvalidationRule + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `path` + # @return [String] + attr_accessor :path + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @path = args[:path] if args.key?(:path) + end + end + # Represents a customer-supplied encryption key class CustomerEncryptionKey include Google::Apis::Core::Hashable @@ -1301,6 +1343,23 @@ module Google # @return [String] attr_accessor :kind + # A fingerprint for the labels being applied to this disk, which is essentially + # a hash of the labels set used for optimistic locking. The fingerprint is + # initially generated by Compute Engine and changes after every request to + # modify or update metadata. You must always provide an up-to-date fingerprint + # hash in order to update or change labels. + # To see the latest fingerprint, make get() request to the disk. + # Corresponds to the JSON property `labelFingerprint` + # @return [String] + attr_accessor :label_fingerprint + + # Labels to apply to this disk. These can be later modified by the setLabels + # method. Each label key & value must comply with RFC1035. Label values may be + # empty. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + # [Output Only] Last attach timestamp in RFC3339 text format. # Corresponds to the JSON property `lastAttachTimestamp` # @return [String] @@ -1316,7 +1375,7 @@ module Google # @return [Array] attr_accessor :licenses - # Name of the resource; provided by the client when the resource is created. The + # Name of the resource. Provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the # name must be 1-63 characters long and match the regular expression [a-z]([-a- # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, @@ -1448,6 +1507,8 @@ module Google @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) + @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) + @labels = args[:labels] if args.key?(:labels) @last_attach_timestamp = args[:last_attach_timestamp] if args.key?(:last_attach_timestamp) @last_detach_timestamp = args[:last_detach_timestamp] if args.key?(:last_detach_timestamp) @licenses = args[:licenses] if args.key?(:licenses) @@ -1802,7 +1863,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -1912,7 +1973,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -2387,7 +2448,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -2413,6 +2474,32 @@ module Google end end + # + class GlobalSetLabelsRequest + include Google::Apis::Core::Hashable + + # Fingerprint of the previous set of labels for this resource, used to detect + # conflicts. + # Corresponds to the JSON property `labelFingerprint` + # @return [String] + attr_accessor :label_fingerprint + + # The new labels for the resource. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) + @labels = args[:labels] if args.key?(:labels) + end + end + # A full or valid partial URL to a health check. For example, the following are # valid URLs: # - https://www.googleapis.com/compute/beta/projects/project-id/global/ @@ -2868,6 +2955,23 @@ module Google # @return [String] attr_accessor :kind + # A fingerprint for the labels being applied to this image, which is essentially + # a hash of the labels set used for optimistic locking. The fingerprint is + # initially generated by Compute Engine and changes after every request to + # modify or update metadata. You must always provide an up-to-date fingerprint + # hash in order to update or change labels. + # To see the latest fingerprint, make get() request to retrieve the image. + # Corresponds to the JSON property `labelFingerprint` + # @return [String] + attr_accessor :label_fingerprint + + # Labels to apply to this image. These can be later modified by the setLabels + # method. Each label key & value must comply with RFC1035. Label values may be + # empty. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + # Any applicable publicly visible licenses. # Corresponds to the JSON property `licenses` # @return [Array] @@ -2945,6 +3049,8 @@ module Google @id = args[:id] if args.key?(:id) @image_encryption_key = args[:image_encryption_key] if args.key?(:image_encryption_key) @kind = args[:kind] if args.key?(:kind) + @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) + @labels = args[:labels] if args.key?(:labels) @licenses = args[:licenses] if args.key?(:licenses) @name = args[:name] if args.key?(:name) @raw_disk = args[:raw_disk] if args.key?(:raw_disk) @@ -3920,7 +4026,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -4193,7 +4299,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -4604,7 +4710,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -4970,7 +5076,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -5107,7 +5213,7 @@ module Google # @return [String] attr_accessor :code - # [Output Only] Indicates the field in the request which caused the error. This + # [Output Only] Indicates the field in the request that caused the error. This # property is optional. # Corresponds to the JSON property `location` # @return [String] @@ -5485,7 +5591,7 @@ module Google # @return [String] attr_accessor :insert_time - # [Output Only] Type of the resource. Always compute#operation for Operation + # [Output Only] Type of the resource. Always compute#operation for operation # resources. # Corresponds to the JSON property `kind` # @return [String] @@ -5626,7 +5732,7 @@ module Google # @return [String] attr_accessor :code - # [Output Only] Indicates the field in the request which caused the error. This + # [Output Only] Indicates the field in the request that caused the error. This # property is optional. # Corresponds to the JSON property `location` # @return [String] @@ -5689,7 +5795,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -5878,7 +5984,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -5995,6 +6101,11 @@ module Google # @return [String] attr_accessor :creation_timestamp + # [Output Only] Default service account used by VMs running in this project. + # Corresponds to the JSON property `defaultServiceAccount` + # @return [String] + attr_accessor :default_service_account + # An optional textual description of the resource. # Corresponds to the JSON property `description` # @return [String] @@ -6047,6 +6158,7 @@ module Google def update!(**args) @common_instance_metadata = args[:common_instance_metadata] if args.key?(:common_instance_metadata) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @default_service_account = args[:default_service_account] if args.key?(:default_service_account) @description = args[:description] if args.key?(:description) @enabled_features = args[:enabled_features] if args.key?(:enabled_features) @id = args[:id] if args.key?(:id) @@ -6231,7 +6343,7 @@ module Google end end - # Represents a Routes resource. A route specifies how certain packets should be + # Represents a Route resource. A route specifies how certain packets should be # handled by the network. Routes are associated with instances by tags and the # set of routes for a particular instance is called its routing table. # For each packet leaving a instance, the system searches that instance's @@ -6239,7 +6351,7 @@ module Google # destination IP address, preferring smaller or more specific ranges over larger # ones. If there is a tie, the system selects the route with the smallest # priority value. If there is still a tie, it uses the layer three and four - # packet headers to select just one of the remaining matching Routes. The packet + # packet headers to select just one of the remaining matching routes. The packet # is then forwarded as specified by the nextHop field of the winning route - # either to another instance destination, a instance gateway or a Google Compute # Engine-operated gateway. @@ -6275,7 +6387,7 @@ module Google # @return [String] attr_accessor :kind - # Name of the resource; provided by the client when the resource is created. The + # Name of the resource. Provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the # name must be 1-63 characters long and match the regular expression [a-z]([-a- # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, @@ -6406,7 +6518,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -6432,7 +6544,7 @@ module Google end end - # Contains a list of route resources. + # Contains a list of Route resources. class RouteList include Google::Apis::Core::Hashable @@ -6521,7 +6633,11 @@ module Google attr_accessor :kind # Name of the resource. Provided by the client when the resource is created. The - # name must be 1-63 characters long and comply with RFC1035. + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression [a-z]([-a- + # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -6561,7 +6677,7 @@ module Google end end - # Contains a list of RoutersScopedList. + # Contains a list of routers. class RouterAggregatedList include Google::Apis::Core::Hashable @@ -6571,7 +6687,7 @@ module Google # @return [String] attr_accessor :id - # A map of scoped Router lists. + # A map of scoped router lists. # Corresponds to the JSON property `items` # @return [Hash] attr_accessor :items @@ -6613,8 +6729,8 @@ module Google class RouterBgp include Google::Apis::Core::Hashable - # Local BGP Autonomous System Number (ASN) Can be a constant public ASN value - # for google, or a customer-specified private ASN. In either case, the value + # Local BGP Autonomous System Number (ASN). Can be a constant public ASN value + # for Google, or a customer-specified private ASN. In either case, the value # will be fixed for this router resource. All VPN tunnels that link to this # router will have the same local ASN. # Corresponds to the JSON property `asn` @@ -6644,17 +6760,17 @@ module Google # @return [Fixnum] attr_accessor :advertised_route_priority - # Name of the interface it is associated with. + # Name of the interface the BGP peer is associated with. # Corresponds to the JSON property `interfaceName` # @return [String] attr_accessor :interface_name - # IP address of the interface inside Google cloud. + # IP address of the interface inside Google Cloud Platform. # Corresponds to the JSON property `ipAddress` # @return [String] attr_accessor :ip_address - # Name of this BGP Peer. The name must be 1-63 characters long and comply with + # Name of this BGP peer. The name must be 1-63 characters long and comply with # RFC1035. # Corresponds to the JSON property `name` # @return [String] @@ -6691,8 +6807,8 @@ module Google class RouterInterface include Google::Apis::Core::Hashable - # IP address and range of the interface. The value should be a CIDR formatted - # string, for example: 169.254.0.1/30. NOTE: Do NOT trucate address, as it + # IP address and range of the interface. The value should be a CIDR-formatted + # string, for example: 169.254.0.1/30. NOTE: Do NOT truncate address, as it # represents IP address of interface. # Corresponds to the JSON property `ipRange` # @return [String] @@ -6774,7 +6890,7 @@ module Google class RouterStatus include Google::Apis::Core::Hashable - # Best routes for this Router. + # Best routes for this router. # Corresponds to the JSON property `bestRoutes` # @return [Array] attr_accessor :best_routes @@ -6805,7 +6921,7 @@ module Google class RouterStatusBgpPeerStatus include Google::Apis::Core::Hashable - # Routes that were advertised to the remote BgpPeer + # Routes that were advertised to the remote BGP peer # Corresponds to the JSON property `advertisedRoutes` # @return [Array] attr_accessor :advertised_routes @@ -6815,12 +6931,12 @@ module Google # @return [String] attr_accessor :ip_address - # URL of the VPN tunnel that this BgpPeer controls. + # URL of the VPN tunnel that this BGP peer controls. # Corresponds to the JSON property `linkedVpnTunnel` # @return [String] attr_accessor :linked_vpn_tunnel - # Name of this BgpPeer which is unique within the Router resource. + # Name of this BGP peer. Unique within the routes resource. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -6835,22 +6951,27 @@ module Google # @return [String] attr_accessor :peer_ip_address - # BGP state as specified in RFC-1771. + # BGP state as specified in RFC1771. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state - # Status of the BgpPeer: `UP, DOWN` + # Status of the BGP peer: `UP, DOWN` # Corresponds to the JSON property `status` # @return [String] attr_accessor :status - # Time this session has been up. Format: 1 second < uptime < 1 day = "23:59:59" - # 1 day <= uptime < 1 week = "6d:23h:59m" 1 week <= uptime = "123w:6d:23h" + # Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, + # 59 minutes, 59 seconds # Corresponds to the JSON property `uptime` # @return [String] attr_accessor :uptime + # Time this session has been up, in seconds. Format: 145 + # Corresponds to the JSON property `uptimeSeconds` + # @return [String] + attr_accessor :uptime_seconds + def initialize(**args) update!(**args) end @@ -6866,6 +6987,7 @@ module Google @state = args[:state] if args.key?(:state) @status = args[:status] if args.key?(:status) @uptime = args[:uptime] if args.key?(:uptime) + @uptime_seconds = args[:uptime_seconds] if args.key?(:uptime_seconds) end end @@ -6898,7 +7020,7 @@ module Google class RoutersScopedList include Google::Apis::Core::Hashable - # List of Routers contained in this scope. + # List of routers contained in this scope. # Corresponds to the JSON property `routers` # @return [Array] attr_accessor :routers @@ -6959,7 +7081,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -7039,11 +7161,25 @@ module Google # @return [String] attr_accessor :kind + # [Output Only] The position of the next byte of content from the serial console + # output. Use this value in the next request as the start parameter. + # Corresponds to the JSON property `next` + # @return [String] + attr_accessor :next + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link + # [Output Only] The starting byte position of the output that was returned. This + # should match the start parameter sent with the request. If the serial console + # output exceeds the size of the buffer, older output will be overwritten by + # newer content and the start values will be mismatched. + # Corresponds to the JSON property `start` + # @return [String] + attr_accessor :start + def initialize(**args) update!(**args) end @@ -7052,7 +7188,9 @@ module Google def update!(**args) @contents = args[:contents] if args.key?(:contents) @kind = args[:kind] if args.key?(:kind) + @next = args[:next] if args.key?(:next) @self_link = args[:self_link] if args.key?(:self_link) + @start = args[:start] if args.key?(:start) end end @@ -7113,6 +7251,23 @@ module Google # @return [String] attr_accessor :kind + # A fingerprint for the labels being applied to this snapshot, which is + # essentially a hash of the labels set used for optimistic locking. The + # fingerprint is initially generated by Compute Engine and changes after every + # request to modify or update metadata. You must always provide an up-to-date + # fingerprint hash in order to update or change labels. + # To see the latest fingerprint, make get() request to the snapshot. + # Corresponds to the JSON property `labelFingerprint` + # @return [String] + attr_accessor :label_fingerprint + + # Labels to apply to this snapshot. These can be later modified by the setLabels + # method. Each label key & value must comply with RFC1035. Label values may be + # empty. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + # [Output Only] A list of public visible licenses that apply to this snapshot. # This can be because the original image had licenses attached (such as a # Windows image). @@ -7189,6 +7344,8 @@ module Google @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) + @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) + @labels = args[:labels] if args.key?(:labels) @licenses = args[:licenses] if args.key?(:licenses) @name = args[:name] if args.key?(:name) @self_link = args[:self_link] if args.key?(:self_link) @@ -7618,7 +7775,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -7702,7 +7859,7 @@ module Google # @return [String] attr_accessor :kind - # Name of the resource; provided by the client when the resource is created. The + # Name of the resource. Provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the # name must be 1-63 characters long and match the regular expression [a-z]([-a- # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, @@ -7792,8 +7949,8 @@ module Google class TargetHttpsProxiesSetSslCertificatesRequest include Google::Apis::Core::Hashable - # New set of URLs to SslCertificate resources to associate with this - # TargetHttpProxy. Currently exactly one SSL certificate must be specified. + # New set of SslCertificate resources to associate with this TargetHttpsProxy + # resource. Currently exactly one SslCertificate resource must be specified. # Corresponds to the JSON property `sslCertificates` # @return [Array] attr_accessor :ssl_certificates @@ -7829,7 +7986,7 @@ module Google # @return [String] attr_accessor :id - # [Output Only] Type of the resource. Always compute#targetHttpsProxy for target + # [Output Only] Type of resource. Always compute#targetHttpsProxy for target # HTTPS proxies. # Corresponds to the JSON property `kind` # @return [String] @@ -7899,7 +8056,8 @@ module Google # @return [Array] attr_accessor :items - # Type of resource. + # Type of resource. Always compute#targetHttpsProxyList for lists of target + # HTTPS proxies. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -8176,7 +8334,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -8597,7 +8755,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -8676,7 +8834,7 @@ module Google # @return [String] attr_accessor :kind - # Name of the resource; provided by the client when the resource is created. The + # Name of the resource. Provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the # name must be 1-63 characters long and match the regular expression [a-z]([-a- # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, @@ -8896,7 +9054,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -8959,6 +9117,45 @@ module Google end end + # + class TestPermissionsRequest + include Google::Apis::Core::Hashable + + # The set of permissions to check for the 'resource'. Permissions with wildcards + # (such as '*' or 'storage.*') are not allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + + # + class TestPermissionsResponse + include Google::Apis::Core::Hashable + + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + # A UrlMap resource. This resource defines the mapping from URL to the # BackendService resource, based on the "longest-match" of the URL's host and # path. @@ -9313,7 +9510,7 @@ module Google # @return [Array] attr_accessor :local_traffic_selector - # Name of the resource; provided by the client when the resource is created. The + # Name of the resource. Provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the # name must be 1-63 characters long and match the regular expression [a-z]([-a- # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, @@ -9333,7 +9530,7 @@ module Google # @return [String] attr_accessor :region - # URL of Router resource to be used for dynamic routing. + # URL of router resource to be used for dynamic routing. # Corresponds to the JSON property `router` # @return [String] attr_accessor :router @@ -9359,8 +9556,8 @@ module Google # @return [String] attr_accessor :status - # URL of the VPN gateway to which this VPN tunnel is associated. Provided by the - # client when the VPN tunnel is created. + # URL of the VPN gateway with which this VPN tunnel is associated. Provided by + # the client when the VPN tunnel is created. # Corresponds to the JSON property `targetVpnGateway` # @return [String] attr_accessor :target_vpn_gateway @@ -9551,7 +9748,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -9736,6 +9933,32 @@ module Google @self_link = args[:self_link] if args.key?(:self_link) end end + + # + class ZoneSetLabelsRequest + include Google::Apis::Core::Hashable + + # Fingerprint of the previous set of labels for this resource, used to detect + # conflicts. + # Corresponds to the JSON property `labelFingerprint` + # @return [String] + attr_accessor :label_fingerprint + + # The new labels for the resource. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) + @labels = args[:labels] if args.key?(:labels) + end + end end end end diff --git a/generated/google/apis/compute_beta/representations.rb b/generated/google/apis/compute_beta/representations.rb index ce10be2fc..f25f4446a 100644 --- a/generated/google/apis/compute_beta/representations.rb +++ b/generated/google/apis/compute_beta/representations.rb @@ -160,6 +160,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CacheInvalidationRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CustomerEncryptionKey class Representation < Google::Apis::Core::JsonRepresentation; end @@ -304,6 +310,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GlobalSetLabelsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class HealthCheckReference class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1162,6 +1174,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TestPermissionsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestPermissionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UrlMap class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1264,6 +1288,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ZoneSetLabelsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AccessConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1501,6 +1531,7 @@ module Google property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' + property :enable_cdn, as: 'enableCDN' property :fingerprint, :base64 => true, as: 'fingerprint' collection :health_checks, as: 'healthChecks' property :id, as: 'id' @@ -1535,6 +1566,13 @@ module Google end end + class CacheInvalidationRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :path, as: 'path' + end + end + class CustomerEncryptionKey # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1564,6 +1602,8 @@ module Google property :id, as: 'id' property :kind, as: 'kind' + property :label_fingerprint, :base64 => true, as: 'labelFingerprint' + hash :labels, as: 'labels' property :last_attach_timestamp, as: 'lastAttachTimestamp' property :last_detach_timestamp, as: 'lastDetachTimestamp' collection :licenses, as: 'licenses' @@ -1822,6 +1862,14 @@ module Google end end + class GlobalSetLabelsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :label_fingerprint, :base64 => true, as: 'labelFingerprint' + hash :labels, as: 'labels' + end + end + class HealthCheckReference # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1924,6 +1972,8 @@ module Google property :image_encryption_key, as: 'imageEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation property :kind, as: 'kind' + property :label_fingerprint, :base64 => true, as: 'labelFingerprint' + hash :labels, as: 'labels' collection :licenses, as: 'licenses' property :name, as: 'name' property :raw_disk, as: 'rawDisk', class: Google::Apis::ComputeBeta::Image::RawDisk, decorator: Google::Apis::ComputeBeta::Image::RawDisk::Representation @@ -2714,6 +2764,7 @@ module Google property :common_instance_metadata, as: 'commonInstanceMetadata', class: Google::Apis::ComputeBeta::Metadata, decorator: Google::Apis::ComputeBeta::Metadata::Representation property :creation_timestamp, as: 'creationTimestamp' + property :default_service_account, as: 'defaultServiceAccount' property :description, as: 'description' collection :enabled_features, as: 'enabledFeatures' property :id, as: 'id' @@ -2922,6 +2973,7 @@ module Google property :state, as: 'state' property :status, as: 'status' property :uptime, as: 'uptime' + property :uptime_seconds, as: 'uptimeSeconds' end end @@ -2976,7 +3028,9 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :contents, as: 'contents' property :kind, as: 'kind' + property :next, as: 'next' property :self_link, as: 'selfLink' + property :start, as: 'start' end end @@ -2996,6 +3050,8 @@ module Google property :disk_size_gb, as: 'diskSizeGb' property :id, as: 'id' property :kind, as: 'kind' + property :label_fingerprint, :base64 => true, as: 'labelFingerprint' + hash :labels, as: 'labels' collection :licenses, as: 'licenses' property :name, as: 'name' property :self_link, as: 'selfLink' @@ -3447,6 +3503,20 @@ module Google end end + class TestPermissionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class TestPermissionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + class UrlMap # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3644,6 +3714,14 @@ module Google property :self_link, as: 'selfLink' end end + + class ZoneSetLabelsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :label_fingerprint, :base64 => true, as: 'labelFingerprint' + hash :labels, as: 'labels' + end + end end end end diff --git a/generated/google/apis/compute_beta/service.rb b/generated/google/apis/compute_beta/service.rb index 29906dff3..ac1185236 100644 --- a/generated/google/apis/compute_beta/service.rb +++ b/generated/google/apis/compute_beta/service.rb @@ -66,7 +66,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -76,7 +76,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -135,7 +135,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] address # Name of the address resource to delete. # @param [String] fields @@ -176,7 +176,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] address # Name of the address resource to return. # @param [String] fields @@ -218,7 +218,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [Google::Apis::ComputeBeta::Address] address_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -259,7 +259,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` # expression`. Your `expression` must be in the format: field_name @@ -271,7 +271,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -281,7 +281,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -337,6 +337,50 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_address_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/addresses/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves an aggregated list of autoscalers. # @param [String] project # Project ID for this request. @@ -351,7 +395,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -361,7 +405,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -416,13 +460,13 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the specified autoscaler resource. + # Deletes the specified autoscaler. # @param [String] project # Project ID for this request. # @param [String] zone - # Name of the zone scoping this request. + # Name of the zone for this request. # @param [String] autoscaler - # Name of the persistent autoscaler resource to delete. + # Name of the autoscaler to delete. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -457,13 +501,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified autoscaler resource. + # Returns the specified autoscaler resource. Get a list of available autoscalers + # by making a list() request. # @param [String] project # Project ID for this request. # @param [String] zone - # Name of the zone scoping this request. + # Name of the zone for this request. # @param [String] autoscaler - # Name of the persistent autoscaler resource to return. + # Name of the autoscaler to return. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -498,12 +543,12 @@ module Google execute_or_queue_command(command, &block) end - # Creates an autoscaler resource in the specified project using the data - # included in the request. + # Creates an autoscaler in the specified project using the data included in the + # request. # @param [String] project # Project ID for this request. # @param [String] zone - # Name of the zone scoping this request. + # Name of the zone for this request. # @param [Google::Apis::ComputeBeta::Autoscaler] autoscaler_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -540,11 +585,11 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves a list of autoscaler resources contained within the specified zone. + # Retrieves a list of autoscalers contained within the specified zone. # @param [String] project # Project ID for this request. # @param [String] zone - # Name of the zone scoping this request. + # Name of the zone for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` # expression`. Your `expression` must be in the format: field_name @@ -556,7 +601,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -566,7 +611,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -622,14 +667,14 @@ module Google execute_or_queue_command(command, &block) end - # Updates an autoscaler resource in the specified project using the data - # included in the request. This method supports patch semantics. + # Updates an autoscaler in the specified project using the data included in the + # request. This method supports patch semantics. # @param [String] project # Project ID for this request. # @param [String] zone - # Name of the zone scoping this request. + # Name of the zone for this request. # @param [String] autoscaler - # Name of the autoscaler resource to update. + # Name of the autoscaler to update. # @param [Google::Apis::ComputeBeta::Autoscaler] autoscaler_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -667,15 +712,59 @@ module Google execute_or_queue_command(command, &block) end - # Updates an autoscaler resource in the specified project using the data - # included in the request. + # Returns permissions that a caller has on the specified resource. # @param [String] project # Project ID for this request. # @param [String] zone - # Name of the zone scoping this request. + # The name of the zone for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_autoscaler_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/autoscalers/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates an autoscaler in the specified project using the data included in the + # request. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. # @param [Google::Apis::ComputeBeta::Autoscaler] autoscaler_object # @param [String] autoscaler - # Name of the autoscaler resource to update. + # Name of the autoscaler to update. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -750,7 +839,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified BackendService resource. + # Returns the specified BackendService resource. Get a list of available backend + # services by making a list() request. # @param [String] project # Project ID for this request. # @param [String] backend_service @@ -884,7 +974,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -894,7 +984,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -993,6 +1083,47 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_backend_service_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/backendServices/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Updates the entire content of the BackendService resource. There are several # restrictions and guidelines to keep in mind when updating a backend service. # Read Restrictions and Guidelines for more information. @@ -1050,7 +1181,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -1060,7 +1191,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -1115,7 +1246,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified disk type. + # Returns the specified disk type. Get a list of available disk types by making + # a list() request. # @param [String] project # Project ID for this request. # @param [String] zone @@ -1172,7 +1304,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -1182,7 +1314,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -1252,7 +1384,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -1262,7 +1394,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -1404,7 +1536,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns a specified persistent disk. + # Returns a specified persistent disk. Get a list of available persistent disks + # by making a list() request. # @param [String] project # Project ID for this request. # @param [String] zone @@ -1508,7 +1641,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -1518,7 +1651,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -1618,6 +1751,94 @@ module Google execute_or_queue_command(command, &block) end + # Sets the labels on the target disk. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::ZoneSetLabelsRequest] zone_set_labels_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_disk_labels(project, zone, resource, zone_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/disks/{resource}/setLabels', options) + command.request_representation = Google::Apis::ComputeBeta::ZoneSetLabelsRequest::Representation + command.request_object = zone_set_labels_request_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_disk_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/disks/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified firewall. # @param [String] project # Project ID for this request. @@ -1747,7 +1968,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -1757,7 +1978,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -1854,6 +2075,47 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_firewall_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/firewalls/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Updates the specified firewall rule with the data included in the request. # @param [String] project # Project ID for this request. @@ -1909,7 +2171,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -1919,7 +2181,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -2115,7 +2377,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -2125,7 +2387,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -2226,6 +2488,50 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_forwarding_rule_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/forwardingRules/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified address resource. # @param [String] project # Project ID for this request. @@ -2264,7 +2570,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified address resource. + # Returns the specified address resource. Get a list of available addresses by + # making a list() request. # @param [String] project # Project ID for this request. # @param [String] address @@ -2355,7 +2662,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -2365,7 +2672,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -2420,6 +2727,47 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_global_address_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/addresses/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified ForwardingRule resource. # @param [String] project # Project ID for this request. @@ -2458,7 +2806,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified ForwardingRule resource. + # Returns the specified ForwardingRule resource. Get a list of available + # forwarding rules by making a list() request. # @param [String] project # Project ID for this request. # @param [String] forwarding_rule @@ -2550,7 +2899,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -2560,7 +2909,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -2657,6 +3006,47 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_global_forwarding_rule_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/forwardingRules/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves an aggregated list of all operations. # @param [String] project # Project ID for this request. @@ -2671,7 +3061,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -2681,7 +3071,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -2772,7 +3162,8 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves the specified Operations resource. + # Retrieves the specified Operations resource. Get a list of operations by + # making a list() request. # @param [String] project # Project ID for this request. # @param [String] operation @@ -2824,7 +3215,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -2834,7 +3225,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -2927,7 +3318,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified HttpHealthCheck resource. + # Returns the specified HttpHealthCheck resource. Get a list of available HTTP + # health checks by making a list() request. # @param [String] project # Project ID for this request. # @param [String] http_health_check @@ -3019,7 +3411,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -3029,7 +3421,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -3126,6 +3518,47 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_http_health_check_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/httpHealthChecks/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Updates a HttpHealthCheck resource in the specified project using the data # included in the request. # @param [String] project @@ -3206,7 +3639,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified HttpsHealthCheck resource. + # Returns the specified HttpsHealthCheck resource. Get a list of available HTTPS + # health checks by making a list() request. # @param [String] project # Project ID for this request. # @param [String] https_health_check @@ -3298,7 +3732,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -3308,7 +3742,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -3405,6 +3839,47 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_https_health_check_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/httpsHealthChecks/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Updates a HttpsHealthCheck resource in the specified project using the data # included in the request. # @param [String] project @@ -3527,7 +4002,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified image. + # Returns the specified image. Get a list of available images by making a list() + # request. # @param [String] project # Project ID for this request. # @param [String] image @@ -3662,7 +4138,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -3672,7 +4148,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -3727,6 +4203,88 @@ module Google execute_or_queue_command(command, &block) end + # Sets the labels on the target image. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::GlobalSetLabelsRequest] global_set_labels_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_image_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/images/{resource}/setLabels', options) + command.request_representation = Google::Apis::ComputeBeta::GlobalSetLabelsRequest::Representation + command.request_object = global_set_labels_request_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_image_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/images/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Schedules a group action to remove the specified instances from the managed # instance group. Abandoning an instance does not delete the instance, but it # does remove the instance from any target pools that are applied by the managed @@ -3792,7 +4350,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -3802,7 +4360,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -3950,7 +4508,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns all of the details about the specified managed instance group. + # Returns all of the details about the specified managed instance group. Get a + # list of available managed instance groups by making a list() request. # @param [String] project # Project ID for this request. # @param [String] zone @@ -4054,7 +4613,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -4064,7 +4623,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -4269,7 +4828,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] zone - # The URL of the zone where the managed instance group is located. + # The name of the zone where the managed instance group is located. # @param [String] instance_group_manager # The name of the instance group manager. # @param [Google::Apis::ComputeBeta::InstanceGroupManagersSetAutoHealingRequest] instance_group_managers_set_auto_healing_request_object @@ -4404,6 +4963,50 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_instance_group_manager_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Adds a list of instances to the specified instance group. All of the instances # in the instance group must be in the same network/subnetwork. Read Adding # instances for more information. @@ -4464,7 +5067,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -4474,7 +5077,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -4572,7 +5175,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified instance group resource. + # Returns the specified instance group. Get a list of available instance groups + # by making a list() request. # @param [String] project # Project ID for this request. # @param [String] zone @@ -4672,7 +5276,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -4682,7 +5286,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -4758,7 +5362,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -4768,7 +5372,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -4916,6 +5520,50 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_instance_group_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified instance template. If you delete an instance template # that is being referenced from another instance group, the instance group will # not be able to create or recreate virtual machine instances. Deleting an @@ -4957,7 +5605,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified instance template resource. + # Returns the specified instance template. Get a list of available instance + # templates by making a list() request. # @param [String] project # Project ID for this request. # @param [String] instance_template @@ -5051,7 +5700,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -5061,7 +5710,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -5116,6 +5765,47 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_instance_template_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/instanceTemplates/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Adds an access config to an instance's network interface. # @param [String] project # Project ID for this request. @@ -5177,7 +5867,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -5187,7 +5877,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -5419,7 +6109,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified Instance resource. + # Returns the specified Instance resource. Get a list of available instances by + # making a list() request. # @param [String] project # Project ID for this request. # @param [String] zone @@ -5469,6 +6160,10 @@ module Google # Name of the instance scoping this request. # @param [Fixnum] port # Specifies which COM or serial port to retrieve data from. + # @param [String] start + # For the initial request, leave this field unspecified. For subsequent calls, + # this field should be set to the next value that was returned in the previous + # call. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5490,7 +6185,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_instance_serial_port_output(project, zone, instance, port: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_instance_serial_port_output(project, zone, instance, port: nil, start: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/serialPort', options) command.response_representation = Google::Apis::ComputeBeta::SerialPortOutput::Representation command.response_class = Google::Apis::ComputeBeta::SerialPortOutput @@ -5498,6 +6193,7 @@ module Google command.params['zone'] = zone unless zone.nil? command.params['instance'] = instance unless instance.nil? command.query['port'] = port unless port.nil? + command.query['start'] = start unless start.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -5562,7 +6258,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -5572,7 +6268,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -6025,7 +6721,52 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified license resource. + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_instance_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/instances/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified License resource. Get a list of available licenses by + # making a list() request. # @param [String] project # Project ID for this request. # @param [String] license @@ -6077,7 +6818,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -6087,7 +6828,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -6142,7 +6883,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified machine type. + # Returns the specified machine type. Get a list of available machine types by + # making a list() request. # @param [String] project # Project ID for this request. # @param [String] zone @@ -6199,7 +6941,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -6209,7 +6951,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -6303,7 +7045,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified network. + # Returns the specified network. Get a list of available networks by making a + # list() request. # @param [String] project # Project ID for this request. # @param [String] network @@ -6394,7 +7137,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -6404,7 +7147,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -6459,7 +7202,48 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified project resource. + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_network_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/networks/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified Project resource. # @param [String] project # Project ID for this request. # @param [String] fields @@ -6669,7 +7453,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -6679,7 +7463,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -6735,7 +7519,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified region resource. + # Returns the specified Region resource. Get a list of available regions by + # making a list() request. # @param [String] project # Project ID for this request. # @param [String] region @@ -6787,7 +7572,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -6797,7 +7582,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -6852,7 +7637,7 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves an aggregated list of Routers. + # Retrieves an aggregated list of routers. # @param [String] project # Project ID for this request. # @param [String] filter @@ -6866,7 +7651,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -6876,7 +7661,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -6935,7 +7720,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] router # Name of the Router resource to delete. # @param [String] fields @@ -6972,11 +7757,12 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified Router resource. + # Returns the specified Router resource. Get a list of available routers by + # making a list() request. # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] router # Name of the Router resource to return. # @param [String] fields @@ -7013,11 +7799,11 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves runtime information of the specified Router. + # Retrieves runtime information of the specified router. # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] router # Name of the Router resource to query. # @param [String] fields @@ -7059,7 +7845,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [Google::Apis::ComputeBeta::Router] router_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -7100,7 +7886,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` # expression`. Your `expression` must be in the format: field_name @@ -7112,7 +7898,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -7122,7 +7908,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -7178,12 +7964,12 @@ module Google execute_or_queue_command(command, &block) end - # Update the entire content of the Router resource. This method supports patch + # Updates the entire content of the Router resource. This method supports patch # semantics. # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] router # Name of the Router resource to update. # @param [Google::Apis::ComputeBeta::Router] router_object @@ -7223,11 +8009,55 @@ module Google execute_or_queue_command(command, &block) end - # Update the entire content of the Router resource. + # Returns permissions that a caller has on the specified resource. # @param [String] project # Project ID for this request. # @param [String] region # The name of the region for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_router_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/routers/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates the entire content of the Router resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. # @param [String] router # Name of the Router resource to update. # @param [Google::Apis::ComputeBeta::Router] router_object @@ -7267,11 +8097,11 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the specified route resource. + # Deletes the specified Route resource. # @param [String] project # Project ID for this request. # @param [String] route - # Name of the route resource to delete. + # Name of the Route resource to delete. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7305,11 +8135,12 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified route resource. + # Returns the specified Route resource. Get a list of available routes by making + # a list() request. # @param [String] project # Project ID for this request. # @param [String] route - # Name of the route resource to return. + # Name of the Route resource to return. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7343,7 +8174,7 @@ module Google execute_or_queue_command(command, &block) end - # Creates a route resource in the specified project using the data included in + # Creates a Route resource in the specified project using the data included in # the request. # @param [String] project # Project ID for this request. @@ -7382,7 +8213,7 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves the list of route resources available to the specified project. + # Retrieves the list of Route resources available to the specified project. # @param [String] project # Project ID for this request. # @param [String] filter @@ -7396,7 +8227,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -7406,7 +8237,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -7461,6 +8292,47 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_route_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/routes/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified Snapshot resource. Keep in mind that deleting a single # snapshot might not necessarily delete all the data on that snapshot. If any # data on the snapshot that is marked for deletion is needed for subsequent @@ -7503,7 +8375,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified Snapshot resource. + # Returns the specified Snapshot resource. Get a list of available snapshots by + # making a list() request. # @param [String] project # Project ID for this request. # @param [String] snapshot @@ -7556,7 +8429,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -7566,7 +8439,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -7621,6 +8494,88 @@ module Google execute_or_queue_command(command, &block) end + # Sets the labels on the target snapshot. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::GlobalSetLabelsRequest] global_set_labels_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_snapshot_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/snapshots/{resource}/setLabels', options) + command.request_representation = Google::Apis::ComputeBeta::GlobalSetLabelsRequest::Representation + command.request_object = global_set_labels_request_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_snapshot_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/snapshots/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified SslCertificate resource. # @param [String] project # Project ID for this request. @@ -7659,7 +8614,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified SslCertificate resource. + # Returns the specified SslCertificate resource. Get a list of available SSL + # certificates by making a list() request. # @param [String] project # Project ID for this request. # @param [String] ssl_certificate @@ -7751,7 +8707,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -7761,7 +8717,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -7816,6 +8772,47 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_ssl_certificate_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/sslCertificates/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves an aggregated list of subnetworks. # @param [String] project # Project ID for this request. @@ -7830,7 +8827,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -7840,7 +8837,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -7936,7 +8933,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified subnetwork. + # Returns the specified subnetwork. Get a list of available subnetworks by + # making a list() request. # @param [String] project # Project ID for this request. # @param [String] region @@ -8035,7 +9033,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -8045,7 +9043,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -8101,6 +9099,50 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_subnetwork_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/subnetworks/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified TargetHttpProxy resource. # @param [String] project # Project ID for this request. @@ -8139,7 +9181,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified TargetHttpProxy resource. + # Returns the specified TargetHttpProxy resource. Get a list of available target + # HTTP proxies by making a list() request. # @param [String] project # Project ID for this request. # @param [String] target_http_proxy @@ -8231,7 +9274,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -8241,7 +9284,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -8300,7 +9343,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] target_http_proxy - # The name of the TargetHttpProxy resource to set a URL map for. + # Name of the TargetHttpProxy to set a URL map for. # @param [Google::Apis::ComputeBeta::UrlMapReference] url_map_reference_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -8337,6 +9380,47 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_target_http_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/targetHttpProxies/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified TargetHttpsProxy resource. # @param [String] project # Project ID for this request. @@ -8375,7 +9459,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified TargetHttpsProxy resource. + # Returns the specified TargetHttpsProxy resource. Get a list of available + # target HTTPS proxies by making a list() request. # @param [String] project # Project ID for this request. # @param [String] target_https_proxy @@ -8467,7 +9552,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -8477,7 +9562,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -8536,7 +9621,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] target_https_proxy - # Name of the TargetHttpsProxy resource to set an SSL certificate for. + # Name of the TargetHttpsProxy resource to set an SslCertificates resource for. # @param [Google::Apis::ComputeBeta::TargetHttpsProxiesSetSslCertificatesRequest] target_https_proxies_set_ssl_certificates_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -8614,6 +9699,47 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_target_https_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/targetHttpsProxies/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves an aggregated list of target instances. # @param [String] project # Project ID for this request. @@ -8628,7 +9754,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -8638,7 +9764,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -8734,7 +9860,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified TargetInstance resource. + # Returns the specified TargetInstance resource. Get a list of available target + # instances by making a list() request. # @param [String] project # Project ID for this request. # @param [String] zone @@ -8834,7 +9961,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -8844,7 +9971,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -8900,6 +10027,50 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_target_instance_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Adds health check URLs to a target pool. # @param [String] project # Project ID for this request. @@ -9002,7 +10173,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -9012,7 +10183,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -9108,7 +10279,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified target pool. + # Returns the specified target pool. Get a list of available target pools by + # making a list() request. # @param [String] project # Project ID for this request. # @param [String] region @@ -9252,7 +10424,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -9262,7 +10434,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -9453,6 +10625,50 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_target_pool_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves an aggregated list of target VPN gateways. # @param [String] project # Project ID for this request. @@ -9467,7 +10683,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -9477,7 +10693,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -9536,7 +10752,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] target_vpn_gateway # Name of the target VPN gateway to delete. # @param [String] fields @@ -9573,11 +10789,12 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified target VPN gateway. + # Returns the specified target VPN gateway. Get a list of available target VPN + # gateways by making a list() request. # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] target_vpn_gateway # Name of the target VPN gateway to return. # @param [String] fields @@ -9619,7 +10836,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [Google::Apis::ComputeBeta::TargetVpnGateway] target_vpn_gateway_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -9661,7 +10878,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` # expression`. Your `expression` must be in the format: field_name @@ -9673,7 +10890,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -9683,7 +10900,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -9739,6 +10956,50 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_target_vpn_gateway_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/targetVpnGateways/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified UrlMap resource. # @param [String] project # Project ID for this request. @@ -9777,7 +11038,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified UrlMap resource. + # Returns the specified UrlMap resource. Get a list of available URL maps by + # making a list() request. # @param [String] project # Project ID for this request. # @param [String] url_map @@ -9854,6 +11116,48 @@ module Google execute_or_queue_command(command, &block) end + # Initiates a cache invalidation operation, invalidating the specified path, + # scoped to the specified UrlMap. + # @param [String] project + # Project ID for this request. + # @param [String] url_map + # Name of the UrlMap scoping this request. + # @param [Google::Apis::ComputeBeta::CacheInvalidationRule] cache_invalidation_rule_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def invalidate_url_map_cache(project, url_map, cache_invalidation_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/urlMaps/{urlMap}/invalidateCache', options) + command.request_representation = Google::Apis::ComputeBeta::CacheInvalidationRule::Representation + command.request_object = cache_invalidation_rule_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['urlMap'] = url_map unless url_map.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves the list of UrlMap resources available to the specified project. # @param [String] project # Project ID for this request. @@ -9868,7 +11172,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -9878,7 +11182,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -9975,6 +11279,47 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_url_map_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/urlMaps/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Updates the entire content of the UrlMap resource. # @param [String] project # Project ID for this request. @@ -10072,7 +11417,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -10082,7 +11427,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -10141,7 +11486,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] vpn_tunnel # Name of the VpnTunnel resource to delete. # @param [String] fields @@ -10178,11 +11523,12 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified VpnTunnel resource. + # Returns the specified VpnTunnel resource. Get a list of available VPN tunnels + # by making a list() request. # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] vpn_tunnel # Name of the VpnTunnel resource to return. # @param [String] fields @@ -10224,7 +11570,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [Google::Apis::ComputeBeta::VpnTunnel] vpn_tunnel_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -10266,7 +11612,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` # expression`. Your `expression` must be in the format: field_name @@ -10278,7 +11624,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -10288,7 +11634,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -10344,6 +11690,50 @@ module Google execute_or_queue_command(command, &block) end + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_vpn_tunnel_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/vpnTunnels/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified zone-specific Operations resource. # @param [String] project # Project ID for this request. @@ -10440,7 +11830,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -10450,7 +11840,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -10506,7 +11896,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified zone resource. + # Returns the specified Zone resource. Get a list of available zones by making a + # list() request. # @param [String] project # Project ID for this request. # @param [String] zone @@ -10544,7 +11935,7 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves the list of zone resources available to the specified project. + # Retrieves the list of Zone resources available to the specified project. # @param [String] project # Project ID for this request. # @param [String] filter @@ -10558,7 +11949,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -10568,7 +11959,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index 1457d599a..36ec3aa94 100644 --- a/generated/google/apis/compute_v1.rb +++ b/generated/google/apis/compute_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeV1 VERSION = 'V1' - REVISION = '20160212' + REVISION = '20160302' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_v1/classes.rb b/generated/google/apis/compute_v1/classes.rb index 44ad6c15b..95cc03500 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -95,7 +95,7 @@ module Google # @return [String] attr_accessor :kind - # Name of the resource; provided by the client when the resource is created. The + # Name of the resource. Provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the # name must be 1-63 characters long and match the regular expression [a-z]([-a- # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, @@ -310,7 +310,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -501,7 +501,10 @@ module Google end end - # + # Represents an Autoscaler resource. Autoscalers allow you to automatically + # scale virtual machine instances in managed instance groups according to an + # autoscaling policy that you define. For more information, read Autoscaling + # Groups of Instances. class Autoscaler include Google::Apis::Core::Hashable @@ -527,7 +530,7 @@ module Google # @return [String] attr_accessor :id - # Type of the resource. + # [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -547,8 +550,7 @@ module Google # @return [String] attr_accessor :self_link - # URL of Instance Group Manager or Replica Pool which will be controlled by - # Autoscaler. + # URL of the managed instance group that this autoscaler will scale. # Corresponds to the JSON property `target` # @return [String] attr_accessor :target @@ -591,7 +593,8 @@ module Google # @return [Hash] attr_accessor :items - # Type of resource. + # [Output Only] Type of resource. Always compute#autoscalerAggregatedList for + # aggregated lists of autoscalers. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -624,7 +627,7 @@ module Google end end - # Contains a list of persistent autoscaler resources. + # Contains a list of Autoscaler resources. class AutoscalerList include Google::Apis::Core::Hashable @@ -639,7 +642,8 @@ module Google # @return [Array] attr_accessor :items - # Type of resource. + # [Output Only] Type of resource. Always compute#autoscalerList for lists of + # autoscalers. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -676,13 +680,13 @@ module Google class AutoscalersScopedList include Google::Apis::Core::Hashable - # List of autoscalers contained in this scope. + # [Output Only] List of autoscalers contained in this scope. # Corresponds to the JSON property `autoscalers` # @return [Array] attr_accessor :autoscalers - # Informational warning which replaces the list of autoscalers when the list is - # empty. + # [Output Only] Informational warning which replaces the list of autoscalers + # when the list is empty. # Corresponds to the JSON property `warning` # @return [Google::Apis::ComputeV1::AutoscalersScopedList::Warning] attr_accessor :warning @@ -697,8 +701,8 @@ module Google @warning = args[:warning] if args.key?(:warning) end - # Informational warning which replaces the list of autoscalers when the list is - # empty. + # [Output Only] Informational warning which replaces the list of autoscalers + # when the list is empty. class Warning include Google::Apis::Core::Hashable @@ -737,7 +741,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -767,11 +771,14 @@ module Google class AutoscalingPolicy include Google::Apis::Core::Hashable - # The number of seconds that the Autoscaler should wait between two succeeding - # changes to the number of virtual machines. You should define an interval that - # is at least as long as the initialization time of a virtual machine and the - # time it may take for replica pool to create the virtual machine. The default - # is 60 seconds. + # The number of seconds that the autoscaler should wait before it starts + # collecting information from a new instance. This prevents the autoscaler from + # collecting information when the instance is initializing, during which the + # collected usage would not be reliable. The default time autoscaler waits is 60 + # seconds. + # Virtual machine initialization times might vary because of numerous factors. + # We recommend that you test how long an instance may take to initialize. To do + # this, create an instance and time the startup process. # Corresponds to the JSON property `coolDownPeriodSec` # @return [Fixnum] attr_accessor :cool_down_period_sec @@ -781,27 +788,26 @@ module Google # @return [Google::Apis::ComputeV1::AutoscalingPolicyCpuUtilization] attr_accessor :cpu_utilization - # Configuration parameters of autoscaling based on custom metric. + # Configuration parameters of autoscaling based on a custom metric. # Corresponds to the JSON property `customMetricUtilizations` # @return [Array] attr_accessor :custom_metric_utilizations - # Load balancing utilization policy. + # Configuration parameters of autoscaling based on load balancing. # Corresponds to the JSON property `loadBalancingUtilization` # @return [Google::Apis::ComputeV1::AutoscalingPolicyLoadBalancingUtilization] attr_accessor :load_balancing_utilization - # The maximum number of replicas that the Autoscaler can scale up to. This field - # is required for config to be effective. Maximum number of replicas should be - # not lower than minimal number of replicas. Absolute limit for this value is - # defined in Autoscaler backend. + # The maximum number of instances that the autoscaler can scale up to. This is + # required when creating or updating an autoscaler. The maximum number of + # replicas should not be lower than minimal number of replicas. # Corresponds to the JSON property `maxNumReplicas` # @return [Fixnum] attr_accessor :max_num_replicas - # The minimum number of replicas that the Autoscaler can scale down to. Can't be - # less than 0. If not provided Autoscaler will choose default value depending on - # maximal number of replicas. + # The minimum number of replicas that the autoscaler can scale down to. This + # cannot be less than 0. If not provided, autoscaler will choose a default value + # depending on maximum number of instances allowed. # Corresponds to the JSON property `minNumReplicas` # @return [Fixnum] attr_accessor :min_num_replicas @@ -825,10 +831,15 @@ module Google class AutoscalingPolicyCpuUtilization include Google::Apis::Core::Hashable - # The target utilization that the Autoscaler should maintain. It is represented - # as a fraction of used cores. For example: 6 cores used in 8-core VM are - # represented here as 0.75. Must be a float value between (0, 1]. If not defined, - # the default is 0.8. + # The target CPU utilization that the autoscaler should maintain. Must be a + # float value in the range (0, 1]. If not specified, the default is 0.8. + # If the CPU level is below the target utilization, the autoscaler scales down + # the number of instances until it reaches the minimum number of instances you + # specified or until the average CPU of your instances reaches the target + # utilization. + # If the average CPU is above the target utilization, the autoscaler scales up + # until it reaches the maximum number of instances you specified or until the + # average utilization reaches the target utilization. # Corresponds to the JSON property `utilizationTarget` # @return [Float] attr_accessor :utilization_target @@ -847,22 +858,30 @@ module Google class AutoscalingPolicyCustomMetricUtilization include Google::Apis::Core::Hashable - # Identifier of the metric. It should be a Cloud Monitoring metric. The metric - # can not have negative values. The metric should be an utilization metric ( - # increasing number of VMs handling requests x times should reduce average value - # of the metric roughly x times). For example you could use: compute.googleapis. - # com/instance/network/received_bytes_count. + # The identifier of the Cloud Monitoring metric. The metric cannot have negative + # values and should be a utilization metric, which means that the number of + # virtual machines handling requests should increase or decrease proportionally + # to the metric. The metric must also have a label of compute.googleapis.com/ + # resource_id with the value of the instance's unique ID, although this alone + # does not guarantee that the metric is valid. + # For example, the following is a valid metric: + # compute.googleapis.com/instance/network/received_bytes_count + # The following is not a valid metric because it does not increase or decrease + # based on usage: + # compute.googleapis.com/instance/cpu/reserved_cores # Corresponds to the JSON property `metric` # @return [String] attr_accessor :metric - # Target value of the metric which Autoscaler should maintain. Must be a + # Target value of the metric which autoscaler should maintain. Must be a # positive value. # Corresponds to the JSON property `utilizationTarget` # @return [Float] attr_accessor :utilization_target - # Defines type in which utilization_target is expressed. + # Defines how target utilization value is expressed for a Cloud Monitoring + # metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. If not specified, + # the default is GAUGE. # Corresponds to the JSON property `utilizationTargetType` # @return [String] attr_accessor :utilization_target_type @@ -879,16 +898,13 @@ module Google end end - # Load balancing utilization policy. + # Configuration parameters of autoscaling based on load balancing. class AutoscalingPolicyLoadBalancingUtilization include Google::Apis::Core::Hashable - # Fraction of backend capacity utilization (set in HTTP load balancing - # configuration) that Autoscaler should maintain. Must be a positive float value. - # If not defined, the default is 0.8. For example if your maxRatePerInstance - # capacity (in HTTP Load Balancing configuration) is set at 10 and you would - # like to keep number of instances such that each instance receives 7 QPS on - # average, set this to 0.7. + # Fraction of backend capacity utilization (set in HTTP(s) load balancing + # configuration) that autoscaler should maintain. Must be a positive float value. + # If not defined, the default is 0.8. # Corresponds to the JSON property `utilizationTarget` # @return [Float] attr_accessor :utilization_target @@ -1253,7 +1269,7 @@ module Google # @return [Array] attr_accessor :licenses - # Name of the resource; provided by the client when the resource is created. The + # Name of the resource. Provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the # name must be 1-63 characters long and match the regular expression [a-z]([-a- # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, @@ -1753,7 +1769,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -1844,7 +1860,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -2319,7 +2335,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -3778,7 +3794,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -4032,7 +4048,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -4477,7 +4493,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -4848,7 +4864,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -4985,7 +5001,7 @@ module Google # @return [String] attr_accessor :code - # [Output Only] Indicates the field in the request which caused the error. This + # [Output Only] Indicates the field in the request that caused the error. This # property is optional. # Corresponds to the JSON property `location` # @return [String] @@ -5363,7 +5379,7 @@ module Google # @return [String] attr_accessor :insert_time - # [Output Only] Type of the resource. Always compute#operation for Operation + # [Output Only] Type of the resource. Always compute#operation for operation # resources. # Corresponds to the JSON property `kind` # @return [String] @@ -5504,7 +5520,7 @@ module Google # @return [String] attr_accessor :code - # [Output Only] Indicates the field in the request which caused the error. This + # [Output Only] Indicates the field in the request that caused the error. This # property is optional. # Corresponds to the JSON property `location` # @return [String] @@ -5567,7 +5583,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -5756,7 +5772,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -6109,7 +6125,7 @@ module Google end end - # Represents a Routes resource. A route specifies how certain packets should be + # Represents a Route resource. A route specifies how certain packets should be # handled by the network. Routes are associated with instances by tags and the # set of routes for a particular instance is called its routing table. # For each packet leaving a instance, the system searches that instance's @@ -6117,7 +6133,7 @@ module Google # destination IP address, preferring smaller or more specific ranges over larger # ones. If there is a tie, the system selects the route with the smallest # priority value. If there is still a tie, it uses the layer three and four - # packet headers to select just one of the remaining matching Routes. The packet + # packet headers to select just one of the remaining matching routes. The packet # is then forwarded as specified by the nextHop field of the winning route - # either to another instance destination, a instance gateway or a Google Compute # Engine-operated gateway. @@ -6153,7 +6169,7 @@ module Google # @return [String] attr_accessor :kind - # Name of the resource; provided by the client when the resource is created. The + # Name of the resource. Provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the # name must be 1-63 characters long and match the regular expression [a-z]([-a- # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, @@ -6284,7 +6300,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -6310,7 +6326,7 @@ module Google end end - # Contains a list of route resources. + # Contains a list of Route resources. class RouteList include Google::Apis::Core::Hashable @@ -6978,7 +6994,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -7062,7 +7078,7 @@ module Google # @return [String] attr_accessor :kind - # Name of the resource; provided by the client when the resource is created. The + # Name of the resource. Provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the # name must be 1-63 characters long and match the regular expression [a-z]([-a- # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, @@ -7152,8 +7168,8 @@ module Google class TargetHttpsProxiesSetSslCertificatesRequest include Google::Apis::Core::Hashable - # New set of URLs to SslCertificate resources to associate with this - # TargetHttpProxy. Currently exactly one SSL certificate must be specified. + # New set of SslCertificate resources to associate with this TargetHttpsProxy + # resource. Currently exactly one SslCertificate resource must be specified. # Corresponds to the JSON property `sslCertificates` # @return [Array] attr_accessor :ssl_certificates @@ -7189,7 +7205,7 @@ module Google # @return [String] attr_accessor :id - # [Output Only] Type of the resource. Always compute#targetHttpsProxy for target + # [Output Only] Type of resource. Always compute#targetHttpsProxy for target # HTTPS proxies. # Corresponds to the JSON property `kind` # @return [String] @@ -7259,7 +7275,8 @@ module Google # @return [Array] attr_accessor :items - # Type of resource. + # Type of resource. Always compute#targetHttpsProxyList for lists of target + # HTTPS proxies. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -7536,7 +7553,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -7957,7 +7974,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -8036,7 +8053,7 @@ module Google # @return [String] attr_accessor :kind - # Name of the resource; provided by the client when the resource is created. The + # Name of the resource. Provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the # name must be 1-63 characters long and match the regular expression [a-z]([-a- # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, @@ -8256,7 +8273,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -8673,7 +8690,7 @@ module Google # @return [Array] attr_accessor :local_traffic_selector - # Name of the resource; provided by the client when the resource is created. The + # Name of the resource. Provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the # name must be 1-63 characters long and match the regular expression [a-z]([-a- # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, @@ -8714,8 +8731,8 @@ module Google # @return [String] attr_accessor :status - # URL of the VPN gateway to which this VPN tunnel is associated. Provided by the - # client when the VPN tunnel is created. + # URL of the VPN gateway with which this VPN tunnel is associated. Provided by + # the client when the VPN tunnel is created. # Corresponds to the JSON property `targetVpnGateway` # @return [String] attr_accessor :target_vpn_gateway @@ -8905,7 +8922,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). diff --git a/generated/google/apis/compute_v1/service.rb b/generated/google/apis/compute_v1/service.rb index 9049e2dd1..d9e5997c6 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -66,7 +66,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -76,7 +76,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -125,7 +125,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] address # Name of the address resource to delete. # @param [String] fields @@ -166,7 +166,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] address # Name of the address resource to return. # @param [String] fields @@ -208,7 +208,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [Google::Apis::ComputeV1::Address] address_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -249,7 +249,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` # expression`. Your `expression` must be in the format: field_name @@ -261,7 +261,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -271,7 +271,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -331,7 +331,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -341,7 +341,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -386,13 +386,13 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the specified autoscaler resource. + # Deletes the specified autoscaler. # @param [String] project # Project ID for this request. # @param [String] zone - # Name of the zone scoping this request. + # Name of the zone for this request. # @param [String] autoscaler - # Name of the persistent autoscaler resource to delete. + # Name of the autoscaler to delete. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -427,13 +427,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified autoscaler resource. + # Returns the specified autoscaler resource. Get a list of available autoscalers + # by making a list() request. # @param [String] project # Project ID for this request. # @param [String] zone - # Name of the zone scoping this request. + # Name of the zone for this request. # @param [String] autoscaler - # Name of the persistent autoscaler resource to return. + # Name of the autoscaler to return. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -468,12 +469,12 @@ module Google execute_or_queue_command(command, &block) end - # Creates an autoscaler resource in the specified project using the data - # included in the request. + # Creates an autoscaler in the specified project using the data included in the + # request. # @param [String] project # Project ID for this request. # @param [String] zone - # Name of the zone scoping this request. + # Name of the zone for this request. # @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -510,11 +511,11 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves a list of autoscaler resources contained within the specified zone. + # Retrieves a list of autoscalers contained within the specified zone. # @param [String] project # Project ID for this request. # @param [String] zone - # Name of the zone scoping this request. + # Name of the zone for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` # expression`. Your `expression` must be in the format: field_name @@ -526,7 +527,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -536,7 +537,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -582,14 +583,14 @@ module Google execute_or_queue_command(command, &block) end - # Updates an autoscaler resource in the specified project using the data - # included in the request. This method supports patch semantics. + # Updates an autoscaler in the specified project using the data included in the + # request. This method supports patch semantics. # @param [String] project # Project ID for this request. # @param [String] zone - # Name of the zone scoping this request. + # Name of the zone for this request. # @param [String] autoscaler - # Name of the autoscaler resource to update. + # Name of the autoscaler to update. # @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -627,15 +628,15 @@ module Google execute_or_queue_command(command, &block) end - # Updates an autoscaler resource in the specified project using the data - # included in the request. + # Updates an autoscaler in the specified project using the data included in the + # request. # @param [String] project # Project ID for this request. # @param [String] zone - # Name of the zone scoping this request. + # Name of the zone for this request. # @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object # @param [String] autoscaler - # Name of the autoscaler resource to update. + # Name of the autoscaler to update. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -710,7 +711,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified BackendService resource. + # Returns the specified BackendService resource. Get a list of available backend + # services by making a list() request. # @param [String] project # Project ID for this request. # @param [String] backend_service @@ -844,7 +846,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -854,7 +856,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -1000,7 +1002,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -1010,7 +1012,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -1055,7 +1057,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified disk type. + # Returns the specified disk type. Get a list of available disk types by making + # a list() request. # @param [String] project # Project ID for this request. # @param [String] zone @@ -1112,7 +1115,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -1122,7 +1125,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -1182,7 +1185,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -1192,7 +1195,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -1324,7 +1327,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns a specified persistent disk. + # Returns a specified persistent disk. Get a list of available persistent disks + # by making a list() request. # @param [String] project # Project ID for this request. # @param [String] zone @@ -1428,7 +1432,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -1438,7 +1442,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -1613,7 +1617,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -1623,7 +1627,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -1765,7 +1769,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -1775,7 +1779,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -1961,7 +1965,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -1971,7 +1975,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -2100,7 +2104,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified address resource. + # Returns the specified address resource. Get a list of available addresses by + # making a list() request. # @param [String] project # Project ID for this request. # @param [String] address @@ -2191,7 +2196,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -2201,7 +2206,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -2284,7 +2289,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified ForwardingRule resource. + # Returns the specified ForwardingRule resource. Get a list of available + # forwarding rules by making a list() request. # @param [String] project # Project ID for this request. # @param [String] forwarding_rule @@ -2376,7 +2382,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -2386,7 +2392,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -2487,7 +2493,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -2497,7 +2503,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -2578,7 +2584,8 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves the specified Operations resource. + # Retrieves the specified Operations resource. Get a list of operations by + # making a list() request. # @param [String] project # Project ID for this request. # @param [String] operation @@ -2630,7 +2637,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -2640,7 +2647,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -2723,7 +2730,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified HttpHealthCheck resource. + # Returns the specified HttpHealthCheck resource. Get a list of available HTTP + # health checks by making a list() request. # @param [String] project # Project ID for this request. # @param [String] http_health_check @@ -2815,7 +2823,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -2825,7 +2833,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -2992,7 +3000,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified HttpsHealthCheck resource. + # Returns the specified HttpsHealthCheck resource. Get a list of available HTTPS + # health checks by making a list() request. # @param [String] project # Project ID for this request. # @param [String] https_health_check @@ -3084,7 +3093,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -3094,7 +3103,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -3303,7 +3312,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified image. + # Returns the specified image. Get a list of available images by making a list() + # request. # @param [String] project # Project ID for this request. # @param [String] image @@ -3400,7 +3410,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -3410,7 +3420,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -3520,7 +3530,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -3530,7 +3540,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -3668,7 +3678,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns all of the details about the specified managed instance group. + # Returns all of the details about the specified managed instance group. Get a + # list of available managed instance groups by making a list() request. # @param [String] project # Project ID for this request. # @param [String] zone @@ -3772,7 +3783,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -3782,7 +3793,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -4128,7 +4139,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -4138,7 +4149,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -4226,7 +4237,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified instance group resource. + # Returns the specified instance group. Get a list of available instance groups + # by making a list() request. # @param [String] project # Project ID for this request. # @param [String] zone @@ -4326,7 +4338,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -4336,7 +4348,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -4402,7 +4414,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -4412,7 +4424,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -4591,7 +4603,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified instance template resource. + # Returns the specified instance template. Get a list of available instance + # templates by making a list() request. # @param [String] project # Project ID for this request. # @param [String] instance_template @@ -4685,7 +4698,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -4695,7 +4708,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -4801,7 +4814,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -4811,7 +4824,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -5033,7 +5046,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified Instance resource. + # Returns the specified Instance resource. Get a list of available instances by + # making a list() request. # @param [String] project # Project ID for this request. # @param [String] zone @@ -5176,7 +5190,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -5186,7 +5200,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -5585,7 +5599,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified license resource. + # Returns the specified License resource. Get a list of available licenses by + # making a list() request. # @param [String] project # Project ID for this request. # @param [String] license @@ -5637,7 +5652,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -5647,7 +5662,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -5692,7 +5707,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified machine type. + # Returns the specified machine type. Get a list of available machine types by + # making a list() request. # @param [String] project # Project ID for this request. # @param [String] zone @@ -5749,7 +5765,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -5759,7 +5775,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -5843,7 +5859,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified network. + # Returns the specified network. Get a list of available networks by making a + # list() request. # @param [String] project # Project ID for this request. # @param [String] network @@ -5934,7 +5951,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -5944,7 +5961,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -5989,7 +6006,7 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified project resource. + # Returns the specified Project resource. # @param [String] project # Project ID for this request. # @param [String] fields @@ -6275,7 +6292,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -6285,7 +6302,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -6331,7 +6348,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified region resource. + # Returns the specified Region resource. Get a list of available regions by + # making a list() request. # @param [String] project # Project ID for this request. # @param [String] region @@ -6383,7 +6401,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -6393,7 +6411,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -6438,11 +6456,11 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the specified route resource. + # Deletes the specified Route resource. # @param [String] project # Project ID for this request. # @param [String] route - # Name of the route resource to delete. + # Name of the Route resource to delete. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6476,11 +6494,12 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified route resource. + # Returns the specified Route resource. Get a list of available routes by making + # a list() request. # @param [String] project # Project ID for this request. # @param [String] route - # Name of the route resource to return. + # Name of the Route resource to return. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6514,7 +6533,7 @@ module Google execute_or_queue_command(command, &block) end - # Creates a route resource in the specified project using the data included in + # Creates a Route resource in the specified project using the data included in # the request. # @param [String] project # Project ID for this request. @@ -6553,7 +6572,7 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves the list of route resources available to the specified project. + # Retrieves the list of Route resources available to the specified project. # @param [String] project # Project ID for this request. # @param [String] filter @@ -6567,7 +6586,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -6577,7 +6596,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -6664,7 +6683,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified Snapshot resource. + # Returns the specified Snapshot resource. Get a list of available snapshots by + # making a list() request. # @param [String] project # Project ID for this request. # @param [String] snapshot @@ -6717,7 +6737,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -6727,7 +6747,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -6810,7 +6830,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified SslCertificate resource. + # Returns the specified SslCertificate resource. Get a list of available SSL + # certificates by making a list() request. # @param [String] project # Project ID for this request. # @param [String] ssl_certificate @@ -6902,7 +6923,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -6912,7 +6933,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -6971,7 +6992,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -6981,7 +7002,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -7067,7 +7088,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified subnetwork. + # Returns the specified subnetwork. Get a list of available subnetworks by + # making a list() request. # @param [String] project # Project ID for this request. # @param [String] region @@ -7166,7 +7188,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -7176,7 +7198,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -7260,7 +7282,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified TargetHttpProxy resource. + # Returns the specified TargetHttpProxy resource. Get a list of available target + # HTTP proxies by making a list() request. # @param [String] project # Project ID for this request. # @param [String] target_http_proxy @@ -7352,7 +7375,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -7362,7 +7385,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -7411,7 +7434,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] target_http_proxy - # The name of the TargetHttpProxy resource to set a URL map for. + # Name of the TargetHttpProxy to set a URL map for. # @param [Google::Apis::ComputeV1::UrlMapReference] url_map_reference_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -7486,7 +7509,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified TargetHttpsProxy resource. + # Returns the specified TargetHttpsProxy resource. Get a list of available + # target HTTPS proxies by making a list() request. # @param [String] project # Project ID for this request. # @param [String] target_https_proxy @@ -7578,7 +7602,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -7588,7 +7612,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -7637,7 +7661,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] target_https_proxy - # Name of the TargetHttpsProxy resource to set an SSL certificate for. + # Name of the TargetHttpsProxy resource to set an SslCertificates resource for. # @param [Google::Apis::ComputeV1::TargetHttpsProxiesSetSslCertificatesRequest] target_https_proxies_set_ssl_certificates_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -7729,7 +7753,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -7739,7 +7763,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -7825,7 +7849,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified TargetInstance resource. + # Returns the specified TargetInstance resource. Get a list of available target + # instances by making a list() request. # @param [String] project # Project ID for this request. # @param [String] zone @@ -7925,7 +7950,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -7935,7 +7960,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -8083,7 +8108,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -8093,7 +8118,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -8179,7 +8204,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified target pool. + # Returns the specified target pool. Get a list of available target pools by + # making a list() request. # @param [String] project # Project ID for this request. # @param [String] region @@ -8323,7 +8349,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -8333,7 +8359,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -8528,7 +8554,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -8538,7 +8564,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -8587,7 +8613,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] target_vpn_gateway # Name of the target VPN gateway to delete. # @param [String] fields @@ -8624,11 +8650,12 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified target VPN gateway. + # Returns the specified target VPN gateway. Get a list of available target VPN + # gateways by making a list() request. # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] target_vpn_gateway # Name of the target VPN gateway to return. # @param [String] fields @@ -8670,7 +8697,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [Google::Apis::ComputeV1::TargetVpnGateway] target_vpn_gateway_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -8712,7 +8739,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` # expression`. Your `expression` must be in the format: field_name @@ -8724,7 +8751,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -8734,7 +8761,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -8818,7 +8845,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified UrlMap resource. + # Returns the specified UrlMap resource. Get a list of available URL maps by + # making a list() request. # @param [String] project # Project ID for this request. # @param [String] url_map @@ -8909,7 +8937,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -8919,7 +8947,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -9103,7 +9131,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -9113,7 +9141,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -9162,7 +9190,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] vpn_tunnel # Name of the VpnTunnel resource to delete. # @param [String] fields @@ -9199,11 +9227,12 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified VpnTunnel resource. + # Returns the specified VpnTunnel resource. Get a list of available VPN tunnels + # by making a list() request. # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] vpn_tunnel # Name of the VpnTunnel resource to return. # @param [String] fields @@ -9245,7 +9274,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [Google::Apis::ComputeV1::VpnTunnel] vpn_tunnel_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -9287,7 +9316,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] region - # The name of the region for this request. + # Name of the region for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` # expression`. Your `expression` must be in the format: field_name @@ -9299,7 +9328,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -9309,7 +9338,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -9451,7 +9480,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -9461,7 +9490,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -9507,7 +9536,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified zone resource. + # Returns the specified Zone resource. Get a list of available zones by making a + # list() request. # @param [String] project # Project ID for this request. # @param [String] zone @@ -9545,7 +9575,7 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves the list of zone resources available to the specified project. + # Retrieves the list of Zone resources available to the specified project. # @param [String] project # Project ID for this request. # @param [String] filter @@ -9559,7 +9589,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -9569,7 +9599,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index cef6e6e32..338cb5498 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -20,13 +20,13 @@ module Google module Apis # Content API for Shopping # - # Manage product items, inventory, and Merchant Center accounts for Google + # Manages product items, inventory, and Merchant Center accounts for Google # Shopping. # # @see https://developers.google.com/shopping-content module ContentV2 VERSION = 'V2' - REVISION = '20160204' + REVISION = '20160303' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2/classes.rb b/generated/google/apis/content_v2/classes.rb index b2f56a5d4..ac368ffdd 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -1611,6 +1611,11 @@ module Google # @return [Fixnum] attr_accessor :hour + # The minute of the hour the feed file should be fetched (0-59). Read-only. + # Corresponds to the JSON property `minuteOfHour` + # @return [Fixnum] + attr_accessor :minute_of_hour + # An optional password for fetch_url. # Corresponds to the JSON property `password` # @return [String] @@ -1640,6 +1645,7 @@ module Google @day_of_month = args[:day_of_month] if args.key?(:day_of_month) @fetch_url = args[:fetch_url] if args.key?(:fetch_url) @hour = args[:hour] if args.key?(:hour) + @minute_of_hour = args[:minute_of_hour] if args.key?(:minute_of_hour) @password = args[:password] if args.key?(:password) @time_zone = args[:time_zone] if args.key?(:time_zone) @username = args[:username] if args.key?(:username) diff --git a/generated/google/apis/content_v2/representations.rb b/generated/google/apis/content_v2/representations.rb index 6ea6204e4..d75998eb0 100644 --- a/generated/google/apis/content_v2/representations.rb +++ b/generated/google/apis/content_v2/representations.rb @@ -1366,6 +1366,7 @@ module Google property :day_of_month, as: 'dayOfMonth' property :fetch_url, as: 'fetchUrl' property :hour, as: 'hour' + property :minute_of_hour, as: 'minuteOfHour' property :password, as: 'password' property :time_zone, as: 'timeZone' property :username, as: 'username' diff --git a/generated/google/apis/content_v2/service.rb b/generated/google/apis/content_v2/service.rb index ba0153194..d1153f8f0 100644 --- a/generated/google/apis/content_v2/service.rb +++ b/generated/google/apis/content_v2/service.rb @@ -22,7 +22,7 @@ module Google module ContentV2 # Content API for Shopping # - # Manage product items, inventory, and Merchant Center accounts for Google + # Manages product items, inventory, and Merchant Center accounts for Google # Shopping. # # @example diff --git a/generated/google/apis/deploymentmanager_v2.rb b/generated/google/apis/deploymentmanager_v2.rb index 1fca41990..ab6ed3549 100644 --- a/generated/google/apis/deploymentmanager_v2.rb +++ b/generated/google/apis/deploymentmanager_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/deployment-manager/ module DeploymentmanagerV2 VERSION = 'V2' - REVISION = '20160201' + REVISION = '20160301' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/deploymentmanager_v2/classes.rb b/generated/google/apis/deploymentmanager_v2/classes.rb index ba409b7eb..a67ccd438 100644 --- a/generated/google/apis/deploymentmanager_v2/classes.rb +++ b/generated/google/apis/deploymentmanager_v2/classes.rb @@ -462,7 +462,7 @@ module Google # @return [String] attr_accessor :insert_time - # [Output Only] Type of the resource. Always compute#operation for Operation + # [Output Only] Type of the resource. Always compute#operation for operation # resources. # Corresponds to the JSON property `kind` # @return [String] @@ -603,7 +603,7 @@ module Google # @return [String] attr_accessor :code - # [Output Only] Indicates the field in the request which caused the error. This + # [Output Only] Indicates the field in the request that caused the error. This # property is optional. # Corresponds to the JSON property `location` # @return [String] @@ -666,7 +666,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -841,7 +841,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). @@ -954,7 +954,7 @@ module Google # @return [String] attr_accessor :code - # [Output Only] Indicates the field in the request which caused the error. This + # [Output Only] Indicates the field in the request that caused the error. This # property is optional. # Corresponds to the JSON property `location` # @return [String] @@ -1017,7 +1017,7 @@ module Google # [Output Only] A key that provides more detail on the warning being returned. # For example, for warnings where there are no results in a list request for a # particular zone, this key might be scope and the key value might be the zone - # name. Other examples might be a key indicating a deprecated resource, and a + # name. Other examples might be a key indicating a deprecated resource and a # suggested replacement, or a warning about invalid network settings (for # example, if an instance attempts to perform IP forwarding but is not enabled # for IP forwarding). diff --git a/generated/google/apis/deploymentmanager_v2/service.rb b/generated/google/apis/deploymentmanager_v2/service.rb index 69dd3c2c5..32da96be2 100644 --- a/generated/google/apis/deploymentmanager_v2/service.rb +++ b/generated/google/apis/deploymentmanager_v2/service.rb @@ -232,7 +232,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -242,7 +242,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -504,7 +504,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -514,7 +514,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -612,7 +612,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -622,7 +622,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -724,7 +724,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -734,7 +734,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number @@ -794,7 +794,7 @@ module Google # filtering by (string, number, boolean). For string fields, the literal value # is interpreted as a regular expression using RE2 syntax. The literal value # must match the entire field. - # For example, to filter for instances whose name is not equal to example- + # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that @@ -804,7 +804,7 @@ module Google # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are - # treated as AND expressions meaning that resources must match all expressions + # treated as AND expressions, meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number diff --git a/generated/google/apis/doubleclickbidmanager_v1.rb b/generated/google/apis/doubleclickbidmanager_v1.rb index d6286cd99..35700944f 100644 --- a/generated/google/apis/doubleclickbidmanager_v1.rb +++ b/generated/google/apis/doubleclickbidmanager_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/bid-manager/ module DoubleclickbidmanagerV1 VERSION = 'V1' - REVISION = '20160120' + REVISION = '20160225' end end end diff --git a/generated/google/apis/doubleclicksearch_v2.rb b/generated/google/apis/doubleclicksearch_v2.rb index b40d6d324..0f939d9b0 100644 --- a/generated/google/apis/doubleclicksearch_v2.rb +++ b/generated/google/apis/doubleclicksearch_v2.rb @@ -20,13 +20,13 @@ module Google module Apis # DoubleClick Search API # - # Report and modify your advertising data in DoubleClick Search (for example, + # Reports and modifies your advertising data in DoubleClick Search (for example, # campaigns, ad groups, keywords, and conversions). # # @see https://developers.google.com/doubleclick-search/ module DoubleclicksearchV2 VERSION = 'V2' - REVISION = '20160217' + REVISION = '20160302' # View and manage your advertising data in DoubleClick Search AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch' diff --git a/generated/google/apis/doubleclicksearch_v2/service.rb b/generated/google/apis/doubleclicksearch_v2/service.rb index 88ba67283..6ca16e1bb 100644 --- a/generated/google/apis/doubleclicksearch_v2/service.rb +++ b/generated/google/apis/doubleclicksearch_v2/service.rb @@ -22,7 +22,7 @@ module Google module DoubleclicksearchV2 # DoubleClick Search API # - # Report and modify your advertising data in DoubleClick Search (for example, + # Reports and modifies your advertising data in DoubleClick Search (for example, # campaigns, ad groups, keywords, and conversions). # # @example diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index 9f2777488..8e07393c1 100644 --- a/generated/google/apis/drive_v2.rb +++ b/generated/google/apis/drive_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV2 VERSION = 'V2' - REVISION = '20160222' + REVISION = '20160303' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/drive_v3.rb b/generated/google/apis/drive_v3.rb index bf7cf784d..b5dfad09e 100644 --- a/generated/google/apis/drive_v3.rb +++ b/generated/google/apis/drive_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV3 VERSION = 'V3' - REVISION = '20160222' + REVISION = '20160303' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/games_configuration_v1configuration.rb b/generated/google/apis/games_configuration_v1configuration.rb index fa3ed0a97..15c0b02bd 100644 --- a/generated/google/apis/games_configuration_v1configuration.rb +++ b/generated/google/apis/games_configuration_v1configuration.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services module GamesConfigurationV1configuration VERSION = 'V1configuration' - REVISION = '20160222' + REVISION = '20160309' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/games_management_v1management.rb b/generated/google/apis/games_management_v1management.rb index 2e7d14fdc..9e335a2cf 100644 --- a/generated/google/apis/games_management_v1management.rb +++ b/generated/google/apis/games_management_v1management.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services module GamesManagementV1management VERSION = 'V1management' - REVISION = '20160222' + REVISION = '20160309' # Share your Google+ profile information and view and manage your game activity AUTH_GAMES = 'https://www.googleapis.com/auth/games' diff --git a/generated/google/apis/games_v1.rb b/generated/google/apis/games_v1.rb index 5f098617c..9a9fc2b4b 100644 --- a/generated/google/apis/games_v1.rb +++ b/generated/google/apis/games_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services/ module GamesV1 VERSION = 'V1' - REVISION = '20160222' + REVISION = '20160309' # View and manage its own configuration data in your Google Drive AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata' diff --git a/generated/google/apis/games_v1/classes.rb b/generated/google/apis/games_v1/classes.rb index a60cd33ca..4f80d2211 100644 --- a/generated/google/apis/games_v1/classes.rb +++ b/generated/google/apis/games_v1/classes.rb @@ -172,8 +172,8 @@ module Google # @return [String] attr_accessor :kind - # Whether the the current steps for the achievement has reached the number of - # steps required to unlock. + # Whether the current steps for the achievement has reached the number of steps + # required to unlock. # Corresponds to the JSON property `newlyUnlocked` # @return [Boolean] attr_accessor :newly_unlocked @@ -650,6 +650,12 @@ module Google class ApplicationVerifyResponse include Google::Apis::Core::Hashable + # An alternate ID that was once used for the player that was issued the auth + # token used in this request. (This field is not normally populated.) + # Corresponds to the JSON property `alternate_player_id` + # @return [String] + attr_accessor :alternate_player_id + # Uniquely identifies the type of this resource. Value is always the fixed # string games#applicationVerifyResponse. # Corresponds to the JSON property `kind` @@ -667,6 +673,7 @@ module Google # Update properties of this object def update!(**args) + @alternate_player_id = args[:alternate_player_id] if args.key?(:alternate_player_id) @kind = args[:kind] if args.key?(:kind) @player_id = args[:player_id] if args.key?(:player_id) end diff --git a/generated/google/apis/games_v1/representations.rb b/generated/google/apis/games_v1/representations.rb index c5293cd9e..6bac2cbd6 100644 --- a/generated/google/apis/games_v1/representations.rb +++ b/generated/google/apis/games_v1/representations.rb @@ -776,6 +776,7 @@ module Google class ApplicationVerifyResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :alternate_player_id, as: 'alternate_player_id' property :kind, as: 'kind' property :player_id, as: 'player_id' end diff --git a/generated/google/apis/genomics_v1.rb b/generated/google/apis/genomics_v1.rb index 1c8433bd5..ad3834781 100644 --- a/generated/google/apis/genomics_v1.rb +++ b/generated/google/apis/genomics_v1.rb @@ -20,15 +20,14 @@ module Google module Apis # Genomics API # - # An API to store, process, explore, and share genomic data. It supports - # reference-based alignments, genetic variants, and reference genomes. This API - # provides an implementation of the Global Alliance for Genomics and Health ( - # GA4GH) v0.5.1 API as well as several extensions. + # Stores, processes, explores and shares genomic data. This API implements the + # Global Alliance for Genomics and Health (GA4GH) v0.5.1 API as well as several + # extensions. # # @see module GenomicsV1 VERSION = 'V1' - REVISION = '20160219' + REVISION = '20160309' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/genomics_v1/classes.rb b/generated/google/apis/genomics_v1/classes.rb index 73d4b4481..379365fce 100644 --- a/generated/google/apis/genomics_v1/classes.rb +++ b/generated/google/apis/genomics_v1/classes.rb @@ -1373,6 +1373,30 @@ module Google # @return [String] attr_accessor :end + # Restricts results to a shard containing approximately `1/totalShards` of the + # normal response payload for this query. Results from a sharded request are + # disjoint from those returned by all queries which differ only in their shard + # parameter. A shard may yield 0 results; this is especially likely for large + # values of `totalShards`. Valid values are `[0, totalShards)`. + # Corresponds to the JSON property `shard` + # @return [Fixnum] + attr_accessor :shard + + # Specifying `totalShards` causes a disjoint subset of the normal response + # payload to be returned for each query with a unique `shard` parameter + # specified. A best effort is made to yield equally sized shards. Sharding can + # be used to distribute processing amongst workers, where each worker is + # assigned a unique `shard` number and all workers specify the same `totalShards` + # number. The union of reads returned for all sharded queries `[0, totalShards)` + # is equal to those returned by a single unsharded query. Queries for different + # values of `totalShards` with common divisors will share shard boundaries. For + # example, streaming `shard` 2 of 5 `totalShards` yields the same results as + # streaming `shard`s 4 and 5 of 10 `totalShards`. This property can be leveraged + # for adaptive retries. + # Corresponds to the JSON property `totalShards` + # @return [Fixnum] + attr_accessor :total_shards + def initialize(**args) update!(**args) end @@ -1384,6 +1408,8 @@ module Google @reference_name = args[:reference_name] if args.key?(:reference_name) @start = args[:start] if args.key?(:start) @end = args[:end] if args.key?(:end) + @shard = args[:shard] if args.key?(:shard) + @total_shards = args[:total_shards] if args.key?(:total_shards) end end @@ -2312,6 +2338,31 @@ module Google end end + # + class MergeVariantsRequest + include Google::Apis::Core::Hashable + + # The destination variant set. + # Corresponds to the JSON property `variantSetId` + # @return [String] + attr_accessor :variant_set_id + + # The variants to be merged with existing variants. + # Corresponds to the JSON property `variants` + # @return [Array] + attr_accessor :variants + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @variant_set_id = args[:variant_set_id] if args.key?(:variant_set_id) + @variants = args[:variants] if args.key?(:variants) + end + end + # The call set search request. class SearchCallSetsRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/genomics_v1/representations.rb b/generated/google/apis/genomics_v1/representations.rb index e7f001100..9b9419cbd 100644 --- a/generated/google/apis/genomics_v1/representations.rb +++ b/generated/google/apis/genomics_v1/representations.rb @@ -328,6 +328,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MergeVariantsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SearchCallSetsRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -710,6 +716,8 @@ module Google property :reference_name, as: 'referenceName' property :start, as: 'start' property :end, as: 'end' + property :shard, as: 'shard' + property :total_shards, as: 'totalShards' end end @@ -938,6 +946,15 @@ module Google end end + class MergeVariantsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :variant_set_id, as: 'variantSetId' + collection :variants, as: 'variants', class: Google::Apis::GenomicsV1::Variant, decorator: Google::Apis::GenomicsV1::Variant::Representation + + end + end + class SearchCallSetsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/genomics_v1/service.rb b/generated/google/apis/genomics_v1/service.rb index e23f449b0..f2b343b93 100644 --- a/generated/google/apis/genomics_v1/service.rb +++ b/generated/google/apis/genomics_v1/service.rb @@ -22,10 +22,9 @@ module Google module GenomicsV1 # Genomics API # - # An API to store, process, explore, and share genomic data. It supports - # reference-based alignments, genetic variants, and reference genomes. This API - # provides an implementation of the Global Alliance for Genomics and Health ( - # GA4GH) v0.5.1 API as well as several extensions. + # Stores, processes, explores and shares genomic data. This API implements the + # Global Alliance for Genomics and Health (GA4GH) v0.5.1 API as well as several + # extensions. # # @example # require 'google/apis/genomics_v1' @@ -1254,6 +1253,43 @@ module Google execute_or_queue_command(command, &block) end + # Merges the given variants with existing variants. For the definitions of + # variants and other genomics resources, see [Fundamentals of Google Genomics]( + # https://cloud.google.com/genomics/fundamentals-of-google-genomics) Each + # variant will be merged with an existing variant that matches its reference + # sequence, start, end, reference bases, and alternative bases. If no such + # variant exists, a new one will be created. When variants are merged, the call + # information from the new variant is added to the existing variant, and other + # fields (such as key/value pairs) are discarded. + # @param [Google::Apis::GenomicsV1::MergeVariantsRequest] merge_variants_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GenomicsV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def merge_variants(merge_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/variants:merge', options) + command.request_representation = Google::Apis::GenomicsV1::MergeVariantsRequest::Representation + command.request_object = merge_variants_request_object + command.response_representation = Google::Apis::GenomicsV1::Empty::Representation + command.response_class = Google::Apis::GenomicsV1::Empty + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Returns a stream of all the variants matching the search request, ordered by # reference name, position, and ID. # @param [Google::Apis::GenomicsV1::StreamVariantsRequest] stream_variants_request_object @@ -1421,10 +1457,10 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the contents of a variant set. The variant set object is not deleted. - # For the definitions of variant sets and other genomics resources, see [ - # Fundamentals of Google Genomics](https://cloud.google.com/genomics/ - # fundamentals-of-google-genomics) + # Deletes a variant set including all variants, call sets, and calls within. + # This is not reversible. For the definitions of variant sets and other genomics + # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/ + # genomics/fundamentals-of-google-genomics) # @param [String] variant_set_id # The ID of the variant set to be deleted. # @param [String] fields diff --git a/generated/google/apis/gmail_v1.rb b/generated/google/apis/gmail_v1.rb index 88307ed39..79fe568fe 100644 --- a/generated/google/apis/gmail_v1.rb +++ b/generated/google/apis/gmail_v1.rb @@ -20,12 +20,12 @@ module Google module Apis # Gmail API # - # The Gmail REST API. + # Access Gmail mailboxes including sending user email. # # @see https://developers.google.com/gmail/api/ module GmailV1 VERSION = 'V1' - REVISION = '20151214' + REVISION = '20160301' # View and manage your mail AUTH_SCOPE = 'https://mail.google.com/' diff --git a/generated/google/apis/gmail_v1/classes.rb b/generated/google/apis/gmail_v1/classes.rb index dbe70ffd7..e6fd82c7e 100644 --- a/generated/google/apis/gmail_v1/classes.rb +++ b/generated/google/apis/gmail_v1/classes.rb @@ -22,6 +22,25 @@ module Google module Apis module GmailV1 + # + class BatchDeleteMessagesRequest + include Google::Apis::Core::Hashable + + # The IDs of the messages to delete. + # Corresponds to the JSON property `ids` + # @return [Array] + attr_accessor :ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ids = args[:ids] if args.key?(:ids) + end + end + # A draft email in the user's mailbox. class Draft include Google::Apis::Core::Hashable diff --git a/generated/google/apis/gmail_v1/representations.rb b/generated/google/apis/gmail_v1/representations.rb index 638774f91..39ebc825d 100644 --- a/generated/google/apis/gmail_v1/representations.rb +++ b/generated/google/apis/gmail_v1/representations.rb @@ -22,6 +22,12 @@ module Google module Apis module GmailV1 + class BatchDeleteMessagesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Draft class Representation < Google::Apis::Core::JsonRepresentation; end @@ -154,6 +160,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BatchDeleteMessagesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ids, as: 'ids' + end + end + class Draft # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/gmail_v1/service.rb b/generated/google/apis/gmail_v1/service.rb index 2b36040aa..c369d2d5f 100644 --- a/generated/google/apis/gmail_v1/service.rb +++ b/generated/google/apis/gmail_v1/service.rb @@ -22,7 +22,7 @@ module Google module GmailV1 # Gmail API # - # The Gmail REST API. + # Access Gmail mailboxes including sending user email. # # @example # require 'google/apis/gmail_v1' @@ -294,6 +294,8 @@ module Google # @param [String] user_id # The user's email address. The special value me can be used to indicate the # authenticated user. + # @param [Boolean] include_spam_trash + # Include drafts from SPAM and TRASH in the results. # @param [Fixnum] max_results # Maximum number of drafts to return. # @param [String] page_token @@ -319,11 +321,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_user_drafts(user_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_user_drafts(user_id, include_spam_trash: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{userId}/drafts', options) command.response_representation = Google::Apis::GmailV1::ListDraftsResponse::Representation command.response_class = Google::Apis::GmailV1::ListDraftsResponse command.params['userId'] = user_id unless user_id.nil? + command.query['includeSpamTrash'] = include_spam_trash unless include_spam_trash.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? @@ -728,6 +731,44 @@ module Google execute_or_queue_command(command, &block) end + # Deletes many messages by message ID. Provides no guarantees that messages were + # not already deleted or even existed at all. + # @param [String] user_id + # The user's email address. The special value me can be used to indicate the + # authenticated user. + # @param [Google::Apis::GmailV1::BatchDeleteMessagesRequest] batch_delete_messages_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def batch_delete_messages(user_id, batch_delete_messages_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{userId}/messages/batchDelete', options) + command.request_representation = Google::Apis::GmailV1::BatchDeleteMessagesRequest::Representation + command.request_object = batch_delete_messages_request_object + command.params['userId'] = user_id unless user_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Immediately and permanently deletes the specified message. This operation # cannot be undone. Prefer messages.trash instead. # @param [String] user_id diff --git a/generated/google/apis/iam_v1.rb b/generated/google/apis/iam_v1.rb new file mode 100644 index 000000000..fe20a6673 --- /dev/null +++ b/generated/google/apis/iam_v1.rb @@ -0,0 +1,36 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/iam_v1/service.rb' +require 'google/apis/iam_v1/classes.rb' +require 'google/apis/iam_v1/representations.rb' + +module Google + module Apis + # Google Identity and Access Management API + # + # Manages identity and access control for Google Cloud Platform resources, + # including the creation of service accounts, which you can use to authenticate + # to Google and make API calls. + # + # @see https://cloud.google.com/iam/ + module IamV1 + VERSION = 'V1' + REVISION = '20160129' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/iam_v1/classes.rb b/generated/google/apis/iam_v1/classes.rb new file mode 100644 index 000000000..da1e8c2f3 --- /dev/null +++ b/generated/google/apis/iam_v1/classes.rb @@ -0,0 +1,665 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module IamV1 + + # The service account list response. + class ListServiceAccountsResponse + include Google::Apis::Core::Hashable + + # The list of matching service accounts. + # Corresponds to the JSON property `accounts` + # @return [Array] + attr_accessor :accounts + + # To retrieve the next page of results, set [ListServiceAccountsRequest. + # page_token] to this value. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @accounts = args[:accounts] if args.key?(:accounts) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # A service account in the Identity and Access Management API. To create a + # service account, you specify the project_id and account_id for the account. + # The account_id is unique within the project, and used to generate the service + # account email address and a stable unique id. All other methods can identify + # accounts using the format "projects/`project`/serviceAccounts/`account`". + # Using '-' as a wildcard for the project, will infer the project from the + # account. The account value can be the email address or the unique_id of the + # service account. + class ServiceAccount + include Google::Apis::Core::Hashable + + # The resource name of the service account in the format "projects/`project`/ + # serviceAccounts/`account`". In requests using '-' as a wildcard for the + # project, will infer the project from the account and the account value can be + # the email address or the unique_id of the service account. In responses the + # resource name will always be in the format "projects/`project`/serviceAccounts/ + # `email`". + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # @OutputOnly The id of the project that owns the service account. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # @OutputOnly unique and stable id of the service account. + # Corresponds to the JSON property `uniqueId` + # @return [String] + attr_accessor :unique_id + + # @OutputOnly Email address of the service account. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + # Optional. A user-specified description of the service account. Must be fewer + # than 100 UTF-8 bytes. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Used to perform a consistent read-modify-write. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # @OutputOnly. The OAuth2 client id for the service account. This is used in + # conjunction with the OAuth2 clientconfig API to make three legged OAuth2 (3LO) + # flows to access the data of Google users. + # Corresponds to the JSON property `oauth2ClientId` + # @return [String] + attr_accessor :oauth2_client_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) + @unique_id = args[:unique_id] if args.key?(:unique_id) + @email = args[:email] if args.key?(:email) + @display_name = args[:display_name] if args.key?(:display_name) + @etag = args[:etag] if args.key?(:etag) + @oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id) + end + end + + # The service account create request. + class CreateServiceAccountRequest + include Google::Apis::Core::Hashable + + # Required. The account id that is used to generate the service account email + # address and a stable unique id. It is unique within a project, must be 1-63 + # characters long, and match the regular expression [a-z]([-a-z0-9]*[a-z0-9]) to + # comply with RFC1035. + # Corresponds to the JSON property `accountId` + # @return [String] + attr_accessor :account_id + + # A service account in the Identity and Access Management API. To create a + # service account, you specify the project_id and account_id for the account. + # The account_id is unique within the project, and used to generate the service + # account email address and a stable unique id. All other methods can identify + # accounts using the format "projects/`project`/serviceAccounts/`account`". + # Using '-' as a wildcard for the project, will infer the project from the + # account. The account value can be the email address or the unique_id of the + # service account. + # Corresponds to the JSON property `serviceAccount` + # @return [Google::Apis::IamV1::ServiceAccount] + attr_accessor :service_account + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @service_account = args[:service_account] if args.key?(:service_account) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The service account keys list response. + class ListServiceAccountKeysResponse + include Google::Apis::Core::Hashable + + # The public keys for the service account. + # Corresponds to the JSON property `keys` + # @return [Array] + attr_accessor :keys + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @keys = args[:keys] if args.key?(:keys) + end + end + + # Represents a service account key. A service account can have 0 or more key + # pairs. The private keys for these are not stored by Google. ServiceAccountKeys + # are immutable. + class ServiceAccountKey + include Google::Apis::Core::Hashable + + # The resource name of the service account key in the format "projects/`project`/ + # serviceAccounts/`email`/keys/`key`". + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The type of the private key. + # Corresponds to the JSON property `privateKeyType` + # @return [String] + attr_accessor :private_key_type + + # The key data. + # Corresponds to the JSON property `privateKeyData` + # @return [String] + attr_accessor :private_key_data + + # The key can be used after this timestamp. + # Corresponds to the JSON property `validAfterTime` + # @return [String] + attr_accessor :valid_after_time + + # The key can be used before this timestamp. + # Corresponds to the JSON property `validBeforeTime` + # @return [String] + attr_accessor :valid_before_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @private_key_type = args[:private_key_type] if args.key?(:private_key_type) + @private_key_data = args[:private_key_data] if args.key?(:private_key_data) + @valid_after_time = args[:valid_after_time] if args.key?(:valid_after_time) + @valid_before_time = args[:valid_before_time] if args.key?(:valid_before_time) + end + end + + # The service account key create request. + class CreateServiceAccountKeyRequest + include Google::Apis::Core::Hashable + + # The type of the key requested. GOOGLE_CREDENTIALS is the default key type. + # Corresponds to the JSON property `privateKeyType` + # @return [String] + attr_accessor :private_key_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @private_key_type = args[:private_key_type] if args.key?(:private_key_type) + end + end + + # The service account sign blob request. + class SignBlobRequest + include Google::Apis::Core::Hashable + + # The bytes to sign + # Corresponds to the JSON property `bytesToSign` + # @return [String] + attr_accessor :bytes_to_sign + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bytes_to_sign = args[:bytes_to_sign] if args.key?(:bytes_to_sign) + end + end + + # The service account sign blob response. + class SignBlobResponse + include Google::Apis::Core::Hashable + + # The id of the key used to sign the blob. + # Corresponds to the JSON property `keyId` + # @return [String] + attr_accessor :key_id + + # The signed blob. + # Corresponds to the JSON property `signature` + # @return [String] + attr_accessor :signature + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key_id = args[:key_id] if args.key?(:key_id) + @signature = args[:signature] if args.key?(:signature) + end + end + + # Defines an Identity and Access Management (IAM) policy. It is used to specify + # access control policies for Cloud Platform resources. A `Policy` consists of a + # list of `bindings`. A `Binding` binds a list of `members` to a `role`, where + # the members can be user accounts, Google groups, Google domains, and service + # accounts. A `role` is a named list of permissions defined by IAM. **Example** ` + # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ + # appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user: + # sean@example.com"] ` ] ` For a description of IAM and its features, see the [ + # IAM developer's guide](https://cloud.google.com/iam). + class Policy + include Google::Apis::Core::Hashable + + # Version of the `Policy`. The default version is 0. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + # Associates a list of `members` to a `role`. Multiple `bindings` must not be + # specified for the same `role`. `bindings` with no members will result in an + # error. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # + # Corresponds to the JSON property `rules` + # @return [Array] + attr_accessor :rules + + # `etag` is used for optimistic concurrency control as a way to help prevent + # simultaneous updates of a policy from overwriting each other. It is strongly + # suggested that systems make use of the `etag` in the read-modify-write cycle + # to perform policy updates in order to avoid race conditions: An `etag` is + # returned in the response to `getIamPolicy`, and systems are expected to put + # that etag in the request to `setIamPolicy` to ensure that their change will be + # applied to the same version of the policy. If no `etag` is provided in the + # call to `setIamPolicy`, then the existing policy is overwritten blindly. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @version = args[:version] if args.key?(:version) + @bindings = args[:bindings] if args.key?(:bindings) + @rules = args[:rules] if args.key?(:rules) + @etag = args[:etag] if args.key?(:etag) + end + end + + # Associates `members` with a `role`. + class Binding + include Google::Apis::Core::Hashable + + # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor` + # , or `roles/owner`. Required + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + # Specifies the identities requesting access for a Cloud Platform resource. ` + # members` can have the following values: * `allUsers`: A special identifier + # that represents anyone who is on the internet; with or without a Google + # account. * `allAuthenticatedUsers`: A special identifier that represents + # anyone who is authenticated with a Google account or a service account. * ` + # user:`emailid``: An email address that represents a specific Google account. + # For example, `alice@gmail.com` or `joe@example.com`. * `serviceAccount:` + # emailid``: An email address that represents a service account. For example, ` + # my-other-app@appspot.gserviceaccount.com`. * `group:`emailid``: An email + # address that represents a Google group. For example, `admins@example.com`. * ` + # domain:`domain``: A Google Apps domain name that represents all the users of + # that domain. For example, `google.com` or `example.com`. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @role = args[:role] if args.key?(:role) + @members = args[:members] if args.key?(:members) + end + end + + # A rule to be applied in a Policy. + class Rule + include Google::Apis::Core::Hashable + + # Human-readable description of the rule. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value + # of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets. + # *') matches all verbs. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + # Required + # Corresponds to the JSON property `action` + # @return [String] + attr_accessor :action + + # The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in this set of entries. + # Corresponds to the JSON property `in` + # @return [Array] + attr_accessor :in + + # The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is not in this set of + # entries. The format for in and not_in entries is the same as for members in a + # Binding (see google/iam/v1/policy.proto). + # Corresponds to the JSON property `notIn` + # @return [Array] + attr_accessor :not_in + + # Additional restrictions that must be met + # Corresponds to the JSON property `conditions` + # @return [Array] + attr_accessor :conditions + + # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries + # that match the LOG action. + # Corresponds to the JSON property `logConfig` + # @return [Array] + attr_accessor :log_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @permissions = args[:permissions] if args.key?(:permissions) + @action = args[:action] if args.key?(:action) + @in = args[:in] if args.key?(:in) + @not_in = args[:not_in] if args.key?(:not_in) + @conditions = args[:conditions] if args.key?(:conditions) + @log_config = args[:log_config] if args.key?(:log_config) + end + end + + # A condition to be met. + class Condition + include Google::Apis::Core::Hashable + + # Trusted attributes supplied by the IAM system. + # Corresponds to the JSON property `iam` + # @return [String] + attr_accessor :iam + + # Trusted attributes supplied by any service that owns resources and uses the + # IAM system for access control. + # Corresponds to the JSON property `sys` + # @return [String] + attr_accessor :sys + + # Trusted attributes discharged by the service. + # Corresponds to the JSON property `svc` + # @return [String] + attr_accessor :svc + + # An operator to apply the subject with. + # Corresponds to the JSON property `op` + # @return [String] + attr_accessor :op + + # The object of the condition. Exactly one of these must be set. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + # The objects of the condition. This is mutually exclusive with 'value'. + # Corresponds to the JSON property `values` + # @return [Array] + attr_accessor :values + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @iam = args[:iam] if args.key?(:iam) + @sys = args[:sys] if args.key?(:sys) + @svc = args[:svc] if args.key?(:svc) + @op = args[:op] if args.key?(:op) + @value = args[:value] if args.key?(:value) + @values = args[:values] if args.key?(:values) + end + end + + # Specifies what kind of log the caller must write Increment a streamz counter + # with the specified metric and field names. Metric names should start with a '/' + # , generally be lowercase-only, and end in "_count". Field names should not + # contain an initial slash. The actual exported metric names will have "/iam/ + # policy" prepended. Field names correspond to IAM request parameters and field + # values are their respective values. At present only "iam_principal", + # corresponding to IAMContext.principal, is supported. Examples: counter ` + # metric: "/debug_access_count" field: "iam_principal" ` ==> increment counter / + # iam/policy/backend_debug_access_count `iam_principal=[value of IAMContext. + # principal]` At this time we do not support: * multiple field names (though + # this may be supported in the future) * decrementing the counter * incrementing + # it by anything other than 1 + class LogConfig + include Google::Apis::Core::Hashable + + # Options for counters + # Corresponds to the JSON property `counter` + # @return [Google::Apis::IamV1::CounterOptions] + attr_accessor :counter + + # Write a Data Access (Gin) log + # Corresponds to the JSON property `dataAccess` + # @return [Google::Apis::IamV1::DataAccessOptions] + attr_accessor :data_access + + # Write a Cloud Audit log + # Corresponds to the JSON property `cloudAudit` + # @return [Google::Apis::IamV1::CloudAuditOptions] + attr_accessor :cloud_audit + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @counter = args[:counter] if args.key?(:counter) + @data_access = args[:data_access] if args.key?(:data_access) + @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit) + end + end + + # Options for counters + class CounterOptions + include Google::Apis::Core::Hashable + + # The metric to update. + # Corresponds to the JSON property `metric` + # @return [String] + attr_accessor :metric + + # The field value to attribute. + # Corresponds to the JSON property `field` + # @return [String] + attr_accessor :field + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @metric = args[:metric] if args.key?(:metric) + @field = args[:field] if args.key?(:field) + end + end + + # Write a Data Access (Gin) log + class DataAccessOptions + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Write a Cloud Audit log + class CloudAuditOptions + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Request message for `SetIamPolicy` method. + class SetIamPolicyRequest + include Google::Apis::Core::Hashable + + # Defines an Identity and Access Management (IAM) policy. It is used to specify + # access control policies for Cloud Platform resources. A `Policy` consists of a + # list of `bindings`. A `Binding` binds a list of `members` to a `role`, where + # the members can be user accounts, Google groups, Google domains, and service + # accounts. A `role` is a named list of permissions defined by IAM. **Example** ` + # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ + # appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user: + # sean@example.com"] ` ] ` For a description of IAM and its features, see the [ + # IAM developer's guide](https://cloud.google.com/iam). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::IamV1::Policy] + attr_accessor :policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policy = args[:policy] if args.key?(:policy) + end + end + + # Request message for `TestIamPermissions` method. + class TestIamPermissionsRequest + include Google::Apis::Core::Hashable + + # The set of permissions to check for the `resource`. Permissions with wildcards + # (such as '*' or 'storage.*') are not allowed. For more information see IAM + # Overview. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + + # Response message for `TestIamPermissions` method. + class TestIamPermissionsResponse + include Google::Apis::Core::Hashable + + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + end + end +end diff --git a/generated/google/apis/iam_v1/representations.rb b/generated/google/apis/iam_v1/representations.rb new file mode 100644 index 000000000..274415169 --- /dev/null +++ b/generated/google/apis/iam_v1/representations.rb @@ -0,0 +1,325 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module IamV1 + + class ListServiceAccountsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ServiceAccount + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreateServiceAccountRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListServiceAccountKeysResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ServiceAccountKey + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreateServiceAccountKeyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SignBlobRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SignBlobResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Binding + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Rule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Condition + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LogConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CounterOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DataAccessOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CloudAuditOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestIamPermissionsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestIamPermissionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListServiceAccountsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ServiceAccount + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :project_id, as: 'projectId' + property :unique_id, as: 'uniqueId' + property :email, as: 'email' + property :display_name, as: 'displayName' + property :etag, :base64 => true, as: 'etag' + property :oauth2_client_id, as: 'oauth2ClientId' + end + end + + class CreateServiceAccountRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, as: 'accountId' + property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation + + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ListServiceAccountKeysResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :keys, as: 'keys', class: Google::Apis::IamV1::ServiceAccountKey, decorator: Google::Apis::IamV1::ServiceAccountKey::Representation + + end + end + + class ServiceAccountKey + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :private_key_type, as: 'privateKeyType' + property :private_key_data, :base64 => true, as: 'privateKeyData' + property :valid_after_time, as: 'validAfterTime' + property :valid_before_time, as: 'validBeforeTime' + end + end + + class CreateServiceAccountKeyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :private_key_type, as: 'privateKeyType' + end + end + + class SignBlobRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bytes_to_sign, :base64 => true, as: 'bytesToSign' + end + end + + class SignBlobResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key_id, as: 'keyId' + property :signature, :base64 => true, as: 'signature' + end + end + + class Policy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :version, as: 'version' + collection :bindings, as: 'bindings', class: Google::Apis::IamV1::Binding, decorator: Google::Apis::IamV1::Binding::Representation + + collection :rules, as: 'rules', class: Google::Apis::IamV1::Rule, decorator: Google::Apis::IamV1::Rule::Representation + + property :etag, :base64 => true, as: 'etag' + end + end + + class Binding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :role, as: 'role' + collection :members, as: 'members' + end + end + + class Rule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + collection :permissions, as: 'permissions' + property :action, as: 'action' + collection :in, as: 'in' + collection :not_in, as: 'notIn' + collection :conditions, as: 'conditions', class: Google::Apis::IamV1::Condition, decorator: Google::Apis::IamV1::Condition::Representation + + collection :log_config, as: 'logConfig', class: Google::Apis::IamV1::LogConfig, decorator: Google::Apis::IamV1::LogConfig::Representation + + end + end + + class Condition + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :iam, as: 'iam' + property :sys, as: 'sys' + property :svc, as: 'svc' + property :op, as: 'op' + property :value, as: 'value' + collection :values, as: 'values' + end + end + + class LogConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :counter, as: 'counter', class: Google::Apis::IamV1::CounterOptions, decorator: Google::Apis::IamV1::CounterOptions::Representation + + property :data_access, as: 'dataAccess', class: Google::Apis::IamV1::DataAccessOptions, decorator: Google::Apis::IamV1::DataAccessOptions::Representation + + property :cloud_audit, as: 'cloudAudit', class: Google::Apis::IamV1::CloudAuditOptions, decorator: Google::Apis::IamV1::CloudAuditOptions::Representation + + end + end + + class CounterOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :metric, as: 'metric' + property :field, as: 'field' + end + end + + class DataAccessOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class CloudAuditOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class SetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation + + end + end + + class TestIamPermissionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class TestIamPermissionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + end + end +end diff --git a/generated/google/apis/iam_v1/service.rb b/generated/google/apis/iam_v1/service.rb new file mode 100644 index 000000000..cc293a618 --- /dev/null +++ b/generated/google/apis/iam_v1/service.rb @@ -0,0 +1,520 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module IamV1 + # Google Identity and Access Management API + # + # Manages identity and access control for Google Cloud Platform resources, + # including the creation of service accounts, which you can use to authenticate + # to Google and make API calls. + # + # @example + # require 'google/apis/iam_v1' + # + # Iam = Google::Apis::IamV1 # Alias the module + # service = Iam::IamService.new + # + # @see https://cloud.google.com/iam/ + class IamService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://iam.googleapis.com/', '') + end + + # Lists service accounts for a project. + # @param [String] name + # Required. The resource name of the project associated with the service + # accounts, such as "projects/123" + # @param [Fixnum] page_size + # Optional limit on the number of service accounts to include in the response. + # Further accounts can subsequently be obtained by including the [ + # ListServiceAccountsResponse.next_page_token] in a subsequent request. + # @param [String] page_token + # Optional pagination token returned in an earlier [ListServiceAccountsResponse. + # next_page_token]. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IamV1::ListServiceAccountsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IamV1::ListServiceAccountsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_service_accounts(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/serviceAccounts', options) + command.response_representation = Google::Apis::IamV1::ListServiceAccountsResponse::Representation + command.response_class = Google::Apis::IamV1::ListServiceAccountsResponse + command.params['name'] = name unless name.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a ServiceAccount + # @param [String] name + # The resource name of the service account in the format "projects/`project`/ + # serviceAccounts/`account`". Using '-' as a wildcard for the project, will + # infer the project from the account. The account value can be the email address + # or the unique_id of the service account. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IamV1::ServiceAccount] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_service_account(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation + command.response_class = Google::Apis::IamV1::ServiceAccount + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a service account and returns it. + # @param [String] name + # Required. The resource name of the project associated with the service + # accounts, such as "projects/123" + # @param [Google::Apis::IamV1::CreateServiceAccountRequest] create_service_account_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IamV1::ServiceAccount] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_service_account(name, create_service_account_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}/serviceAccounts', options) + command.request_representation = Google::Apis::IamV1::CreateServiceAccountRequest::Representation + command.request_object = create_service_account_request_object + command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation + command.response_class = Google::Apis::IamV1::ServiceAccount + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a service account. Currently, only the following fields are updatable: + # 'display_name' . The 'etag' is mandatory. + # @param [String] name + # The resource name of the service account in the format "projects/`project`/ + # serviceAccounts/`account`". In requests using '-' as a wildcard for the + # project, will infer the project from the account and the account value can be + # the email address or the unique_id of the service account. In responses the + # resource name will always be in the format "projects/`project`/serviceAccounts/ + # `email`". + # @param [Google::Apis::IamV1::ServiceAccount] service_account_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IamV1::ServiceAccount] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_project_service_account(name, service_account_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1/{+name}', options) + command.request_representation = Google::Apis::IamV1::ServiceAccount::Representation + command.request_object = service_account_object + command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation + command.response_class = Google::Apis::IamV1::ServiceAccount + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a service acount. + # @param [String] name + # The resource name of the service account in the format "projects/`project`/ + # serviceAccounts/`account`". Using '-' as a wildcard for the project, will + # infer the project from the account. The account value can be the email address + # or the unique_id of the service account. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IamV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IamV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_service_account(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::IamV1::Empty::Representation + command.response_class = Google::Apis::IamV1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Signs a blob using a service account. + # @param [String] name + # The resource name of the service account in the format "projects/`project`/ + # serviceAccounts/`account`". Using '-' as a wildcard for the project, will + # infer the project from the account. The account value can be the email address + # or the unique_id of the service account. + # @param [Google::Apis::IamV1::SignBlobRequest] sign_blob_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IamV1::SignBlobResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IamV1::SignBlobResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def sign_service_account_blob(name, sign_blob_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:signBlob', options) + command.request_representation = Google::Apis::IamV1::SignBlobRequest::Representation + command.request_object = sign_blob_request_object + command.response_representation = Google::Apis::IamV1::SignBlobResponse::Representation + command.response_class = Google::Apis::IamV1::SignBlobResponse + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the IAM access control policy for specified IAM resource. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. `resource` is + # usually specified as a path, such as `projects/*project*/zones/*zone*/disks/* + # disk*`. The format for the path specified in this value is resource specific + # and is specified in the `getIamPolicy` documentation. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IamV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IamV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_service_account_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::IamV1::Policy::Representation + command.response_class = Google::Apis::IamV1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the IAM access control policy for the specified IAM resource. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. `resource` is + # usually specified as a path, such as `projects/*project*/zones/*zone*/disks/* + # disk*`. The format for the path specified in this value is resource specific + # and is specified in the `setIamPolicy` documentation. + # @param [Google::Apis::IamV1::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IamV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IamV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_service_account_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::IamV1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::IamV1::Policy::Representation + command.response_class = Google::Apis::IamV1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Tests the specified permissions against the IAM access control policy for the + # specified IAM resource. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. ` + # resource` is usually specified as a path, such as `projects/*project*/zones/* + # zone*/disks/*disk*`. The format for the path specified in this value is + # resource specific and is specified in the `testIamPermissions` documentation. + # @param [Google::Apis::IamV1::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IamV1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IamV1::TestIamPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_service_account_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::IamV1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::IamV1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::IamV1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists service account keys + # @param [String] name + # The resource name of the service account in the format "projects/`project`/ + # serviceAccounts/`account`". Using '-' as a wildcard for the project, will + # infer the project from the account. The account value can be the email address + # or the unique_id of the service account. + # @param [Array, String] key_types + # The type of keys the user wants to list. If empty, all key types are included + # in the response. Duplicate key types are not allowed. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IamV1::ListServiceAccountKeysResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IamV1::ListServiceAccountKeysResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_service_account_keys(name, key_types: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/keys', options) + command.response_representation = Google::Apis::IamV1::ListServiceAccountKeysResponse::Representation + command.response_class = Google::Apis::IamV1::ListServiceAccountKeysResponse + command.params['name'] = name unless name.nil? + command.query['keyTypes'] = key_types unless key_types.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the ServiceAccountKey by key id. + # @param [String] name + # The resource name of the service account key in the format "projects/`project`/ + # serviceAccounts/`account`/keys/`key`". Using '-' as a wildcard for the project + # will infer the project from the account. The account value can be the email + # address or the unique_id of the service account. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IamV1::ServiceAccountKey] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IamV1::ServiceAccountKey] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_service_account_key(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::IamV1::ServiceAccountKey::Representation + command.response_class = Google::Apis::IamV1::ServiceAccountKey + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a service account key and returns it. + # @param [String] name + # The resource name of the service account in the format "projects/`project`/ + # serviceAccounts/`account`". Using '-' as a wildcard for the project, will + # infer the project from the account. The account value can be the email address + # or the unique_id of the service account. + # @param [Google::Apis::IamV1::CreateServiceAccountKeyRequest] create_service_account_key_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IamV1::ServiceAccountKey] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IamV1::ServiceAccountKey] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_service_account_key(name, create_service_account_key_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}/keys', options) + command.request_representation = Google::Apis::IamV1::CreateServiceAccountKeyRequest::Representation + command.request_object = create_service_account_key_request_object + command.response_representation = Google::Apis::IamV1::ServiceAccountKey::Representation + command.response_class = Google::Apis::IamV1::ServiceAccountKey + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a service account key. + # @param [String] name + # The resource name of the service account key in the format "projects/`project`/ + # serviceAccounts/`account`/keys/`key`". Using '-' as a wildcard for the project + # will infer the project from the account. The account value can be the email + # address or the unique_id of the service account. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IamV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IamV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_service_account_key(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::IamV1::Empty::Representation + command.response_class = Google::Apis::IamV1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/identitytoolkit_v3.rb b/generated/google/apis/identitytoolkit_v3.rb index b9b6828ab..89214f7a2 100644 --- a/generated/google/apis/identitytoolkit_v3.rb +++ b/generated/google/apis/identitytoolkit_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/identity-toolkit/v3/ module IdentitytoolkitV3 VERSION = 'V3' - REVISION = '20160216' + REVISION = '20160304' end end end diff --git a/generated/google/apis/identitytoolkit_v3/classes.rb b/generated/google/apis/identitytoolkit_v3/classes.rb index 33a0e2d43..5295dd28e 100644 --- a/generated/google/apis/identitytoolkit_v3/classes.rb +++ b/generated/google/apis/identitytoolkit_v3/classes.rb @@ -137,6 +137,55 @@ module Google end end + # Template for an email template. + class EmailTemplate + include Google::Apis::Core::Hashable + + # Email body. + # Corresponds to the JSON property `body` + # @return [String] + attr_accessor :body + + # Email body format. + # Corresponds to the JSON property `format` + # @return [String] + attr_accessor :format + + # From address of the email. + # Corresponds to the JSON property `from` + # @return [String] + attr_accessor :from + + # From display name. + # Corresponds to the JSON property `fromDisplayName` + # @return [String] + attr_accessor :from_display_name + + # Reply-to address. + # Corresponds to the JSON property `replyTo` + # @return [String] + attr_accessor :reply_to + + # Subject of the email. + # Corresponds to the JSON property `subject` + # @return [String] + attr_accessor :subject + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @body = args[:body] if args.key?(:body) + @format = args[:format] if args.key?(:format) + @from = args[:from] if args.key?(:from) + @from_display_name = args[:from_display_name] if args.key?(:from_display_name) + @reply_to = args[:reply_to] if args.key?(:reply_to) + @subject = args[:subject] if args.key?(:subject) + end + end + # Response of getting account information. class GetAccountInfoResponse include Google::Apis::Core::Hashable @@ -313,6 +362,11 @@ module Google # @return [String] attr_accessor :delegated_project_number + # The GITKit token or STS id token of the authenticated user. + # Corresponds to the JSON property `idToken` + # @return [String] + attr_accessor :id_token + # The local ID of the user. # Corresponds to the JSON property `localId` # @return [String] @@ -325,6 +379,7 @@ module Google # Update properties of this object def update!(**args) @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number) + @id_token = args[:id_token] if args.key?(:id_token) @local_id = args[:local_id] if args.key?(:local_id) end end @@ -365,6 +420,12 @@ module Google class GetAccountInfoRequest include Google::Apis::Core::Hashable + # GCP project number of the requesting delegated app. Currently only intended + # for Firebase V1 migration. + # Corresponds to the JSON property `delegatedProjectNumber` + # @return [String] + attr_accessor :delegated_project_number + # The list of emails of the users to inquiry. # Corresponds to the JSON property `email` # @return [Array] @@ -386,6 +447,7 @@ module Google # Update properties of this object def update!(**args) + @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number) @email = args[:email] if args.key?(:email) @id_token = args[:id_token] if args.key?(:id_token) @local_id = args[:local_id] if args.key?(:local_id) @@ -407,6 +469,16 @@ module Google # @return [String] attr_accessor :api_key + # Authorized domains. + # Corresponds to the JSON property `authorizedDomains` + # @return [Array] + attr_accessor :authorized_domains + + # Template for an email template. + # Corresponds to the JSON property `changeEmailTemplate` + # @return [Google::Apis::IdentitytoolkitV3::EmailTemplate] + attr_accessor :change_email_template + # OAuth2 provider configuration. # Corresponds to the JSON property `idpConfig` # @return [Array] @@ -417,6 +489,22 @@ module Google # @return [String] attr_accessor :project_id + # Template for an email template. + # Corresponds to the JSON property `resetPasswordTemplate` + # @return [Google::Apis::IdentitytoolkitV3::EmailTemplate] + attr_accessor :reset_password_template + + # Whether to use email sending provided by Firebear. + # Corresponds to the JSON property `useEmailSending` + # @return [Boolean] + attr_accessor :use_email_sending + alias_method :use_email_sending?, :use_email_sending + + # Template for an email template. + # Corresponds to the JSON property `verifyEmailTemplate` + # @return [Google::Apis::IdentitytoolkitV3::EmailTemplate] + attr_accessor :verify_email_template + def initialize(**args) update!(**args) end @@ -425,8 +513,13 @@ module Google def update!(**args) @allow_password_user = args[:allow_password_user] if args.key?(:allow_password_user) @api_key = args[:api_key] if args.key?(:api_key) + @authorized_domains = args[:authorized_domains] if args.key?(:authorized_domains) + @change_email_template = args[:change_email_template] if args.key?(:change_email_template) @idp_config = args[:idp_config] if args.key?(:idp_config) @project_id = args[:project_id] if args.key?(:project_id) + @reset_password_template = args[:reset_password_template] if args.key?(:reset_password_template) + @use_email_sending = args[:use_email_sending] if args.key?(:use_email_sending) + @verify_email_template = args[:verify_email_template] if args.key?(:verify_email_template) end end @@ -487,6 +580,16 @@ module Google # @return [String] attr_accessor :delegated_project_number + # The attributes users request to delete. + # Corresponds to the JSON property `deleteAttribute` + # @return [Array] + attr_accessor :delete_attribute + + # The IDPs the user request to delete. + # Corresponds to the JSON property `deleteProvider` + # @return [Array] + attr_accessor :delete_provider + # Whether to disable the user. # Corresponds to the JSON property `disableUser` # @return [Boolean] @@ -544,6 +647,12 @@ module Google # @return [Array] attr_accessor :provider + # Whether return sts id token and refresh token instead of gitkit token. + # Corresponds to the JSON property `returnSecureToken` + # @return [Boolean] + attr_accessor :return_secure_token + alias_method :return_secure_token?, :return_secure_token + # Mark the user to upgrade to federated login. # Corresponds to the JSON property `upgradeToFederatedLogin` # @return [Boolean] @@ -564,6 +673,8 @@ module Google @captcha_challenge = args[:captcha_challenge] if args.key?(:captcha_challenge) @captcha_response = args[:captcha_response] if args.key?(:captcha_response) @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number) + @delete_attribute = args[:delete_attribute] if args.key?(:delete_attribute) + @delete_provider = args[:delete_provider] if args.key?(:delete_provider) @disable_user = args[:disable_user] if args.key?(:disable_user) @display_name = args[:display_name] if args.key?(:display_name) @email = args[:email] if args.key?(:email) @@ -575,11 +686,95 @@ module Google @password = args[:password] if args.key?(:password) @photo_url = args[:photo_url] if args.key?(:photo_url) @provider = args[:provider] if args.key?(:provider) + @return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token) @upgrade_to_federated_login = args[:upgrade_to_federated_login] if args.key?(:upgrade_to_federated_login) @valid_since = args[:valid_since] if args.key?(:valid_since) end end + # Request to set the project configuration. + class SetProjectConfigRequest + include Google::Apis::Core::Hashable + + # Whether to allow password user sign in or sign up. + # Corresponds to the JSON property `allowPasswordUser` + # @return [Boolean] + attr_accessor :allow_password_user + alias_method :allow_password_user?, :allow_password_user + + # Browser API key, needed when making http request to Apiary. + # Corresponds to the JSON property `apiKey` + # @return [String] + attr_accessor :api_key + + # Template for an email template. + # Corresponds to the JSON property `changeEmailTemplate` + # @return [Google::Apis::IdentitytoolkitV3::EmailTemplate] + attr_accessor :change_email_template + + # GCP project number of the requesting delegated app. Currently only intended + # for Firebase V1 migration. + # Corresponds to the JSON property `delegatedProjectNumber` + # @return [String] + attr_accessor :delegated_project_number + + # Oauth2 provider configuration. + # Corresponds to the JSON property `idpConfig` + # @return [Array] + attr_accessor :idp_config + + # Template for an email template. + # Corresponds to the JSON property `resetPasswordTemplate` + # @return [Google::Apis::IdentitytoolkitV3::EmailTemplate] + attr_accessor :reset_password_template + + # Whether to use email sending provided by Firebear. + # Corresponds to the JSON property `useEmailSending` + # @return [Boolean] + attr_accessor :use_email_sending + alias_method :use_email_sending?, :use_email_sending + + # Template for an email template. + # Corresponds to the JSON property `verifyEmailTemplate` + # @return [Google::Apis::IdentitytoolkitV3::EmailTemplate] + attr_accessor :verify_email_template + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @allow_password_user = args[:allow_password_user] if args.key?(:allow_password_user) + @api_key = args[:api_key] if args.key?(:api_key) + @change_email_template = args[:change_email_template] if args.key?(:change_email_template) + @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number) + @idp_config = args[:idp_config] if args.key?(:idp_config) + @reset_password_template = args[:reset_password_template] if args.key?(:reset_password_template) + @use_email_sending = args[:use_email_sending] if args.key?(:use_email_sending) + @verify_email_template = args[:verify_email_template] if args.key?(:verify_email_template) + end + end + + # Response of setting the project configuration. + class IdentitytoolkitRelyingpartySetProjectConfigResponse + include Google::Apis::Core::Hashable + + # Project ID of the relying party. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @project_id = args[:project_id] if args.key?(:project_id) + end + end + # Request to sign out user. class SignOutUserRequest include Google::Apis::Core::Hashable @@ -663,6 +858,12 @@ module Google # @return [String] attr_accessor :password + # Whether return sts id token and refresh token instead of gitkit token. + # Corresponds to the JSON property `returnSecureToken` + # @return [Boolean] + attr_accessor :return_secure_token + alias_method :return_secure_token?, :return_secure_token + def initialize(**args) update!(**args) end @@ -676,6 +877,7 @@ module Google @id_token = args[:id_token] if args.key?(:id_token) @instance_id = args[:instance_id] if args.key?(:instance_id) @password = args[:password] if args.key?(:password) + @return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token) end end @@ -777,6 +979,12 @@ module Google attr_accessor :return_refresh_token alias_method :return_refresh_token?, :return_refresh_token + # Whether return sts id token and refresh token instead of gitkit token. + # Corresponds to the JSON property `returnSecureToken` + # @return [Boolean] + attr_accessor :return_secure_token + alias_method :return_secure_token?, :return_secure_token + # Session ID, which should match the one in previous createAuthUri request. # Corresponds to the JSON property `sessionId` # @return [String] @@ -795,6 +1003,7 @@ module Google @post_body = args[:post_body] if args.key?(:post_body) @request_uri = args[:request_uri] if args.key?(:request_uri) @return_refresh_token = args[:return_refresh_token] if args.key?(:return_refresh_token) + @return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token) @session_id = args[:session_id] if args.key?(:session_id) end end @@ -808,6 +1017,12 @@ module Google # @return [String] attr_accessor :instance_id + # Whether return sts id token and refresh token instead of gitkit token. + # Corresponds to the JSON property `returnSecureToken` + # @return [Boolean] + attr_accessor :return_secure_token + alias_method :return_secure_token?, :return_secure_token + # The custom token to verify # Corresponds to the JSON property `token` # @return [String] @@ -820,6 +1035,7 @@ module Google # Update properties of this object def update!(**args) @instance_id = args[:instance_id] if args.key?(:instance_id) + @return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token) @token = args[:token] if args.key?(:token) end end @@ -869,6 +1085,12 @@ module Google # @return [String] attr_accessor :pending_id_token + # Whether return sts id token and refresh token instead of gitkit token. + # Corresponds to the JSON property `returnSecureToken` + # @return [Boolean] + attr_accessor :return_secure_token + alias_method :return_secure_token?, :return_secure_token + def initialize(**args) update!(**args) end @@ -883,6 +1105,7 @@ module Google @instance_id = args[:instance_id] if args.key?(:instance_id) @password = args[:password] if args.key?(:password) @pending_id_token = args[:pending_id_token] if args.key?(:pending_id_token) + @return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token) end end @@ -1025,6 +1248,12 @@ module Google # @return [String] attr_accessor :email + # If idToken is STS id token, then this field will be expiration time of STS id + # token in seconds. + # Corresponds to the JSON property `expiresIn` + # @return [String] + attr_accessor :expires_in + # The Gitkit id token to login the newly sign up user. # Corresponds to the JSON property `idToken` # @return [String] @@ -1050,6 +1279,11 @@ module Google # @return [Array] attr_accessor :provider_user_info + # If idToken is STS id token, then this field will be refresh token. + # Corresponds to the JSON property `refreshToken` + # @return [String] + attr_accessor :refresh_token + def initialize(**args) update!(**args) end @@ -1058,11 +1292,13 @@ module Google def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @email = args[:email] if args.key?(:email) + @expires_in = args[:expires_in] if args.key?(:expires_in) @id_token = args[:id_token] if args.key?(:id_token) @kind = args[:kind] if args.key?(:kind) @new_email = args[:new_email] if args.key?(:new_email) @photo_url = args[:photo_url] if args.key?(:photo_url) @provider_user_info = args[:provider_user_info] if args.key?(:provider_user_info) + @refresh_token = args[:refresh_token] if args.key?(:refresh_token) end # @@ -1113,6 +1349,12 @@ module Google # @return [String] attr_accessor :email + # If idToken is STS id token, then this field will be expiration time of STS id + # token in seconds. + # Corresponds to the JSON property `expiresIn` + # @return [String] + attr_accessor :expires_in + # The Gitkit id token to login the newly sign up user. # Corresponds to the JSON property `idToken` # @return [String] @@ -1123,6 +1365,16 @@ module Google # @return [String] attr_accessor :kind + # The RP local ID of the user. + # Corresponds to the JSON property `localId` + # @return [String] + attr_accessor :local_id + + # If idToken is STS id token, then this field will be refresh token. + # Corresponds to the JSON property `refreshToken` + # @return [String] + attr_accessor :refresh_token + def initialize(**args) update!(**args) end @@ -1131,8 +1383,11 @@ module Google def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @email = args[:email] if args.key?(:email) + @expires_in = args[:expires_in] if args.key?(:expires_in) @id_token = args[:id_token] if args.key?(:id_token) @kind = args[:kind] if args.key?(:kind) + @local_id = args[:local_id] if args.key?(:local_id) + @refresh_token = args[:refresh_token] if args.key?(:refresh_token) end end @@ -1302,6 +1557,11 @@ module Google # @return [String] attr_accessor :provider_id + # User's raw identifier directly returned from IDP. + # Corresponds to the JSON property `rawId` + # @return [String] + attr_accessor :raw_id + def initialize(**args) update!(**args) end @@ -1313,6 +1573,7 @@ module Google @federated_id = args[:federated_id] if args.key?(:federated_id) @photo_url = args[:photo_url] if args.key?(:photo_url) @provider_id = args[:provider_id] if args.key?(:provider_id) + @raw_id = args[:raw_id] if args.key?(:raw_id) end end end @@ -1371,6 +1632,12 @@ module Google attr_accessor :email_verified alias_method :email_verified?, :email_verified + # If idToken is STS id token, then this field will be expiration time of STS id + # token in seconds. + # Corresponds to the JSON property `expiresIn` + # @return [String] + attr_accessor :expires_in + # The unique ID identifies the IdP account. # Corresponds to the JSON property `federatedId` # @return [String] @@ -1462,6 +1729,11 @@ module Google # @return [String] attr_accessor :oauth_scope + # The OAuth1 access token secret. + # Corresponds to the JSON property `oauthTokenSecret` + # @return [String] + attr_accessor :oauth_token_secret + # The original email stored in the mapping storage. It's returned when the # federated ID is associated to a different email. # Corresponds to the JSON property `originalEmail` @@ -1482,6 +1754,11 @@ module Google # @return [String] attr_accessor :provider_id + # If idToken is STS id token, then this field will be refresh token. + # Corresponds to the JSON property `refreshToken` + # @return [String] + attr_accessor :refresh_token + # The timezone of the user. # Corresponds to the JSON property `timeZone` # @return [String] @@ -1507,6 +1784,7 @@ module Google @email = args[:email] if args.key?(:email) @email_recycled = args[:email_recycled] if args.key?(:email_recycled) @email_verified = args[:email_verified] if args.key?(:email_verified) + @expires_in = args[:expires_in] if args.key?(:expires_in) @federated_id = args[:federated_id] if args.key?(:federated_id) @first_name = args[:first_name] if args.key?(:first_name) @full_name = args[:full_name] if args.key?(:full_name) @@ -1524,9 +1802,11 @@ module Google @oauth_expire_in = args[:oauth_expire_in] if args.key?(:oauth_expire_in) @oauth_request_token = args[:oauth_request_token] if args.key?(:oauth_request_token) @oauth_scope = args[:oauth_scope] if args.key?(:oauth_scope) + @oauth_token_secret = args[:oauth_token_secret] if args.key?(:oauth_token_secret) @original_email = args[:original_email] if args.key?(:original_email) @photo_url = args[:photo_url] if args.key?(:photo_url) @provider_id = args[:provider_id] if args.key?(:provider_id) + @refresh_token = args[:refresh_token] if args.key?(:refresh_token) @time_zone = args[:time_zone] if args.key?(:time_zone) @verified_provider = args[:verified_provider] if args.key?(:verified_provider) end @@ -1536,6 +1816,12 @@ module Google class VerifyCustomTokenResponse include Google::Apis::Core::Hashable + # If idToken is STS id token, then this field will be expiration time of STS id + # token in seconds. + # Corresponds to the JSON property `expiresIn` + # @return [String] + attr_accessor :expires_in + # The GITKit token for authenticated user. # Corresponds to the JSON property `idToken` # @return [String] @@ -1546,14 +1832,21 @@ module Google # @return [String] attr_accessor :kind + # If idToken is STS id token, then this field will be refresh token. + # Corresponds to the JSON property `refreshToken` + # @return [String] + attr_accessor :refresh_token + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @expires_in = args[:expires_in] if args.key?(:expires_in) @id_token = args[:id_token] if args.key?(:id_token) @kind = args[:kind] if args.key?(:kind) + @refresh_token = args[:refresh_token] if args.key?(:refresh_token) end end @@ -1572,6 +1865,12 @@ module Google # @return [String] attr_accessor :email + # If idToken is STS id token, then this field will be expiration time of STS id + # token in seconds. + # Corresponds to the JSON property `expiresIn` + # @return [String] + attr_accessor :expires_in + # The GITKit token for authenticated user. # Corresponds to the JSON property `idToken` # @return [String] @@ -1608,6 +1907,11 @@ module Google # @return [String] attr_accessor :photo_url + # If idToken is STS id token, then this field will be refresh token. + # Corresponds to the JSON property `refreshToken` + # @return [String] + attr_accessor :refresh_token + # Whether the email is registered. # Corresponds to the JSON property `registered` # @return [Boolean] @@ -1622,6 +1926,7 @@ module Google def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @email = args[:email] if args.key?(:email) + @expires_in = args[:expires_in] if args.key?(:expires_in) @id_token = args[:id_token] if args.key?(:id_token) @kind = args[:kind] if args.key?(:kind) @local_id = args[:local_id] if args.key?(:local_id) @@ -1629,6 +1934,7 @@ module Google @oauth_authorization_code = args[:oauth_authorization_code] if args.key?(:oauth_authorization_code) @oauth_expire_in = args[:oauth_expire_in] if args.key?(:oauth_expire_in) @photo_url = args[:photo_url] if args.key?(:photo_url) + @refresh_token = args[:refresh_token] if args.key?(:refresh_token) @registered = args[:registered] if args.key?(:registered) end end diff --git a/generated/google/apis/identitytoolkit_v3/representations.rb b/generated/google/apis/identitytoolkit_v3/representations.rb index 3166a5332..c41f34bfd 100644 --- a/generated/google/apis/identitytoolkit_v3/representations.rb +++ b/generated/google/apis/identitytoolkit_v3/representations.rb @@ -40,6 +40,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class EmailTemplate + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GetAccountInfoResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -100,6 +106,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SetProjectConfigRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class IdentitytoolkitRelyingpartySetProjectConfigResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SignOutUserRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -251,6 +269,18 @@ module Google end end + class EmailTemplate + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :body, as: 'body' + property :format, as: 'format' + property :from, as: 'from' + property :from_display_name, as: 'fromDisplayName' + property :reply_to, as: 'replyTo' + property :subject, as: 'subject' + end + end + class GetAccountInfoResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -298,6 +328,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :delegated_project_number, as: 'delegatedProjectNumber' + property :id_token, as: 'idToken' property :local_id, as: 'localId' end end @@ -314,6 +345,7 @@ module Google class GetAccountInfoRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :delegated_project_number, as: 'delegatedProjectNumber' collection :email, as: 'email' property :id_token, as: 'idToken' collection :local_id, as: 'localId' @@ -325,9 +357,17 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :allow_password_user, as: 'allowPasswordUser' property :api_key, as: 'apiKey' + collection :authorized_domains, as: 'authorizedDomains' + property :change_email_template, as: 'changeEmailTemplate', class: Google::Apis::IdentitytoolkitV3::EmailTemplate, decorator: Google::Apis::IdentitytoolkitV3::EmailTemplate::Representation + collection :idp_config, as: 'idpConfig', class: Google::Apis::IdentitytoolkitV3::IdpConfig, decorator: Google::Apis::IdentitytoolkitV3::IdpConfig::Representation property :project_id, as: 'projectId' + property :reset_password_template, as: 'resetPasswordTemplate', class: Google::Apis::IdentitytoolkitV3::EmailTemplate, decorator: Google::Apis::IdentitytoolkitV3::EmailTemplate::Representation + + property :use_email_sending, as: 'useEmailSending' + property :verify_email_template, as: 'verifyEmailTemplate', class: Google::Apis::IdentitytoolkitV3::EmailTemplate, decorator: Google::Apis::IdentitytoolkitV3::EmailTemplate::Representation + end end @@ -347,6 +387,8 @@ module Google property :captcha_challenge, as: 'captchaChallenge' property :captcha_response, as: 'captchaResponse' property :delegated_project_number, as: 'delegatedProjectNumber' + collection :delete_attribute, as: 'deleteAttribute' + collection :delete_provider, as: 'deleteProvider' property :disable_user, as: 'disableUser' property :display_name, as: 'displayName' property :email, as: 'email' @@ -358,11 +400,37 @@ module Google property :password, as: 'password' property :photo_url, as: 'photoUrl' collection :provider, as: 'provider' + property :return_secure_token, as: 'returnSecureToken' property :upgrade_to_federated_login, as: 'upgradeToFederatedLogin' property :valid_since, as: 'validSince' end end + class SetProjectConfigRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :allow_password_user, as: 'allowPasswordUser' + property :api_key, as: 'apiKey' + property :change_email_template, as: 'changeEmailTemplate', class: Google::Apis::IdentitytoolkitV3::EmailTemplate, decorator: Google::Apis::IdentitytoolkitV3::EmailTemplate::Representation + + property :delegated_project_number, as: 'delegatedProjectNumber' + collection :idp_config, as: 'idpConfig', class: Google::Apis::IdentitytoolkitV3::IdpConfig, decorator: Google::Apis::IdentitytoolkitV3::IdpConfig::Representation + + property :reset_password_template, as: 'resetPasswordTemplate', class: Google::Apis::IdentitytoolkitV3::EmailTemplate, decorator: Google::Apis::IdentitytoolkitV3::EmailTemplate::Representation + + property :use_email_sending, as: 'useEmailSending' + property :verify_email_template, as: 'verifyEmailTemplate', class: Google::Apis::IdentitytoolkitV3::EmailTemplate, decorator: Google::Apis::IdentitytoolkitV3::EmailTemplate::Representation + + end + end + + class IdentitytoolkitRelyingpartySetProjectConfigResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :project_id, as: 'projectId' + end + end + class SignOutUserRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -388,6 +456,7 @@ module Google property :id_token, as: 'idToken' property :instance_id, as: 'instanceId' property :password, as: 'password' + property :return_secure_token, as: 'returnSecureToken' end end @@ -415,6 +484,7 @@ module Google property :post_body, as: 'postBody' property :request_uri, as: 'requestUri' property :return_refresh_token, as: 'returnRefreshToken' + property :return_secure_token, as: 'returnSecureToken' property :session_id, as: 'sessionId' end end @@ -423,6 +493,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :instance_id, as: 'instanceId' + property :return_secure_token, as: 'returnSecureToken' property :token, as: 'token' end end @@ -438,6 +509,7 @@ module Google property :instance_id, as: 'instanceId' property :password, as: 'password' property :pending_id_token, as: 'pendingIdToken' + property :return_secure_token, as: 'returnSecureToken' end end @@ -478,12 +550,14 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :display_name, as: 'displayName' property :email, as: 'email' + property :expires_in, as: 'expiresIn' property :id_token, as: 'idToken' property :kind, as: 'kind' property :new_email, as: 'newEmail' property :photo_url, as: 'photoUrl' collection :provider_user_info, as: 'providerUserInfo', class: Google::Apis::IdentitytoolkitV3::SetAccountInfoResponse::ProviderUserInfo, decorator: Google::Apis::IdentitytoolkitV3::SetAccountInfoResponse::ProviderUserInfo::Representation + property :refresh_token, as: 'refreshToken' end class ProviderUserInfo @@ -501,8 +575,11 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :display_name, as: 'displayName' property :email, as: 'email' + property :expires_in, as: 'expiresIn' property :id_token, as: 'idToken' property :kind, as: 'kind' + property :local_id, as: 'localId' + property :refresh_token, as: 'refreshToken' end end @@ -549,6 +626,7 @@ module Google property :federated_id, as: 'federatedId' property :photo_url, as: 'photoUrl' property :provider_id, as: 'providerId' + property :raw_id, as: 'rawId' end end end @@ -565,6 +643,7 @@ module Google property :email, as: 'email' property :email_recycled, as: 'emailRecycled' property :email_verified, as: 'emailVerified' + property :expires_in, as: 'expiresIn' property :federated_id, as: 'federatedId' property :first_name, as: 'firstName' property :full_name, as: 'fullName' @@ -582,9 +661,11 @@ module Google property :oauth_expire_in, as: 'oauthExpireIn' property :oauth_request_token, as: 'oauthRequestToken' property :oauth_scope, as: 'oauthScope' + property :oauth_token_secret, as: 'oauthTokenSecret' property :original_email, as: 'originalEmail' property :photo_url, as: 'photoUrl' property :provider_id, as: 'providerId' + property :refresh_token, as: 'refreshToken' property :time_zone, as: 'timeZone' collection :verified_provider, as: 'verifiedProvider' end @@ -593,8 +674,10 @@ module Google class VerifyCustomTokenResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :expires_in, as: 'expiresIn' property :id_token, as: 'idToken' property :kind, as: 'kind' + property :refresh_token, as: 'refreshToken' end end @@ -603,6 +686,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :display_name, as: 'displayName' property :email, as: 'email' + property :expires_in, as: 'expiresIn' property :id_token, as: 'idToken' property :kind, as: 'kind' property :local_id, as: 'localId' @@ -610,6 +694,7 @@ module Google property :oauth_authorization_code, as: 'oauthAuthorizationCode' property :oauth_expire_in, as: 'oauthExpireIn' property :photo_url, as: 'photoUrl' + property :refresh_token, as: 'refreshToken' property :registered, as: 'registered' end end diff --git a/generated/google/apis/identitytoolkit_v3/service.rb b/generated/google/apis/identitytoolkit_v3/service.rb index 3c63921c2..bb0aca859 100644 --- a/generated/google/apis/identitytoolkit_v3/service.rb +++ b/generated/google/apis/identitytoolkit_v3/service.rb @@ -228,6 +228,10 @@ module Google end # Get project configuration. + # @param [String] delegated_project_number + # Delegated GCP project number of the request. + # @param [String] project_number + # GCP project number of the request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -249,10 +253,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_config(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_project_config(delegated_project_number: nil, project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'getProjectConfig', options) command.response_representation = Google::Apis::IdentitytoolkitV3::GetProjectConfigResponse::Representation command.response_class = Google::Apis::IdentitytoolkitV3::GetProjectConfigResponse + command.query['delegatedProjectNumber'] = delegated_project_number unless delegated_project_number.nil? + command.query['projectNumber'] = project_number unless project_number.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -393,6 +399,41 @@ module Google execute_or_queue_command(command, &block) end + # Set project configuration. + # @param [Google::Apis::IdentitytoolkitV3::SetProjectConfigRequest] set_project_config_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartySetProjectConfigResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartySetProjectConfigResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_relyingparty_project_config(set_project_config_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'setProjectConfig', options) + command.request_representation = Google::Apis::IdentitytoolkitV3::SetProjectConfigRequest::Representation + command.request_object = set_project_config_request_object + command.response_representation = Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartySetProjectConfigResponse::Representation + command.response_class = Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartySetProjectConfigResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Sign out user. # @param [Google::Apis::IdentitytoolkitV3::SignOutUserRequest] sign_out_user_request_object # @param [String] fields diff --git a/generated/google/apis/pagespeedonline_v2.rb b/generated/google/apis/pagespeedonline_v2.rb index a3a041dcc..bea8a14c5 100644 --- a/generated/google/apis/pagespeedonline_v2.rb +++ b/generated/google/apis/pagespeedonline_v2.rb @@ -20,13 +20,13 @@ module Google module Apis # PageSpeed Insights API # - # Lets you analyze the performance of a web page and get tailored suggestions to + # Analyzes the performance of a web page and provides tailored suggestions to # make that page faster. # # @see https://developers.google.com/speed/docs/insights/v2/getting-started module PagespeedonlineV2 VERSION = 'V2' - REVISION = '20150317' + REVISION = '20160306' end end end diff --git a/generated/google/apis/pagespeedonline_v2/service.rb b/generated/google/apis/pagespeedonline_v2/service.rb index 399ebeb7e..2ab38a3ef 100644 --- a/generated/google/apis/pagespeedonline_v2/service.rb +++ b/generated/google/apis/pagespeedonline_v2/service.rb @@ -22,7 +22,7 @@ module Google module PagespeedonlineV2 # PageSpeed Insights API # - # Lets you analyze the performance of a web page and get tailored suggestions to + # Analyzes the performance of a web page and provides tailored suggestions to # make that page faster. # # @example diff --git a/generated/google/apis/plus_domains_v1.rb b/generated/google/apis/plus_domains_v1.rb index dcdfe5f5b..868e901d2 100644 --- a/generated/google/apis/plus_domains_v1.rb +++ b/generated/google/apis/plus_domains_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/+/domains/ module PlusDomainsV1 VERSION = 'V1' - REVISION = '20160223' + REVISION = '20160309' # View your circles and the people and pages in them AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read' diff --git a/generated/google/apis/plus_v1.rb b/generated/google/apis/plus_v1.rb index 9d1dbfcb0..f2f0de3fb 100644 --- a/generated/google/apis/plus_v1.rb +++ b/generated/google/apis/plus_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/+/api/ module PlusV1 VERSION = 'V1' - REVISION = '20160223' + REVISION = '20160309' # Know the list of people in your circles, your age range, and language AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' diff --git a/generated/google/apis/prediction_v1_6.rb b/generated/google/apis/prediction_v1_6.rb index 0915c8e16..0a27bd1c8 100644 --- a/generated/google/apis/prediction_v1_6.rb +++ b/generated/google/apis/prediction_v1_6.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/prediction/docs/developer-guide module PredictionV1_6 VERSION = 'V1_6' - REVISION = '20151102' + REVISION = '20160304' # Manage your data and permissions in Google Cloud Storage AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control' diff --git a/generated/google/apis/prediction_v1_6/classes.rb b/generated/google/apis/prediction_v1_6/classes.rb index bba35e95a..75562d5df 100644 --- a/generated/google/apis/prediction_v1_6/classes.rb +++ b/generated/google/apis/prediction_v1_6/classes.rb @@ -674,7 +674,7 @@ module Google # The estimated regression value (Regression models only). # Corresponds to the JSON property `outputValue` - # @return [Float] + # @return [String] attr_accessor :output_value # A URL to re-request this resource. diff --git a/generated/google/apis/qpx_express_v1.rb b/generated/google/apis/qpx_express_v1.rb index 5c4be715a..52d1c8dbc 100644 --- a/generated/google/apis/qpx_express_v1.rb +++ b/generated/google/apis/qpx_express_v1.rb @@ -20,12 +20,12 @@ module Google module Apis # QPX Express API # - # Lets you find the least expensive flights between an origin and a destination. + # Finds the least expensive flights between an origin and a destination. # # @see http://developers.google.com/qpx-express module QpxExpressV1 VERSION = 'V1' - REVISION = '20140321' + REVISION = '20160307' end end end diff --git a/generated/google/apis/qpx_express_v1/service.rb b/generated/google/apis/qpx_express_v1/service.rb index c0885533a..e4119d789 100644 --- a/generated/google/apis/qpx_express_v1/service.rb +++ b/generated/google/apis/qpx_express_v1/service.rb @@ -22,7 +22,7 @@ module Google module QpxExpressV1 # QPX Express API # - # Lets you find the least expensive flights between an origin and a destination. + # Finds the least expensive flights between an origin and a destination. # # @example # require 'google/apis/qpx_express_v1' diff --git a/generated/google/apis/replicapoolupdater_v1beta1.rb b/generated/google/apis/replicapoolupdater_v1beta1.rb index 6ce93d243..fa18d2f63 100644 --- a/generated/google/apis/replicapoolupdater_v1beta1.rb +++ b/generated/google/apis/replicapoolupdater_v1beta1.rb @@ -20,13 +20,12 @@ module Google module Apis # Google Compute Engine Instance Group Updater API # - # The Google Compute Engine Instance Group Updater API provides services for - # updating groups of Compute Engine Instances. + # Updates groups of Compute Engine instances. # # @see https://cloud.google.com/compute/docs/instance-groups/manager/#applying_rolling_updates_using_the_updater_service module ReplicapoolupdaterV1beta1 VERSION = 'V1beta1' - REVISION = '20160107' + REVISION = '20160229' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/replicapoolupdater_v1beta1/service.rb b/generated/google/apis/replicapoolupdater_v1beta1/service.rb index fb79cd1c4..367ee5ea2 100644 --- a/generated/google/apis/replicapoolupdater_v1beta1/service.rb +++ b/generated/google/apis/replicapoolupdater_v1beta1/service.rb @@ -22,8 +22,7 @@ module Google module ReplicapoolupdaterV1beta1 # Google Compute Engine Instance Group Updater API # - # The Google Compute Engine Instance Group Updater API provides services for - # updating groups of Compute Engine Instances. + # Updates groups of Compute Engine instances. # # @example # require 'google/apis/replicapoolupdater_v1beta1' diff --git a/generated/google/apis/reseller_v1.rb b/generated/google/apis/reseller_v1.rb index fc3767bb4..462dedfb7 100644 --- a/generated/google/apis/reseller_v1.rb +++ b/generated/google/apis/reseller_v1.rb @@ -20,12 +20,12 @@ module Google module Apis # Enterprise Apps Reseller API # - # Lets you create and manage your customers and their subscriptions. + # Creates and manages your customers and their subscriptions. # # @see https://developers.google.com/google-apps/reseller/ module ResellerV1 VERSION = 'V1' - REVISION = '20160218' + REVISION = '20160229' # Manage users on your domain AUTH_APPS_ORDER = 'https://www.googleapis.com/auth/apps.order' diff --git a/generated/google/apis/reseller_v1/service.rb b/generated/google/apis/reseller_v1/service.rb index 8d6ff68a2..84e439c01 100644 --- a/generated/google/apis/reseller_v1/service.rb +++ b/generated/google/apis/reseller_v1/service.rb @@ -22,7 +22,7 @@ module Google module ResellerV1 # Enterprise Apps Reseller API # - # Lets you create and manage your customers and their subscriptions. + # Creates and manages your customers and their subscriptions. # # @example # require 'google/apis/reseller_v1' diff --git a/generated/google/apis/site_verification_v1.rb b/generated/google/apis/site_verification_v1.rb index bf86e4c57..76d080e3b 100644 --- a/generated/google/apis/site_verification_v1.rb +++ b/generated/google/apis/site_verification_v1.rb @@ -20,12 +20,12 @@ module Google module Apis # Google Site Verification API # - # Lets you programatically verify ownership of websites or domains with Google. + # Verifies ownership of websites or domains with Google. # # @see https://developers.google.com/site-verification/ module SiteVerificationV1 VERSION = 'V1' - REVISION = '20151007' + REVISION = '20160228' # Manage the list of sites and domains you control AUTH_SITEVERIFICATION = 'https://www.googleapis.com/auth/siteverification' diff --git a/generated/google/apis/site_verification_v1/service.rb b/generated/google/apis/site_verification_v1/service.rb index a4f5ed97f..642d3ad94 100644 --- a/generated/google/apis/site_verification_v1/service.rb +++ b/generated/google/apis/site_verification_v1/service.rb @@ -22,7 +22,7 @@ module Google module SiteVerificationV1 # Google Site Verification API # - # Lets you programatically verify ownership of websites or domains with Google. + # Verifies ownership of websites or domains with Google. # # @example # require 'google/apis/site_verification_v1' diff --git a/generated/google/apis/storage_v1.rb b/generated/google/apis/storage_v1.rb index 3e714d325..aff76f6ae 100644 --- a/generated/google/apis/storage_v1.rb +++ b/generated/google/apis/storage_v1.rb @@ -20,12 +20,12 @@ module Google module Apis # Cloud Storage JSON API # - # Lets you store and retrieve potentially-large, immutable data objects. + # Stores and retrieves potentially large, immutable data objects. # # @see https://developers.google.com/storage/docs/json_api/ module StorageV1 VERSION = 'V1' - REVISION = '20160210' + REVISION = '20160304' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/storage_v1/service.rb b/generated/google/apis/storage_v1/service.rb index 8db8dbf74..927e15ce6 100644 --- a/generated/google/apis/storage_v1/service.rb +++ b/generated/google/apis/storage_v1/service.rb @@ -22,7 +22,7 @@ module Google module StorageV1 # Cloud Storage JSON API # - # Lets you store and retrieve potentially-large, immutable data objects. + # Stores and retrieves potentially large, immutable data objects. # # @example # require 'google/apis/storage_v1' diff --git a/generated/google/apis/tagmanager_v1.rb b/generated/google/apis/tagmanager_v1.rb index f61fead17..5a4805689 100644 --- a/generated/google/apis/tagmanager_v1.rb +++ b/generated/google/apis/tagmanager_v1.rb @@ -20,12 +20,12 @@ module Google module Apis # Tag Manager API # - # API for accessing Tag Manager accounts and containers. + # Accesses Tag Manager accounts and containers. # # @see https://developers.google.com/tag-manager/api/v1/ module TagmanagerV1 VERSION = 'V1' - REVISION = '20160209' + REVISION = '20160310' # Delete your Google Tag Manager containers AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers' diff --git a/generated/google/apis/tagmanager_v1/service.rb b/generated/google/apis/tagmanager_v1/service.rb index f16f04e6f..2393ee2b1 100644 --- a/generated/google/apis/tagmanager_v1/service.rb +++ b/generated/google/apis/tagmanager_v1/service.rb @@ -22,7 +22,7 @@ module Google module TagmanagerV1 # Tag Manager API # - # API for accessing Tag Manager accounts and containers. + # Accesses Tag Manager accounts and containers. # # @example # require 'google/apis/tagmanager_v1' diff --git a/generated/google/apis/vision_v1.rb b/generated/google/apis/vision_v1.rb index e32ff7bb2..e99404153 100644 --- a/generated/google/apis/vision_v1.rb +++ b/generated/google/apis/vision_v1.rb @@ -28,7 +28,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1 VERSION = 'V1' - REVISION = '20160223' + REVISION = '20160308' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/vision_v1/classes.rb b/generated/google/apis/vision_v1/classes.rb index e680f09dc..cbc5593d5 100644 --- a/generated/google/apis/vision_v1/classes.rb +++ b/generated/google/apis/vision_v1/classes.rb @@ -757,7 +757,7 @@ module Google # @return [Google::Apis::VisionV1::BoundingPoly] attr_accessor :bounding_poly - # The location information for the recognized entity. Multiple + # The location information for the detected entity. Multiple # LocationInfo elements can be present since one location may # indicate the location of the scene in the query image, and another the # location of the place where the query image was taken. Location information @@ -766,7 +766,7 @@ module Google # @return [Array] attr_accessor :locations - # The accuracy of the entity recognition in an image. + # The accuracy of the entity detection in an image. # For example, for an image containing 'Eiffel Tower,' this field represents # the confidence that there is a tower in the query image. Range [0, 1]. # Corresponds to the JSON property `confidence` diff --git a/generated/google/apis/youtube_analytics_v1.rb b/generated/google/apis/youtube_analytics_v1.rb index 9db2164fb..a229d31da 100644 --- a/generated/google/apis/youtube_analytics_v1.rb +++ b/generated/google/apis/youtube_analytics_v1.rb @@ -20,12 +20,12 @@ module Google module Apis # YouTube Analytics API # - # Retrieve your YouTube Analytics reports. + # Retrieves your YouTube Analytics reports. # # @see http://developers.google.com/youtube/analytics/ module YoutubeAnalyticsV1 VERSION = 'V1' - REVISION = '20160204' + REVISION = '20160301' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube' diff --git a/generated/google/apis/youtube_analytics_v1/service.rb b/generated/google/apis/youtube_analytics_v1/service.rb index a5aa51147..48d838c8d 100644 --- a/generated/google/apis/youtube_analytics_v1/service.rb +++ b/generated/google/apis/youtube_analytics_v1/service.rb @@ -22,7 +22,7 @@ module Google module YoutubeAnalyticsV1 # YouTube Analytics API # - # Retrieve your YouTube Analytics reports. + # Retrieves your YouTube Analytics reports. # # @example # require 'google/apis/youtube_analytics_v1' diff --git a/generated/google/apis/youtube_v3.rb b/generated/google/apis/youtube_v3.rb index cdefd2a4a..2e3360f05 100644 --- a/generated/google/apis/youtube_v3.rb +++ b/generated/google/apis/youtube_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/youtube/v3 module YoutubeV3 VERSION = 'V3' - REVISION = '20160201' + REVISION = '20160222' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube' diff --git a/generated/google/apis/youtube_v3/classes.rb b/generated/google/apis/youtube_v3/classes.rb index 29c0257d6..9c28aea13 100644 --- a/generated/google/apis/youtube_v3/classes.rb +++ b/generated/google/apis/youtube_v3/classes.rb @@ -925,6 +925,7 @@ module Google attr_accessor :localizations # Basic details about a channel, including title, description and thumbnails. + # Next available id: 15. # Corresponds to the JSON property `snippet` # @return [Google::Apis::YoutubeV3::ChannelSnippet] attr_accessor :snippet @@ -1711,6 +1712,7 @@ module Google end # Basic details about a channel, including title, description and thumbnails. + # Next available id: 15. class ChannelSnippet include Google::Apis::Core::Hashable @@ -1719,6 +1721,11 @@ module Google # @return [String] attr_accessor :country + # The custom url of the channel. + # Corresponds to the JSON property `customUrl` + # @return [String] + attr_accessor :custom_url + # The language of the channel's default title and description. # Corresponds to the JSON property `defaultLanguage` # @return [String] @@ -1757,6 +1764,7 @@ module Google # Update properties of this object def update!(**args) @country = args[:country] if args.key?(:country) + @custom_url = args[:custom_url] if args.key?(:custom_url) @default_language = args[:default_language] if args.key?(:default_language) @description = args[:description] if args.key?(:description) @localized = args[:localized] if args.key?(:localized) diff --git a/generated/google/apis/youtube_v3/representations.rb b/generated/google/apis/youtube_v3/representations.rb index 566a84b11..8943a4c66 100644 --- a/generated/google/apis/youtube_v3/representations.rb +++ b/generated/google/apis/youtube_v3/representations.rb @@ -1494,6 +1494,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :country, as: 'country' + property :custom_url, as: 'customUrl' property :default_language, as: 'defaultLanguage' property :description, as: 'description' property :localized, as: 'localized', class: Google::Apis::YoutubeV3::ChannelLocalization, decorator: Google::Apis::YoutubeV3::ChannelLocalization::Representation diff --git a/generated/google/apis/youtubereporting_v1.rb b/generated/google/apis/youtubereporting_v1.rb index ff84f988c..9ec65048f 100644 --- a/generated/google/apis/youtubereporting_v1.rb +++ b/generated/google/apis/youtubereporting_v1.rb @@ -20,13 +20,13 @@ module Google module Apis # YouTube Reporting API # - # An API to schedule reporting jobs and download the resulting bulk data reports - # about YouTube channels, videos etc. in the form of CSV files. + # Schedules reporting jobs and downloads the resulting bulk data reports about + # YouTube channels, videos, etc. in the form of CSV files. # # @see https://developers.google.com/youtube/reporting/v1/reports/ module YoutubereportingV1 VERSION = 'V1' - REVISION = '20151026' + REVISION = '20160301' # View monetary and non-monetary YouTube Analytics reports for your YouTube content AUTH_YT_ANALYTICS_MONETARY_READONLY = 'https://www.googleapis.com/auth/yt-analytics-monetary.readonly' diff --git a/generated/google/apis/youtubereporting_v1/classes.rb b/generated/google/apis/youtubereporting_v1/classes.rb index c306a1811..653dbb95c 100644 --- a/generated/google/apis/youtubereporting_v1/classes.rb +++ b/generated/google/apis/youtubereporting_v1/classes.rb @@ -107,8 +107,7 @@ module Google # @return [String] attr_accessor :report_type_id - # The name of the job (max. 100 characters). TODO(lanthaler) Clarify what this - # will actually be used for + # The name of the job (max. 100 characters). # Corresponds to the JSON property `name` # @return [String] attr_accessor :name diff --git a/generated/google/apis/youtubereporting_v1/service.rb b/generated/google/apis/youtubereporting_v1/service.rb index 0d7e38ef0..051b1f9b3 100644 --- a/generated/google/apis/youtubereporting_v1/service.rb +++ b/generated/google/apis/youtubereporting_v1/service.rb @@ -22,8 +22,8 @@ module Google module YoutubereportingV1 # YouTube Reporting API # - # An API to schedule reporting jobs and download the resulting bulk data reports - # about YouTube channels, videos etc. in the form of CSV files. + # Schedules reporting jobs and downloads the resulting bulk data reports about + # YouTube channels, videos, etc. in the form of CSV files. # # @example # require 'google/apis/youtubereporting_v1' @@ -50,8 +50,8 @@ module Google # Method for media download. Download is supported on the URI `/v1/media/`+name`? # alt=media`. # @param [String] resource_name - # Name of the media that is being downloaded. See [][ByteStream.ReadRequest. - # resource_name]. + # Name of the media that is being downloaded. See ByteStream.ReadRequest. + # resource_name. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/script/generate b/script/generate index 956ff6b9e..226166595 100755 --- a/script/generate +++ b/script/generate @@ -30,6 +30,7 @@ APIS=(adexchangebuyer:v1.4 \ cloudlatencytest:v2 \ cloudmonitoring:v2beta2 \ cloudresourcemanager:v1beta1 \ + cloudresourcemanager:v1 \ cloudtrace:v1 \ clouduseraccounts:beta \ compute:v1 \ @@ -58,6 +59,7 @@ APIS=(adexchangebuyer:v1.4 \ gmail:v1 \ groupsmigration:v1 \ groupssettings:v1 \ + iam:v1 \ identitytoolkit:v3 \ kgsearch:v1 \ licensing:v1 \