From 7757a2c7df8e8e001d8de63f146736512b1d6281 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Fri, 6 Apr 2018 00:35:48 +0000 Subject: [PATCH] Autogenerated update (2018-04-06) Update: - classroom_v1 - cloudbuild_v1 - cloudresourcemanager_v1 - cloudresourcemanager_v1beta1 - cloudresourcemanager_v2 - cloudresourcemanager_v2beta1 - compute_alpha - compute_beta - compute_v1 - dataproc_v1 - dataproc_v1beta2 - drive_v2 - genomics_v1 - groupssettings_v1 - iam_v1 - manufacturers_v1 - people_v1 - spanner_v1 --- api_names_out.yaml | 343 +++++ generated/google/apis/classroom_v1.rb | 2 +- generated/google/apis/classroom_v1/classes.rb | 3 +- generated/google/apis/cloudbuild_v1.rb | 2 +- .../google/apis/cloudbuild_v1/classes.rb | 6 + .../apis/cloudbuild_v1/representations.rb | 2 + .../google/apis/cloudresourcemanager_v1.rb | 2 +- .../apis/cloudresourcemanager_v1/classes.rb | 1 - .../apis/cloudresourcemanager_v1beta1.rb | 2 +- .../cloudresourcemanager_v1beta1/classes.rb | 1 - .../google/apis/cloudresourcemanager_v2.rb | 2 +- .../apis/cloudresourcemanager_v2/classes.rb | 1 - .../apis/cloudresourcemanager_v2beta1.rb | 2 +- .../cloudresourcemanager_v2beta1/classes.rb | 1 - generated/google/apis/compute_alpha.rb | 2 +- .../google/apis/compute_alpha/classes.rb | 556 ++++++- .../apis/compute_alpha/representations.rb | 230 ++- .../google/apis/compute_alpha/service.rb | 1355 ++++++++++++++++- generated/google/apis/compute_beta.rb | 2 +- generated/google/apis/compute_beta/classes.rb | 14 + .../apis/compute_beta/representations.rb | 3 + generated/google/apis/compute_beta/service.rb | 6 +- generated/google/apis/compute_v1.rb | 2 +- generated/google/apis/compute_v1/classes.rb | 683 ++++++++- .../google/apis/compute_v1/representations.rb | 268 ++++ generated/google/apis/compute_v1/service.rb | 772 +++++++++- generated/google/apis/dataproc_v1.rb | 2 +- generated/google/apis/dataproc_v1/classes.rb | 18 +- generated/google/apis/dataproc_v1beta2.rb | 2 +- .../google/apis/dataproc_v1beta2/classes.rb | 14 +- generated/google/apis/drive_v2.rb | 2 +- generated/google/apis/drive_v2/classes.rb | 3 +- generated/google/apis/drive_v2/service.rb | 11 +- generated/google/apis/genomics_v1.rb | 2 +- generated/google/apis/genomics_v1/classes.rb | 16 - generated/google/apis/genomics_v1/service.rb | 120 -- generated/google/apis/groupssettings_v1.rb | 2 +- .../google/apis/groupssettings_v1/classes.rb | 7 +- generated/google/apis/iam_v1.rb | 2 +- generated/google/apis/iam_v1/classes.rb | 1 - generated/google/apis/manufacturers_v1.rb | 2 +- .../google/apis/manufacturers_v1/classes.rb | 77 +- .../apis/manufacturers_v1/representations.rb | 23 + .../google/apis/manufacturers_v1/service.rb | 20 +- generated/google/apis/people_v1.rb | 2 +- generated/google/apis/people_v1/classes.rb | 3 +- generated/google/apis/spanner_v1.rb | 2 +- 47 files changed, 4326 insertions(+), 268 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 2b32512a6..54868c6ec 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -12889,6 +12889,7 @@ "/cloudbuild:v1/ArtifactObjects/location": location "/cloudbuild:v1/ArtifactObjects/paths": paths "/cloudbuild:v1/ArtifactObjects/paths/path": path +"/cloudbuild:v1/ArtifactObjects/timing": timing "/cloudbuild:v1/Artifacts": artifacts "/cloudbuild:v1/Artifacts/images": images "/cloudbuild:v1/Artifacts/images/image": image @@ -16955,6 +16956,7 @@ "/compute:alpha/HealthCheck/id": id "/compute:alpha/HealthCheck/kind": kind "/compute:alpha/HealthCheck/name": name +"/compute:alpha/HealthCheck/region": region "/compute:alpha/HealthCheck/selfLink": self_link "/compute:alpha/HealthCheck/sslHealthCheck": ssl_health_check "/compute:alpha/HealthCheck/tcpHealthCheck": tcp_health_check @@ -16978,6 +16980,30 @@ "/compute:alpha/HealthCheckList/warning/message": message "/compute:alpha/HealthCheckReference": health_check_reference "/compute:alpha/HealthCheckReference/healthCheck": health_check +"/compute:alpha/HealthChecksAggregatedList": health_checks_aggregated_list +"/compute:alpha/HealthChecksAggregatedList/id": id +"/compute:alpha/HealthChecksAggregatedList/items": items +"/compute:alpha/HealthChecksAggregatedList/items/item": item +"/compute:alpha/HealthChecksAggregatedList/kind": kind +"/compute:alpha/HealthChecksAggregatedList/nextPageToken": next_page_token +"/compute:alpha/HealthChecksAggregatedList/selfLink": self_link +"/compute:alpha/HealthChecksAggregatedList/warning": warning +"/compute:alpha/HealthChecksAggregatedList/warning/code": code +"/compute:alpha/HealthChecksAggregatedList/warning/data": data +"/compute:alpha/HealthChecksAggregatedList/warning/data/datum": datum +"/compute:alpha/HealthChecksAggregatedList/warning/data/datum/key": key +"/compute:alpha/HealthChecksAggregatedList/warning/data/datum/value": value +"/compute:alpha/HealthChecksAggregatedList/warning/message": message +"/compute:alpha/HealthChecksScopedList": health_checks_scoped_list +"/compute:alpha/HealthChecksScopedList/healthChecks": health_checks +"/compute:alpha/HealthChecksScopedList/healthChecks/health_check": health_check +"/compute:alpha/HealthChecksScopedList/warning": warning +"/compute:alpha/HealthChecksScopedList/warning/code": code +"/compute:alpha/HealthChecksScopedList/warning/data": data +"/compute:alpha/HealthChecksScopedList/warning/data/datum": datum +"/compute:alpha/HealthChecksScopedList/warning/data/datum/key": key +"/compute:alpha/HealthChecksScopedList/warning/data/datum/value": value +"/compute:alpha/HealthChecksScopedList/warning/message": message "/compute:alpha/HealthStatus": health_status "/compute:alpha/HealthStatus/healthState": health_state "/compute:alpha/HealthStatus/instance": instance @@ -17239,6 +17265,7 @@ "/compute:alpha/Instance/serviceAccounts": service_accounts "/compute:alpha/Instance/serviceAccounts/service_account": service_account "/compute:alpha/Instance/shieldedVmConfig": shielded_vm_config +"/compute:alpha/Instance/shieldedVmIntegrityPolicy": shielded_vm_integrity_policy "/compute:alpha/Instance/startRestricted": start_restricted "/compute:alpha/Instance/status": status "/compute:alpha/Instance/statusMessage": status_message @@ -18430,6 +18457,8 @@ "/compute:alpha/RegionSetLabelsRequest/labelFingerprint": label_fingerprint "/compute:alpha/RegionSetLabelsRequest/labels": labels "/compute:alpha/RegionSetLabelsRequest/labels/label": label +"/compute:alpha/RegionUrlMapsValidateRequest": region_url_maps_validate_request +"/compute:alpha/RegionUrlMapsValidateRequest/resource": resource "/compute:alpha/ResourceCommitment": resource_commitment "/compute:alpha/ResourceCommitment/amount": amount "/compute:alpha/ResourceCommitment/type": type @@ -18531,6 +18560,7 @@ "/compute:alpha/RouterBgpPeer/advertisedRoutePriority": advertised_route_priority "/compute:alpha/RouterBgpPeer/interfaceName": interface_name "/compute:alpha/RouterBgpPeer/ipAddress": ip_address +"/compute:alpha/RouterBgpPeer/managementType": management_type "/compute:alpha/RouterBgpPeer/name": name "/compute:alpha/RouterBgpPeer/peerAsn": peer_asn "/compute:alpha/RouterBgpPeer/peerIpAddress": peer_ip_address @@ -18538,6 +18568,7 @@ "/compute:alpha/RouterInterface/ipRange": ip_range "/compute:alpha/RouterInterface/linkedInterconnectAttachment": linked_interconnect_attachment "/compute:alpha/RouterInterface/linkedVpnTunnel": linked_vpn_tunnel +"/compute:alpha/RouterInterface/managementType": management_type "/compute:alpha/RouterInterface/name": name "/compute:alpha/RouterList": router_list "/compute:alpha/RouterList/id": id @@ -18717,6 +18748,8 @@ "/compute:alpha/ShieldedVmConfig/enableIntegrityMonitoring": enable_integrity_monitoring "/compute:alpha/ShieldedVmConfig/enableSecureBoot": enable_secure_boot "/compute:alpha/ShieldedVmConfig/enableVtpm": enable_vtpm +"/compute:alpha/ShieldedVmIntegrityPolicy": shielded_vm_integrity_policy +"/compute:alpha/ShieldedVmIntegrityPolicy/updateAutoLearnPolicy": update_auto_learn_policy "/compute:alpha/SignedUrlKey": signed_url_key "/compute:alpha/SignedUrlKey/keyName": key_name "/compute:alpha/SignedUrlKey/keyValue": key_value @@ -18867,7 +18900,9 @@ "/compute:alpha/Subnetwork/name": name "/compute:alpha/Subnetwork/network": network "/compute:alpha/Subnetwork/privateIpGoogleAccess": private_ip_google_access +"/compute:alpha/Subnetwork/purpose": purpose "/compute:alpha/Subnetwork/region": region +"/compute:alpha/Subnetwork/role": role "/compute:alpha/Subnetwork/secondaryIpRanges": secondary_ip_ranges "/compute:alpha/Subnetwork/secondaryIpRanges/secondary_ip_range": secondary_ip_range "/compute:alpha/Subnetwork/selfLink": self_link @@ -18927,14 +18962,39 @@ "/compute:alpha/Tags/fingerprint": fingerprint "/compute:alpha/Tags/items": items "/compute:alpha/Tags/items/item": item +"/compute:alpha/TargetHttpProxiesScopedList": target_http_proxies_scoped_list +"/compute:alpha/TargetHttpProxiesScopedList/targetHttpProxies": target_http_proxies +"/compute:alpha/TargetHttpProxiesScopedList/targetHttpProxies/target_http_proxy": target_http_proxy +"/compute:alpha/TargetHttpProxiesScopedList/warning": warning +"/compute:alpha/TargetHttpProxiesScopedList/warning/code": code +"/compute:alpha/TargetHttpProxiesScopedList/warning/data": data +"/compute:alpha/TargetHttpProxiesScopedList/warning/data/datum": datum +"/compute:alpha/TargetHttpProxiesScopedList/warning/data/datum/key": key +"/compute:alpha/TargetHttpProxiesScopedList/warning/data/datum/value": value +"/compute:alpha/TargetHttpProxiesScopedList/warning/message": message "/compute:alpha/TargetHttpProxy": target_http_proxy "/compute:alpha/TargetHttpProxy/creationTimestamp": creation_timestamp "/compute:alpha/TargetHttpProxy/description": description "/compute:alpha/TargetHttpProxy/id": id "/compute:alpha/TargetHttpProxy/kind": kind "/compute:alpha/TargetHttpProxy/name": name +"/compute:alpha/TargetHttpProxy/region": region "/compute:alpha/TargetHttpProxy/selfLink": self_link "/compute:alpha/TargetHttpProxy/urlMap": url_map +"/compute:alpha/TargetHttpProxyAggregatedList": target_http_proxy_aggregated_list +"/compute:alpha/TargetHttpProxyAggregatedList/id": id +"/compute:alpha/TargetHttpProxyAggregatedList/items": items +"/compute:alpha/TargetHttpProxyAggregatedList/items/item": item +"/compute:alpha/TargetHttpProxyAggregatedList/kind": kind +"/compute:alpha/TargetHttpProxyAggregatedList/nextPageToken": next_page_token +"/compute:alpha/TargetHttpProxyAggregatedList/selfLink": self_link +"/compute:alpha/TargetHttpProxyAggregatedList/warning": warning +"/compute:alpha/TargetHttpProxyAggregatedList/warning/code": code +"/compute:alpha/TargetHttpProxyAggregatedList/warning/data": data +"/compute:alpha/TargetHttpProxyAggregatedList/warning/data/datum": datum +"/compute:alpha/TargetHttpProxyAggregatedList/warning/data/datum/key": key +"/compute:alpha/TargetHttpProxyAggregatedList/warning/data/datum/value": value +"/compute:alpha/TargetHttpProxyAggregatedList/warning/message": message "/compute:alpha/TargetHttpProxyList": target_http_proxy_list "/compute:alpha/TargetHttpProxyList/id": id "/compute:alpha/TargetHttpProxyList/items": items @@ -19244,6 +19304,7 @@ "/compute:alpha/UrlMap/name": name "/compute:alpha/UrlMap/pathMatchers": path_matchers "/compute:alpha/UrlMap/pathMatchers/path_matcher": path_matcher +"/compute:alpha/UrlMap/region": region "/compute:alpha/UrlMap/selfLink": self_link "/compute:alpha/UrlMap/tests": tests "/compute:alpha/UrlMap/tests/test": test @@ -19810,6 +19871,12 @@ "/compute:alpha/compute.globalOperations.list/orderBy": order_by "/compute:alpha/compute.globalOperations.list/pageToken": page_token "/compute:alpha/compute.globalOperations.list/project": project +"/compute:alpha/compute.healthChecks.aggregatedList": aggregated_health_check_list +"/compute:alpha/compute.healthChecks.aggregatedList/filter": filter +"/compute:alpha/compute.healthChecks.aggregatedList/maxResults": max_results +"/compute:alpha/compute.healthChecks.aggregatedList/orderBy": order_by +"/compute:alpha/compute.healthChecks.aggregatedList/pageToken": page_token +"/compute:alpha/compute.healthChecks.aggregatedList/project": project "/compute:alpha/compute.healthChecks.delete": delete_health_check "/compute:alpha/compute.healthChecks.delete/healthCheck": health_check "/compute:alpha/compute.healthChecks.delete/project": project @@ -20311,6 +20378,11 @@ "/compute:alpha/compute.instances.setServiceAccount/project": project "/compute:alpha/compute.instances.setServiceAccount/requestId": request_id "/compute:alpha/compute.instances.setServiceAccount/zone": zone +"/compute:alpha/compute.instances.setShieldedVmIntegrityPolicy": set_instance_shielded_vm_integrity_policy +"/compute:alpha/compute.instances.setShieldedVmIntegrityPolicy/instance": instance +"/compute:alpha/compute.instances.setShieldedVmIntegrityPolicy/project": project +"/compute:alpha/compute.instances.setShieldedVmIntegrityPolicy/requestId": request_id +"/compute:alpha/compute.instances.setShieldedVmIntegrityPolicy/zone": zone "/compute:alpha/compute.instances.setTags": set_instance_tags "/compute:alpha/compute.instances.setTags/instance": instance "/compute:alpha/compute.instances.setTags/project": project @@ -20861,6 +20933,40 @@ "/compute:alpha/compute.regionDisks.testIamPermissions/project": project "/compute:alpha/compute.regionDisks.testIamPermissions/region": region "/compute:alpha/compute.regionDisks.testIamPermissions/resource": resource +"/compute:alpha/compute.regionHealthChecks.delete": delete_region_health_check +"/compute:alpha/compute.regionHealthChecks.delete/healthCheck": health_check +"/compute:alpha/compute.regionHealthChecks.delete/project": project +"/compute:alpha/compute.regionHealthChecks.delete/region": region +"/compute:alpha/compute.regionHealthChecks.delete/requestId": request_id +"/compute:alpha/compute.regionHealthChecks.get": get_region_health_check +"/compute:alpha/compute.regionHealthChecks.get/healthCheck": health_check +"/compute:alpha/compute.regionHealthChecks.get/project": project +"/compute:alpha/compute.regionHealthChecks.get/region": region +"/compute:alpha/compute.regionHealthChecks.insert": insert_region_health_check +"/compute:alpha/compute.regionHealthChecks.insert/project": project +"/compute:alpha/compute.regionHealthChecks.insert/region": region +"/compute:alpha/compute.regionHealthChecks.insert/requestId": request_id +"/compute:alpha/compute.regionHealthChecks.list": list_region_health_checks +"/compute:alpha/compute.regionHealthChecks.list/filter": filter +"/compute:alpha/compute.regionHealthChecks.list/maxResults": max_results +"/compute:alpha/compute.regionHealthChecks.list/orderBy": order_by +"/compute:alpha/compute.regionHealthChecks.list/pageToken": page_token +"/compute:alpha/compute.regionHealthChecks.list/project": project +"/compute:alpha/compute.regionHealthChecks.list/region": region +"/compute:alpha/compute.regionHealthChecks.patch": patch_region_health_check +"/compute:alpha/compute.regionHealthChecks.patch/healthCheck": health_check +"/compute:alpha/compute.regionHealthChecks.patch/project": project +"/compute:alpha/compute.regionHealthChecks.patch/region": region +"/compute:alpha/compute.regionHealthChecks.patch/requestId": request_id +"/compute:alpha/compute.regionHealthChecks.testIamPermissions": test_region_health_check_iam_permissions +"/compute:alpha/compute.regionHealthChecks.testIamPermissions/project": project +"/compute:alpha/compute.regionHealthChecks.testIamPermissions/region": region +"/compute:alpha/compute.regionHealthChecks.testIamPermissions/resource": resource +"/compute:alpha/compute.regionHealthChecks.update": update_region_health_check +"/compute:alpha/compute.regionHealthChecks.update/healthCheck": health_check +"/compute:alpha/compute.regionHealthChecks.update/project": project +"/compute:alpha/compute.regionHealthChecks.update/region": region +"/compute:alpha/compute.regionHealthChecks.update/requestId": request_id "/compute:alpha/compute.regionInstanceGroupManagers.abandonInstances": abandon_region_instance_group_manager_instances "/compute:alpha/compute.regionInstanceGroupManagers.abandonInstances/instanceGroupManager": instance_group_manager "/compute:alpha/compute.regionInstanceGroupManagers.abandonInstances/project": project @@ -21002,6 +21108,73 @@ "/compute:alpha/compute.regionOperations.list/pageToken": page_token "/compute:alpha/compute.regionOperations.list/project": project "/compute:alpha/compute.regionOperations.list/region": region +"/compute:alpha/compute.regionTargetHttpProxies.delete": delete_region_target_http_proxy +"/compute:alpha/compute.regionTargetHttpProxies.delete/project": project +"/compute:alpha/compute.regionTargetHttpProxies.delete/region": region +"/compute:alpha/compute.regionTargetHttpProxies.delete/requestId": request_id +"/compute:alpha/compute.regionTargetHttpProxies.delete/targetHttpProxy": target_http_proxy +"/compute:alpha/compute.regionTargetHttpProxies.get": get_region_target_http_proxy +"/compute:alpha/compute.regionTargetHttpProxies.get/project": project +"/compute:alpha/compute.regionTargetHttpProxies.get/region": region +"/compute:alpha/compute.regionTargetHttpProxies.get/targetHttpProxy": target_http_proxy +"/compute:alpha/compute.regionTargetHttpProxies.insert": insert_region_target_http_proxy +"/compute:alpha/compute.regionTargetHttpProxies.insert/project": project +"/compute:alpha/compute.regionTargetHttpProxies.insert/region": region +"/compute:alpha/compute.regionTargetHttpProxies.insert/requestId": request_id +"/compute:alpha/compute.regionTargetHttpProxies.list": list_region_target_http_proxies +"/compute:alpha/compute.regionTargetHttpProxies.list/filter": filter +"/compute:alpha/compute.regionTargetHttpProxies.list/maxResults": max_results +"/compute:alpha/compute.regionTargetHttpProxies.list/orderBy": order_by +"/compute:alpha/compute.regionTargetHttpProxies.list/pageToken": page_token +"/compute:alpha/compute.regionTargetHttpProxies.list/project": project +"/compute:alpha/compute.regionTargetHttpProxies.list/region": region +"/compute:alpha/compute.regionTargetHttpProxies.setUrlMap": set_region_target_http_proxy_url_map +"/compute:alpha/compute.regionTargetHttpProxies.setUrlMap/project": project +"/compute:alpha/compute.regionTargetHttpProxies.setUrlMap/region": region +"/compute:alpha/compute.regionTargetHttpProxies.setUrlMap/requestId": request_id +"/compute:alpha/compute.regionTargetHttpProxies.setUrlMap/targetHttpProxy": target_http_proxy +"/compute:alpha/compute.regionTargetHttpProxies.testIamPermissions": test_region_target_http_proxy_iam_permissions +"/compute:alpha/compute.regionTargetHttpProxies.testIamPermissions/project": project +"/compute:alpha/compute.regionTargetHttpProxies.testIamPermissions/region": region +"/compute:alpha/compute.regionTargetHttpProxies.testIamPermissions/resource": resource +"/compute:alpha/compute.regionUrlMaps.delete": delete_region_url_map +"/compute:alpha/compute.regionUrlMaps.delete/project": project +"/compute:alpha/compute.regionUrlMaps.delete/region": region +"/compute:alpha/compute.regionUrlMaps.delete/requestId": request_id +"/compute:alpha/compute.regionUrlMaps.delete/urlMap": url_map +"/compute:alpha/compute.regionUrlMaps.get": get_region_url_map +"/compute:alpha/compute.regionUrlMaps.get/project": project +"/compute:alpha/compute.regionUrlMaps.get/region": region +"/compute:alpha/compute.regionUrlMaps.get/urlMap": url_map +"/compute:alpha/compute.regionUrlMaps.insert": insert_region_url_map +"/compute:alpha/compute.regionUrlMaps.insert/project": project +"/compute:alpha/compute.regionUrlMaps.insert/region": region +"/compute:alpha/compute.regionUrlMaps.insert/requestId": request_id +"/compute:alpha/compute.regionUrlMaps.list": list_region_url_maps +"/compute:alpha/compute.regionUrlMaps.list/filter": filter +"/compute:alpha/compute.regionUrlMaps.list/maxResults": max_results +"/compute:alpha/compute.regionUrlMaps.list/orderBy": order_by +"/compute:alpha/compute.regionUrlMaps.list/pageToken": page_token +"/compute:alpha/compute.regionUrlMaps.list/project": project +"/compute:alpha/compute.regionUrlMaps.list/region": region +"/compute:alpha/compute.regionUrlMaps.patch": patch_region_url_map +"/compute:alpha/compute.regionUrlMaps.patch/project": project +"/compute:alpha/compute.regionUrlMaps.patch/region": region +"/compute:alpha/compute.regionUrlMaps.patch/requestId": request_id +"/compute:alpha/compute.regionUrlMaps.patch/urlMap": url_map +"/compute:alpha/compute.regionUrlMaps.testIamPermissions": test_region_url_map_iam_permissions +"/compute:alpha/compute.regionUrlMaps.testIamPermissions/project": project +"/compute:alpha/compute.regionUrlMaps.testIamPermissions/region": region +"/compute:alpha/compute.regionUrlMaps.testIamPermissions/resource": resource +"/compute:alpha/compute.regionUrlMaps.update": update_region_url_map +"/compute:alpha/compute.regionUrlMaps.update/project": project +"/compute:alpha/compute.regionUrlMaps.update/region": region +"/compute:alpha/compute.regionUrlMaps.update/requestId": request_id +"/compute:alpha/compute.regionUrlMaps.update/urlMap": url_map +"/compute:alpha/compute.regionUrlMaps.validate": validate_region_url_map +"/compute:alpha/compute.regionUrlMaps.validate/project": project +"/compute:alpha/compute.regionUrlMaps.validate/region": region +"/compute:alpha/compute.regionUrlMaps.validate/urlMap": url_map "/compute:alpha/compute.regions.get": get_region "/compute:alpha/compute.regions.get/project": project "/compute:alpha/compute.regions.get/region": region @@ -21251,6 +21424,12 @@ "/compute:alpha/compute.subnetworks.testIamPermissions/project": project "/compute:alpha/compute.subnetworks.testIamPermissions/region": region "/compute:alpha/compute.subnetworks.testIamPermissions/resource": resource +"/compute:alpha/compute.targetHttpProxies.aggregatedList": aggregated_target_http_proxy_list +"/compute:alpha/compute.targetHttpProxies.aggregatedList/filter": filter +"/compute:alpha/compute.targetHttpProxies.aggregatedList/maxResults": max_results +"/compute:alpha/compute.targetHttpProxies.aggregatedList/orderBy": order_by +"/compute:alpha/compute.targetHttpProxies.aggregatedList/pageToken": page_token +"/compute:alpha/compute.targetHttpProxies.aggregatedList/project": project "/compute:alpha/compute.targetHttpProxies.delete": delete_target_http_proxy "/compute:alpha/compute.targetHttpProxies.delete/project": project "/compute:alpha/compute.targetHttpProxies.delete/requestId": request_id @@ -23636,6 +23815,7 @@ "/compute:beta/SecurityPolicyRule/priority": priority "/compute:beta/SecurityPolicyRuleMatcher": security_policy_rule_matcher "/compute:beta/SecurityPolicyRuleMatcher/config": config +"/compute:beta/SecurityPolicyRuleMatcher/expr": expr "/compute:beta/SecurityPolicyRuleMatcher/srcIpRanges": src_ip_ranges "/compute:beta/SecurityPolicyRuleMatcher/srcIpRanges/src_ip_range": src_ip_range "/compute:beta/SecurityPolicyRuleMatcher/versionedExpr": versioned_expr @@ -26550,6 +26730,8 @@ "/compute:v1/Disk/labels/label": label "/compute:v1/Disk/lastAttachTimestamp": last_attach_timestamp "/compute:v1/Disk/lastDetachTimestamp": last_detach_timestamp +"/compute:v1/Disk/licenseCodes": license_codes +"/compute:v1/Disk/licenseCodes/license_code": license_code "/compute:v1/Disk/licenses": licenses "/compute:v1/Disk/licenses/license": license "/compute:v1/Disk/name": name @@ -26893,6 +27075,8 @@ "/compute:v1/Image/labelFingerprint": label_fingerprint "/compute:v1/Image/labels": labels "/compute:v1/Image/labels/label": label +"/compute:v1/Image/licenseCodes": license_codes +"/compute:v1/Image/licenseCodes/license_code": license_code "/compute:v1/Image/licenses": licenses "/compute:v1/Image/licenses/license": license "/compute:v1/Image/name": name @@ -27383,9 +27567,45 @@ "/compute:v1/InterconnectOutageNotification/state": state "/compute:v1/License": license "/compute:v1/License/chargesUseFee": charges_use_fee +"/compute:v1/License/creationTimestamp": creation_timestamp +"/compute:v1/License/description": description +"/compute:v1/License/id": id "/compute:v1/License/kind": kind +"/compute:v1/License/licenseCode": license_code "/compute:v1/License/name": name +"/compute:v1/License/resourceRequirements": resource_requirements "/compute:v1/License/selfLink": self_link +"/compute:v1/License/transferable": transferable +"/compute:v1/LicenseCode": license_code +"/compute:v1/LicenseCode/creationTimestamp": creation_timestamp +"/compute:v1/LicenseCode/description": description +"/compute:v1/LicenseCode/id": id +"/compute:v1/LicenseCode/kind": kind +"/compute:v1/LicenseCode/licenseAlias": license_alias +"/compute:v1/LicenseCode/licenseAlias/license_alias": license_alias +"/compute:v1/LicenseCode/name": name +"/compute:v1/LicenseCode/selfLink": self_link +"/compute:v1/LicenseCode/state": state +"/compute:v1/LicenseCode/transferable": transferable +"/compute:v1/LicenseCodeLicenseAlias": license_code_license_alias +"/compute:v1/LicenseCodeLicenseAlias/description": description +"/compute:v1/LicenseCodeLicenseAlias/selfLink": self_link +"/compute:v1/LicenseResourceRequirements": license_resource_requirements +"/compute:v1/LicenseResourceRequirements/minGuestCpuCount": min_guest_cpu_count +"/compute:v1/LicenseResourceRequirements/minMemoryMb": min_memory_mb +"/compute:v1/LicensesListResponse": licenses_list_response +"/compute:v1/LicensesListResponse/id": id +"/compute:v1/LicensesListResponse/items": items +"/compute:v1/LicensesListResponse/items/item": item +"/compute:v1/LicensesListResponse/nextPageToken": next_page_token +"/compute:v1/LicensesListResponse/selfLink": self_link +"/compute:v1/LicensesListResponse/warning": warning +"/compute:v1/LicensesListResponse/warning/code": code +"/compute:v1/LicensesListResponse/warning/data": data +"/compute:v1/LicensesListResponse/warning/data/datum": datum +"/compute:v1/LicensesListResponse/warning/data/datum/key": key +"/compute:v1/LicensesListResponse/warning/data/datum/value": value +"/compute:v1/LicensesListResponse/warning/message": message "/compute:v1/MachineType": machine_type "/compute:v1/MachineType/creationTimestamp": creation_timestamp "/compute:v1/MachineType/deprecated": deprecated @@ -27924,6 +28144,8 @@ "/compute:v1/Snapshot/labelFingerprint": label_fingerprint "/compute:v1/Snapshot/labels": labels "/compute:v1/Snapshot/labels/label": label +"/compute:v1/Snapshot/licenseCodes": license_codes +"/compute:v1/Snapshot/licenseCodes/license_code": license_code "/compute:v1/Snapshot/licenses": licenses "/compute:v1/Snapshot/licenses/license": license "/compute:v1/Snapshot/name": name @@ -27972,6 +28194,47 @@ "/compute:v1/SslCertificateList/warning/data/datum/key": key "/compute:v1/SslCertificateList/warning/data/datum/value": value "/compute:v1/SslCertificateList/warning/message": message +"/compute:v1/SslPoliciesList": ssl_policies_list +"/compute:v1/SslPoliciesList/id": id +"/compute:v1/SslPoliciesList/items": items +"/compute:v1/SslPoliciesList/items/item": item +"/compute:v1/SslPoliciesList/kind": kind +"/compute:v1/SslPoliciesList/nextPageToken": next_page_token +"/compute:v1/SslPoliciesList/selfLink": self_link +"/compute:v1/SslPoliciesList/warning": warning +"/compute:v1/SslPoliciesList/warning/code": code +"/compute:v1/SslPoliciesList/warning/data": data +"/compute:v1/SslPoliciesList/warning/data/datum": datum +"/compute:v1/SslPoliciesList/warning/data/datum/key": key +"/compute:v1/SslPoliciesList/warning/data/datum/value": value +"/compute:v1/SslPoliciesList/warning/message": message +"/compute:v1/SslPoliciesListAvailableFeaturesResponse": ssl_policies_list_available_features_response +"/compute:v1/SslPoliciesListAvailableFeaturesResponse/features": features +"/compute:v1/SslPoliciesListAvailableFeaturesResponse/features/feature": feature +"/compute:v1/SslPolicy": ssl_policy +"/compute:v1/SslPolicy/creationTimestamp": creation_timestamp +"/compute:v1/SslPolicy/customFeatures": custom_features +"/compute:v1/SslPolicy/customFeatures/custom_feature": custom_feature +"/compute:v1/SslPolicy/description": description +"/compute:v1/SslPolicy/enabledFeatures": enabled_features +"/compute:v1/SslPolicy/enabledFeatures/enabled_feature": enabled_feature +"/compute:v1/SslPolicy/fingerprint": fingerprint +"/compute:v1/SslPolicy/id": id +"/compute:v1/SslPolicy/kind": kind +"/compute:v1/SslPolicy/minTlsVersion": min_tls_version +"/compute:v1/SslPolicy/name": name +"/compute:v1/SslPolicy/profile": profile +"/compute:v1/SslPolicy/selfLink": self_link +"/compute:v1/SslPolicy/warnings": warnings +"/compute:v1/SslPolicy/warnings/warning": warning +"/compute:v1/SslPolicy/warnings/warning/code": code +"/compute:v1/SslPolicy/warnings/warning/data": data +"/compute:v1/SslPolicy/warnings/warning/data/datum": datum +"/compute:v1/SslPolicy/warnings/warning/data/datum/key": key +"/compute:v1/SslPolicy/warnings/warning/data/datum/value": value +"/compute:v1/SslPolicy/warnings/warning/message": message +"/compute:v1/SslPolicyReference": ssl_policy_reference +"/compute:v1/SslPolicyReference/sslPolicy": ssl_policy "/compute:v1/Subnetwork": subnetwork "/compute:v1/Subnetwork/creationTimestamp": creation_timestamp "/compute:v1/Subnetwork/description": description @@ -28076,6 +28339,7 @@ "/compute:v1/TargetHttpsProxy/selfLink": self_link "/compute:v1/TargetHttpsProxy/sslCertificates": ssl_certificates "/compute:v1/TargetHttpsProxy/sslCertificates/ssl_certificate": ssl_certificate +"/compute:v1/TargetHttpsProxy/sslPolicy": ssl_policy "/compute:v1/TargetHttpsProxy/urlMap": url_map "/compute:v1/TargetHttpsProxyList": target_https_proxy_list "/compute:v1/TargetHttpsProxyList/id": id @@ -28228,6 +28492,7 @@ "/compute:v1/TargetSslProxy/service": service "/compute:v1/TargetSslProxy/sslCertificates": ssl_certificates "/compute:v1/TargetSslProxy/sslCertificates/ssl_certificate": ssl_certificate +"/compute:v1/TargetSslProxy/sslPolicy": ssl_policy "/compute:v1/TargetSslProxyList": target_ssl_proxy_list "/compute:v1/TargetSslProxyList/id": id "/compute:v1/TargetSslProxyList/items": items @@ -28326,6 +28591,12 @@ "/compute:v1/TestFailure/expectedService": expected_service "/compute:v1/TestFailure/host": host "/compute:v1/TestFailure/path": path +"/compute:v1/TestPermissionsRequest": test_permissions_request +"/compute:v1/TestPermissionsRequest/permissions": permissions +"/compute:v1/TestPermissionsRequest/permissions/permission": permission +"/compute:v1/TestPermissionsResponse": test_permissions_response +"/compute:v1/TestPermissionsResponse/permissions": permissions +"/compute:v1/TestPermissionsResponse/permissions/permission": permission "/compute:v1/UrlMap": url_map "/compute:v1/UrlMap/creationTimestamp": creation_timestamp "/compute:v1/UrlMap/defaultService": default_service @@ -29063,6 +29334,7 @@ "/compute:v1/compute.instances.insert": insert_instance "/compute:v1/compute.instances.insert/project": project "/compute:v1/compute.instances.insert/requestId": request_id +"/compute:v1/compute.instances.insert/sourceInstanceTemplate": source_instance_template "/compute:v1/compute.instances.insert/zone": zone "/compute:v1/compute.instances.list": list_instances "/compute:v1/compute.instances.list/filter": filter @@ -29219,9 +29491,31 @@ "/compute:v1/compute.interconnects.patch/interconnect": interconnect "/compute:v1/compute.interconnects.patch/project": project "/compute:v1/compute.interconnects.patch/requestId": request_id +"/compute:v1/compute.licenseCodes.get": get_license_code +"/compute:v1/compute.licenseCodes.get/licenseCode": license_code +"/compute:v1/compute.licenseCodes.get/project": project +"/compute:v1/compute.licenseCodes.testIamPermissions": test_license_code_iam_permissions +"/compute:v1/compute.licenseCodes.testIamPermissions/project": project +"/compute:v1/compute.licenseCodes.testIamPermissions/resource": resource +"/compute:v1/compute.licenses.delete": delete_license +"/compute:v1/compute.licenses.delete/license": license +"/compute:v1/compute.licenses.delete/project": project +"/compute:v1/compute.licenses.delete/requestId": request_id "/compute:v1/compute.licenses.get": get_license "/compute:v1/compute.licenses.get/license": license "/compute:v1/compute.licenses.get/project": project +"/compute:v1/compute.licenses.insert": insert_license +"/compute:v1/compute.licenses.insert/project": project +"/compute:v1/compute.licenses.insert/requestId": request_id +"/compute:v1/compute.licenses.list": list_licenses +"/compute:v1/compute.licenses.list/filter": filter +"/compute:v1/compute.licenses.list/maxResults": max_results +"/compute:v1/compute.licenses.list/orderBy": order_by +"/compute:v1/compute.licenses.list/pageToken": page_token +"/compute:v1/compute.licenses.list/project": project +"/compute:v1/compute.licenses.testIamPermissions": test_license_iam_permissions +"/compute:v1/compute.licenses.testIamPermissions/project": project +"/compute:v1/compute.licenses.testIamPermissions/resource": resource "/compute:v1/compute.machineTypes.aggregatedList": list_aggregated_machine_types "/compute:v1/compute.machineTypes.aggregatedList/filter": filter "/compute:v1/compute.machineTypes.aggregatedList/maxResults": max_results @@ -29595,6 +29889,32 @@ "/compute:v1/compute.sslCertificates.list/orderBy": order_by "/compute:v1/compute.sslCertificates.list/pageToken": page_token "/compute:v1/compute.sslCertificates.list/project": project +"/compute:v1/compute.sslPolicies.delete": delete_ssl_policy +"/compute:v1/compute.sslPolicies.delete/project": project +"/compute:v1/compute.sslPolicies.delete/requestId": request_id +"/compute:v1/compute.sslPolicies.delete/sslPolicy": ssl_policy +"/compute:v1/compute.sslPolicies.get": get_ssl_policy +"/compute:v1/compute.sslPolicies.get/project": project +"/compute:v1/compute.sslPolicies.get/sslPolicy": ssl_policy +"/compute:v1/compute.sslPolicies.insert": insert_ssl_policy +"/compute:v1/compute.sslPolicies.insert/project": project +"/compute:v1/compute.sslPolicies.insert/requestId": request_id +"/compute:v1/compute.sslPolicies.list": list_ssl_policies +"/compute:v1/compute.sslPolicies.list/filter": filter +"/compute:v1/compute.sslPolicies.list/maxResults": max_results +"/compute:v1/compute.sslPolicies.list/orderBy": order_by +"/compute:v1/compute.sslPolicies.list/pageToken": page_token +"/compute:v1/compute.sslPolicies.list/project": project +"/compute:v1/compute.sslPolicies.listAvailableFeatures": list_ssl_policy_available_features +"/compute:v1/compute.sslPolicies.listAvailableFeatures/filter": filter +"/compute:v1/compute.sslPolicies.listAvailableFeatures/maxResults": max_results +"/compute:v1/compute.sslPolicies.listAvailableFeatures/orderBy": order_by +"/compute:v1/compute.sslPolicies.listAvailableFeatures/pageToken": page_token +"/compute:v1/compute.sslPolicies.listAvailableFeatures/project": project +"/compute:v1/compute.sslPolicies.patch": patch_ssl_policy +"/compute:v1/compute.sslPolicies.patch/project": project +"/compute:v1/compute.sslPolicies.patch/requestId": request_id +"/compute:v1/compute.sslPolicies.patch/sslPolicy": ssl_policy "/compute:v1/compute.subnetworks.aggregatedList": aggregated_subnetwork_list "/compute:v1/compute.subnetworks.aggregatedList/filter": filter "/compute:v1/compute.subnetworks.aggregatedList/maxResults": max_results @@ -29676,6 +29996,10 @@ "/compute:v1/compute.targetHttpsProxies.setSslCertificates/project": project "/compute:v1/compute.targetHttpsProxies.setSslCertificates/requestId": request_id "/compute:v1/compute.targetHttpsProxies.setSslCertificates/targetHttpsProxy": target_https_proxy +"/compute:v1/compute.targetHttpsProxies.setSslPolicy": set_target_https_proxy_ssl_policy +"/compute:v1/compute.targetHttpsProxies.setSslPolicy/project": project +"/compute:v1/compute.targetHttpsProxies.setSslPolicy/requestId": request_id +"/compute:v1/compute.targetHttpsProxies.setSslPolicy/targetHttpsProxy": target_https_proxy "/compute:v1/compute.targetHttpsProxies.setUrlMap": set_target_https_proxy_url_map "/compute:v1/compute.targetHttpsProxies.setUrlMap/project": project "/compute:v1/compute.targetHttpsProxies.setUrlMap/requestId": request_id @@ -29790,6 +30114,10 @@ "/compute:v1/compute.targetSslProxies.setSslCertificates/project": project "/compute:v1/compute.targetSslProxies.setSslCertificates/requestId": request_id "/compute:v1/compute.targetSslProxies.setSslCertificates/targetSslProxy": target_ssl_proxy +"/compute:v1/compute.targetSslProxies.setSslPolicy": set_target_ssl_proxy_ssl_policy +"/compute:v1/compute.targetSslProxies.setSslPolicy/project": project +"/compute:v1/compute.targetSslProxies.setSslPolicy/requestId": request_id +"/compute:v1/compute.targetSslProxies.setSslPolicy/targetSslProxy": target_ssl_proxy "/compute:v1/compute.targetTcpProxies.delete": delete_target_tcp_proxy "/compute:v1/compute.targetTcpProxies.delete/project": project "/compute:v1/compute.targetTcpProxies.delete/requestId": request_id @@ -56540,6 +56868,8 @@ "/manufacturers:v1/Attributes/count": count "/manufacturers:v1/Attributes/description": description "/manufacturers:v1/Attributes/disclosureDate": disclosure_date +"/manufacturers:v1/Attributes/excludedDestination": excluded_destination +"/manufacturers:v1/Attributes/excludedDestination/excluded_destination": excluded_destination "/manufacturers:v1/Attributes/featureDescription": feature_description "/manufacturers:v1/Attributes/featureDescription/feature_description": feature_description "/manufacturers:v1/Attributes/flavor": flavor @@ -56548,6 +56878,8 @@ "/manufacturers:v1/Attributes/gtin": gtin "/manufacturers:v1/Attributes/gtin/gtin": gtin "/manufacturers:v1/Attributes/imageLink": image_link +"/manufacturers:v1/Attributes/includedDestination": included_destination +"/manufacturers:v1/Attributes/includedDestination/included_destination": included_destination "/manufacturers:v1/Attributes/itemGroupId": item_group_id "/manufacturers:v1/Attributes/material": material "/manufacturers:v1/Attributes/mpn": mpn @@ -56577,6 +56909,9 @@ "/manufacturers:v1/Count": count "/manufacturers:v1/Count/unit": unit "/manufacturers:v1/Count/value": value +"/manufacturers:v1/DestinationStatus": destination_status +"/manufacturers:v1/DestinationStatus/destination": destination +"/manufacturers:v1/DestinationStatus/status": status "/manufacturers:v1/Empty": empty "/manufacturers:v1/FeatureDescription": feature_description "/manufacturers:v1/FeatureDescription/headline": headline @@ -56589,8 +56924,11 @@ "/manufacturers:v1/Issue": issue "/manufacturers:v1/Issue/attribute": attribute "/manufacturers:v1/Issue/description": description +"/manufacturers:v1/Issue/destination": destination +"/manufacturers:v1/Issue/resolution": resolution "/manufacturers:v1/Issue/severity": severity "/manufacturers:v1/Issue/timestamp": timestamp +"/manufacturers:v1/Issue/title": title "/manufacturers:v1/Issue/type": type "/manufacturers:v1/ListProductsResponse": list_products_response "/manufacturers:v1/ListProductsResponse/nextPageToken": next_page_token @@ -56600,7 +56938,10 @@ "/manufacturers:v1/Price/amount": amount "/manufacturers:v1/Price/currency": currency "/manufacturers:v1/Product": product +"/manufacturers:v1/Product/attributes": attributes "/manufacturers:v1/Product/contentLanguage": content_language +"/manufacturers:v1/Product/destinationStatuses": destination_statuses +"/manufacturers:v1/Product/destinationStatuses/destination_status": destination_status "/manufacturers:v1/Product/finalAttributes": final_attributes "/manufacturers:v1/Product/issues": issues "/manufacturers:v1/Product/issues/issue": issue @@ -56622,9 +56963,11 @@ "/manufacturers:v1/manufacturers.accounts.products.delete/name": name "/manufacturers:v1/manufacturers.accounts.products.delete/parent": parent "/manufacturers:v1/manufacturers.accounts.products.get": get_account_product +"/manufacturers:v1/manufacturers.accounts.products.get/include": include "/manufacturers:v1/manufacturers.accounts.products.get/name": name "/manufacturers:v1/manufacturers.accounts.products.get/parent": parent "/manufacturers:v1/manufacturers.accounts.products.list": list_account_products +"/manufacturers:v1/manufacturers.accounts.products.list/include": include "/manufacturers:v1/manufacturers.accounts.products.list/pageSize": page_size "/manufacturers:v1/manufacturers.accounts.products.list/pageToken": page_token "/manufacturers:v1/manufacturers.accounts.products.list/parent": parent diff --git a/generated/google/apis/classroom_v1.rb b/generated/google/apis/classroom_v1.rb index e7063f988..6d7466af5 100644 --- a/generated/google/apis/classroom_v1.rb +++ b/generated/google/apis/classroom_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/classroom/ module ClassroomV1 VERSION = 'V1' - REVISION = '20171229' + REVISION = '20180403' # View and manage announcements in Google Classroom AUTH_CLASSROOM_ANNOUNCEMENTS = 'https://www.googleapis.com/auth/classroom.announcements' diff --git a/generated/google/apis/classroom_v1/classes.rb b/generated/google/apis/classroom_v1/classes.rb index 1b7c7cb19..a7a3300f0 100644 --- a/generated/google/apis/classroom_v1/classes.rb +++ b/generated/google/apis/classroom_v1/classes.rb @@ -703,7 +703,8 @@ module Google # @return [Fixnum] attr_accessor :day - # Month of year. Must be from 1 to 12. + # Month of year. Must be from 1 to 12, or 0 if specifying a date without a + # month. # Corresponds to the JSON property `month` # @return [Fixnum] attr_accessor :month diff --git a/generated/google/apis/cloudbuild_v1.rb b/generated/google/apis/cloudbuild_v1.rb index b68c383e3..7799919e1 100644 --- a/generated/google/apis/cloudbuild_v1.rb +++ b/generated/google/apis/cloudbuild_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/container-builder/docs/ module CloudbuildV1 VERSION = 'V1' - REVISION = '20180404' + REVISION = '20180405' # 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 daf1e2627..3f7f25ca3 100644 --- a/generated/google/apis/cloudbuild_v1/classes.rb +++ b/generated/google/apis/cloudbuild_v1/classes.rb @@ -42,6 +42,11 @@ module Google # @return [Array] attr_accessor :paths + # Start and end times for a build execution phase. + # Corresponds to the JSON property `timing` + # @return [Google::Apis::CloudbuildV1::TimeSpan] + attr_accessor :timing + def initialize(**args) update!(**args) end @@ -50,6 +55,7 @@ module Google def update!(**args) @location = args[:location] if args.key?(:location) @paths = args[:paths] if args.key?(:paths) + @timing = args[:timing] if args.key?(:timing) end end diff --git a/generated/google/apis/cloudbuild_v1/representations.rb b/generated/google/apis/cloudbuild_v1/representations.rb index 590eed9a7..2d9dcf278 100644 --- a/generated/google/apis/cloudbuild_v1/representations.rb +++ b/generated/google/apis/cloudbuild_v1/representations.rb @@ -189,6 +189,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :location, as: 'location' collection :paths, as: 'paths' + property :timing, as: 'timing', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation + end end diff --git a/generated/google/apis/cloudresourcemanager_v1.rb b/generated/google/apis/cloudresourcemanager_v1.rb index f07f9c9e2..408c1f544 100644 --- a/generated/google/apis/cloudresourcemanager_v1.rb +++ b/generated/google/apis/cloudresourcemanager_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1 VERSION = 'V1' - REVISION = '20180315' + REVISION = '20180402' # 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/cloudresourcemanager_v1/classes.rb b/generated/google/apis/cloudresourcemanager_v1/classes.rb index c22404dd2..d95c8e2b0 100644 --- a/generated/google/apis/cloudresourcemanager_v1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1/classes.rb @@ -95,7 +95,6 @@ module Google include Google::Apis::Core::Hashable # The configuration for logging of each type of permission. - # Next ID: 4 # Corresponds to the JSON property `auditLogConfigs` # @return [Array] attr_accessor :audit_log_configs diff --git a/generated/google/apis/cloudresourcemanager_v1beta1.rb b/generated/google/apis/cloudresourcemanager_v1beta1.rb index 3f2e3281d..42591c020 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 = '20180315' + REVISION = '20180402' # 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/cloudresourcemanager_v1beta1/classes.rb b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb index 27123f743..39226e313 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb @@ -95,7 +95,6 @@ module Google include Google::Apis::Core::Hashable # The configuration for logging of each type of permission. - # Next ID: 4 # Corresponds to the JSON property `auditLogConfigs` # @return [Array] attr_accessor :audit_log_configs diff --git a/generated/google/apis/cloudresourcemanager_v2.rb b/generated/google/apis/cloudresourcemanager_v2.rb index 985163b5d..f75dd0a03 100644 --- a/generated/google/apis/cloudresourcemanager_v2.rb +++ b/generated/google/apis/cloudresourcemanager_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV2 VERSION = 'V2' - REVISION = '20180312' + REVISION = '20180402' # 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/cloudresourcemanager_v2/classes.rb b/generated/google/apis/cloudresourcemanager_v2/classes.rb index 6fc3d0011..b8b0b9eb6 100644 --- a/generated/google/apis/cloudresourcemanager_v2/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v2/classes.rb @@ -73,7 +73,6 @@ module Google include Google::Apis::Core::Hashable # The configuration for logging of each type of permission. - # Next ID: 4 # Corresponds to the JSON property `auditLogConfigs` # @return [Array] attr_accessor :audit_log_configs diff --git a/generated/google/apis/cloudresourcemanager_v2beta1.rb b/generated/google/apis/cloudresourcemanager_v2beta1.rb index 683034a26..c5575c2e6 100644 --- a/generated/google/apis/cloudresourcemanager_v2beta1.rb +++ b/generated/google/apis/cloudresourcemanager_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV2beta1 VERSION = 'V2beta1' - REVISION = '20180312' + REVISION = '20180402' # 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/cloudresourcemanager_v2beta1/classes.rb b/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb index 8f5abc25d..3f598a0e2 100644 --- a/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb @@ -73,7 +73,6 @@ module Google include Google::Apis::Core::Hashable # The configuration for logging of each type of permission. - # Next ID: 4 # Corresponds to the JSON property `auditLogConfigs` # @return [Array] attr_accessor :audit_log_configs diff --git a/generated/google/apis/compute_alpha.rb b/generated/google/apis/compute_alpha.rb index 4349b07eb..14dcedc0d 100644 --- a/generated/google/apis/compute_alpha.rb +++ b/generated/google/apis/compute_alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeAlpha VERSION = 'Alpha' - REVISION = '20180314' + REVISION = '20180323' # 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_alpha/classes.rb b/generated/google/apis/compute_alpha/classes.rb index 5ff9af095..88393c32e 100644 --- a/generated/google/apis/compute_alpha/classes.rb +++ b/generated/google/apis/compute_alpha/classes.rb @@ -1419,10 +1419,11 @@ module Google # @return [String] attr_accessor :name - # [Output Only] Target recommended MIG size computed by autoscaler. Autoscaler - # calculates recommended MIG size even when autoscaling policy mode is different - # from ON. This field is empty when autoscaler is not connected to the existing - # managed instance group or autoscaler did not generate its first prediction. + # [Output Only] Target recommended MIG size (number of instances) computed by + # autoscaler. Autoscaler calculates recommended MIG size even when autoscaling + # policy mode is different from ON. This field is empty when autoscaler is not + # connected to the existing managed instance group or autoscaler did not + # generate its prediction. # Corresponds to the JSON property `recommendedSize` # @return [Fixnum] attr_accessor :recommended_size @@ -3449,8 +3450,9 @@ module Google attr_accessor :status_message # The type of commitment, which affects the discount rate and the eligible - # resources. Type LARGE_VM specifies a commitment that will only apply to large - # VMs. Type NORMAL specifies a commitment that applies to all other resources. + # resources. Type MEMORY_OPTIMIZED_VM specifies a commitment that will only + # apply to memory optimized VMs. Type NORMAL specifies a commitment that applies + # to all other resources. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -6611,6 +6613,12 @@ module Google # @return [String] attr_accessor :name + # [Output Only] Region where the health check resides. Not applicable to global + # health checks. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] @@ -6667,6 +6675,7 @@ module Google @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) + @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) @ssl_health_check = args[:ssl_health_check] if args.key?(:ssl_health_check) @tcp_health_check = args[:tcp_health_check] if args.key?(:tcp_health_check) @@ -6818,6 +6827,214 @@ module Google end end + # + class HealthChecksAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of HealthChecksScopedList resources. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # Type of resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [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 + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeAlpha::HealthChecksAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [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 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] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, 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 + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class HealthChecksScopedList + include Google::Apis::Core::Hashable + + # List of HealthChecks contained in this scope. + # Corresponds to the JSON property `healthChecks` + # @return [Array] + attr_accessor :health_checks + + # Informational warning which replaces the list of backend services when the + # list is empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeAlpha::HealthChecksScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @health_checks = args[:health_checks] if args.key?(:health_checks) + @warning = args[:warning] if args.key?(:warning) + end + + # Informational warning which replaces the list of backend services when the + # list is empty. + class Warning + include Google::Apis::Core::Hashable + + # [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 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] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, 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 + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # class HealthStatus include Google::Apis::Core::Hashable @@ -8815,6 +9032,11 @@ module Google # @return [Google::Apis::ComputeAlpha::ShieldedVmConfig] attr_accessor :shielded_vm_config + # The policy describes how boot integrity measurements are evaluated. + # Corresponds to the JSON property `shieldedVmIntegrityPolicy` + # @return [Google::Apis::ComputeAlpha::ShieldedVmIntegrityPolicy] + attr_accessor :shielded_vm_integrity_policy + # [Output Only] Whether a VM has been restricted for start because Compute # Engine has detected suspicious activity. # Corresponds to the JSON property `startRestricted` @@ -8876,6 +9098,7 @@ module Google @self_link = args[:self_link] if args.key?(:self_link) @service_accounts = args[:service_accounts] if args.key?(:service_accounts) @shielded_vm_config = args[:shielded_vm_config] if args.key?(:shielded_vm_config) + @shielded_vm_integrity_policy = args[:shielded_vm_integrity_policy] if args.key?(:shielded_vm_integrity_policy) @start_restricted = args[:start_restricted] if args.key?(:start_restricted) @status = args[:status] if args.key?(:status) @status_message = args[:status_message] if args.key?(:status_message) @@ -18386,6 +18609,27 @@ module Google end end + # + class RegionUrlMapsValidateRequest + include Google::Apis::Core::Hashable + + # 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. + # Corresponds to the JSON property `resource` + # @return [Google::Apis::ComputeAlpha::UrlMap] + attr_accessor :resource + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource = args[:resource] if args.key?(:resource) + end + end + # Commitment for a particular resource (a Commitment is composed of one or more # of these). class ResourceCommitment @@ -19135,6 +19379,15 @@ module Google # @return [String] attr_accessor :ip_address + # [Output Only] Type of how the resource/configuration of the BGP peer is + # managed. MANAGED_BY_USER is the default value; MANAGED_BY_ATTACHMENT + # represents an BGP peer that is automatically created for PARTNER + # interconnectAttachment, Google will automatically create/delete this type of + # BGP peer when the PARTNER interconnectAttachment is created/deleted. + # Corresponds to the JSON property `managementType` + # @return [String] + attr_accessor :management_type + # Name of this BGP peer. The name must be 1-63 characters long and comply with # RFC1035. # Corresponds to the JSON property `name` @@ -19165,6 +19418,7 @@ module Google @advertised_route_priority = args[:advertised_route_priority] if args.key?(:advertised_route_priority) @interface_name = args[:interface_name] if args.key?(:interface_name) @ip_address = args[:ip_address] if args.key?(:ip_address) + @management_type = args[:management_type] if args.key?(:management_type) @name = args[:name] if args.key?(:name) @peer_asn = args[:peer_asn] if args.key?(:peer_asn) @peer_ip_address = args[:peer_ip_address] if args.key?(:peer_ip_address) @@ -19197,6 +19451,16 @@ module Google # @return [String] attr_accessor :linked_vpn_tunnel + # [Output Only] Type of how the resource/configuration of the interface is + # managed. MANAGED_BY_USER is the default value; MANAGED_BY_ATTACHMENT + # represents an interface that is automatically created for PARTNER type + # interconnectAttachment, Google will automatically create/update/delete this + # type of interface when the PARTNER interconnectAttachment is created/ + # provisioned/deleted. + # Corresponds to the JSON property `managementType` + # @return [String] + attr_accessor :management_type + # Name of this interface entry. The name must be 1-63 characters long and comply # with RFC1035. # Corresponds to the JSON property `name` @@ -19212,6 +19476,7 @@ module Google @ip_range = args[:ip_range] if args.key?(:ip_range) @linked_interconnect_attachment = args[:linked_interconnect_attachment] if args.key?(:linked_interconnect_attachment) @linked_vpn_tunnel = args[:linked_vpn_tunnel] if args.key?(:linked_vpn_tunnel) + @management_type = args[:management_type] if args.key?(:management_type) @name = args[:name] if args.key?(:name) end end @@ -20389,6 +20654,27 @@ module Google end end + # The policy describes how boot integrity measurements are evaluated. + class ShieldedVmIntegrityPolicy + include Google::Apis::Core::Hashable + + # Triggers an auto relearn event: the integrity monitoring module copies + # existing guest measurements to the baseline. + # Corresponds to the JSON property `updateAutoLearnPolicy` + # @return [Boolean] + attr_accessor :update_auto_learn_policy + alias_method :update_auto_learn_policy?, :update_auto_learn_policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @update_auto_learn_policy = args[:update_auto_learn_policy] if args.key?(:update_auto_learn_policy) + end + end + # Represents a customer-supplied Signing Key used by Cloud CDN Signed URLs class SignedUrlKey include Google::Apis::Core::Hashable @@ -21505,12 +21791,30 @@ module Google attr_accessor :private_ip_google_access alias_method :private_ip_google_access?, :private_ip_google_access + # The purpose of the resource. This field can be either PRIVATE_RFC_1918 or + # INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to + # INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for + # Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to + # PRIVATE_RFC_1918. + # Corresponds to the JSON property `purpose` + # @return [String] + attr_accessor :purpose + # URL of the region where the Subnetwork resides. This field can be set only at # resource creation time. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region + # The role of subnetwork. Currenly, this field is only used when purpose = + # INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An + # ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) + # Load Balancing. A BACKUP subnetwork is one that is ready to be promoted to + # ACTIVE or is currently draining. + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + # An array of configurations for secondary IP ranges for VM instances contained # in this subnetwork. The primary IP of such VM must belong to the primary # ipCidrRange of the subnetwork. The alias IPs may belong to either primary or @@ -21544,7 +21848,9 @@ module Google @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @private_ip_google_access = args[:private_ip_google_access] if args.key?(:private_ip_google_access) + @purpose = args[:purpose] if args.key?(:purpose) @region = args[:region] if args.key?(:region) + @role = args[:role] if args.key?(:role) @secondary_ip_ranges = args[:secondary_ip_ranges] if args.key?(:secondary_ip_ranges) @self_link = args[:self_link] if args.key?(:self_link) end @@ -22051,6 +22357,97 @@ module Google end end + # + class TargetHttpProxiesScopedList + include Google::Apis::Core::Hashable + + # List of TargetHttpProxies contained in this scope. + # Corresponds to the JSON property `targetHttpProxies` + # @return [Array] + attr_accessor :target_http_proxies + + # Informational warning which replaces the list of backend services when the + # list is empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeAlpha::TargetHttpProxiesScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @target_http_proxies = args[:target_http_proxies] if args.key?(:target_http_proxies) + @warning = args[:warning] if args.key?(:warning) + end + + # Informational warning which replaces the list of backend services when the + # list is empty. + class Warning + include Google::Apis::Core::Hashable + + # [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 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] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, 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 + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # A TargetHttpProxy resource. This resource defines an HTTP proxy. (== # resource_for beta.targetHttpProxies ==) (== resource_for v1.targetHttpProxies = # =) @@ -22090,6 +22487,12 @@ module Google # @return [String] attr_accessor :name + # [Output Only] URL of the region where the regional Target HTTP Proxy resides. + # This field is not applicable to global Target HTTP Proxies. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] @@ -22112,11 +22515,130 @@ module Google @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) + @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) @url_map = args[:url_map] if args.key?(:url_map) end end + # + class TargetHttpProxyAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of TargetHttpProxiesScopedList resources. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # [Output Only] Type of resource. Always compute#targetHttpProxyAggregatedList + # for lists of Target HTTP Proxies. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [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 + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeAlpha::TargetHttpProxyAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [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 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] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, 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 + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # A list of TargetHttpProxy resources. class TargetHttpProxyList include Google::Apis::Core::Hashable @@ -22280,12 +22802,6 @@ module Google class TargetHttpsProxy include Google::Apis::Core::Hashable - # URL to ClientSslPolicy resource which controls the set of allowed SSL versions - # and ciphers. - # Corresponds to the JSON property `clientSslPolicy` - # @return [String] - attr_accessor :client_ssl_policy - # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] @@ -22365,7 +22881,6 @@ module Google # Update properties of this object def update!(**args) - @client_ssl_policy = args[:client_ssl_policy] if args.key?(:client_ssl_policy) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @id = args[:id] if args.key?(:id) @@ -23555,12 +24070,6 @@ module Google class TargetSslProxy include Google::Apis::Core::Hashable - # URL to ClientSslPolicy resource which controls the set of allowed SSL versions - # and ciphers. - # Corresponds to the JSON property `clientSslPolicy` - # @return [String] - attr_accessor :client_ssl_policy - # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] @@ -23629,7 +24138,6 @@ module Google # Update properties of this object def update!(**args) - @client_ssl_policy = args[:client_ssl_policy] if args.key?(:client_ssl_policy) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @id = args[:id] if args.key?(:id) @@ -24608,6 +25116,13 @@ module Google # @return [Array] attr_accessor :path_matchers + # [Output Only] URL of the region where the regional URL map resides. This field + # is not applicable to global URL maps. You must specify this field as part of + # the HTTP request URL. It is not settable as a field in the request body. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] @@ -24635,6 +25150,7 @@ module Google @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @path_matchers = args[:path_matchers] if args.key?(:path_matchers) + @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) @tests = args[:tests] if args.key?(:tests) end diff --git a/generated/google/apis/compute_alpha/representations.rb b/generated/google/apis/compute_alpha/representations.rb index de2f8c2c1..b372d0e1e 100644 --- a/generated/google/apis/compute_alpha/representations.rb +++ b/generated/google/apis/compute_alpha/representations.rb @@ -874,6 +874,42 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class HealthChecksAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class HealthChecksScopedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class HealthStatus class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2524,6 +2560,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RegionUrlMapsValidateRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ResourceCommitment class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2794,6 +2836,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ShieldedVmIntegrityPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SignedUrlKey class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3022,12 +3070,48 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TargetHttpProxiesScopedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class TargetHttpProxy class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class TargetHttpProxyAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class TargetHttpProxyList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5155,6 +5239,7 @@ module Google property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' property :name, as: 'name' + property :region, as: 'region' property :self_link, as: 'selfLink' property :ssl_health_check, as: 'sslHealthCheck', class: Google::Apis::ComputeAlpha::SslHealthCheck, decorator: Google::Apis::ComputeAlpha::SslHealthCheck::Representation @@ -5207,6 +5292,66 @@ module Google end end + class HealthChecksAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeAlpha::HealthChecksScopedList, decorator: Google::Apis::ComputeAlpha::HealthChecksScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::HealthChecksAggregatedList::Warning, decorator: Google::Apis::ComputeAlpha::HealthChecksAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::HealthChecksAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::HealthChecksAggregatedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class HealthChecksScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :health_checks, as: 'healthChecks', class: Google::Apis::ComputeAlpha::HealthCheck, decorator: Google::Apis::ComputeAlpha::HealthCheck::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::HealthChecksScopedList::Warning, decorator: Google::Apis::ComputeAlpha::HealthChecksScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::HealthChecksScopedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::HealthChecksScopedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class HealthStatus # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5689,6 +5834,8 @@ module Google property :shielded_vm_config, as: 'shieldedVmConfig', class: Google::Apis::ComputeAlpha::ShieldedVmConfig, decorator: Google::Apis::ComputeAlpha::ShieldedVmConfig::Representation + property :shielded_vm_integrity_policy, as: 'shieldedVmIntegrityPolicy', class: Google::Apis::ComputeAlpha::ShieldedVmIntegrityPolicy, decorator: Google::Apis::ComputeAlpha::ShieldedVmIntegrityPolicy::Representation + property :start_restricted, as: 'startRestricted' property :status, as: 'status' property :status_message, as: 'statusMessage' @@ -8206,6 +8353,14 @@ module Google end end + class RegionUrlMapsValidateRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :resource, as: 'resource', class: Google::Apis::ComputeAlpha::UrlMap, decorator: Google::Apis::ComputeAlpha::UrlMap::Representation + + end + end + class ResourceCommitment # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8390,6 +8545,7 @@ module Google property :advertised_route_priority, as: 'advertisedRoutePriority' property :interface_name, as: 'interfaceName' property :ip_address, as: 'ipAddress' + property :management_type, as: 'managementType' property :name, as: 'name' property :peer_asn, as: 'peerAsn' property :peer_ip_address, as: 'peerIpAddress' @@ -8402,6 +8558,7 @@ module Google property :ip_range, as: 'ipRange' property :linked_interconnect_attachment, as: 'linkedInterconnectAttachment' property :linked_vpn_tunnel, as: 'linkedVpnTunnel' + property :management_type, as: 'managementType' property :name, as: 'name' end end @@ -8709,6 +8866,13 @@ module Google end end + class ShieldedVmIntegrityPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :update_auto_learn_policy, as: 'updateAutoLearnPolicy' + end + end + class SignedUrlKey # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8979,7 +9143,9 @@ module Google property :name, as: 'name' property :network, as: 'network' property :private_ip_google_access, as: 'privateIpGoogleAccess' + property :purpose, as: 'purpose' property :region, as: 'region' + property :role, as: 'role' collection :secondary_ip_ranges, as: 'secondaryIpRanges', class: Google::Apis::ComputeAlpha::SubnetworkSecondaryRange, decorator: Google::Apis::ComputeAlpha::SubnetworkSecondaryRange::Representation property :self_link, as: 'selfLink' @@ -9120,6 +9286,34 @@ module Google end end + class TargetHttpProxiesScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :target_http_proxies, as: 'targetHttpProxies', class: Google::Apis::ComputeAlpha::TargetHttpProxy, decorator: Google::Apis::ComputeAlpha::TargetHttpProxy::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::TargetHttpProxiesScopedList::Warning, decorator: Google::Apis::ComputeAlpha::TargetHttpProxiesScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::TargetHttpProxiesScopedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::TargetHttpProxiesScopedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class TargetHttpProxy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -9128,11 +9322,44 @@ module Google property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' property :name, as: 'name' + property :region, as: 'region' property :self_link, as: 'selfLink' property :url_map, as: 'urlMap' end end + class TargetHttpProxyAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeAlpha::TargetHttpProxiesScopedList, decorator: Google::Apis::ComputeAlpha::TargetHttpProxiesScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::TargetHttpProxyAggregatedList::Warning, decorator: Google::Apis::ComputeAlpha::TargetHttpProxyAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::TargetHttpProxyAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::TargetHttpProxyAggregatedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class TargetHttpProxyList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -9182,7 +9409,6 @@ module Google class TargetHttpsProxy # @private class Representation < Google::Apis::Core::JsonRepresentation - property :client_ssl_policy, as: 'clientSslPolicy' property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' property :id, :numeric_string => true, as: 'id' @@ -9517,7 +9743,6 @@ module Google class TargetSslProxy # @private class Representation < Google::Apis::Core::JsonRepresentation - property :client_ssl_policy, as: 'clientSslPolicy' property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' property :id, :numeric_string => true, as: 'id' @@ -9782,6 +10007,7 @@ module Google property :name, as: 'name' collection :path_matchers, as: 'pathMatchers', class: Google::Apis::ComputeAlpha::PathMatcher, decorator: Google::Apis::ComputeAlpha::PathMatcher::Representation + property :region, as: 'region' property :self_link, as: 'selfLink' collection :tests, as: 'tests', class: Google::Apis::ComputeAlpha::UrlMapTest, decorator: Google::Apis::ComputeAlpha::UrlMapTest::Representation diff --git a/generated/google/apis/compute_alpha/service.rb b/generated/google/apis/compute_alpha/service.rb index 6001b429a..1e1687583 100644 --- a/generated/google/apis/compute_alpha/service.rb +++ b/generated/google/apis/compute_alpha/service.rb @@ -2298,47 +2298,6 @@ 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::ComputeAlpha::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::ComputeAlpha::TestPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeAlpha::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_client_ssl_policy_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/clientSslPolicies/{resource}/testIamPermissions', options) - command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation - command.request_object = test_permissions_request_object - command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation - command.response_class = Google::Apis::ComputeAlpha::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 disk types. # @param [String] project # Project ID for this request. @@ -4938,6 +4897,80 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves the list of all HealthCheck resources, regional and global, + # available to the specified project. + # @param [String] project + # Name of the project scoping this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # 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 + # 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::ComputeAlpha::HealthChecksAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::HealthChecksAggregatedList] + # + # @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 aggregated_health_check_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/healthChecks', options) + command.response_representation = Google::Apis::ComputeAlpha::HealthChecksAggregatedList::Representation + command.response_class = Google::Apis::ComputeAlpha::HealthChecksAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified HealthCheck resource. # @param [String] project # Project ID for this request. @@ -10792,6 +10825,63 @@ module Google execute_or_queue_command(command, &block) end + # Sets the Shielded VM integrity policy for an instance. This method supports + # PATCH semantics and uses the JSON merge patch format and processing rules. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] instance + # Name of the instance scoping this request. + # @param [Google::Apis::ComputeAlpha::ShieldedVmIntegrityPolicy] shielded_vm_integrity_policy_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @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::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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_instance_shielded_vm_integrity_policy(project, zone, instance, shielded_vm_integrity_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy', options) + command.request_representation = Google::Apis::ComputeAlpha::ShieldedVmIntegrityPolicy::Representation + command.request_object = shielded_vm_integrity_policy_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instance'] = instance unless instance.nil? + command.query['requestId'] = request_id unless request_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 + # Sets tags for the specified instance to the data included in the request. # @param [String] project # Project ID for this request. @@ -17290,6 +17380,390 @@ module Google execute_or_queue_command(command, &block) end + # Deletes the specified HealthCheck resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] health_check + # Name of the HealthCheck resource to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @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::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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 delete_region_health_check(project, region, health_check, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/regions/{region}/healthChecks/{healthCheck}', options) + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['healthCheck'] = health_check unless health_check.nil? + command.query['requestId'] = request_id unless request_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 + + # Returns the specified HealthCheck resource. Get a list of available health + # checks by making a list() request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] health_check + # Name of the HealthCheck resource to return. + # @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::ComputeAlpha::HealthCheck] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::HealthCheck] + # + # @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_region_health_check(project, region, health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/healthChecks/{healthCheck}', options) + command.response_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation + command.response_class = Google::Apis::ComputeAlpha::HealthCheck + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['healthCheck'] = health_check unless health_check.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 + + # Creates a HealthCheck resource in the specified project using the data + # included in the request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [Google::Apis::ComputeAlpha::HealthCheck] health_check_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @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::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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 insert_region_health_check(project, region, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/healthChecks', options) + command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation + command.request_object = health_check_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['requestId'] = request_id unless request_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 + + # Retrieves the list of HealthCheck resources available to the specified project. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # 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 + # 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::ComputeAlpha::HealthCheckList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::HealthCheckList] + # + # @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_region_health_checks(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/healthChecks', options) + command.response_representation = Google::Apis::ComputeAlpha::HealthCheckList::Representation + command.response_class = Google::Apis::ComputeAlpha::HealthCheckList + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates a HealthCheck resource in the specified project using the data + # included in the request. This method supports PATCH semantics and uses the + # JSON merge patch format and processing rules. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] health_check + # Name of the HealthCheck resource to patch. + # @param [Google::Apis::ComputeAlpha::HealthCheck] health_check_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @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::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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 patch_region_health_check(project, region, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/regions/{region}/healthChecks/{healthCheck}', options) + command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation + command.request_object = health_check_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['healthCheck'] = health_check unless health_check.nil? + command.query['requestId'] = request_id unless request_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 + + # 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::ComputeAlpha::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::ComputeAlpha::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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_region_health_check_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}/healthChecks/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeAlpha::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 a HealthCheck resource in the specified project using the data + # included in the request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] health_check + # Name of the HealthCheck resource to update. + # @param [Google::Apis::ComputeAlpha::HealthCheck] health_check_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @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::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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 update_region_health_check(project, region, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, '{project}/regions/{region}/healthChecks/{healthCheck}', options) + command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation + command.request_object = health_check_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['healthCheck'] = health_check unless health_check.nil? + command.query['requestId'] = request_id unless request_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 + # 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 @@ -18842,6 +19316,725 @@ module Google execute_or_queue_command(command, &block) end + # Deletes the specified TargetHttpProxy resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] target_http_proxy + # Name of the TargetHttpProxy resource to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @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::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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 delete_region_target_http_proxy(project, region, target_http_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}', options) + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['targetHttpProxy'] = target_http_proxy unless target_http_proxy.nil? + command.query['requestId'] = request_id unless request_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 + + # Returns the specified TargetHttpProxy resource in the specified region. Get a + # list of available target HTTP proxies by making a list() request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] target_http_proxy + # Name of the TargetHttpProxy resource to return. + # @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::ComputeAlpha::TargetHttpProxy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::TargetHttpProxy] + # + # @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_region_target_http_proxy(project, region, target_http_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}', options) + command.response_representation = Google::Apis::ComputeAlpha::TargetHttpProxy::Representation + command.response_class = Google::Apis::ComputeAlpha::TargetHttpProxy + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['targetHttpProxy'] = target_http_proxy unless target_http_proxy.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 + + # Creates a TargetHttpProxy resource in the specified project and region using + # the data included in the request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [Google::Apis::ComputeAlpha::TargetHttpProxy] target_http_proxy_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @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::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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 insert_region_target_http_proxy(project, region, target_http_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/targetHttpProxies', options) + command.request_representation = Google::Apis::ComputeAlpha::TargetHttpProxy::Representation + command.request_object = target_http_proxy_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['requestId'] = request_id unless request_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 + + # Retrieves the list of TargetHttpProxy resources available to the specified + # project in the specified region. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # 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 + # 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::ComputeAlpha::TargetHttpProxyList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::TargetHttpProxyList] + # + # @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_region_target_http_proxies(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/targetHttpProxies', options) + command.response_representation = Google::Apis::ComputeAlpha::TargetHttpProxyList::Representation + command.response_class = Google::Apis::ComputeAlpha::TargetHttpProxyList + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Changes the URL map for TargetHttpProxy. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] target_http_proxy + # Name of the TargetHttpProxy to set a URL map for. + # @param [Google::Apis::ComputeAlpha::UrlMapReference] url_map_reference_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @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::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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_region_target_http_proxy_url_map(project, region, target_http_proxy, url_map_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap', options) + command.request_representation = Google::Apis::ComputeAlpha::UrlMapReference::Representation + command.request_object = url_map_reference_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['targetHttpProxy'] = target_http_proxy unless target_http_proxy.nil? + command.query['requestId'] = request_id unless request_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 + + # 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::ComputeAlpha::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::ComputeAlpha::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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_region_target_http_proxy_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}/targetHttpProxies/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeAlpha::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. + # @param [String] region + # Name of the region scoping this request. + # @param [String] url_map + # Name of the UrlMap resource to delete. + # @param [String] request_id + # begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + # @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::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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 delete_region_url_map(project, region, url_map, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/regions/{region}/urlMaps/{urlMap}', options) + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['urlMap'] = url_map unless url_map.nil? + command.query['requestId'] = request_id unless request_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 + + # 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] region + # Name of the region scoping this request. + # @param [String] url_map + # Name of the UrlMap resource to return. + # @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::ComputeAlpha::UrlMap] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::UrlMap] + # + # @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_region_url_map(project, region, url_map, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/urlMaps/{urlMap}', options) + command.response_representation = Google::Apis::ComputeAlpha::UrlMap::Representation + command.response_class = Google::Apis::ComputeAlpha::UrlMap + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.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 + + # Creates a UrlMap resource in the specified project using the data included in + # the request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [Google::Apis::ComputeAlpha::UrlMap] url_map_object + # @param [String] request_id + # begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + # @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::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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 insert_region_url_map(project, region, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/urlMaps', options) + command.request_representation = Google::Apis::ComputeAlpha::UrlMap::Representation + command.request_object = url_map_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['requestId'] = request_id unless request_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 + + # Retrieves the list of UrlMap resources available to the specified project in + # the specified region. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # 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 + # 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::ComputeAlpha::UrlMapList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::UrlMapList] + # + # @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_region_url_maps(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/urlMaps', options) + command.response_representation = Google::Apis::ComputeAlpha::UrlMapList::Representation + command.response_class = Google::Apis::ComputeAlpha::UrlMapList + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Patches the specified UrlMap resource with the data included in the request. + # This method supports PATCH semantics and uses JSON merge patch format and + # processing rules. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] url_map + # Name of the UrlMap resource to patch. + # @param [Google::Apis::ComputeAlpha::UrlMap] url_map_object + # @param [String] request_id + # begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + # @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::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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 patch_region_url_map(project, region, url_map, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/regions/{region}/urlMaps/{urlMap}', options) + command.request_representation = Google::Apis::ComputeAlpha::UrlMap::Representation + command.request_object = url_map_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['urlMap'] = url_map unless url_map.nil? + command.query['requestId'] = request_id unless request_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 + + # 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::ComputeAlpha::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::ComputeAlpha::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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_region_url_map_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}/urlMaps/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeAlpha::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 specified UrlMap resource with the data included in the request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] url_map + # Name of the UrlMap resource to update. + # @param [Google::Apis::ComputeAlpha::UrlMap] url_map_object + # @param [String] request_id + # begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + # @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::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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 update_region_url_map(project, region, url_map, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, '{project}/regions/{region}/urlMaps/{urlMap}', options) + command.request_representation = Google::Apis::ComputeAlpha::UrlMap::Representation + command.request_object = url_map_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['urlMap'] = url_map unless url_map.nil? + command.query['requestId'] = request_id unless request_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 + + # Runs static validation for the UrlMap. In particular, the tests of the + # provided UrlMap will be run. Calling this method does NOT create the UrlMap. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] url_map + # Name of the UrlMap resource to be validated as. + # @param [Google::Apis::ComputeAlpha::RegionUrlMapsValidateRequest] region_url_maps_validate_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::ComputeAlpha::UrlMapsValidateResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::UrlMapsValidateResponse] + # + # @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 validate_region_url_map(project, region, url_map, region_url_maps_validate_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/urlMaps/{urlMap}/validate', options) + command.request_representation = Google::Apis::ComputeAlpha::RegionUrlMapsValidateRequest::Representation + command.request_object = region_url_maps_validate_request_object + command.response_representation = Google::Apis::ComputeAlpha::UrlMapsValidateResponse::Representation + command.response_class = Google::Apis::ComputeAlpha::UrlMapsValidateResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.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 + # Returns the specified Region resource. Get a list of available regions by # making a list() request. # @param [String] project @@ -21673,9 +22866,9 @@ module Google # Patches the specified subnetwork with the data included in the request. Only # the following fields within the subnetwork resource can be specified in the - # request: secondary_ip_range and allow_subnet_cidr_routes_overlap. It is also - # mandatory to specify the current fingeprint of the subnetwork resource being - # patched. + # request: secondary_ip_range, allow_subnet_cidr_routes_overlap and role. It is + # also mandatory to specify the current fingeprint of the subnetwork resource + # being patched. # @param [String] project # Project ID for this request. # @param [String] region @@ -21877,6 +23070,80 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves the list of all TargetHttpProxy resources, regional and global, + # available to the specified project. + # @param [String] project + # Name of the project scoping this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # 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 + # 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::ComputeAlpha::TargetHttpProxyAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::TargetHttpProxyAggregatedList] + # + # @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 aggregated_target_http_proxy_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/targetHttpProxies', options) + command.response_representation = Google::Apis::ComputeAlpha::TargetHttpProxyAggregatedList::Representation + command.response_class = Google::Apis::ComputeAlpha::TargetHttpProxyAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + 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. diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index c4f66bd92..8cd9da775 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 = '20180314' + REVISION = '20180323' # 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 c2c7d0e44..076332db7 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -2328,6 +2328,11 @@ module Google # @return [String] attr_accessor :creation_timestamp + # Headers that the HTTP/S load balancer should add to proxied requests. + # Corresponds to the JSON property `customRequestHeaders` + # @return [Array] + attr_accessor :custom_request_headers + # An optional description of this resource. Provide this property when you # create the resource. # Corresponds to the JSON property `description` @@ -2464,6 +2469,7 @@ module Google @cdn_policy = args[:cdn_policy] if args.key?(:cdn_policy) @connection_draining = args[:connection_draining] if args.key?(:connection_draining) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @custom_request_headers = args[:custom_request_headers] if args.key?(:custom_request_headers) @description = args[:description] if args.key?(:description) @enable_cdn = args[:enable_cdn] if args.key?(:enable_cdn) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @@ -16462,6 +16468,13 @@ module Google # @return [Google::Apis::ComputeBeta::SecurityPolicyRuleMatcherConfig] attr_accessor :config + # Represents an expression text. Example: + # title: "User account presence" description: "Determines whether the request + # has a user account" expression: "size(request.user) > 0" + # Corresponds to the JSON property `expr` + # @return [Google::Apis::ComputeBeta::Expr] + attr_accessor :expr + # CIDR IP address range. # Corresponds to the JSON property `srcIpRanges` # @return [Array] @@ -16482,6 +16495,7 @@ module Google # Update properties of this object def update!(**args) @config = args[:config] if args.key?(:config) + @expr = args[:expr] if args.key?(:expr) @src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges) @versioned_expr = args[:versioned_expr] if args.key?(:versioned_expr) end diff --git a/generated/google/apis/compute_beta/representations.rb b/generated/google/apis/compute_beta/representations.rb index 9d8c6d2b1..a53143360 100644 --- a/generated/google/apis/compute_beta/representations.rb +++ b/generated/google/apis/compute_beta/representations.rb @@ -3564,6 +3564,7 @@ module Google property :connection_draining, as: 'connectionDraining', class: Google::Apis::ComputeBeta::ConnectionDraining, decorator: Google::Apis::ComputeBeta::ConnectionDraining::Representation property :creation_timestamp, as: 'creationTimestamp' + collection :custom_request_headers, as: 'customRequestHeaders' property :description, as: 'description' property :enable_cdn, as: 'enableCDN' property :fingerprint, :base64 => true, as: 'fingerprint' @@ -7084,6 +7085,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :config, as: 'config', class: Google::Apis::ComputeBeta::SecurityPolicyRuleMatcherConfig, decorator: Google::Apis::ComputeBeta::SecurityPolicyRuleMatcherConfig::Representation + property :expr, as: 'expr', class: Google::Apis::ComputeBeta::Expr, decorator: Google::Apis::ComputeBeta::Expr::Representation + collection :src_ip_ranges, as: 'srcIpRanges' property :versioned_expr, as: 'versionedExpr' end diff --git a/generated/google/apis/compute_beta/service.rb b/generated/google/apis/compute_beta/service.rb index c237e99a9..dd2e1a991 100644 --- a/generated/google/apis/compute_beta/service.rb +++ b/generated/google/apis/compute_beta/service.rb @@ -17769,9 +17769,9 @@ module Google # Patches the specified subnetwork with the data included in the request. Only # the following fields within the subnetwork resource can be specified in the - # request: secondary_ip_range and allow_subnet_cidr_routes_overlap. It is also - # mandatory to specify the current fingeprint of the subnetwork resource being - # patched. + # request: secondary_ip_range, allow_subnet_cidr_routes_overlap and role. It is + # also mandatory to specify the current fingeprint of the subnetwork resource + # being patched. # @param [String] project # Project ID for this request. # @param [String] region diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index f727bdc53..213913a83 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 = '20180314' + REVISION = '20180323' # 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 5a7f032f2..e15b71872 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -3373,6 +3373,11 @@ module Google # @return [String] attr_accessor :last_detach_timestamp + # Integer license codes indicating which licenses are attached to this disk. + # Corresponds to the JSON property `licenseCodes` + # @return [Array] + attr_accessor :license_codes + # Any applicable publicly visible licenses. # Corresponds to the JSON property `licenses` # @return [Array] @@ -3507,6 +3512,7 @@ module Google @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) + @license_codes = args[:license_codes] if args.key?(:license_codes) @licenses = args[:licenses] if args.key?(:licenses) @name = args[:name] if args.key?(:name) @options = args[:options] if args.key?(:options) @@ -6186,6 +6192,11 @@ module Google # @return [Hash] attr_accessor :labels + # Integer license codes indicating which licenses are attached to this image. + # Corresponds to the JSON property `licenseCodes` + # @return [Array] + attr_accessor :license_codes + # Any applicable license URI. # Corresponds to the JSON property `licenses` # @return [Array] @@ -6309,6 +6320,7 @@ module Google @kind = args[:kind] if args.key?(:kind) @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @labels = args[:labels] if args.key?(:labels) + @license_codes = args[:license_codes] if args.key?(:license_codes) @licenses = args[:licenses] if args.key?(:licenses) @name = args[:name] if args.key?(:name) @raw_disk = args[:raw_disk] if args.key?(:raw_disk) @@ -10072,35 +10084,311 @@ module Google attr_accessor :charges_use_fee alias_method :charges_use_fee?, :charges_use_fee + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional textual description of the resource; provided by the client when + # the resource is created. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + # [Output Only] Type of resource. Always compute#license for licenses. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind + # [Output Only] The unique code used to attach this license to images, snapshots, + # and disks. + # Corresponds to the JSON property `licenseCode` + # @return [Fixnum] + attr_accessor :license_code + # [Output Only] Name of the resource. The name is 1-63 characters long and # complies with RFC1035. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name + # + # Corresponds to the JSON property `resourceRequirements` + # @return [Google::Apis::ComputeV1::LicenseResourceRequirements] + attr_accessor :resource_requirements + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link + # If false, licenses will not be copied from the source resource when creating + # an image from a disk, disk from snapshot, or snapshot from disk. + # Corresponds to the JSON property `transferable` + # @return [Boolean] + attr_accessor :transferable + alias_method :transferable?, :transferable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @charges_use_fee = args[:charges_use_fee] if args.key?(:charges_use_fee) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @license_code = args[:license_code] if args.key?(:license_code) + @name = args[:name] if args.key?(:name) + @resource_requirements = args[:resource_requirements] if args.key?(:resource_requirements) + @self_link = args[:self_link] if args.key?(:self_link) + @transferable = args[:transferable] if args.key?(:transferable) + end + end + + # + class LicenseCode + include Google::Apis::Core::Hashable + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # [Output Only] Description of this License Code. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # [Output Only] Type of resource. Always compute#licenseCode for licenses. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] URL and description aliases of Licenses with the same License + # Code. + # Corresponds to the JSON property `licenseAlias` + # @return [Array] + attr_accessor :license_alias + + # [Output Only] Name of the resource. The name is 1-20 characters long and must + # be a valid 64 bit integer. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Current state of this License Code. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # [Output Only] If true, the license will remain attached when creating images + # or snapshots from disks. Otherwise, the license is not transferred. + # Corresponds to the JSON property `transferable` + # @return [Boolean] + attr_accessor :transferable + alias_method :transferable?, :transferable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @license_alias = args[:license_alias] if args.key?(:license_alias) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) + @state = args[:state] if args.key?(:state) + @transferable = args[:transferable] if args.key?(:transferable) + end + end + + # + class LicenseCodeLicenseAlias + include Google::Apis::Core::Hashable + + # [Output Only] Description of this License Code. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] URL of license corresponding to this License Code. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @charges_use_fee = args[:charges_use_fee] if args.key?(:charges_use_fee) - @kind = args[:kind] if args.key?(:kind) - @name = args[:name] if args.key?(:name) + @description = args[:description] if args.key?(:description) @self_link = args[:self_link] if args.key?(:self_link) end end + # + class LicenseResourceRequirements + include Google::Apis::Core::Hashable + + # Minimum number of guest cpus required to use the Instance. Enforced at + # Instance creation and Instance start. + # Corresponds to the JSON property `minGuestCpuCount` + # @return [Fixnum] + attr_accessor :min_guest_cpu_count + + # Minimum memory required to use the Instance. Enforced at Instance creation and + # Instance start. + # Corresponds to the JSON property `minMemoryMb` + # @return [Fixnum] + attr_accessor :min_memory_mb + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @min_guest_cpu_count = args[:min_guest_cpu_count] if args.key?(:min_guest_cpu_count) + @min_memory_mb = args[:min_memory_mb] if args.key?(:min_memory_mb) + end + end + + # + class LicensesListResponse + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of License resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [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 + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::LicensesListResponse::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [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 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] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, 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 + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # A Machine Type resource. (== resource_for v1.machineTypes ==) (== resource_for # beta.machineTypes ==) class MachineType @@ -14406,6 +14694,11 @@ module Google # @return [Hash] attr_accessor :labels + # Integer license codes indicating which licenses are attached to this snapshot. + # Corresponds to the JSON property `licenseCodes` + # @return [Array] + attr_accessor :license_codes + # [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). @@ -14483,6 +14776,7 @@ module Google @kind = args[:kind] if args.key?(:kind) @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @labels = args[:labels] if args.key?(:labels) + @license_codes = args[:license_codes] if args.key?(:license_codes) @licenses = args[:licenses] if args.key?(:licenses) @name = args[:name] if args.key?(:name) @self_link = args[:self_link] if args.key?(:self_link) @@ -14805,6 +15099,334 @@ module Google end end + # + class SslPoliciesList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of SslPolicy resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of the resource. Always compute#sslPoliciesList for lists + # of sslPolicies. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [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 + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::SslPoliciesList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [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 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] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, 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 + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class SslPoliciesListAvailableFeaturesResponse + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `features` + # @return [Array] + attr_accessor :features + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @features = args[:features] if args.key?(:features) + end + end + + # A SSL policy specifies the server-side support for SSL features. This can be + # attached to a TargetHttpsProxy or a TargetSslProxy. This affects connections + # between clients and the HTTPS or SSL proxy load balancer. They do not affect + # the connection between the load balancers and the backends. + class SslPolicy + include Google::Apis::Core::Hashable + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # List of features enabled when the selected profile is CUSTOM. The + # - method returns the set of features that can be specified in this list. This + # field must be empty if the profile is not CUSTOM. + # Corresponds to the JSON property `customFeatures` + # @return [Array] + attr_accessor :custom_features + + # An optional description of this resource. Provide this property when you + # create the resource. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] The list of features enabled in the SSL policy. + # Corresponds to the JSON property `enabledFeatures` + # @return [Array] + attr_accessor :enabled_features + + # Fingerprint of this resource. A hash of the contents stored in this object. + # This field is used in optimistic locking. This field will be ignored when + # inserting a SslPolicy. An up-to-date fingerprint must be provided in order to + # update the SslPolicy. + # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :fingerprint + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The minimum version of SSL protocol that can be used by the clients to + # establish a connection with the load balancer. This can be one of TLS_1_0, + # TLS_1_1, TLS_1_2, TLS_1_3. + # Corresponds to the JSON property `minTlsVersion` + # @return [String] + attr_accessor :min_tls_version + + # Name of the resource. The name must be 1-63 characters long, and comply with + # RFC1035. Specifically, the name must be 1-63 characters long and match the + # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + # character must be a lowercase letter, and all following characters must be a + # dash, lowercase letter, or digit, except the last character, which cannot be a + # dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Profile specifies the set of SSL features that can be used by the load + # balancer when negotiating SSL with clients. This can be one of COMPATIBLE, + # MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to + # enable must be specified in the customFeatures field. + # Corresponds to the JSON property `profile` + # @return [String] + attr_accessor :profile + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] If potential misconfigurations are detected for this SSL policy, + # this field will be populated with warning messages. + # Corresponds to the JSON property `warnings` + # @return [Array] + attr_accessor :warnings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @custom_features = args[:custom_features] if args.key?(:custom_features) + @description = args[:description] if args.key?(:description) + @enabled_features = args[:enabled_features] if args.key?(:enabled_features) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @min_tls_version = args[:min_tls_version] if args.key?(:min_tls_version) + @name = args[:name] if args.key?(:name) + @profile = args[:profile] if args.key?(:profile) + @self_link = args[:self_link] if args.key?(:self_link) + @warnings = args[:warnings] if args.key?(:warnings) + end + + # + class Warning + include Google::Apis::Core::Hashable + + # [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 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] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, 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 + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class SslPolicyReference + include Google::Apis::Core::Hashable + + # URL of the SSL policy resource. Set this to empty string to clear any existing + # SSL policy associated with the target proxy resource. + # Corresponds to the JSON property `sslPolicy` + # @return [String] + attr_accessor :ssl_policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ssl_policy = args[:ssl_policy] if args.key?(:ssl_policy) + end + end + # A Subnetwork resource. (== resource_for beta.subnetworks ==) (== resource_for # v1.subnetworks ==) class Subnetwork @@ -15658,6 +16280,13 @@ module Google # @return [Array] attr_accessor :ssl_certificates + # URL of SslPolicy resource that will be associated with the TargetHttpsProxy + # resource. If not set, the TargetHttpsProxy resource will not have any SSL + # policy configured. + # Corresponds to the JSON property `sslPolicy` + # @return [String] + attr_accessor :ssl_policy + # A fully-qualified or valid partial URL to the UrlMap resource that defines the # mapping from URL to the BackendService. For example, the following are all # valid URLs for specifying a URL map: @@ -15681,6 +16310,7 @@ module Google @name = args[:name] if args.key?(:name) @self_link = args[:self_link] if args.key?(:self_link) @ssl_certificates = args[:ssl_certificates] if args.key?(:ssl_certificates) + @ssl_policy = args[:ssl_policy] if args.key?(:ssl_policy) @url_map = args[:url_map] if args.key?(:url_map) end end @@ -16916,6 +17546,13 @@ module Google # @return [Array] attr_accessor :ssl_certificates + # URL of SslPolicy resource that will be associated with the TargetSslProxy + # resource. If not set, the TargetSslProxy resource will not have any SSL policy + # configured. + # Corresponds to the JSON property `sslPolicy` + # @return [String] + attr_accessor :ssl_policy + def initialize(**args) update!(**args) end @@ -16931,6 +17568,7 @@ module Google @self_link = args[:self_link] if args.key?(:self_link) @service = args[:service] if args.key?(:service) @ssl_certificates = args[:ssl_certificates] if args.key?(:ssl_certificates) + @ssl_policy = args[:ssl_policy] if args.key?(:ssl_policy) end end @@ -17736,6 +18374,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. diff --git a/generated/google/apis/compute_v1/representations.rb b/generated/google/apis/compute_v1/representations.rb index 177830fed..b61f41093 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -1342,6 +1342,42 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class LicenseCode + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LicenseCodeLicenseAlias + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LicenseResourceRequirements + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LicensesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class MachineType class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2014,6 +2050,54 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SslPoliciesList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class SslPoliciesListAvailableFeaturesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SslPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class SslPolicyReference + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Subnetwork class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2458,6 +2542,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 @@ -3464,6 +3560,7 @@ module Google hash :labels, as: 'labels' property :last_attach_timestamp, as: 'lastAttachTimestamp' property :last_detach_timestamp, as: 'lastDetachTimestamp' + collection :license_codes, as: 'licenseCodes' collection :licenses, as: 'licenses' property :name, as: 'name' property :options, as: 'options' @@ -4128,6 +4225,7 @@ module Google property :kind, as: 'kind' property :label_fingerprint, :base64 => true, as: 'labelFingerprint' hash :labels, as: 'labels' + collection :license_codes, as: 'licenseCodes' collection :licenses, as: 'licenses' property :name, as: 'name' property :raw_disk, as: 'rawDisk', class: Google::Apis::ComputeV1::Image::RawDisk, decorator: Google::Apis::ComputeV1::Image::RawDisk::Representation @@ -5114,9 +5212,79 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :charges_use_fee, as: 'chargesUseFee' + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' + property :license_code, :numeric_string => true, as: 'licenseCode' + property :name, as: 'name' + property :resource_requirements, as: 'resourceRequirements', class: Google::Apis::ComputeV1::LicenseResourceRequirements, decorator: Google::Apis::ComputeV1::LicenseResourceRequirements::Representation + + property :self_link, as: 'selfLink' + property :transferable, as: 'transferable' + end + end + + class LicenseCode + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + collection :license_alias, as: 'licenseAlias', class: Google::Apis::ComputeV1::LicenseCodeLicenseAlias, decorator: Google::Apis::ComputeV1::LicenseCodeLicenseAlias::Representation + property :name, as: 'name' property :self_link, as: 'selfLink' + property :state, as: 'state' + property :transferable, as: 'transferable' + end + end + + class LicenseCodeLicenseAlias + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :self_link, as: 'selfLink' + end + end + + class LicenseResourceRequirements + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :min_guest_cpu_count, as: 'minGuestCpuCount' + property :min_memory_mb, as: 'minMemoryMb' + end + end + + class LicensesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::License, decorator: Google::Apis::ComputeV1::License::Representation + + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::LicensesListResponse::Warning, decorator: Google::Apis::ComputeV1::LicensesListResponse::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::LicensesListResponse::Warning::Datum, decorator: Google::Apis::ComputeV1::LicensesListResponse::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end end end @@ -6238,6 +6406,7 @@ module Google property :kind, as: 'kind' property :label_fingerprint, :base64 => true, as: 'labelFingerprint' hash :labels, as: 'labels' + collection :license_codes, as: 'licenseCodes' collection :licenses, as: 'licenses' property :name, as: 'name' property :self_link, as: 'selfLink' @@ -6331,6 +6500,89 @@ module Google end end + class SslPoliciesList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::SslPolicy, decorator: Google::Apis::ComputeV1::SslPolicy::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::SslPoliciesList::Warning, decorator: Google::Apis::ComputeV1::SslPoliciesList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::SslPoliciesList::Warning::Datum, decorator: Google::Apis::ComputeV1::SslPoliciesList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class SslPoliciesListAvailableFeaturesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :features, as: 'features' + end + end + + class SslPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + collection :custom_features, as: 'customFeatures' + property :description, as: 'description' + collection :enabled_features, as: 'enabledFeatures' + property :fingerprint, :base64 => true, as: 'fingerprint' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :min_tls_version, as: 'minTlsVersion' + property :name, as: 'name' + property :profile, as: 'profile' + property :self_link, as: 'selfLink' + collection :warnings, as: 'warnings', class: Google::Apis::ComputeV1::SslPolicy::Warning, decorator: Google::Apis::ComputeV1::SslPolicy::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::SslPolicy::Warning::Datum, decorator: Google::Apis::ComputeV1::SslPolicy::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class SslPolicyReference + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ssl_policy, as: 'sslPolicy' + end + end + class Subnetwork # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6546,6 +6798,7 @@ module Google property :name, as: 'name' property :self_link, as: 'selfLink' collection :ssl_certificates, as: 'sslCertificates' + property :ssl_policy, as: 'sslPolicy' property :url_map, as: 'urlMap' end end @@ -6880,6 +7133,7 @@ module Google property :self_link, as: 'selfLink' property :service, as: 'service' collection :ssl_certificates, as: 'sslCertificates' + property :ssl_policy, as: 'sslPolicy' end end @@ -7094,6 +7348,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 diff --git a/generated/google/apis/compute_v1/service.rb b/generated/google/apis/compute_v1/service.rb index 8738cd671..d865e8839 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -7079,6 +7079,14 @@ module Google # accidentally creating duplicate commitments. # The request ID must be a valid UUID with the exception that zero UUID is not # supported (00000000-0000-0000-0000-000000000000). + # @param [String] source_instance_template + # Specifies instance template to create the instance. + # This field is optional. It can be a full or partial URL. For example, the + # following are all valid URLs to an instance template: + # - https://www.googleapis.com/compute/v1/projects/project/global/global/ + # instanceTemplates/instanceTemplate + # - projects/project/global/global/instanceTemplates/instanceTemplate + # - global/instancesTemplates/instanceTemplate # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7100,7 +7108,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 insert_instance(project, zone, instance_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def insert_instance(project, zone, instance_object = nil, request_id: nil, source_instance_template: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{project}/zones/{zone}/instances', options) command.request_representation = Google::Apis::ComputeV1::Instance::Representation command.request_object = instance_object @@ -7109,6 +7117,7 @@ module Google command.params['project'] = project unless project.nil? command.params['zone'] = zone unless zone.nil? command.query['requestId'] = request_id unless request_id.nil? + command.query['sourceInstanceTemplate'] = source_instance_template unless source_instance_template.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? @@ -8862,6 +8871,136 @@ module Google execute_or_queue_command(command, &block) end + # Return a specified license code. License codes are mirrored across all + # projects that have permissions to read the License Code. + # @param [String] project + # Project ID for this request. + # @param [String] license_code + # Number corresponding to the License code resource to return. + # @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::ComputeV1::LicenseCode] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::LicenseCode] + # + # @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_license_code(project, license_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/licenseCodes/{licenseCode}', options) + command.response_representation = Google::Apis::ComputeV1::LicenseCode::Representation + command.response_class = Google::Apis::ComputeV1::LicenseCode + command.params['project'] = project unless project.nil? + command.params['licenseCode'] = license_code unless license_code.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::ComputeV1::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::ComputeV1::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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_license_code_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/licenseCodes/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeV1::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 license. + # @param [String] project + # Project ID for this request. + # @param [String] license + # Name of the license resource to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 delete_license(project, license, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/global/licenses/{license}', options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['license'] = license unless license.nil? + command.query['requestId'] = request_id unless request_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 + # Returns the specified License resource. # @param [String] project # Project ID for this request. @@ -8900,6 +9039,174 @@ module Google execute_or_queue_command(command, &block) end + # Create a License resource in the specified project. + # @param [String] project + # Project ID for this request. + # @param [Google::Apis::ComputeV1::License] license_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 insert_license(project, license_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/licenses', options) + command.request_representation = Google::Apis::ComputeV1::License::Representation + command.request_object = license_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.query['requestId'] = request_id unless request_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 + + # Retrieves the list of licenses available in the specified project. This method + # does not get any licenses that belong to other projects, including licenses + # attached to publicly-available images, like Debian 8. If you want to get a + # list of publicly-available licenses, use this method to make a request to the + # respective image project, such as debian-cloud or windows-cloud. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # 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 + # 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::ComputeV1::LicensesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::LicensesListResponse] + # + # @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_licenses(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/licenses', options) + command.response_representation = Google::Apis::ComputeV1::LicensesListResponse::Representation + command.response_class = Google::Apis::ComputeV1::LicensesListResponse + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + 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::ComputeV1::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::ComputeV1::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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_license_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/licenses/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeV1::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 machine types. # @param [String] project # Project ID for this request. @@ -13366,6 +13673,349 @@ module Google execute_or_queue_command(command, &block) end + # Deletes the specified SSL policy. The SSL policy resource can be deleted only + # if it is not in use by any TargetHttpsProxy or TargetSslProxy resources. + # @param [String] project + # Project ID for this request. + # @param [String] ssl_policy + # Name of the SSL policy to delete. The name must be 1-63 characters long, and + # comply with RFC1035. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 delete_ssl_policy(project, ssl_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/global/sslPolicies/{sslPolicy}', options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil? + command.query['requestId'] = request_id unless request_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 + + # List all of the ordered rules present in a single specified policy. + # @param [String] project + # Project ID for this request. + # @param [String] ssl_policy + # Name of the SSL policy to update. The name must be 1-63 characters long, and + # comply with RFC1035. + # @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::ComputeV1::SslPolicy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::SslPolicy] + # + # @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_ssl_policy(project, ssl_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/sslPolicies/{sslPolicy}', options) + command.response_representation = Google::Apis::ComputeV1::SslPolicy::Representation + command.response_class = Google::Apis::ComputeV1::SslPolicy + command.params['project'] = project unless project.nil? + command.params['sslPolicy'] = ssl_policy unless ssl_policy.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 SSL policy resource. Get a list of available SSL + # policies by making a list() request. + # @param [String] project + # Project ID for this request. + # @param [Google::Apis::ComputeV1::SslPolicy] ssl_policy_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 insert_ssl_policy(project, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/sslPolicies', options) + command.request_representation = Google::Apis::ComputeV1::SslPolicy::Representation + command.request_object = ssl_policy_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.query['requestId'] = request_id unless request_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 + + # List all the SSL policies that have been configured for the specified project. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # 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 + # 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::ComputeV1::SslPoliciesList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::SslPoliciesList] + # + # @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_ssl_policies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/sslPolicies', options) + command.response_representation = Google::Apis::ComputeV1::SslPoliciesList::Representation + command.response_class = Google::Apis::ComputeV1::SslPoliciesList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists all features that can be specified in the SSL policy when using custom + # profile. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # 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 + # 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::ComputeV1::SslPoliciesListAvailableFeaturesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::SslPoliciesListAvailableFeaturesResponse] + # + # @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_ssl_policy_available_features(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/sslPolicies/listAvailableFeatures', options) + command.response_representation = Google::Apis::ComputeV1::SslPoliciesListAvailableFeaturesResponse::Representation + command.response_class = Google::Apis::ComputeV1::SslPoliciesListAvailableFeaturesResponse + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Patches the specified SSL policy with the data included in the request. + # @param [String] project + # Project ID for this request. + # @param [String] ssl_policy + # Name of the SSL policy to update. The name must be 1-63 characters long, and + # comply with RFC1035. + # @param [Google::Apis::ComputeV1::SslPolicy] ssl_policy_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 patch_ssl_policy(project, ssl_policy, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/global/sslPolicies/{sslPolicy}', options) + command.request_representation = Google::Apis::ComputeV1::SslPolicy::Representation + command.request_object = ssl_policy_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil? + command.query['requestId'] = request_id unless request_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 + # Retrieves an aggregated list of subnetworks. # @param [String] project # Project ID for this request. @@ -13722,9 +14372,9 @@ module Google # Patches the specified subnetwork with the data included in the request. Only # the following fields within the subnetwork resource can be specified in the - # request: secondary_ip_range and allow_subnet_cidr_routes_overlap. It is also - # mandatory to specify the current fingeprint of the subnetwork resource being - # patched. + # request: secondary_ip_range, allow_subnet_cidr_routes_overlap and role. It is + # also mandatory to specify the current fingeprint of the subnetwork resource + # being patched. # @param [String] project # Project ID for this request. # @param [String] region @@ -14371,6 +15021,63 @@ module Google execute_or_queue_command(command, &block) end + # Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server- + # side support for SSL features. This affects connections between clients and + # the HTTPS proxy load balancer. They do not affect the connection between the + # load balancer and the backends. + # @param [String] project + # Project ID for this request. + # @param [String] target_https_proxy + # Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name + # must be 1-63 characters long, and comply with RFC1035. + # @param [Google::Apis::ComputeV1::SslPolicyReference] ssl_policy_reference_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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_target_https_proxy_ssl_policy(project, target_https_proxy, ssl_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy', options) + command.request_representation = Google::Apis::ComputeV1::SslPolicyReference::Representation + command.request_object = ssl_policy_reference_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil? + command.query['requestId'] = request_id unless request_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 + # Changes the URL map for TargetHttpsProxy. # @param [String] project # Project ID for this request. @@ -15722,6 +16429,63 @@ module Google execute_or_queue_command(command, &block) end + # Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server- + # side support for SSL features. This affects connections between clients and + # the SSL proxy load balancer. They do not affect the connection between the + # load balancer and the backends. + # @param [String] project + # Project ID for this request. + # @param [String] target_ssl_proxy + # Name of the TargetSslProxy resource whose SSL policy is to be set. The name + # must be 1-63 characters long, and comply with RFC1035. + # @param [Google::Apis::ComputeV1::SslPolicyReference] ssl_policy_reference_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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_target_ssl_proxy_ssl_policy(project, target_ssl_proxy, ssl_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy', options) + command.request_representation = Google::Apis::ComputeV1::SslPolicyReference::Representation + command.request_object = ssl_policy_reference_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.nil? + command.query['requestId'] = request_id unless request_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 + # Deletes the specified TargetTcpProxy resource. # @param [String] project # Project ID for this request. diff --git a/generated/google/apis/dataproc_v1.rb b/generated/google/apis/dataproc_v1.rb index 9d09dbd3f..1c3578e57 100644 --- a/generated/google/apis/dataproc_v1.rb +++ b/generated/google/apis/dataproc_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1 VERSION = 'V1' - REVISION = '20180312' + REVISION = '20180404' # 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/dataproc_v1/classes.rb b/generated/google/apis/dataproc_v1/classes.rb index 231197a68..3fe19c187 100644 --- a/generated/google/apis/dataproc_v1/classes.rb +++ b/generated/google/apis/dataproc_v1/classes.rb @@ -37,7 +37,9 @@ module Google # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/ # acceleratorTypes/nvidia-tesla-k80 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 - # nvidia-tesla-k80 + # nvidia-tesla-k80Auto Zone Exception: If you are using the Cloud Dataproc Auto + # Zone Placement feature, you must use the short name of the accelerator type + # resource, for example, nvidia-tesla-k80. # Corresponds to the JSON property `acceleratorTypeUri` # @return [String] attr_accessor :accelerator_type_uri @@ -390,8 +392,8 @@ module Google class DiagnoseClusterResults include Google::Apis::Core::Hashable - # Output only. The Google Cloud Storage URI of the diagnostic output. The output - # report is a plain text file with a summary of collected diagnostics. + # Output only. The Cloud Storage URI of the diagnostic output. The output report + # is a plain text file with a summary of collected diagnostics. # Corresponds to the JSON property `outputUri` # @return [String] attr_accessor :output_uri @@ -492,7 +494,7 @@ module Google # Optional. The service account of the instances. Defaults to the default # Compute Engine service account. Custom service accounts need permissions - # equivalent to the folloing IAM roles: + # equivalent to the following IAM roles: # roles/logging.logWriter # roles/storage.objectAdmin(see https://cloud.google.com/compute/docs/access/ # service-accounts#custom_service_accounts for more information). Example: [ @@ -501,8 +503,8 @@ module Google # @return [String] attr_accessor :service_account - # Optional. The URIs of service account scopes to be included in Google Compute - # Engine instances. The following base set of scopes is always included: + # Optional. The URIs of service account scopes to be included in Compute Engine + # instances. The following base set of scopes is always included: # https://www.googleapis.com/auth/cloud.useraccounts.readonly # https://www.googleapis.com/auth/devstorage.read_write # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the @@ -737,7 +739,9 @@ module Google # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/ # machineTypes/n1-standard-2 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 - # n1-standard-2 + # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto + # Zone Placement feature, you must use the short name of the machine type + # resource, for example, n1-standard-2. # Corresponds to the JSON property `machineTypeUri` # @return [String] attr_accessor :machine_type_uri diff --git a/generated/google/apis/dataproc_v1beta2.rb b/generated/google/apis/dataproc_v1beta2.rb index 09d976a80..25aca23f2 100644 --- a/generated/google/apis/dataproc_v1beta2.rb +++ b/generated/google/apis/dataproc_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1beta2 VERSION = 'V1beta2' - REVISION = '20180320' + REVISION = '20180404' # 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/dataproc_v1beta2/classes.rb b/generated/google/apis/dataproc_v1beta2/classes.rb index b8d1c2150..dc4b04142 100644 --- a/generated/google/apis/dataproc_v1beta2/classes.rb +++ b/generated/google/apis/dataproc_v1beta2/classes.rb @@ -37,7 +37,9 @@ module Google # reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/compute/ # beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * - # nvidia-tesla-k80 + # nvidia-tesla-k80Auto Zone Exception: If you are using the Cloud Dataproc Auto + # Zone Placement feature, you must use the short name of the accelerator type + # resource, for example, nvidia-tesla-k80. # Corresponds to the JSON property `acceleratorTypeUri` # @return [String] attr_accessor :accelerator_type_uri @@ -604,7 +606,7 @@ module Google # Optional. The service account of the instances. Defaults to the default # Compute Engine service account. Custom service accounts need permissions - # equivalent to the folloing IAM roles: + # equivalent to the following IAM roles: # roles/logging.logWriter # roles/storage.objectAdmin(see https://cloud.google.com/compute/docs/access/ # service-accounts#custom_service_accounts for more information). Example: [ @@ -613,8 +615,8 @@ module Google # @return [String] attr_accessor :service_account - # Optional. The URIs of service account scopes to be included in Google Compute - # Engine instances. The following base set of scopes is always included: + # Optional. The URIs of service account scopes to be included in Compute Engine + # instances. The following base set of scopes is always included: # https://www.googleapis.com/auth/cloud.useraccounts.readonly # https://www.googleapis.com/auth/devstorage.read_write # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the @@ -849,7 +851,9 @@ module Google # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/ # machineTypes/n1-standard-2 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 - # n1-standard-2 + # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto + # Zone Placement feature, you must use the short name of the machine type + # resource, for example, n1-standard-2. # Corresponds to the JSON property `machineTypeUri` # @return [String] attr_accessor :machine_type_uri diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index 2ff54c2d4..34d6ace09 100644 --- a/generated/google/apis/drive_v2.rb +++ b/generated/google/apis/drive_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV2 VERSION = 'V2' - REVISION = '20180209' + REVISION = '20180330' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/drive_v2/classes.rb b/generated/google/apis/drive_v2/classes.rb index a1f65bf7a..79b05addd 100644 --- a/generated/google/apis/drive_v2/classes.rb +++ b/generated/google/apis/drive_v2/classes.rb @@ -2684,7 +2684,8 @@ module Google # @return [String] attr_accessor :value - # The visibility of this property. + # The visibility of this property. Allowed values are PRIVATE and PUBLIC. ( + # Default: PRIVATE) # Corresponds to the JSON property `visibility` # @return [String] attr_accessor :visibility diff --git a/generated/google/apis/drive_v2/service.rb b/generated/google/apis/drive_v2/service.rb index 44e8432d4..43ff57c92 100644 --- a/generated/google/apis/drive_v2/service.rb +++ b/generated/google/apis/drive_v2/service.rb @@ -2303,15 +2303,15 @@ module Google execute_or_queue_command(command, &block) end - # Updates a property, or adds it if it doesn't exist. This method supports patch - # semantics. + # Updates a property. This method supports patch semantics. # @param [String] file_id # The ID of the file. # @param [String] property_key # The key of the property. # @param [Google::Apis::DriveV2::Property] property_object # @param [String] visibility - # The visibility of the property. + # The visibility of the property. Allowed values are PRIVATE and PUBLIC. ( + # Default: PRIVATE) # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2348,14 +2348,15 @@ module Google execute_or_queue_command(command, &block) end - # Updates a property, or adds it if it doesn't exist. + # Updates a property. # @param [String] file_id # The ID of the file. # @param [String] property_key # The key of the property. # @param [Google::Apis::DriveV2::Property] property_object # @param [String] visibility - # The visibility of the property. + # The visibility of the property. Allowed values are PRIVATE and PUBLIC. ( + # Default: PRIVATE) # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/genomics_v1.rb b/generated/google/apis/genomics_v1.rb index ed2034923..7037969c4 100644 --- a/generated/google/apis/genomics_v1.rb +++ b/generated/google/apis/genomics_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/genomics module GenomicsV1 VERSION = 'V1' - REVISION = '20180222' + REVISION = '20180404' # 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 ec0e61862..43e99181a 100644 --- a/generated/google/apis/genomics_v1/classes.rb +++ b/generated/google/apis/genomics_v1/classes.rb @@ -276,8 +276,6 @@ module Google # A call set is a collection of variant calls, typically for one sample. It # belongs to a variant set. - # For more genomics resource definitions, see [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) class CallSet include Google::Apis::Core::Hashable @@ -574,8 +572,6 @@ module Google end # A Dataset is a collection of genomic data. - # For more genomics resource definitions, see [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) class Dataset include Google::Apis::Core::Hashable @@ -1761,8 +1757,6 @@ module Google # which were read by the sequencer). A read is equivalent to a line in a SAM # file. A read belongs to exactly one read group and exactly one # read group set. - # For more genomics resource definitions, see [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # ### Reverse-stranded reads # Mapped reads (reads having a non-null `alignment`) can be aligned to either # the forward or the reverse strand of their associated reference. Strandedness @@ -2073,8 +2067,6 @@ module Google # * A read group set belongs to one dataset. # * A read group belongs to one read group set. # * A read belongs to one read group. - # For more genomics resource definitions, see [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) class ReadGroupSet include Google::Apis::Core::Hashable @@ -2135,8 +2127,6 @@ module Google # reference coordinate space for other genomic annotations. A single reference # might represent the human chromosome 1 or mitochandrial DNA, for instance. A # reference belongs to one or more reference sets. - # For more genomics resource definitions, see [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) class Reference include Google::Apis::Core::Hashable @@ -2227,8 +2217,6 @@ module Google # of the human genome. A reference set defines a common coordinate space for # comparing reference-aligned experimental data. A reference set contains 1 or # more references. - # For more genomics resource definitions, see [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) class ReferenceSet include Google::Apis::Core::Hashable @@ -3318,8 +3306,6 @@ module Google # A variant represents a change in DNA sequence relative to a reference # sequence. For example, a variant could represent a SNP or an insertion. # Variants belong to a variant set. - # For more genomics resource definitions, see [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # Each of the calls on a variant represent a determination of genotype with # respect to that variant. For example, a call might assign probability of 0.32 # to the occurrence of a SNP named rs1234 in a sample named NA12345. A call @@ -3563,8 +3549,6 @@ module Google # A variant set is a collection of call sets and variants. It contains summary # statistics of those contents. A variant set belongs to a dataset. - # For more genomics resource definitions, see [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) class VariantSet include Google::Apis::Core::Hashable diff --git a/generated/google/apis/genomics_v1/service.rb b/generated/google/apis/genomics_v1/service.rb index 3146fe368..2a95a72ff 100644 --- a/generated/google/apis/genomics_v1/service.rb +++ b/generated/google/apis/genomics_v1/service.rb @@ -448,9 +448,6 @@ module Google end # Creates a new call set. - # For the definitions of call sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # @param [Google::Apis::GenomicsV1::CallSet] call_set_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -481,9 +478,6 @@ module Google end # Deletes a call set. - # For the definitions of call sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # @param [String] call_set_id # The ID of the call set to be deleted. # @param [String] fields @@ -514,9 +508,6 @@ module Google end # Gets a call set by ID. - # For the definitions of call sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # @param [String] call_set_id # The ID of the call set. # @param [String] fields @@ -547,9 +538,6 @@ module Google end # Updates a call set. - # For the definitions of call sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # This method supports patch semantics. # @param [String] call_set_id # The ID of the call set to be updated. @@ -590,9 +578,6 @@ module Google end # Gets a list of call sets matching the criteria. - # For the definitions of call sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # Implements # [GlobalAllianceApi.searchCallSets](https://github.com/ga4gh/schemas/blob/v0.5. # 1/src/main/resources/avro/variantmethods.avdl#L178). @@ -626,9 +611,6 @@ module Google end # Creates a new dataset. - # For the definitions of datasets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # @param [Google::Apis::GenomicsV1::Dataset] dataset_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -664,9 +646,6 @@ module Google # the # datasets.undelete # operation. - # For the definitions of datasets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # @param [String] dataset_id # The ID of the dataset to be deleted. # @param [String] fields @@ -697,9 +676,6 @@ module Google end # Gets a dataset by ID. - # For the definitions of datasets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # @param [String] dataset_id # The ID of the dataset. # @param [String] fields @@ -733,9 +709,6 @@ module Google # policy or resource does not exist. # See Getting a # Policy for more information. - # For the definitions of datasets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # @param [String] resource # REQUIRED: The resource for which policy is being specified. Format is # `datasets/`. @@ -770,9 +743,6 @@ module Google end # Lists datasets within a project. - # For the definitions of datasets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # @param [Fixnum] page_size # The maximum number of results to return in a single page. If unspecified, # defaults to 50. The maximum value is 1024. @@ -812,9 +782,6 @@ module Google end # Updates a dataset. - # For the definitions of datasets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # This method supports patch semantics. # @param [String] dataset_id # The ID of the dataset to be updated. @@ -856,9 +823,6 @@ module Google # Sets the access control policy on the specified dataset. Replaces any # existing policy. - # For the definitions of datasets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # See Setting a # Policy for more information. # @param [String] resource @@ -897,9 +861,6 @@ module Google # Returns permissions that a caller has on the specified resource. # See Testing # Permissions for more information. - # For the definitions of datasets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # @param [String] resource # REQUIRED: The resource for which policy is being specified. Format is # `datasets/`. @@ -934,9 +895,6 @@ module Google end # Undeletes a dataset by restoring a dataset which was deleted via this API. - # For the definitions of datasets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # This operation is only possible for a week after the deletion occurred. # @param [String] dataset_id # The ID of the dataset to be undeleted. @@ -1102,9 +1060,6 @@ module Google end # Deletes a read group set. - # For the definitions of read group sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # @param [String] read_group_set_id # The ID of the read group set to be deleted. The caller must have WRITE # permissions to the dataset associated with this read group set. @@ -1136,9 +1091,6 @@ module Google end # Exports a read group set to a BAM file in Google Cloud Storage. - # For the definitions of read group sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # Note that currently there may be some differences between exported BAM # files and the original BAM file at the time of import. See # ImportReadGroupSets @@ -1177,9 +1129,6 @@ module Google end # Gets a read group set by ID. - # For the definitions of read group sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # @param [String] read_group_set_id # The ID of the read group set. # @param [String] fields @@ -1211,9 +1160,6 @@ module Google # Creates read group sets by asynchronously importing the provided # information. - # For the definitions of read group sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # The caller must have WRITE permissions to the dataset. # ## Notes on [BAM](https://samtools.github.io/hts-specs/SAMv1.pdf) import # - Tags will be converted to strings - tag types are not preserved @@ -1253,9 +1199,6 @@ module Google end # Updates a read group set. - # For the definitions of read group sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # This method supports patch semantics. # @param [String] read_group_set_id # The ID of the read group set to be updated. The caller must have WRITE @@ -1298,9 +1241,6 @@ module Google end # Searches for read group sets matching the criteria. - # For the definitions of read group sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # Implements # [GlobalAllianceApi.searchReadGroupSets](https://github.com/ga4gh/schemas/blob/ # v0.5.1/src/main/resources/avro/readmethods.avdl#L135). @@ -1336,9 +1276,6 @@ module Google # Lists fixed width coverage buckets for a read group set, each of which # correspond to a range of a reference sequence. Each bucket summarizes # coverage information across its corresponding genomic range. - # For the definitions of read group sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # Coverage is defined as the number of reads which are aligned to a given # base in the reference sequence. Coverage buckets are available at several # precomputed bucket widths, enabling retrieval of various coverage 'zoom @@ -1405,9 +1342,6 @@ module Google end # Gets a list of reads for one or more read group sets. - # For the definitions of read group sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # Reads search operates over a genomic coordinate space of reference sequence # & position defined over the reference sequences to which the requested # read group sets are aligned. @@ -1454,9 +1388,6 @@ module Google end # Gets a reference. - # For the definitions of references and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # Implements # [GlobalAllianceApi.getReference](https://github.com/ga4gh/schemas/blob/v0.5.1/ # src/main/resources/avro/referencemethods.avdl#L158). @@ -1490,9 +1421,6 @@ module Google end # Searches for references which match the given criteria. - # For the definitions of references and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # Implements # [GlobalAllianceApi.searchReferences](https://github.com/ga4gh/schemas/blob/v0. # 5.1/src/main/resources/avro/referencemethods.avdl#L146). @@ -1526,9 +1454,6 @@ module Google end # Lists the bases in a reference, optionally restricted to a range. - # For the definitions of references and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # Implements # [GlobalAllianceApi.getReferenceBases](https://github.com/ga4gh/schemas/blob/v0. # 5.1/src/main/resources/avro/referencemethods.avdl#L221). @@ -1579,9 +1504,6 @@ module Google end # Gets a reference set. - # For the definitions of references and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # Implements # [GlobalAllianceApi.getReferenceSet](https://github.com/ga4gh/schemas/blob/v0.5. # 1/src/main/resources/avro/referencemethods.avdl#L83). @@ -1615,9 +1537,6 @@ module Google end # Searches for reference sets which match the given criteria. - # For the definitions of references and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # Implements # [GlobalAllianceApi.searchReferenceSets](https://github.com/ga4gh/schemas/blob/ # v0.5.1/src/main/resources/avro/referencemethods.avdl#L71) @@ -1651,9 +1570,6 @@ module Google end # Creates a new variant. - # For the definitions of variants and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # @param [Google::Apis::GenomicsV1::Variant] variant_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1684,9 +1600,6 @@ module Google end # Deletes a variant. - # For the definitions of variants and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # @param [String] variant_id # The ID of the variant to be deleted. # @param [String] fields @@ -1717,9 +1630,6 @@ module Google end # Gets a variant by ID. - # For the definitions of variants and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # @param [String] variant_id # The ID of the variant. # @param [String] fields @@ -1750,9 +1660,6 @@ module Google end # Creates variant data by asynchronously importing the provided information. - # For the definitions of variant sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # The variants for import will be merged with any 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. @@ -1794,9 +1701,6 @@ module Google 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 @@ -1905,9 +1809,6 @@ module Google end # Updates a variant. - # For the definitions of variants and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # This method supports patch semantics. Returns the modified variant without # its calls. # @param [String] variant_id @@ -1949,9 +1850,6 @@ module Google end # Gets a list of variants matching the criteria. - # For the definitions of variants and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # Implements # [GlobalAllianceApi.searchVariants](https://github.com/ga4gh/schemas/blob/v0.5. # 1/src/main/resources/avro/variantmethods.avdl#L126). @@ -1985,9 +1883,6 @@ module Google end # Creates a new variant set. - # For the definitions of variant sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # The provided variant set must have a valid `datasetId` set - all other # fields are optional. Note that the `id` field will be ignored, as this is # assigned by the server. @@ -2022,9 +1917,6 @@ module Google # 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 @@ -2055,9 +1947,6 @@ module Google end # Exports variant set data to an external destination. - # 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 # Required. The ID of the variant set that contains variant data which # should be exported. The caller must have READ access to this variant set. @@ -2092,9 +1981,6 @@ module Google end # Gets a variant set by ID. - # 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 # Required. The ID of the variant set. # @param [String] fields @@ -2125,9 +2011,6 @@ module Google end # Updates a variant set using patch semantics. - # 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 to be updated (must already exist). # @param [Google::Apis::GenomicsV1::VariantSet] variant_set_object @@ -2169,9 +2052,6 @@ module Google end # Returns a list of all variant sets matching search criteria. - # For the definitions of variant sets and other genomics resources, see - # [Fundamentals of Google - # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) # Implements # [GlobalAllianceApi.searchVariantSets](https://github.com/ga4gh/schemas/blob/v0. # 5.1/src/main/resources/avro/variantmethods.avdl#L49). diff --git a/generated/google/apis/groupssettings_v1.rb b/generated/google/apis/groupssettings_v1.rb index da8f64970..727da33b2 100644 --- a/generated/google/apis/groupssettings_v1.rb +++ b/generated/google/apis/groupssettings_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/google-apps/groups-settings/get_started module GroupssettingsV1 VERSION = 'V1' - REVISION = '20170607' + REVISION = '20180404' # View and manage the settings of a G Suite group AUTH_APPS_GROUPS_SETTINGS = 'https://www.googleapis.com/auth/apps.groups.settings' diff --git a/generated/google/apis/groupssettings_v1/classes.rb b/generated/google/apis/groupssettings_v1/classes.rb index a10683563..ad5937bfe 100644 --- a/generated/google/apis/groupssettings_v1/classes.rb +++ b/generated/google/apis/groupssettings_v1/classes.rb @@ -147,7 +147,7 @@ module Google attr_accessor :spam_moderation_level # Permissions to add members. Possible values are: ALL_MANAGERS_CAN_ADD - # ALL_MEMBERS_CAN_ADD NONE_CAN_ADD + # ALL_OWNERS_CAN_ADD ALL_MEMBERS_CAN_ADD NONE_CAN_ADD # Corresponds to the JSON property `whoCanAdd` # @return [String] attr_accessor :who_can_add @@ -160,7 +160,7 @@ module Google attr_accessor :who_can_contact_owner # Permissions to invite members. Possible values are: ALL_MEMBERS_CAN_INVITE - # ALL_MANAGERS_CAN_INVITE NONE_CAN_INVITE + # ALL_MANAGERS_CAN_INVITE ALL_OWNERS_CAN_INVITE NONE_CAN_INVITE # Corresponds to the JSON property `whoCanInvite` # @return [String] attr_accessor :who_can_invite @@ -172,7 +172,7 @@ module Google attr_accessor :who_can_join # Permission to leave the group. Possible values are: ALL_MANAGERS_CAN_LEAVE - # ALL_MEMBERS_CAN_LEAVE NONE_CAN_LEAVE + # ALL_OWNERS_CAN_LEAVE ALL_MEMBERS_CAN_LEAVE NONE_CAN_LEAVE # Corresponds to the JSON property `whoCanLeaveGroup` # @return [String] attr_accessor :who_can_leave_group @@ -186,6 +186,7 @@ module Google # Permissions to view group. Possible values are: ANYONE_CAN_VIEW # ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW + # ALL_OWNERS_CAN_VIEW # Corresponds to the JSON property `whoCanViewGroup` # @return [String] attr_accessor :who_can_view_group diff --git a/generated/google/apis/iam_v1.rb b/generated/google/apis/iam_v1.rb index b1ca1813b..1af935f2f 100644 --- a/generated/google/apis/iam_v1.rb +++ b/generated/google/apis/iam_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/iam/ module IamV1 VERSION = 'V1' - REVISION = '20180223' + REVISION = '20180330' # 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/iam_v1/classes.rb b/generated/google/apis/iam_v1/classes.rb index e3ce35ff1..586448372 100644 --- a/generated/google/apis/iam_v1/classes.rb +++ b/generated/google/apis/iam_v1/classes.rb @@ -73,7 +73,6 @@ module Google include Google::Apis::Core::Hashable # The configuration for logging of each type of permission. - # Next ID: 4 # Corresponds to the JSON property `auditLogConfigs` # @return [Array] attr_accessor :audit_log_configs diff --git a/generated/google/apis/manufacturers_v1.rb b/generated/google/apis/manufacturers_v1.rb index ab932040d..53cf73599 100644 --- a/generated/google/apis/manufacturers_v1.rb +++ b/generated/google/apis/manufacturers_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/manufacturers/ module ManufacturersV1 VERSION = 'V1' - REVISION = '20180316' + REVISION = '20180404' # Manage your product listings for Google Manufacturer Center AUTH_MANUFACTURERCENTER = 'https://www.googleapis.com/auth/manufacturercenter' diff --git a/generated/google/apis/manufacturers_v1/classes.rb b/generated/google/apis/manufacturers_v1/classes.rb index 67ecb39d4..c65a36b06 100644 --- a/generated/google/apis/manufacturers_v1/classes.rb +++ b/generated/google/apis/manufacturers_v1/classes.rb @@ -75,6 +75,11 @@ module Google # @return [String] attr_accessor :disclosure_date + # A list of excluded destinations. + # Corresponds to the JSON property `excludedDestination` + # @return [Array] + attr_accessor :excluded_destination + # The rich format description of the product. For more information, see # https://support.google.com/manufacturers/answer/6124116#featuredesc. # Corresponds to the JSON property `featureDescription` @@ -110,6 +115,11 @@ module Google # @return [Google::Apis::ManufacturersV1::Image] attr_accessor :image_link + # A list of included destinations. + # Corresponds to the JSON property `includedDestination` + # @return [Array] + attr_accessor :included_destination + # The item group id of the product. For more information, see # https://support.google.com/manufacturers/answer/6124116#itemgroupid. # Corresponds to the JSON property `itemGroupId` @@ -238,12 +248,14 @@ module Google @count = args[:count] if args.key?(:count) @description = args[:description] if args.key?(:description) @disclosure_date = args[:disclosure_date] if args.key?(:disclosure_date) + @excluded_destination = args[:excluded_destination] if args.key?(:excluded_destination) @feature_description = args[:feature_description] if args.key?(:feature_description) @flavor = args[:flavor] if args.key?(:flavor) @format = args[:format] if args.key?(:format) @gender = args[:gender] if args.key?(:gender) @gtin = args[:gtin] if args.key?(:gtin) @image_link = args[:image_link] if args.key?(:image_link) + @included_destination = args[:included_destination] if args.key?(:included_destination) @item_group_id = args[:item_group_id] if args.key?(:item_group_id) @material = args[:material] if args.key?(:material) @mpn = args[:mpn] if args.key?(:mpn) @@ -318,6 +330,31 @@ module Google end end + # The destination status. + class DestinationStatus + include Google::Apis::Core::Hashable + + # The name of the destination. + # Corresponds to the JSON property `destination` + # @return [String] + attr_accessor :destination + + # The status of the destination. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @destination = args[:destination] if args.key?(:destination) + @status = args[:status] if args.key?(:status) + 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: @@ -420,6 +457,16 @@ module Google # @return [String] attr_accessor :description + # The destination this issue applies to. + # Corresponds to the JSON property `destination` + # @return [String] + attr_accessor :destination + + # What needs to happen to resolve the issue. + # Corresponds to the JSON property `resolution` + # @return [String] + attr_accessor :resolution + # The severity of the issue. # Corresponds to the JSON property `severity` # @return [String] @@ -430,6 +477,11 @@ module Google # @return [String] attr_accessor :timestamp + # Short title describing the nature of the issue. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + # The server-generated type of the issue, for example, # “INCORRECT_TEXT_FORMATTING”, “IMAGE_NOT_SERVEABLE”, etc. # Corresponds to the JSON property `type` @@ -444,8 +496,11 @@ module Google def update!(**args) @attribute = args[:attribute] if args.key?(:attribute) @description = args[:description] if args.key?(:description) + @destination = args[:destination] if args.key?(:destination) + @resolution = args[:resolution] if args.key?(:resolution) @severity = args[:severity] if args.key?(:severity) @timestamp = args[:timestamp] if args.key?(:timestamp) + @title = args[:title] if args.key?(:title) @type = args[:type] if args.key?(:type) end end @@ -504,13 +559,23 @@ module Google class Product include Google::Apis::Core::Hashable + # Attributes of the product. For more information, see + # https://support.google.com/manufacturers/answer/6124116. + # Corresponds to the JSON property `attributes` + # @return [Google::Apis::ManufacturersV1::Attributes] + attr_accessor :attributes + # The content language of the product as a two-letter ISO 639-1 language code # (for example, en). - # @OutputOnly # Corresponds to the JSON property `contentLanguage` # @return [String] attr_accessor :content_language + # The status of the destinations. + # Corresponds to the JSON property `destinationStatuses` + # @return [Array] + attr_accessor :destination_statuses + # Attributes of the product. For more information, see # https://support.google.com/manufacturers/answer/6124116. # Corresponds to the JSON property `finalAttributes` @@ -518,14 +583,14 @@ module Google attr_accessor :final_attributes # A server-generated list of issues associated with the product. - # @OutputOnly # Corresponds to the JSON property `issues` # @return [Array] attr_accessor :issues # Names of the attributes of the product deleted manually via the # Manufacturer Center UI. - # @OutputOnly + # This field is deprecated and will be removed end of July 2018. Please use + # attributes. # Corresponds to the JSON property `manuallyDeletedAttributes` # @return [Array] attr_accessor :manually_deleted_attributes @@ -544,28 +609,24 @@ module Google # `product_id` - The ID of the product. For more information, see # https://support.google.com/manufacturers/answer/6124116# # id. - # @OutputOnly # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # Parent ID in the format `accounts/`account_id``. # `account_id` - The ID of the Manufacturer Center account. - # @OutputOnly # Corresponds to the JSON property `parent` # @return [String] attr_accessor :parent # The ID of the product. For more information, see # https://support.google.com/manufacturers/answer/6124116#id. - # @OutputOnly # Corresponds to the JSON property `productId` # @return [String] attr_accessor :product_id # The target country of the product as a CLDR territory code (for example, # US). - # @OutputOnly # Corresponds to the JSON property `targetCountry` # @return [String] attr_accessor :target_country @@ -582,7 +643,9 @@ module Google # Update properties of this object def update!(**args) + @attributes = args[:attributes] if args.key?(:attributes) @content_language = args[:content_language] if args.key?(:content_language) + @destination_statuses = args[:destination_statuses] if args.key?(:destination_statuses) @final_attributes = args[:final_attributes] if args.key?(:final_attributes) @issues = args[:issues] if args.key?(:issues) @manually_deleted_attributes = args[:manually_deleted_attributes] if args.key?(:manually_deleted_attributes) diff --git a/generated/google/apis/manufacturers_v1/representations.rb b/generated/google/apis/manufacturers_v1/representations.rb index d0c09bd14..b11818c7d 100644 --- a/generated/google/apis/manufacturers_v1/representations.rb +++ b/generated/google/apis/manufacturers_v1/representations.rb @@ -40,6 +40,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DestinationStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end @@ -102,6 +108,7 @@ module Google property :description, as: 'description' property :disclosure_date, as: 'disclosureDate' + collection :excluded_destination, as: 'excludedDestination' collection :feature_description, as: 'featureDescription', class: Google::Apis::ManufacturersV1::FeatureDescription, decorator: Google::Apis::ManufacturersV1::FeatureDescription::Representation property :flavor, as: 'flavor' @@ -110,6 +117,7 @@ module Google collection :gtin, as: 'gtin' property :image_link, as: 'imageLink', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation + collection :included_destination, as: 'includedDestination' property :item_group_id, as: 'itemGroupId' property :material, as: 'material' property :mpn, as: 'mpn' @@ -150,6 +158,14 @@ module Google end end + class DestinationStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :destination, as: 'destination' + property :status, as: 'status' + end + end + class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -180,8 +196,11 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :attribute, as: 'attribute' property :description, as: 'description' + property :destination, as: 'destination' + property :resolution, as: 'resolution' property :severity, as: 'severity' property :timestamp, as: 'timestamp' + property :title, as: 'title' property :type, as: 'type' end end @@ -206,7 +225,11 @@ module Google class Product # @private class Representation < Google::Apis::Core::JsonRepresentation + property :attributes, as: 'attributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation + property :content_language, as: 'contentLanguage' + collection :destination_statuses, as: 'destinationStatuses', class: Google::Apis::ManufacturersV1::DestinationStatus, decorator: Google::Apis::ManufacturersV1::DestinationStatus::Representation + property :final_attributes, as: 'finalAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation collection :issues, as: 'issues', class: Google::Apis::ManufacturersV1::Issue, decorator: Google::Apis::ManufacturersV1::Issue::Representation diff --git a/generated/google/apis/manufacturers_v1/service.rb b/generated/google/apis/manufacturers_v1/service.rb index 58189af22..04a223766 100644 --- a/generated/google/apis/manufacturers_v1/service.rb +++ b/generated/google/apis/manufacturers_v1/service.rb @@ -43,7 +43,7 @@ module Google attr_accessor :quota_user def initialize - super('https://content-manufacturers.googleapis.com/', '') + super('https://manufacturers.googleapis.com/', '') @batch_path = 'batch' end @@ -106,6 +106,12 @@ module Google # `product_id` - The ID of the product. For more information, see # https://support.google.com/manufacturers/answer/6124116# # id. + # @param [Array, String] include + # The information to be included in the response. Only sections listed here + # will be returned. + # If this parameter is not specified, ATTRIBUTES and ISSUES are returned. + # This behavior is temporary and will be removed once all clients are ready + # or at the latest end of July 2018. After that no sections will be returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -123,12 +129,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_account_product(parent, name, fields: nil, quota_user: nil, options: nil, &block) + def get_account_product(parent, name, include: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/products/{+name}', options) command.response_representation = Google::Apis::ManufacturersV1::Product::Representation command.response_class = Google::Apis::ManufacturersV1::Product command.params['parent'] = parent unless parent.nil? command.params['name'] = name unless name.nil? + command.query['include'] = include unless include.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -138,6 +145,12 @@ module Google # @param [String] parent # Parent ID in the format `accounts/`account_id``. # `account_id` - The ID of the Manufacturer Center account. + # @param [Array, String] include + # The information to be included in the response. Only sections listed here + # will be returned. + # If this parameter is not specified, ATTRIBUTES and ISSUES are returned. + # This behavior is temporary and will be removed once all clients are ready + # or at the latest end of July 2018. After that no sections will be returned. # @param [Fixnum] page_size # Maximum number of product statuses to return in the response, used for # paging. @@ -160,11 +173,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_account_products(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_account_products(parent, include: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/products', options) command.response_representation = Google::Apis::ManufacturersV1::ListProductsResponse::Representation command.response_class = Google::Apis::ManufacturersV1::ListProductsResponse command.params['parent'] = parent unless parent.nil? + command.query['include'] = include unless include.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? diff --git a/generated/google/apis/people_v1.rb b/generated/google/apis/people_v1.rb index a0bcda62e..1640dbb9b 100644 --- a/generated/google/apis/people_v1.rb +++ b/generated/google/apis/people_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/people/ module PeopleV1 VERSION = 'V1' - REVISION = '20180303' + REVISION = '20180404' # Manage your contacts AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts' diff --git a/generated/google/apis/people_v1/classes.rb b/generated/google/apis/people_v1/classes.rb index 12183258b..1b9fab309 100644 --- a/generated/google/apis/people_v1/classes.rb +++ b/generated/google/apis/people_v1/classes.rb @@ -516,7 +516,8 @@ module Google # @return [Fixnum] attr_accessor :day - # Month of year. Must be from 1 to 12. + # Month of year. Must be from 1 to 12, or 0 if specifying a date without a + # month. # Corresponds to the JSON property `month` # @return [Fixnum] attr_accessor :month diff --git a/generated/google/apis/spanner_v1.rb b/generated/google/apis/spanner_v1.rb index a9d213567..d473812c5 100644 --- a/generated/google/apis/spanner_v1.rb +++ b/generated/google/apis/spanner_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/spanner/ module SpannerV1 VERSION = 'V1' - REVISION = '20180228' + REVISION = '20180327' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'