diff --git a/api_names_out.yaml b/api_names_out.yaml index d79e3c52e..53f5b33fc 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -20731,6 +20731,37 @@ "/compute:alpha/Expr/expression": expression "/compute:alpha/Expr/location": location "/compute:alpha/Expr/title": title +"/compute:alpha/ExternalVpnGateway": external_vpn_gateway +"/compute:alpha/ExternalVpnGateway/creationTimestamp": creation_timestamp +"/compute:alpha/ExternalVpnGateway/description": description +"/compute:alpha/ExternalVpnGateway/id": id +"/compute:alpha/ExternalVpnGateway/interfaces": interfaces +"/compute:alpha/ExternalVpnGateway/interfaces/interface": interface +"/compute:alpha/ExternalVpnGateway/kind": kind +"/compute:alpha/ExternalVpnGateway/labelFingerprint": label_fingerprint +"/compute:alpha/ExternalVpnGateway/labels": labels +"/compute:alpha/ExternalVpnGateway/labels/label": label +"/compute:alpha/ExternalVpnGateway/name": name +"/compute:alpha/ExternalVpnGateway/redundancyType": redundancy_type +"/compute:alpha/ExternalVpnGateway/selfLink": self_link +"/compute:alpha/ExternalVpnGatewayInterface": external_vpn_gateway_interface +"/compute:alpha/ExternalVpnGatewayInterface/id": id +"/compute:alpha/ExternalVpnGatewayInterface/ipAddress": ip_address +"/compute:alpha/ExternalVpnGatewayList": external_vpn_gateway_list +"/compute:alpha/ExternalVpnGatewayList/etag": etag +"/compute:alpha/ExternalVpnGatewayList/id": id +"/compute:alpha/ExternalVpnGatewayList/items": items +"/compute:alpha/ExternalVpnGatewayList/items/item": item +"/compute:alpha/ExternalVpnGatewayList/kind": kind +"/compute:alpha/ExternalVpnGatewayList/nextPageToken": next_page_token +"/compute:alpha/ExternalVpnGatewayList/selfLink": self_link +"/compute:alpha/ExternalVpnGatewayList/warning": warning +"/compute:alpha/ExternalVpnGatewayList/warning/code": code +"/compute:alpha/ExternalVpnGatewayList/warning/data": data +"/compute:alpha/ExternalVpnGatewayList/warning/data/datum": datum +"/compute:alpha/ExternalVpnGatewayList/warning/data/datum/key": key +"/compute:alpha/ExternalVpnGatewayList/warning/data/datum/value": value +"/compute:alpha/ExternalVpnGatewayList/warning/message": message "/compute:alpha/Firewall": firewall "/compute:alpha/Firewall/allowed": allowed "/compute:alpha/Firewall/allowed/allowed": allowed @@ -20918,6 +20949,7 @@ "/compute:alpha/HealthCheck/name": name "/compute:alpha/HealthCheck/region": region "/compute:alpha/HealthCheck/selfLink": self_link +"/compute:alpha/HealthCheck/selfLinkWithId": self_link_with_id "/compute:alpha/HealthCheck/sslHealthCheck": ssl_health_check "/compute:alpha/HealthCheck/tcpHealthCheck": tcp_health_check "/compute:alpha/HealthCheck/timeoutSec": timeout_sec @@ -21133,6 +21165,7 @@ "/compute:alpha/HttpHealthCheck/port": port "/compute:alpha/HttpHealthCheck/requestPath": request_path "/compute:alpha/HttpHealthCheck/selfLink": self_link +"/compute:alpha/HttpHealthCheck/selfLinkWithId": self_link_with_id "/compute:alpha/HttpHealthCheck/timeoutSec": timeout_sec "/compute:alpha/HttpHealthCheck/unhealthyThreshold": unhealthy_threshold "/compute:alpha/HttpHealthCheckList": http_health_check_list @@ -21204,6 +21237,7 @@ "/compute:alpha/HttpsHealthCheck/port": port "/compute:alpha/HttpsHealthCheck/requestPath": request_path "/compute:alpha/HttpsHealthCheck/selfLink": self_link +"/compute:alpha/HttpsHealthCheck/selfLinkWithId": self_link_with_id "/compute:alpha/HttpsHealthCheck/timeoutSec": timeout_sec "/compute:alpha/HttpsHealthCheck/unhealthyThreshold": unhealthy_threshold "/compute:alpha/HttpsHealthCheckList": https_health_check_list @@ -21312,6 +21346,7 @@ "/compute:alpha/Instance/shieldedVmConfig": shielded_vm_config "/compute:alpha/Instance/shieldedVmIntegrityPolicy": shielded_vm_integrity_policy "/compute:alpha/Instance/sourceMachineImage": source_machine_image +"/compute:alpha/Instance/sourceMachineImageEncryptionKey": source_machine_image_encryption_key "/compute:alpha/Instance/startRestricted": start_restricted "/compute:alpha/Instance/status": status "/compute:alpha/Instance/statusMessage": status_message @@ -21626,6 +21661,7 @@ "/compute:alpha/InstanceProperties/description": description "/compute:alpha/InstanceProperties/disks": disks "/compute:alpha/InstanceProperties/disks/disk": disk +"/compute:alpha/InstanceProperties/displayDevice": display_device "/compute:alpha/InstanceProperties/guestAccelerators": guest_accelerators "/compute:alpha/InstanceProperties/guestAccelerators/guest_accelerator": guest_accelerator "/compute:alpha/InstanceProperties/labels": labels @@ -21650,6 +21686,7 @@ "/compute:alpha/InstanceTemplate/name": name "/compute:alpha/InstanceTemplate/properties": properties "/compute:alpha/InstanceTemplate/selfLink": self_link +"/compute:alpha/InstanceTemplate/selfLinkWithId": self_link_with_id "/compute:alpha/InstanceTemplate/sourceInstance": source_instance "/compute:alpha/InstanceTemplate/sourceInstanceParams": source_instance_params "/compute:alpha/InstanceTemplateList": instance_template_list @@ -21748,6 +21785,7 @@ "/compute:alpha/Interconnect/provisionedLinkCount": provisioned_link_count "/compute:alpha/Interconnect/requestedLinkCount": requested_link_count "/compute:alpha/Interconnect/selfLink": self_link +"/compute:alpha/Interconnect/selfLinkWithId": self_link_with_id "/compute:alpha/Interconnect/state": state "/compute:alpha/InterconnectAttachment": interconnect_attachment "/compute:alpha/InterconnectAttachment/adminEnabled": admin_enabled @@ -21776,6 +21814,7 @@ "/compute:alpha/InterconnectAttachment/region": region "/compute:alpha/InterconnectAttachment/router": router "/compute:alpha/InterconnectAttachment/selfLink": self_link +"/compute:alpha/InterconnectAttachment/selfLinkWithId": self_link_with_id "/compute:alpha/InterconnectAttachment/state": state "/compute:alpha/InterconnectAttachment/type": type "/compute:alpha/InterconnectAttachment/vlanTag8021q": vlan_tag8021q @@ -21881,6 +21920,7 @@ "/compute:alpha/InterconnectLocation/regionInfos": region_infos "/compute:alpha/InterconnectLocation/regionInfos/region_info": region_info "/compute:alpha/InterconnectLocation/selfLink": self_link +"/compute:alpha/InterconnectLocation/selfLinkWithId": self_link_with_id "/compute:alpha/InterconnectLocation/status": status "/compute:alpha/InterconnectLocationList": interconnect_location_list "/compute:alpha/InterconnectLocationList/id": id @@ -21962,6 +22002,7 @@ "/compute:alpha/License/name": name "/compute:alpha/License/resourceRequirements": resource_requirements "/compute:alpha/License/selfLink": self_link +"/compute:alpha/License/selfLinkWithId": self_link_with_id "/compute:alpha/License/transferable": transferable "/compute:alpha/LicenseCode": license_code "/compute:alpha/LicenseCode/creationTimestamp": creation_timestamp @@ -22010,8 +22051,10 @@ "/compute:alpha/MachineImage/description": description "/compute:alpha/MachineImage/id": id "/compute:alpha/MachineImage/kind": kind +"/compute:alpha/MachineImage/machineImageEncryptionKey": machine_image_encryption_key "/compute:alpha/MachineImage/name": name "/compute:alpha/MachineImage/selfLink": self_link +"/compute:alpha/MachineImage/selfLinkWithId": self_link_with_id "/compute:alpha/MachineImage/sourceInstance": source_instance "/compute:alpha/MachineImage/sourceInstanceProperties": source_instance_properties "/compute:alpha/MachineImage/status": status @@ -22045,6 +22088,7 @@ "/compute:alpha/MachineType/memoryMb": memory_mb "/compute:alpha/MachineType/name": name "/compute:alpha/MachineType/selfLink": self_link +"/compute:alpha/MachineType/selfLinkWithId": self_link_with_id "/compute:alpha/MachineType/zone": zone "/compute:alpha/MachineTypeAggregatedList": machine_type_aggregated_list "/compute:alpha/MachineTypeAggregatedList/id": id @@ -22229,6 +22273,7 @@ "/compute:alpha/NetworkEndpointGroup/network": network "/compute:alpha/NetworkEndpointGroup/networkEndpointType": network_endpoint_type "/compute:alpha/NetworkEndpointGroup/selfLink": self_link +"/compute:alpha/NetworkEndpointGroup/selfLinkWithId": self_link_with_id "/compute:alpha/NetworkEndpointGroup/size": size "/compute:alpha/NetworkEndpointGroup/subnetwork": subnetwork "/compute:alpha/NetworkEndpointGroup/type": type @@ -22360,6 +22405,7 @@ "/compute:alpha/NodeGroup/nodes": nodes "/compute:alpha/NodeGroup/nodes/node": node "/compute:alpha/NodeGroup/selfLink": self_link +"/compute:alpha/NodeGroup/selfLinkWithId": self_link_with_id "/compute:alpha/NodeGroup/size": size "/compute:alpha/NodeGroup/status": status "/compute:alpha/NodeGroup/zone": zone @@ -22449,6 +22495,7 @@ "/compute:alpha/NodeTemplate/nodeTypeFlexibility": node_type_flexibility "/compute:alpha/NodeTemplate/region": region "/compute:alpha/NodeTemplate/selfLink": self_link +"/compute:alpha/NodeTemplate/selfLinkWithId": self_link_with_id "/compute:alpha/NodeTemplate/serverBinding": server_binding "/compute:alpha/NodeTemplate/status": status "/compute:alpha/NodeTemplate/statusMessage": status_message @@ -22506,6 +22553,7 @@ "/compute:alpha/NodeType/memoryMb": memory_mb "/compute:alpha/NodeType/name": name "/compute:alpha/NodeType/selfLink": self_link +"/compute:alpha/NodeType/selfLinkWithId": self_link_with_id "/compute:alpha/NodeType/zone": zone "/compute:alpha/NodeTypeAggregatedList": node_type_aggregated_list "/compute:alpha/NodeTypeAggregatedList/id": id @@ -22566,6 +22614,7 @@ "/compute:alpha/Operation/progress": progress "/compute:alpha/Operation/region": region "/compute:alpha/Operation/selfLink": self_link +"/compute:alpha/Operation/selfLinkWithId": self_link_with_id "/compute:alpha/Operation/startTime": start_time "/compute:alpha/Operation/status": status "/compute:alpha/Operation/statusMessage": status_message @@ -22715,6 +22764,7 @@ "/compute:alpha/Region/quotas": quotas "/compute:alpha/Region/quotas/quota": quota "/compute:alpha/Region/selfLink": self_link +"/compute:alpha/Region/selfLinkWithId": self_link_with_id "/compute:alpha/Region/status": status "/compute:alpha/Region/zones": zones "/compute:alpha/Region/zones/zone": zone @@ -22922,6 +22972,8 @@ "/compute:alpha/ResourcePolicy/name": name "/compute:alpha/ResourcePolicy/region": region "/compute:alpha/ResourcePolicy/selfLink": self_link +"/compute:alpha/ResourcePolicy/selfLinkWithId": self_link_with_id +"/compute:alpha/ResourcePolicy/snapshotSchedulePolicy": snapshot_schedule_policy "/compute:alpha/ResourcePolicy/vmMaintenancePolicy": vm_maintenance_policy "/compute:alpha/ResourcePolicyAggregatedList": resource_policy_aggregated_list "/compute:alpha/ResourcePolicyAggregatedList/etag": etag @@ -22979,6 +23031,24 @@ "/compute:alpha/ResourcePolicyList/warning/data/datum/key": key "/compute:alpha/ResourcePolicyList/warning/data/datum/value": value "/compute:alpha/ResourcePolicyList/warning/message": message +"/compute:alpha/ResourcePolicySnapshotSchedulePolicy": resource_policy_snapshot_schedule_policy +"/compute:alpha/ResourcePolicySnapshotSchedulePolicy/retentionPolicy": retention_policy +"/compute:alpha/ResourcePolicySnapshotSchedulePolicy/schedule": schedule +"/compute:alpha/ResourcePolicySnapshotSchedulePolicy/snapshotProperties": snapshot_properties +"/compute:alpha/ResourcePolicySnapshotSchedulePolicyRetentionPolicy": resource_policy_snapshot_schedule_policy_retention_policy +"/compute:alpha/ResourcePolicySnapshotSchedulePolicyRetentionPolicy/maxRetentionDays": max_retention_days +"/compute:alpha/ResourcePolicySnapshotSchedulePolicyRetentionPolicy/onPolicySwitch": on_policy_switch +"/compute:alpha/ResourcePolicySnapshotSchedulePolicyRetentionPolicy/onSourceDiskDelete": on_source_disk_delete +"/compute:alpha/ResourcePolicySnapshotSchedulePolicySchedule": resource_policy_snapshot_schedule_policy_schedule +"/compute:alpha/ResourcePolicySnapshotSchedulePolicySchedule/dailySchedule": daily_schedule +"/compute:alpha/ResourcePolicySnapshotSchedulePolicySchedule/hourlySchedule": hourly_schedule +"/compute:alpha/ResourcePolicySnapshotSchedulePolicySchedule/weeklySchedule": weekly_schedule +"/compute:alpha/ResourcePolicySnapshotSchedulePolicySnapshotProperties": resource_policy_snapshot_schedule_policy_snapshot_properties +"/compute:alpha/ResourcePolicySnapshotSchedulePolicySnapshotProperties/guestFlush": guest_flush +"/compute:alpha/ResourcePolicySnapshotSchedulePolicySnapshotProperties/labels": labels +"/compute:alpha/ResourcePolicySnapshotSchedulePolicySnapshotProperties/labels/label": label +"/compute:alpha/ResourcePolicySnapshotSchedulePolicySnapshotProperties/storageLocations": storage_locations +"/compute:alpha/ResourcePolicySnapshotSchedulePolicySnapshotProperties/storageLocations/storage_location": storage_location "/compute:alpha/ResourcePolicyVmMaintenancePolicy": resource_policy_vm_maintenance_policy "/compute:alpha/ResourcePolicyVmMaintenancePolicy/maintenanceEnvironment": maintenance_environment "/compute:alpha/ResourcePolicyVmMaintenancePolicy/maintenanceWindow": maintenance_window @@ -23050,6 +23120,7 @@ "/compute:alpha/Router/network": network "/compute:alpha/Router/region": region "/compute:alpha/Router/selfLink": self_link +"/compute:alpha/Router/selfLinkWithId": self_link_with_id "/compute:alpha/RouterAdvertisedIpRange": router_advertised_ip_range "/compute:alpha/RouterAdvertisedIpRange/description": description "/compute:alpha/RouterAdvertisedIpRange/range": range @@ -23131,6 +23202,7 @@ "/compute:alpha/RouterNat/tcpTransitoryIdleTimeoutSec": tcp_transitory_idle_timeout_sec "/compute:alpha/RouterNat/udpIdleTimeoutSec": udp_idle_timeout_sec "/compute:alpha/RouterNatLogConfig": router_nat_log_config +"/compute:alpha/RouterNatLogConfig/enable": enable "/compute:alpha/RouterNatLogConfig/enabled": enabled "/compute:alpha/RouterNatLogConfig/filter": filter "/compute:alpha/RouterNatSubnetworkToNat": router_nat_subnetwork_to_nat @@ -23272,6 +23344,7 @@ "/compute:alpha/SecurityPolicy/rules": rules "/compute:alpha/SecurityPolicy/rules/rule": rule "/compute:alpha/SecurityPolicy/selfLink": self_link +"/compute:alpha/SecurityPolicy/selfLinkWithId": self_link_with_id "/compute:alpha/SecurityPolicy/type": type "/compute:alpha/SecurityPolicyAssociation": security_policy_association "/compute:alpha/SecurityPolicyAssociation/attachmentId": attachment_id @@ -23426,6 +23499,7 @@ "/compute:alpha/SslCertificate/privateKey": private_key "/compute:alpha/SslCertificate/region": region "/compute:alpha/SslCertificate/selfLink": self_link +"/compute:alpha/SslCertificate/selfLinkWithId": self_link_with_id "/compute:alpha/SslCertificate/selfManaged": self_managed "/compute:alpha/SslCertificate/subjectAlternativeNames": subject_alternative_names "/compute:alpha/SslCertificate/subjectAlternativeNames/subject_alternative_name": subject_alternative_name @@ -23508,6 +23582,7 @@ "/compute:alpha/SslPolicy/name": name "/compute:alpha/SslPolicy/profile": profile "/compute:alpha/SslPolicy/selfLink": self_link +"/compute:alpha/SslPolicy/selfLinkWithId": self_link_with_id "/compute:alpha/SslPolicy/warnings": warnings "/compute:alpha/SslPolicy/warnings/warning": warning "/compute:alpha/SslPolicy/warnings/warning/code": code @@ -23552,12 +23627,14 @@ "/compute:alpha/Subnetwork/name": name "/compute:alpha/Subnetwork/network": network "/compute:alpha/Subnetwork/privateIpGoogleAccess": private_ip_google_access +"/compute:alpha/Subnetwork/privateIpv6GoogleAccess": private_ipv6_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 +"/compute:alpha/Subnetwork/selfLinkWithId": self_link_with_id "/compute:alpha/Subnetwork/state": state "/compute:alpha/SubnetworkAggregatedList": subnetwork_aggregated_list "/compute:alpha/SubnetworkAggregatedList/id": id @@ -23638,6 +23715,7 @@ "/compute:alpha/TargetHttpProxy/name": name "/compute:alpha/TargetHttpProxy/region": region "/compute:alpha/TargetHttpProxy/selfLink": self_link +"/compute:alpha/TargetHttpProxy/selfLinkWithId": self_link_with_id "/compute:alpha/TargetHttpProxy/urlMap": url_map "/compute:alpha/TargetHttpProxyAggregatedList": target_http_proxy_aggregated_list "/compute:alpha/TargetHttpProxyAggregatedList/id": id @@ -23692,6 +23770,7 @@ "/compute:alpha/TargetHttpsProxy/quicOverride": quic_override "/compute:alpha/TargetHttpsProxy/region": region "/compute:alpha/TargetHttpsProxy/selfLink": self_link +"/compute:alpha/TargetHttpsProxy/selfLinkWithId": self_link_with_id "/compute:alpha/TargetHttpsProxy/sslCertificates": ssl_certificates "/compute:alpha/TargetHttpsProxy/sslCertificates/ssl_certificate": ssl_certificate "/compute:alpha/TargetHttpsProxy/sslPolicy": ssl_policy @@ -23733,6 +23812,7 @@ "/compute:alpha/TargetInstance/name": name "/compute:alpha/TargetInstance/natPolicy": nat_policy "/compute:alpha/TargetInstance/selfLink": self_link +"/compute:alpha/TargetInstance/selfLinkWithId": self_link_with_id "/compute:alpha/TargetInstance/zone": zone "/compute:alpha/TargetInstanceAggregatedList": target_instance_aggregated_list "/compute:alpha/TargetInstanceAggregatedList/id": id @@ -23786,6 +23866,7 @@ "/compute:alpha/TargetPool/name": name "/compute:alpha/TargetPool/region": region "/compute:alpha/TargetPool/selfLink": self_link +"/compute:alpha/TargetPool/selfLinkWithId": self_link_with_id "/compute:alpha/TargetPool/sessionAffinity": session_affinity "/compute:alpha/TargetPoolAggregatedList": target_pool_aggregated_list "/compute:alpha/TargetPoolAggregatedList/id": id @@ -24603,6 +24684,28 @@ "/compute:alpha/compute.disks.testIamPermissions/project": project "/compute:alpha/compute.disks.testIamPermissions/resource": resource "/compute:alpha/compute.disks.testIamPermissions/zone": zone +"/compute:alpha/compute.externalVpnGateways.delete": delete_external_vpn_gateway +"/compute:alpha/compute.externalVpnGateways.delete/externalVpnGateway": external_vpn_gateway +"/compute:alpha/compute.externalVpnGateways.delete/project": project +"/compute:alpha/compute.externalVpnGateways.delete/requestId": request_id +"/compute:alpha/compute.externalVpnGateways.get": get_external_vpn_gateway +"/compute:alpha/compute.externalVpnGateways.get/externalVpnGateway": external_vpn_gateway +"/compute:alpha/compute.externalVpnGateways.get/project": project +"/compute:alpha/compute.externalVpnGateways.insert": insert_external_vpn_gateway +"/compute:alpha/compute.externalVpnGateways.insert/project": project +"/compute:alpha/compute.externalVpnGateways.insert/requestId": request_id +"/compute:alpha/compute.externalVpnGateways.list": list_external_vpn_gateways +"/compute:alpha/compute.externalVpnGateways.list/filter": filter +"/compute:alpha/compute.externalVpnGateways.list/maxResults": max_results +"/compute:alpha/compute.externalVpnGateways.list/orderBy": order_by +"/compute:alpha/compute.externalVpnGateways.list/pageToken": page_token +"/compute:alpha/compute.externalVpnGateways.list/project": project +"/compute:alpha/compute.externalVpnGateways.setLabels": set_external_vpn_gateway_labels +"/compute:alpha/compute.externalVpnGateways.setLabels/project": project +"/compute:alpha/compute.externalVpnGateways.setLabels/resource": resource +"/compute:alpha/compute.externalVpnGateways.testIamPermissions": test_external_vpn_gateway_iam_permissions +"/compute:alpha/compute.externalVpnGateways.testIamPermissions/project": project +"/compute:alpha/compute.externalVpnGateways.testIamPermissions/resource": resource "/compute:alpha/compute.firewalls.delete": delete_firewall "/compute:alpha/compute.firewalls.delete/firewall": firewall "/compute:alpha/compute.firewalls.delete/project": project @@ -28391,6 +28494,7 @@ "/compute:beta/InstanceProperties/description": description "/compute:beta/InstanceProperties/disks": disks "/compute:beta/InstanceProperties/disks/disk": disk +"/compute:beta/InstanceProperties/displayDevice": display_device "/compute:beta/InstanceProperties/guestAccelerators": guest_accelerators "/compute:beta/InstanceProperties/guestAccelerators/guest_accelerator": guest_accelerator "/compute:beta/InstanceProperties/labels": labels @@ -29443,6 +29547,7 @@ "/compute:beta/ResourcePolicy/name": name "/compute:beta/ResourcePolicy/region": region "/compute:beta/ResourcePolicy/selfLink": self_link +"/compute:beta/ResourcePolicy/snapshotSchedulePolicy": snapshot_schedule_policy "/compute:beta/ResourcePolicyAggregatedList": resource_policy_aggregated_list "/compute:beta/ResourcePolicyAggregatedList/etag": etag "/compute:beta/ResourcePolicyAggregatedList/id": id @@ -29498,6 +29603,23 @@ "/compute:beta/ResourcePolicyList/warning/data/datum/key": key "/compute:beta/ResourcePolicyList/warning/data/datum/value": value "/compute:beta/ResourcePolicyList/warning/message": message +"/compute:beta/ResourcePolicySnapshotSchedulePolicy": resource_policy_snapshot_schedule_policy +"/compute:beta/ResourcePolicySnapshotSchedulePolicy/retentionPolicy": retention_policy +"/compute:beta/ResourcePolicySnapshotSchedulePolicy/schedule": schedule +"/compute:beta/ResourcePolicySnapshotSchedulePolicy/snapshotProperties": snapshot_properties +"/compute:beta/ResourcePolicySnapshotSchedulePolicyRetentionPolicy": resource_policy_snapshot_schedule_policy_retention_policy +"/compute:beta/ResourcePolicySnapshotSchedulePolicyRetentionPolicy/maxRetentionDays": max_retention_days +"/compute:beta/ResourcePolicySnapshotSchedulePolicyRetentionPolicy/onSourceDiskDelete": on_source_disk_delete +"/compute:beta/ResourcePolicySnapshotSchedulePolicySchedule": resource_policy_snapshot_schedule_policy_schedule +"/compute:beta/ResourcePolicySnapshotSchedulePolicySchedule/dailySchedule": daily_schedule +"/compute:beta/ResourcePolicySnapshotSchedulePolicySchedule/hourlySchedule": hourly_schedule +"/compute:beta/ResourcePolicySnapshotSchedulePolicySchedule/weeklySchedule": weekly_schedule +"/compute:beta/ResourcePolicySnapshotSchedulePolicySnapshotProperties": resource_policy_snapshot_schedule_policy_snapshot_properties +"/compute:beta/ResourcePolicySnapshotSchedulePolicySnapshotProperties/guestFlush": guest_flush +"/compute:beta/ResourcePolicySnapshotSchedulePolicySnapshotProperties/labels": labels +"/compute:beta/ResourcePolicySnapshotSchedulePolicySnapshotProperties/labels/label": label +"/compute:beta/ResourcePolicySnapshotSchedulePolicySnapshotProperties/storageLocations": storage_locations +"/compute:beta/ResourcePolicySnapshotSchedulePolicySnapshotProperties/storageLocations/storage_location": storage_location "/compute:beta/ResourcePolicyWeeklyCycle": resource_policy_weekly_cycle "/compute:beta/ResourcePolicyWeeklyCycle/dayOfWeeks": day_of_weeks "/compute:beta/ResourcePolicyWeeklyCycle/dayOfWeeks/day_of_week": day_of_week @@ -29621,6 +29743,7 @@ "/compute:beta/RouterList/warning/message": message "/compute:beta/RouterNat": router_nat "/compute:beta/RouterNat/icmpIdleTimeoutSec": icmp_idle_timeout_sec +"/compute:beta/RouterNat/logConfig": log_config "/compute:beta/RouterNat/minPortsPerVm": min_ports_per_vm "/compute:beta/RouterNat/name": name "/compute:beta/RouterNat/natIpAllocateOption": nat_ip_allocate_option @@ -29632,6 +29755,9 @@ "/compute:beta/RouterNat/tcpEstablishedIdleTimeoutSec": tcp_established_idle_timeout_sec "/compute:beta/RouterNat/tcpTransitoryIdleTimeoutSec": tcp_transitory_idle_timeout_sec "/compute:beta/RouterNat/udpIdleTimeoutSec": udp_idle_timeout_sec +"/compute:beta/RouterNatLogConfig": router_nat_log_config +"/compute:beta/RouterNatLogConfig/enable": enable +"/compute:beta/RouterNatLogConfig/filter": filter "/compute:beta/RouterNatSubnetworkToNat": router_nat_subnetwork_to_nat "/compute:beta/RouterNatSubnetworkToNat/name": name "/compute:beta/RouterNatSubnetworkToNat/secondaryIpRangeNames": secondary_ip_range_names @@ -31925,6 +32051,10 @@ "/compute:beta/compute.regionDisks.get/disk": disk "/compute:beta/compute.regionDisks.get/project": project "/compute:beta/compute.regionDisks.get/region": region +"/compute:beta/compute.regionDisks.getIamPolicy": get_region_disk_iam_policy +"/compute:beta/compute.regionDisks.getIamPolicy/project": project +"/compute:beta/compute.regionDisks.getIamPolicy/region": region +"/compute:beta/compute.regionDisks.getIamPolicy/resource": resource "/compute:beta/compute.regionDisks.insert": insert_region_disk "/compute:beta/compute.regionDisks.insert/project": project "/compute:beta/compute.regionDisks.insert/region": region @@ -31947,6 +32077,10 @@ "/compute:beta/compute.regionDisks.resize/project": project "/compute:beta/compute.regionDisks.resize/region": region "/compute:beta/compute.regionDisks.resize/requestId": request_id +"/compute:beta/compute.regionDisks.setIamPolicy": set_region_disk_iam_policy +"/compute:beta/compute.regionDisks.setIamPolicy/project": project +"/compute:beta/compute.regionDisks.setIamPolicy/region": region +"/compute:beta/compute.regionDisks.setIamPolicy/resource": resource "/compute:beta/compute.regionDisks.setLabels": set_region_disk_labels "/compute:beta/compute.regionDisks.setLabels/project": project "/compute:beta/compute.regionDisks.setLabels/region": region @@ -33340,6 +33474,10 @@ "/compute:v1/FirewallList/warning/message": message "/compute:v1/FirewallLogConfig": firewall_log_config "/compute:v1/FirewallLogConfig/enable": enable +"/compute:v1/FixedOrPercent": fixed_or_percent +"/compute:v1/FixedOrPercent/calculated": calculated +"/compute:v1/FixedOrPercent/fixed": fixed +"/compute:v1/FixedOrPercent/percent": percent "/compute:v1/ForwardingRule": forwarding_rule "/compute:v1/ForwardingRule/IPAddress": ip_address "/compute:v1/ForwardingRule/IPProtocol": ip_protocol @@ -33358,6 +33496,8 @@ "/compute:v1/ForwardingRule/ports/port": port "/compute:v1/ForwardingRule/region": region "/compute:v1/ForwardingRule/selfLink": self_link +"/compute:v1/ForwardingRule/serviceLabel": service_label +"/compute:v1/ForwardingRule/serviceName": service_name "/compute:v1/ForwardingRule/subnetwork": subnetwork "/compute:v1/ForwardingRule/target": target "/compute:v1/ForwardingRuleAggregatedList": forwarding_rule_aggregated_list @@ -33677,9 +33817,13 @@ "/compute:v1/InstanceGroupManager/namedPorts/named_port": named_port "/compute:v1/InstanceGroupManager/region": region "/compute:v1/InstanceGroupManager/selfLink": self_link +"/compute:v1/InstanceGroupManager/status": status "/compute:v1/InstanceGroupManager/targetPools": target_pools "/compute:v1/InstanceGroupManager/targetPools/target_pool": target_pool "/compute:v1/InstanceGroupManager/targetSize": target_size +"/compute:v1/InstanceGroupManager/updatePolicy": update_policy +"/compute:v1/InstanceGroupManager/versions": versions +"/compute:v1/InstanceGroupManager/versions/version": version "/compute:v1/InstanceGroupManager/zone": zone "/compute:v1/InstanceGroupManagerActionsSummary": instance_group_manager_actions_summary "/compute:v1/InstanceGroupManagerActionsSummary/abandoning": abandoning @@ -33722,6 +33866,17 @@ "/compute:v1/InstanceGroupManagerList/warning/data/datum/key": key "/compute:v1/InstanceGroupManagerList/warning/data/datum/value": value "/compute:v1/InstanceGroupManagerList/warning/message": message +"/compute:v1/InstanceGroupManagerStatus": instance_group_manager_status +"/compute:v1/InstanceGroupManagerStatus/isStable": is_stable +"/compute:v1/InstanceGroupManagerUpdatePolicy": instance_group_manager_update_policy +"/compute:v1/InstanceGroupManagerUpdatePolicy/maxSurge": max_surge +"/compute:v1/InstanceGroupManagerUpdatePolicy/maxUnavailable": max_unavailable +"/compute:v1/InstanceGroupManagerUpdatePolicy/minimalAction": minimal_action +"/compute:v1/InstanceGroupManagerUpdatePolicy/type": type +"/compute:v1/InstanceGroupManagerVersion": instance_group_manager_version +"/compute:v1/InstanceGroupManagerVersion/instanceTemplate": instance_template +"/compute:v1/InstanceGroupManagerVersion/name": name +"/compute:v1/InstanceGroupManagerVersion/targetSize": target_size "/compute:v1/InstanceGroupManagersAbandonInstancesRequest": instance_group_managers_abandon_instances_request "/compute:v1/InstanceGroupManagersAbandonInstancesRequest/instances": instances "/compute:v1/InstanceGroupManagersAbandonInstancesRequest/instances/instance": instance @@ -39557,6 +39712,9 @@ "/containeranalysis:v1beta1/Installation/location": location "/containeranalysis:v1beta1/Installation/location/location": location "/containeranalysis:v1beta1/Installation/name": name +"/containeranalysis:v1beta1/KnowledgeBase": knowledge_base +"/containeranalysis:v1beta1/KnowledgeBase/name": name +"/containeranalysis:v1beta1/KnowledgeBase/url": url "/containeranalysis:v1beta1/Layer": layer "/containeranalysis:v1beta1/Layer/arguments": arguments "/containeranalysis:v1beta1/Layer/directive": directive @@ -39690,6 +39848,8 @@ "/containeranalysis:v1beta1/Vulnerability/details": details "/containeranalysis:v1beta1/Vulnerability/details/detail": detail "/containeranalysis:v1beta1/Vulnerability/severity": severity +"/containeranalysis:v1beta1/Vulnerability/windowsDetails": windows_details +"/containeranalysis:v1beta1/Vulnerability/windowsDetails/windows_detail": windows_detail "/containeranalysis:v1beta1/VulnerabilityLocation": vulnerability_location "/containeranalysis:v1beta1/VulnerabilityLocation/cpeUri": cpe_uri "/containeranalysis:v1beta1/VulnerabilityLocation/package": package @@ -39697,6 +39857,12 @@ "/containeranalysis:v1beta1/VulnerabilityOccurrencesSummary": vulnerability_occurrences_summary "/containeranalysis:v1beta1/VulnerabilityOccurrencesSummary/counts": counts "/containeranalysis:v1beta1/VulnerabilityOccurrencesSummary/counts/count": count +"/containeranalysis:v1beta1/WindowsDetail": windows_detail +"/containeranalysis:v1beta1/WindowsDetail/cpeUri": cpe_uri +"/containeranalysis:v1beta1/WindowsDetail/description": description +"/containeranalysis:v1beta1/WindowsDetail/fixingKbs": fixing_kbs +"/containeranalysis:v1beta1/WindowsDetail/fixingKbs/fixing_kb": fixing_kb +"/containeranalysis:v1beta1/WindowsDetail/name": name "/containeranalysis:v1beta1/containeranalysis.projects.notes.batchCreate": batch_create_notes "/containeranalysis:v1beta1/containeranalysis.projects.notes.batchCreate/parent": parent "/containeranalysis:v1beta1/containeranalysis.projects.notes.create": create_project_note @@ -94867,6 +95033,8 @@ "/testing:v1/testing.testEnvironmentCatalog.get/projectId": project_id "/texttospeech:v1/AudioConfig": audio_config "/texttospeech:v1/AudioConfig/audioEncoding": audio_encoding +"/texttospeech:v1/AudioConfig/effectsProfileId": effects_profile_id +"/texttospeech:v1/AudioConfig/effectsProfileId/effects_profile_id": effects_profile_id "/texttospeech:v1/AudioConfig/pitch": pitch "/texttospeech:v1/AudioConfig/sampleRateHertz": sample_rate_hertz "/texttospeech:v1/AudioConfig/speakingRate": speaking_rate diff --git a/generated/google/apis/compute_alpha.rb b/generated/google/apis/compute_alpha.rb index 356f6cda9..6657c9b31 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 = '20181217' + REVISION = '20190107' # 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 b30366e67..5fc918104 100644 --- a/generated/google/apis/compute_alpha/classes.rb +++ b/generated/google/apis/compute_alpha/classes.rb @@ -6269,6 +6269,257 @@ module Google end end + # External VPN gateway is the on-premises VPN gateway(s) or another cloud + # provider?s VPN gateway that connects to your Google Cloud VPN gateway. To + # create a highly available VPN from Google Cloud to your on-premises side or + # another Cloud provider's VPN gateway, you must create a external VPN gateway + # resource in GCP, which provides the information to GCP about your external VPN + # gateway. + class ExternalVpnGateway + 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 + + # 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 unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # List of interfaces for this external VPN gateway. + # Corresponds to the JSON property `interfaces` + # @return [Array] + attr_accessor :interfaces + + # [Output Only] Type of the resource. Always compute#externalVpnGateway for + # externalVpnGateways. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # A fingerprint for the labels being applied to this ExternalVpnGateway, which + # is essentially a hash of the labels set used for optimistic locking. The + # fingerprint is initially generated by Compute Engine and changes after every + # request to modify or update labels. You must always provide an up-to-date + # fingerprint hash in order to update or change labels, otherwise the request + # will fail with error 412 conditionNotMet. + # To see the latest fingerprint, make a get() request to retrieve an + # ExternalVpnGateway. + # Corresponds to the JSON property `labelFingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :label_fingerprint + + # Labels to apply to this ExternalVpnGateway resource. These can be later + # modified by the setLabels method. Each label key/value must comply with + # RFC1035. Label values may be empty. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Name of the resource. Provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression `[a-z]([-a- + # z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Indicates the user-supplied redundancy type of this external VPN gateway. + # Corresponds to the JSON property `redundancyType` + # @return [String] + attr_accessor :redundancy_type + + # [Output Only] Server-defined URL for the resource. + # 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) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @interfaces = args[:interfaces] if args.key?(:interfaces) + @kind = args[:kind] if args.key?(:kind) + @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @redundancy_type = args[:redundancy_type] if args.key?(:redundancy_type) + @self_link = args[:self_link] if args.key?(:self_link) + end + end + + # The interface for the external VPN gateway. + class ExternalVpnGatewayInterface + include Google::Apis::Core::Hashable + + # The numeric ID of this interface. The allowed input values for this id for + # different redundancy types of external VPN gateway: + # SINGLE_IP_INTERNALLY_REDUNDANT - 0 TWO_IPS_REDUNDANCY - 0, 1 + # FOUR_IPS_REDUNDANCY - 0, 1, 2, 3 + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # IP address of the interface in the external VPN gateway. Only IPv4 is + # supported. This IP address can be either from your on-premise gateway or + # another Cloud provider?s VPN gateway, it cannot be an IP address from Google + # Compute Engine. + # Corresponds to the JSON property `ipAddress` + # @return [String] + attr_accessor :ip_address + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @ip_address = args[:ip_address] if args.key?(:ip_address) + end + end + + # Response to the list request, and contains a list of externalVpnGateways. + class ExternalVpnGatewayList + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # [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 ExternalVpnGateway resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource. Always compute#externalVpnGatewayList for + # lists of externalVpnGateways. + # 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::ExternalVpnGatewayList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @etag = args[:etag] if args.key?(:etag) + @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 + # Represents a Firewall resource. class Firewall include Google::Apis::Core::Hashable @@ -7865,6 +8116,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # # Corresponds to the JSON property `sslHealthCheck` # @return [Google::Apis::ComputeAlpha::SslHealthCheck] @@ -7918,6 +8174,7 @@ module Google @name = args[:name] if args.key?(:name) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @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) @timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec) @@ -8723,6 +8980,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # How long (in seconds) to wait before claiming failure. The default value is 5 # seconds. It is invalid for timeoutSec to have greater value than # checkIntervalSec. @@ -8753,6 +9015,7 @@ module Google @port = args[:port] if args.key?(:port) @request_path = args[:request_path] if args.key?(:request_path) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec) @unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold) end @@ -9144,8 +9407,11 @@ module Google # @return [Array] attr_accessor :match_rules - # In response to a matching matchRule, the load balancer routes the request to - # the backend service specified by this routeAction. + # In response to a matching matchRule, the load balancer performs advanced + # routing actions like URL rewrites, header transformations, etc. prior to + # forwarding the request to the selected backend. If routeAction specifies any + # weightedBackendServices, service must not be set. Conversely if service is set, + # routeAction cannot contain any weightedBackendServices. # Only one of routeAction or urlRedirect must be set. # Corresponds to the JSON property `routeAction` # @return [Google::Apis::ComputeAlpha::HttpRouteAction] @@ -9324,6 +9590,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # How long (in seconds) to wait before claiming failure. The default value is 5 # seconds. It is invalid for timeoutSec to have a greater value than # checkIntervalSec. @@ -9354,6 +9625,7 @@ module Google @port = args[:port] if args.key?(:port) @request_path = args[:request_path] if args.key?(:request_path) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec) @unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold) end @@ -10059,6 +10331,11 @@ module Google # @return [String] attr_accessor :source_machine_image + # Represents a customer-supplied encryption key + # Corresponds to the JSON property `sourceMachineImageEncryptionKey` + # @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey] + attr_accessor :source_machine_image_encryption_key + # [Output Only] Whether a VM has been restricted for start because Compute # Engine has detected suspicious activity. # Corresponds to the JSON property `startRestricted` @@ -10125,6 +10402,7 @@ module Google @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) @source_machine_image = args[:source_machine_image] if args.key?(:source_machine_image) + @source_machine_image_encryption_key = args[:source_machine_image_encryption_key] if args.key?(:source_machine_image_encryption_key) @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) @@ -12462,6 +12740,11 @@ module Google # @return [Array] attr_accessor :disks + # A set of Display Device options + # Corresponds to the JSON property `displayDevice` + # @return [Google::Apis::ComputeAlpha::DisplayDevice] + attr_accessor :display_device + # A list of guest accelerator cards' type and count to use for instances created # from the instance template. # Corresponds to the JSON property `guestAccelerators` @@ -12529,6 +12812,7 @@ module Google @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward) @description = args[:description] if args.key?(:description) @disks = args[:disks] if args.key?(:disks) + @display_device = args[:display_device] if args.key?(:display_device) @guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators) @labels = args[:labels] if args.key?(:labels) @machine_type = args[:machine_type] if args.key?(:machine_type) @@ -12610,6 +12894,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # The source instance used to create the template. You can provide this as a # partial or full URL to the resource. For example, the following are valid # values: @@ -12639,6 +12928,7 @@ module Google @name = args[:name] if args.key?(:name) @properties = args[:properties] if args.key?(:properties) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @source_instance = args[:source_instance] if args.key?(:source_instance) @source_instance_params = args[:source_instance_params] if args.key?(:source_instance_params) end @@ -13279,6 +13569,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # [Output Only] The current state of whether or not this Interconnect is # functional. # Corresponds to the JSON property `state` @@ -13314,6 +13609,7 @@ module Google @provisioned_link_count = args[:provisioned_link_count] if args.key?(:provisioned_link_count) @requested_link_count = args[:requested_link_count] if args.key?(:requested_link_count) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @state = args[:state] if args.key?(:state) end end @@ -13489,6 +13785,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # [Output Only] The current state of this attachment's functionality. # Corresponds to the JSON property `state` # @return [String] @@ -13534,6 +13835,7 @@ module Google @region = args[:region] if args.key?(:region) @router = args[:router] if args.key?(:router) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @state = args[:state] if args.key?(:state) @type = args[:type] if args.key?(:type) @vlan_tag8021q = args[:vlan_tag8021q] if args.key?(:vlan_tag8021q) @@ -14334,6 +14636,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # [Output Only] The status of this InterconnectLocation. If the status is # AVAILABLE, new Interconnects may be provisioned in this InterconnectLocation. # Otherwise, no new Interconnects may be provisioned. @@ -14361,6 +14668,7 @@ module Google @peeringdb_facility_id = args[:peeringdb_facility_id] if args.key?(:peeringdb_facility_id) @region_infos = args[:region_infos] if args.key?(:region_infos) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @status = args[:status] if args.key?(:status) end end @@ -14967,6 +15275,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # 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` @@ -14989,6 +15302,7 @@ module Google @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) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @transferable = args[:transferable] if args.key?(:transferable) end end @@ -15391,6 +15705,11 @@ module Google # @return [String] attr_accessor :kind + # Represents a customer-supplied encryption key + # Corresponds to the JSON property `machineImageEncryptionKey` + # @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey] + attr_accessor :machine_image_encryption_key + # Name of the resource; provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the # name must be 1-63 characters long and match the regular expression `[a-z]([-a- @@ -15406,6 +15725,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # The source instance used to create the machine image. You can provide this as # a partial or full URL to the resource. For example, the following are valid # values: @@ -15441,8 +15765,10 @@ module Google @description = args[:description] if args.key?(:description) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) + @machine_image_encryption_key = args[:machine_image_encryption_key] if args.key?(:machine_image_encryption_key) @name = args[:name] if args.key?(:name) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @source_instance = args[:source_instance] if args.key?(:source_instance) @source_instance_properties = args[:source_instance_properties] if args.key?(:source_instance_properties) @status = args[:status] if args.key?(:status) @@ -15644,6 +15970,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # [Output Only] The name of the zone where the machine type resides, such as us- # central1-a. # Corresponds to the JSON property `zone` @@ -15668,6 +15999,7 @@ module Google @memory_mb = args[:memory_mb] if args.key?(:memory_mb) @name = args[:name] if args.key?(:name) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @zone = args[:zone] if args.key?(:zone) end end @@ -16745,6 +17077,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # [Output only] Number of network endpoints in the network endpoint group. # Corresponds to the JSON property `size` # @return [Fixnum] @@ -16784,6 +17121,7 @@ module Google @network = args[:network] if args.key?(:network) @network_endpoint_type = args[:network_endpoint_type] if args.key?(:network_endpoint_type) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @size = args[:size] if args.key?(:size) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) @type = args[:type] if args.key?(:type) @@ -17832,6 +18170,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # [Output Only] The total number of nodes in the node group. # Corresponds to the JSON property `size` # @return [Fixnum] @@ -17862,6 +18205,7 @@ module Google @name = args[:name] if args.key?(:name) @node_template = args[:node_template] if args.key?(:node_template) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @size = args[:size] if args.key?(:size) @status = args[:status] if args.key?(:status) @zone = args[:zone] if args.key?(:zone) @@ -18525,6 +18869,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # Binding properties for the physical server. # Corresponds to the JSON property `serverBinding` # @return [Google::Apis::ComputeAlpha::ServerBinding] @@ -18557,6 +18906,7 @@ module Google @node_type_flexibility = args[:node_type_flexibility] if args.key?(:node_type_flexibility) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @server_binding = args[:server_binding] if args.key?(:server_binding) @status = args[:status] if args.key?(:status) @status_message = args[:status_message] if args.key?(:status_message) @@ -18982,6 +19332,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # [Output Only] The name of the zone where the node type resides, such as us- # central1-a. # Corresponds to the JSON property `zone` @@ -19005,6 +19360,7 @@ module Google @memory_mb = args[:memory_mb] if args.key?(:memory_mb) @name = args[:name] if args.key?(:name) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @zone = args[:zone] if args.key?(:zone) end end @@ -19436,6 +19792,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # [Output Only] The time that this operation was started by the server. This # value is in RFC3339 text format. # Corresponds to the JSON property `startTime` @@ -19506,6 +19867,7 @@ module Google @progress = args[:progress] if args.key?(:progress) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @start_time = args[:start_time] if args.key?(:start_time) @status = args[:status] if args.key?(:status) @status_message = args[:status_message] if args.key?(:status_message) @@ -19968,12 +20330,13 @@ module Google class PathMatcher include Google::Apis::Core::Hashable - # The default HttpRouteAction to follow if none of the pathRules or routeRules - # defined by this pathMatcher are matched. Use defaultRouteAction instead of - # defaultService when more advanced default routing actions like traffic - # splitting and URL rewrites are desired. - # Only one of defaultService, defaultRouteAction or defaultUrlRedirect must be - # set. + # defaultRouteAction takes effect when none of the pathRules or routeRules + # match. The load balancer performs advanced routing actions like URL rewrites, + # header transformations, etc. prior to forwarding the request to the selected + # backend. If defaultRouteAction specifies any weightedBackendServices, + # defaultService must not be set. Conversely if defaultService is set, + # defaultRouteAction cannot contain any weightedBackendServices. + # Only one of defaultRouteAction or defaultUrlRedirect must be set. # Corresponds to the JSON property `defaultRouteAction` # @return [Google::Apis::ComputeAlpha::HttpRouteAction] attr_accessor :default_route_action @@ -19984,12 +20347,14 @@ module Google # - https://www.googleapis.com/compute/v1/projects/project/global/ # backendServices/backendService # - compute/v1/projects/project/global/backendServices/backendService - # - global/backendServices/backendService - # Use defaultService instead of defaultRouteAction when simple routing to a - # backend service is desired and other advanced capabilities like traffic - # splitting and URL rewrites are not required. - # Only one of defaultService, defaultRouteAction or defaultUrlRedirect must be - # set. + # - global/backendServices/backendService If defaultRouteAction is additionally + # specified, advanced routing actions like URL Rewrites, etc. take effect prior + # to sending the request to the backend. However, if defaultService is specified, + # defaultRouteAction cannot contain any weightedBackendServices. Conversely, if + # defaultRouteAction specifies any weightedBackendServices, defaultService must + # not be specified. + # Only one of defaultService, defaultUrlRedirect or defaultRouteAction. + # weightedBackendService must be set. # Authorization requires one or more of the following Google IAM permissions on # the specified resource default_service: # - compute.backendBuckets.use @@ -20070,19 +20435,24 @@ module Google # @return [Array] attr_accessor :paths - # The HttpRouteAction to follow if this rule is matched. Use routeAction instead - # of service when more advanced default routing actions like traffic splitting - # and Url rewrites are desired. - # Only one of service, routeAction or urlRedirect should must be set. + # In response to a matching path, the load balancer performs advanced routing + # actions like URL rewrites, header transformations, etc. prior to forwarding + # the request to the selected backend. If routeAction specifies any + # weightedBackendServices, service must not be set. Conversely if service is set, + # routeAction cannot contain any weightedBackendServices. + # Only one of routeAction or urlRedirect must be set. # Corresponds to the JSON property `routeAction` # @return [Google::Apis::ComputeAlpha::HttpRouteAction] attr_accessor :route_action - # The URL of the backend service resource if this rule is matched. - # Use service instead of routeAction when simple routing to a backend service is - # desired and other advanced capabilities like traffic splitting and rewrites - # are not required. - # Only one of service, routeAction or urlRedirect should must be set. + # The full or partial URL of the backend service resource to which traffic is + # directed if this rule is matched. If routeAction is additionally specified, + # advanced routing actions like URL Rewrites, etc. take effect prior to sending + # the request to the backend. However, if service is specified, routeAction + # cannot contain any weightedBackendService s. Conversely, if routeAction + # specifies any weightedBackendServices, service must not be specified. + # Only one of urlRedirect, service or routeAction.weightedBackendService must be + # set. # Corresponds to the JSON property `service` # @return [String] attr_accessor :service @@ -20679,6 +21049,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # [Output Only] Status of the region, either UP or DOWN. # Corresponds to the JSON property `status` # @return [String] @@ -20704,6 +21079,7 @@ module Google @name = args[:name] if args.key?(:name) @quotas = args[:quotas] if args.key?(:quotas) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @status = args[:status] if args.key?(:status) @zones = args[:zones] if args.key?(:zones) end @@ -22181,13 +22557,6 @@ module Google class ResourcePolicy include Google::Apis::Core::Hashable - # A backup schedule policy specifies when and how frequently snapshots are to be - # created for the target disk. Also specifies how many and how long these - # scheduled snapshots should be retained. - # Corresponds to the JSON property `backupSchedulePolicy` - # @return [Google::Apis::ComputeAlpha::ResourcePolicyBackupSchedulePolicy] - attr_accessor :backup_schedule_policy - # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] @@ -22231,6 +22600,18 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + + # A snapshot schedule policy specifies when and how frequently snapshots are to + # be created for the target disk. Also specifies how many and how long these + # scheduled snapshots should be retained. + # Corresponds to the JSON property `snapshotSchedulePolicy` + # @return [Google::Apis::ComputeAlpha::ResourcePolicySnapshotSchedulePolicy] + attr_accessor :snapshot_schedule_policy + # Resource policy applicable to VMs for infrastructure maintenance. # Corresponds to the JSON property `vmMaintenancePolicy` # @return [Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicy] @@ -22242,7 +22623,6 @@ module Google # Update properties of this object def update!(**args) - @backup_schedule_policy = args[:backup_schedule_policy] if args.key?(:backup_schedule_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) @@ -22250,6 +22630,8 @@ module Google @name = args[:name] if args.key?(:name) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) + @snapshot_schedule_policy = args[:snapshot_schedule_policy] if args.key?(:snapshot_schedule_policy) @vm_maintenance_policy = args[:vm_maintenance_policy] if args.key?(:vm_maintenance_policy) end end @@ -22377,136 +22759,6 @@ module Google end end - # A backup schedule policy specifies when and how frequently snapshots are to be - # created for the target disk. Also specifies how many and how long these - # scheduled snapshots should be retained. - class ResourcePolicyBackupSchedulePolicy - include Google::Apis::Core::Hashable - - # Policy for retention of scheduled snapshots. - # Corresponds to the JSON property `retentionPolicy` - # @return [Google::Apis::ComputeAlpha::ResourcePolicyBackupSchedulePolicyRetentionPolicy] - attr_accessor :retention_policy - - # A schedule for disks where the schedueled operations are performed. - # Corresponds to the JSON property `schedule` - # @return [Google::Apis::ComputeAlpha::ResourcePolicyBackupSchedulePolicySchedule] - attr_accessor :schedule - - # Specified snapshot properties for scheduled snapshots created by this policy. - # Corresponds to the JSON property `snapshotProperties` - # @return [Google::Apis::ComputeAlpha::ResourcePolicyBackupSchedulePolicySnapshotProperties] - attr_accessor :snapshot_properties - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @retention_policy = args[:retention_policy] if args.key?(:retention_policy) - @schedule = args[:schedule] if args.key?(:schedule) - @snapshot_properties = args[:snapshot_properties] if args.key?(:snapshot_properties) - end - end - - # Policy for retention of scheduled snapshots. - class ResourcePolicyBackupSchedulePolicyRetentionPolicy - include Google::Apis::Core::Hashable - - # Maximum age of the snapshot that is allowed to be kept. - # Corresponds to the JSON property `maxRetentionDays` - # @return [Fixnum] - attr_accessor :max_retention_days - - # Specifies the behavior to apply to existing, scheduled snapshots snapshots if - # the policy is changed. - # Corresponds to the JSON property `onPolicySwitch` - # @return [String] - attr_accessor :on_policy_switch - - # Specifies the behavior to apply to scheduled snapshots when the source disk is - # deleted. - # Corresponds to the JSON property `onSourceDiskDelete` - # @return [String] - attr_accessor :on_source_disk_delete - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @max_retention_days = args[:max_retention_days] if args.key?(:max_retention_days) - @on_policy_switch = args[:on_policy_switch] if args.key?(:on_policy_switch) - @on_source_disk_delete = args[:on_source_disk_delete] if args.key?(:on_source_disk_delete) - end - end - - # A schedule for disks where the schedueled operations are performed. - class ResourcePolicyBackupSchedulePolicySchedule - include Google::Apis::Core::Hashable - - # Time window specified for daily operations. - # Corresponds to the JSON property `dailySchedule` - # @return [Google::Apis::ComputeAlpha::ResourcePolicyDailyCycle] - attr_accessor :daily_schedule - - # Time window specified for hourly operations. - # Corresponds to the JSON property `hourlySchedule` - # @return [Google::Apis::ComputeAlpha::ResourcePolicyHourlyCycle] - attr_accessor :hourly_schedule - - # Time window specified for weekly operations. - # Corresponds to the JSON property `weeklySchedule` - # @return [Google::Apis::ComputeAlpha::ResourcePolicyWeeklyCycle] - attr_accessor :weekly_schedule - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @daily_schedule = args[:daily_schedule] if args.key?(:daily_schedule) - @hourly_schedule = args[:hourly_schedule] if args.key?(:hourly_schedule) - @weekly_schedule = args[:weekly_schedule] if args.key?(:weekly_schedule) - end - end - - # Specified snapshot properties for scheduled snapshots created by this policy. - class ResourcePolicyBackupSchedulePolicySnapshotProperties - include Google::Apis::Core::Hashable - - # Indication to perform a ?guest aware? snapshot. - # Corresponds to the JSON property `guestFlush` - # @return [Boolean] - attr_accessor :guest_flush - alias_method :guest_flush?, :guest_flush - - # Labels to apply to scheduled snapshots. These can be later modified by the - # setLabels method. Label values may be empty. - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # GCS bucket storage location of the auto snapshot (regional or multi-regional). - # Corresponds to the JSON property `storageLocations` - # @return [Array] - attr_accessor :storage_locations - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @guest_flush = args[:guest_flush] if args.key?(:guest_flush) - @labels = args[:labels] if args.key?(:labels) - @storage_locations = args[:storage_locations] if args.key?(:storage_locations) - end - end - # Time window specified for daily operations. class ResourcePolicyDailyCycle include Google::Apis::Core::Hashable @@ -22698,6 +22950,136 @@ module Google end end + # A snapshot schedule policy specifies when and how frequently snapshots are to + # be created for the target disk. Also specifies how many and how long these + # scheduled snapshots should be retained. + class ResourcePolicySnapshotSchedulePolicy + include Google::Apis::Core::Hashable + + # Policy for retention of scheduled snapshots. + # Corresponds to the JSON property `retentionPolicy` + # @return [Google::Apis::ComputeAlpha::ResourcePolicySnapshotSchedulePolicyRetentionPolicy] + attr_accessor :retention_policy + + # A schedule for disks where the schedueled operations are performed. + # Corresponds to the JSON property `schedule` + # @return [Google::Apis::ComputeAlpha::ResourcePolicySnapshotSchedulePolicySchedule] + attr_accessor :schedule + + # Specified snapshot properties for scheduled snapshots created by this policy. + # Corresponds to the JSON property `snapshotProperties` + # @return [Google::Apis::ComputeAlpha::ResourcePolicySnapshotSchedulePolicySnapshotProperties] + attr_accessor :snapshot_properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @retention_policy = args[:retention_policy] if args.key?(:retention_policy) + @schedule = args[:schedule] if args.key?(:schedule) + @snapshot_properties = args[:snapshot_properties] if args.key?(:snapshot_properties) + end + end + + # Policy for retention of scheduled snapshots. + class ResourcePolicySnapshotSchedulePolicyRetentionPolicy + include Google::Apis::Core::Hashable + + # Maximum age of the snapshot that is allowed to be kept. + # Corresponds to the JSON property `maxRetentionDays` + # @return [Fixnum] + attr_accessor :max_retention_days + + # Specifies the behavior to apply to existing, scheduled snapshots snapshots if + # the policy is changed. + # Corresponds to the JSON property `onPolicySwitch` + # @return [String] + attr_accessor :on_policy_switch + + # Specifies the behavior to apply to scheduled snapshots when the source disk is + # deleted. + # Corresponds to the JSON property `onSourceDiskDelete` + # @return [String] + attr_accessor :on_source_disk_delete + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_retention_days = args[:max_retention_days] if args.key?(:max_retention_days) + @on_policy_switch = args[:on_policy_switch] if args.key?(:on_policy_switch) + @on_source_disk_delete = args[:on_source_disk_delete] if args.key?(:on_source_disk_delete) + end + end + + # A schedule for disks where the schedueled operations are performed. + class ResourcePolicySnapshotSchedulePolicySchedule + include Google::Apis::Core::Hashable + + # Time window specified for daily operations. + # Corresponds to the JSON property `dailySchedule` + # @return [Google::Apis::ComputeAlpha::ResourcePolicyDailyCycle] + attr_accessor :daily_schedule + + # Time window specified for hourly operations. + # Corresponds to the JSON property `hourlySchedule` + # @return [Google::Apis::ComputeAlpha::ResourcePolicyHourlyCycle] + attr_accessor :hourly_schedule + + # Time window specified for weekly operations. + # Corresponds to the JSON property `weeklySchedule` + # @return [Google::Apis::ComputeAlpha::ResourcePolicyWeeklyCycle] + attr_accessor :weekly_schedule + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @daily_schedule = args[:daily_schedule] if args.key?(:daily_schedule) + @hourly_schedule = args[:hourly_schedule] if args.key?(:hourly_schedule) + @weekly_schedule = args[:weekly_schedule] if args.key?(:weekly_schedule) + end + end + + # Specified snapshot properties for scheduled snapshots created by this policy. + class ResourcePolicySnapshotSchedulePolicySnapshotProperties + include Google::Apis::Core::Hashable + + # Indication to perform a ?guest aware? snapshot. + # Corresponds to the JSON property `guestFlush` + # @return [Boolean] + attr_accessor :guest_flush + alias_method :guest_flush?, :guest_flush + + # Labels to apply to scheduled snapshots. These can be later modified by the + # setLabels method. Label values may be empty. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # GCS bucket storage location of the auto snapshot (regional or multi-regional). + # Corresponds to the JSON property `storageLocations` + # @return [Array] + attr_accessor :storage_locations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @guest_flush = args[:guest_flush] if args.key?(:guest_flush) + @labels = args[:labels] if args.key?(:labels) + @storage_locations = args[:storage_locations] if args.key?(:storage_locations) + end + end + # class ResourcePolicyVmMaintenancePolicy include Google::Apis::Core::Hashable @@ -23211,6 +23593,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + def initialize(**args) update!(**args) end @@ -23229,6 +23616,7 @@ module Google @network = args[:network] if args.key?(:network) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) end end @@ -23784,6 +24172,13 @@ module Google include Google::Apis::Core::Hashable # Indicates whether or not to export logs. This is false by default. + # Corresponds to the JSON property `enable` + # @return [Boolean] + attr_accessor :enable + alias_method :enable?, :enable + + # Indicates whether or not to export logs. This is false by default. [Deprecated] + # Use 'enable' instead. # Corresponds to the JSON property `enabled` # @return [Boolean] attr_accessor :enabled @@ -23801,6 +24196,7 @@ module Google # Update properties of this object def update!(**args) + @enable = args[:enable] if args.key?(:enable) @enabled = args[:enabled] if args.key?(:enabled) @filter = args[:filter] if args.key?(:filter) end @@ -24645,6 +25041,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # The type indicates the intended use of the security policy. CLOUD_ARMOR # policies apply to backend services. FIREWALL policies apply to organizations. # Corresponds to the JSON property `type` @@ -24668,6 +25069,7 @@ module Google @name = args[:name] if args.key?(:name) @rules = args[:rules] if args.key?(:rules) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @type = args[:type] if args.key?(:type) end end @@ -25753,6 +26155,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # Configuration and status of a self-managed SSL certificate. # Corresponds to the JSON property `selfManaged` # @return [Google::Apis::ComputeAlpha::SslCertificateSelfManagedSslCertificate] @@ -25788,6 +26195,7 @@ module Google @private_key = args[:private_key] if args.key?(:private_key) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @self_managed = args[:self_managed] if args.key?(:self_managed) @subject_alternative_names = args[:subject_alternative_names] if args.key?(:subject_alternative_names) @type = args[:type] if args.key?(:type) @@ -26400,6 +26808,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # [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` @@ -26423,6 +26836,7 @@ module Google @name = args[:name] if args.key?(:name) @profile = args[:profile] if args.key?(:profile) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @warnings = args[:warnings] if args.key?(:warnings) end @@ -26666,9 +27080,9 @@ module Google attr_accessor :enable_flow_logs alias_method :enable_flow_logs?, :enable_flow_logs - # Whether the VMs in this subnet can directly access Google services via - # internal IPv6 addresses. This field can be both set at resource creation time - # and updated using patch. + # Deprecated in favor of enable in PrivateIpv6GoogleAccess. Whether the VMs in + # this subnet can directly access Google services via internal IPv6 addresses. + # This field can be both set at resource creation time and updated using patch. # Corresponds to the JSON property `enablePrivateV6Access` # @return [Boolean] attr_accessor :enable_private_v6_access @@ -26764,6 +27178,14 @@ module Google attr_accessor :private_ip_google_access alias_method :private_ip_google_access?, :private_ip_google_access + # The private IPv6 google access type for the VMs in this subnet. This is an + # expanded field of enablePrivateV6Access. If both fields are set, + # privateIpv6GoogleAccess will take priority. + # This field can be both set at resource creation time and updated using patch. + # Corresponds to the JSON property `privateIpv6GoogleAccess` + # @return [String] + attr_accessor :private_ipv6_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 @@ -26802,6 +27224,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # [Output Only] The state of the subnetwork, which can be one of READY or # DRAINING. A subnetwork that is READY is ready to be used. The state of # DRAINING is only applicable to subnetworks that have the purpose set to @@ -26836,11 +27263,13 @@ 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) + @private_ipv6_google_access = args[:private_ipv6_google_access] if args.key?(:private_ipv6_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) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @state = args[:state] if args.key?(:state) end end @@ -27536,6 +27965,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # URL to the UrlMap resource that defines the mapping from URL to the # BackendService. # Corresponds to the JSON property `urlMap` @@ -27555,6 +27989,7 @@ module Google @name = args[:name] if args.key?(:name) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @url_map = args[:url_map] if args.key?(:url_map) end end @@ -27986,6 +28421,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # URLs to SslCertificate resources that are used to authenticate connections # between users and the load balancer. At least one SSL certificate must be # specified. Currently, you may specify up to 15 SSL certificates. @@ -28024,6 +28464,7 @@ module Google @quic_override = args[:quic_override] if args.key?(:quic_override) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @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) @@ -28328,6 +28769,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # [Output Only] URL of the zone where the target instance resides. You must # specify this field as part of the HTTP request URL. It is not settable as a # field in the request body. @@ -28349,6 +28795,7 @@ module Google @name = args[:name] if args.key?(:name) @nat_policy = args[:nat_policy] if args.key?(:nat_policy) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @zone = args[:zone] if args.key?(:zone) end end @@ -28771,6 +29218,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # Session affinity option, must be one of the following values: # NONE: Connections from the same client IP may go to any instance in the pool. # CLIENT_IP: Connections from the same client IP will go to the same instance in @@ -28798,6 +29250,7 @@ module Google @name = args[:name] if args.key?(:name) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @session_affinity = args[:session_affinity] if args.key?(:session_affinity) end end @@ -30321,21 +30774,26 @@ module Google # @return [String] attr_accessor :creation_timestamp - # The default HttpRouteAction to follow if none of the hostRules match. Use - # defaultRouteAction instead of defaultService when more advanced default - # routing actions like traffic splitting and Url rewrites are desired. - # Only one of defaultService, defaultRouteAction or defaultUrlRedirect should - # must be set. + # defaultRouteAction takes effect when none of the hostRules match. The load + # balancer performs advanced routing actions like URL rewrites, header + # transformations, etc. prior to forwarding the request to the selected backend. + # If defaultRouteAction specifies any weightedBackendServices, defaultService + # must not be set. Conversely if defaultService is set, defaultRouteAction + # cannot contain any weightedBackendServices. + # Only one of defaultRouteAction or defaultUrlRedirect must be set. # Corresponds to the JSON property `defaultRouteAction` # @return [Google::Apis::ComputeAlpha::HttpRouteAction] attr_accessor :default_route_action - # The URL of the backendService resource if none of the hostRules match. - # Use defaultService instead of defaultRouteAction when simple routing to a - # backendService is desired and other advanced capabilities like traffic - # splitting and rewrites are not required. - # Only one of defaultService, defaultRouteAction or defaultUrlRedirect should - # must be set. + # The full or partial URL of the defaultService resource to which traffic is + # directed if none of the hostRules match. If defaultRouteAction is additionally + # specified, advanced routing actions like URL Rewrites, etc. take effect prior + # to sending the request to the backend. However, if defaultService is specified, + # defaultRouteAction cannot contain any weightedBackendServices. Conversely, if + # routeAction specifies any weightedBackendServices, service must not be + # specified. + # Only one of defaultService, defaultUrlRedirect or defaultRouteAction. + # weightedBackendService must be set. # Corresponds to the JSON property `defaultService` # @return [String] attr_accessor :default_service diff --git a/generated/google/apis/compute_alpha/representations.rb b/generated/google/apis/compute_alpha/representations.rb index 84979e286..63b5b3eb5 100644 --- a/generated/google/apis/compute_alpha/representations.rb +++ b/generated/google/apis/compute_alpha/representations.rb @@ -850,6 +850,36 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ExternalVpnGateway + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExternalVpnGatewayInterface + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExternalVpnGatewayList + 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 Firewall class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3094,30 +3124,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ResourcePolicyBackupSchedulePolicy - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ResourcePolicyBackupSchedulePolicyRetentionPolicy - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ResourcePolicyBackupSchedulePolicySchedule - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ResourcePolicyBackupSchedulePolicySnapshotProperties - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ResourcePolicyDailyCycle class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3148,6 +3154,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ResourcePolicySnapshotSchedulePolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicySnapshotSchedulePolicyRetentionPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicySnapshotSchedulePolicySchedule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicySnapshotSchedulePolicySnapshotProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ResourcePolicyVmMaintenancePolicy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -6120,6 +6150,64 @@ module Google end end + class ExternalVpnGateway + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :id, :numeric_string => true, as: 'id' + collection :interfaces, as: 'interfaces', class: Google::Apis::ComputeAlpha::ExternalVpnGatewayInterface, decorator: Google::Apis::ComputeAlpha::ExternalVpnGatewayInterface::Representation + + property :kind, as: 'kind' + property :label_fingerprint, :base64 => true, as: 'labelFingerprint' + hash :labels, as: 'labels' + property :name, as: 'name' + property :redundancy_type, as: 'redundancyType' + property :self_link, as: 'selfLink' + end + end + + class ExternalVpnGatewayInterface + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :ip_address, as: 'ipAddress' + end + end + + class ExternalVpnGatewayList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, as: 'etag' + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeAlpha::ExternalVpnGateway, decorator: Google::Apis::ComputeAlpha::ExternalVpnGateway::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::ExternalVpnGatewayList::Warning, decorator: Google::Apis::ComputeAlpha::ExternalVpnGatewayList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::ExternalVpnGatewayList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::ExternalVpnGatewayList::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 Firewall # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6458,6 +6546,7 @@ module Google property :name, as: 'name' property :region, as: 'region' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :ssl_health_check, as: 'sslHealthCheck', class: Google::Apis::ComputeAlpha::SslHealthCheck, decorator: Google::Apis::ComputeAlpha::SslHealthCheck::Representation property :tcp_health_check, as: 'tcpHealthCheck', class: Google::Apis::ComputeAlpha::TcpHealthCheck, decorator: Google::Apis::ComputeAlpha::TcpHealthCheck::Representation @@ -6679,6 +6768,7 @@ module Google property :port, as: 'port' property :request_path, as: 'requestPath' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :timeout_sec, as: 'timeoutSec' property :unhealthy_threshold, as: 'unhealthyThreshold' end @@ -6812,6 +6902,7 @@ module Google property :port, as: 'port' property :request_path, as: 'requestPath' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :timeout_sec, as: 'timeoutSec' property :unhealthy_threshold, as: 'unhealthyThreshold' end @@ -6976,6 +7067,8 @@ module Google property :shielded_vm_integrity_policy, as: 'shieldedVmIntegrityPolicy', class: Google::Apis::ComputeAlpha::ShieldedVmIntegrityPolicy, decorator: Google::Apis::ComputeAlpha::ShieldedVmIntegrityPolicy::Representation property :source_machine_image, as: 'sourceMachineImage' + property :source_machine_image_encryption_key, as: 'sourceMachineImageEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation + property :start_restricted, as: 'startRestricted' property :status, as: 'status' property :status_message, as: 'statusMessage' @@ -7607,6 +7700,8 @@ module Google property :description, as: 'description' collection :disks, as: 'disks', class: Google::Apis::ComputeAlpha::AttachedDisk, decorator: Google::Apis::ComputeAlpha::AttachedDisk::Representation + property :display_device, as: 'displayDevice', class: Google::Apis::ComputeAlpha::DisplayDevice, decorator: Google::Apis::ComputeAlpha::DisplayDevice::Representation + collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeAlpha::AcceleratorConfig, decorator: Google::Apis::ComputeAlpha::AcceleratorConfig::Representation hash :labels, as: 'labels' @@ -7645,6 +7740,7 @@ module Google property :properties, as: 'properties', class: Google::Apis::ComputeAlpha::InstanceProperties, decorator: Google::Apis::ComputeAlpha::InstanceProperties::Representation property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :source_instance, as: 'sourceInstance' property :source_instance_params, as: 'sourceInstanceParams', class: Google::Apis::ComputeAlpha::SourceInstanceParams, decorator: Google::Apis::ComputeAlpha::SourceInstanceParams::Representation @@ -7829,6 +7925,7 @@ module Google property :provisioned_link_count, as: 'provisionedLinkCount' property :requested_link_count, as: 'requestedLinkCount' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :state, as: 'state' end end @@ -7861,6 +7958,7 @@ module Google property :region, as: 'region' property :router, as: 'router' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :state, as: 'state' property :type, as: 'type' property :vlan_tag8021q, as: 'vlanTag8021q' @@ -8086,6 +8184,7 @@ module Google collection :region_infos, as: 'regionInfos', class: Google::Apis::ComputeAlpha::InterconnectLocationRegionInfo, decorator: Google::Apis::ComputeAlpha::InterconnectLocationRegionInfo::Representation property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :status, as: 'status' end end @@ -8250,6 +8349,7 @@ module Google property :resource_requirements, as: 'resourceRequirements', class: Google::Apis::ComputeAlpha::LicenseResourceRequirements, decorator: Google::Apis::ComputeAlpha::LicenseResourceRequirements::Representation property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :transferable, as: 'transferable' end end @@ -8360,8 +8460,11 @@ module Google property :description, as: 'description' property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' + property :machine_image_encryption_key, as: 'machineImageEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation + property :name, as: 'name' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :source_instance, as: 'sourceInstance' property :source_instance_properties, as: 'sourceInstanceProperties', class: Google::Apis::ComputeAlpha::SourceInstanceProperties, decorator: Google::Apis::ComputeAlpha::SourceInstanceProperties::Representation @@ -8419,6 +8522,7 @@ module Google property :memory_mb, as: 'memoryMb' property :name, as: 'name' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :zone, as: 'zone' end end @@ -8700,6 +8804,7 @@ module Google property :network, as: 'network' property :network_endpoint_type, as: 'networkEndpointType' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :size, as: 'size' property :subnetwork, as: 'subnetwork' property :type, as: 'type' @@ -8983,6 +9088,7 @@ module Google property :name, as: 'name' property :node_template, as: 'nodeTemplate' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :size, as: 'size' property :status, as: 'status' property :zone, as: 'zone' @@ -9176,6 +9282,7 @@ module Google property :region, as: 'region' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :server_binding, as: 'serverBinding', class: Google::Apis::ComputeAlpha::ServerBinding, decorator: Google::Apis::ComputeAlpha::ServerBinding::Representation property :status, as: 'status' @@ -9299,6 +9406,7 @@ module Google property :memory_mb, as: 'memoryMb' property :name, as: 'name' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :zone, as: 'zone' end end @@ -9414,6 +9522,7 @@ module Google property :progress, as: 'progress' property :region, as: 'region' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :start_time, as: 'startTime' property :status, as: 'status' property :status_message, as: 'statusMessage' @@ -9740,6 +9849,7 @@ module Google collection :quotas, as: 'quotas', class: Google::Apis::ComputeAlpha::Quota, decorator: Google::Apis::ComputeAlpha::Quota::Representation property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :status, as: 'status' collection :zones, as: 'zones' end @@ -10178,8 +10288,6 @@ module Google class ResourcePolicy # @private class Representation < Google::Apis::Core::JsonRepresentation - property :backup_schedule_policy, as: 'backupSchedulePolicy', class: Google::Apis::ComputeAlpha::ResourcePolicyBackupSchedulePolicy, decorator: Google::Apis::ComputeAlpha::ResourcePolicyBackupSchedulePolicy::Representation - property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' property :id, :numeric_string => true, as: 'id' @@ -10187,6 +10295,9 @@ module Google property :name, as: 'name' property :region, as: 'region' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' + property :snapshot_schedule_policy, as: 'snapshotSchedulePolicy', class: Google::Apis::ComputeAlpha::ResourcePolicySnapshotSchedulePolicy, decorator: Google::Apis::ComputeAlpha::ResourcePolicySnapshotSchedulePolicy::Representation + property :vm_maintenance_policy, as: 'vmMaintenancePolicy', class: Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicy, decorator: Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicy::Representation end @@ -10225,48 +10336,6 @@ module Google end end - class ResourcePolicyBackupSchedulePolicy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :retention_policy, as: 'retentionPolicy', class: Google::Apis::ComputeAlpha::ResourcePolicyBackupSchedulePolicyRetentionPolicy, decorator: Google::Apis::ComputeAlpha::ResourcePolicyBackupSchedulePolicyRetentionPolicy::Representation - - property :schedule, as: 'schedule', class: Google::Apis::ComputeAlpha::ResourcePolicyBackupSchedulePolicySchedule, decorator: Google::Apis::ComputeAlpha::ResourcePolicyBackupSchedulePolicySchedule::Representation - - property :snapshot_properties, as: 'snapshotProperties', class: Google::Apis::ComputeAlpha::ResourcePolicyBackupSchedulePolicySnapshotProperties, decorator: Google::Apis::ComputeAlpha::ResourcePolicyBackupSchedulePolicySnapshotProperties::Representation - - end - end - - class ResourcePolicyBackupSchedulePolicyRetentionPolicy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :max_retention_days, as: 'maxRetentionDays' - property :on_policy_switch, as: 'onPolicySwitch' - property :on_source_disk_delete, as: 'onSourceDiskDelete' - end - end - - class ResourcePolicyBackupSchedulePolicySchedule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :daily_schedule, as: 'dailySchedule', class: Google::Apis::ComputeAlpha::ResourcePolicyDailyCycle, decorator: Google::Apis::ComputeAlpha::ResourcePolicyDailyCycle::Representation - - property :hourly_schedule, as: 'hourlySchedule', class: Google::Apis::ComputeAlpha::ResourcePolicyHourlyCycle, decorator: Google::Apis::ComputeAlpha::ResourcePolicyHourlyCycle::Representation - - property :weekly_schedule, as: 'weeklySchedule', class: Google::Apis::ComputeAlpha::ResourcePolicyWeeklyCycle, decorator: Google::Apis::ComputeAlpha::ResourcePolicyWeeklyCycle::Representation - - end - end - - class ResourcePolicyBackupSchedulePolicySnapshotProperties - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :guest_flush, as: 'guestFlush' - hash :labels, as: 'labels' - collection :storage_locations, as: 'storageLocations' - end - end - class ResourcePolicyDailyCycle # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -10318,6 +10387,48 @@ module Google end end + class ResourcePolicySnapshotSchedulePolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :retention_policy, as: 'retentionPolicy', class: Google::Apis::ComputeAlpha::ResourcePolicySnapshotSchedulePolicyRetentionPolicy, decorator: Google::Apis::ComputeAlpha::ResourcePolicySnapshotSchedulePolicyRetentionPolicy::Representation + + property :schedule, as: 'schedule', class: Google::Apis::ComputeAlpha::ResourcePolicySnapshotSchedulePolicySchedule, decorator: Google::Apis::ComputeAlpha::ResourcePolicySnapshotSchedulePolicySchedule::Representation + + property :snapshot_properties, as: 'snapshotProperties', class: Google::Apis::ComputeAlpha::ResourcePolicySnapshotSchedulePolicySnapshotProperties, decorator: Google::Apis::ComputeAlpha::ResourcePolicySnapshotSchedulePolicySnapshotProperties::Representation + + end + end + + class ResourcePolicySnapshotSchedulePolicyRetentionPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_retention_days, as: 'maxRetentionDays' + property :on_policy_switch, as: 'onPolicySwitch' + property :on_source_disk_delete, as: 'onSourceDiskDelete' + end + end + + class ResourcePolicySnapshotSchedulePolicySchedule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :daily_schedule, as: 'dailySchedule', class: Google::Apis::ComputeAlpha::ResourcePolicyDailyCycle, decorator: Google::Apis::ComputeAlpha::ResourcePolicyDailyCycle::Representation + + property :hourly_schedule, as: 'hourlySchedule', class: Google::Apis::ComputeAlpha::ResourcePolicyHourlyCycle, decorator: Google::Apis::ComputeAlpha::ResourcePolicyHourlyCycle::Representation + + property :weekly_schedule, as: 'weeklySchedule', class: Google::Apis::ComputeAlpha::ResourcePolicyWeeklyCycle, decorator: Google::Apis::ComputeAlpha::ResourcePolicyWeeklyCycle::Representation + + end + end + + class ResourcePolicySnapshotSchedulePolicySnapshotProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :guest_flush, as: 'guestFlush' + hash :labels, as: 'labels' + collection :storage_locations, as: 'storageLocations' + end + end + class ResourcePolicyVmMaintenancePolicy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -10446,6 +10557,7 @@ module Google property :network, as: 'network' property :region, as: 'region' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' end end @@ -10582,6 +10694,7 @@ module Google class RouterNatLogConfig # @private class Representation < Google::Apis::Core::JsonRepresentation + property :enable, as: 'enable' property :enabled, as: 'enabled' property :filter, as: 'filter' end @@ -10791,6 +10904,7 @@ module Google collection :rules, as: 'rules', class: Google::Apis::ComputeAlpha::SecurityPolicyRule, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :type, as: 'type' end end @@ -11067,6 +11181,7 @@ module Google property :private_key, as: 'privateKey' property :region, as: 'region' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :self_managed, as: 'selfManaged', class: Google::Apis::ComputeAlpha::SslCertificateSelfManagedSslCertificate, decorator: Google::Apis::ComputeAlpha::SslCertificateSelfManagedSslCertificate::Representation collection :subject_alternative_names, as: 'subjectAlternativeNames' @@ -11236,6 +11351,7 @@ module Google property :name, as: 'name' property :profile, as: 'profile' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' collection :warnings, as: 'warnings', class: Google::Apis::ComputeAlpha::SslPolicy::Warning, decorator: Google::Apis::ComputeAlpha::SslPolicy::Warning::Representation end @@ -11328,12 +11444,14 @@ module Google property :name, as: 'name' property :network, as: 'network' property :private_ip_google_access, as: 'privateIpGoogleAccess' + property :private_ipv6_google_access, as: 'privateIpv6GoogleAccess' 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' + property :self_link_with_id, as: 'selfLinkWithId' property :state, as: 'state' end end @@ -11520,6 +11638,7 @@ module Google property :name, as: 'name' property :region, as: 'region' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :url_map, as: 'urlMap' end end @@ -11641,6 +11760,7 @@ module Google property :quic_override, as: 'quicOverride' property :region, as: 'region' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' collection :ssl_certificates, as: 'sslCertificates' property :ssl_policy, as: 'sslPolicy' property :url_map, as: 'urlMap' @@ -11722,6 +11842,7 @@ module Google property :name, as: 'name' property :nat_policy, as: 'natPolicy' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :zone, as: 'zone' end end @@ -11832,6 +11953,7 @@ module Google property :name, as: 'name' property :region, as: 'region' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :session_affinity, as: 'sessionAffinity' end end diff --git a/generated/google/apis/compute_alpha/service.rb b/generated/google/apis/compute_alpha/service.rb index 300f6f89c..672257ff7 100644 --- a/generated/google/apis/compute_alpha/service.rb +++ b/generated/google/apis/compute_alpha/service.rb @@ -3560,6 +3560,290 @@ module Google execute_or_queue_command(command, &block) end + # Deletes the specified externalVpnGateway. + # @param [String] project + # Project ID for this request. + # @param [String] external_vpn_gateway + # Name of the externalVpnGateways 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 + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @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_external_vpn_gateway(project, external_vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/global/externalVpnGateways/{externalVpnGateway}', 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['externalVpnGateway'] = external_vpn_gateway unless external_vpn_gateway.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 externalVpnGateway. Get a list of available + # externalVpnGateways by making a list() request. + # @param [String] project + # Project ID for this request. + # @param [String] external_vpn_gateway + # Name of the externalVpnGateway to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::ExternalVpnGateway] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::ExternalVpnGateway] + # + # @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_external_vpn_gateway(project, external_vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/externalVpnGateways/{externalVpnGateway}', options) + command.response_representation = Google::Apis::ComputeAlpha::ExternalVpnGateway::Representation + command.response_class = Google::Apis::ComputeAlpha::ExternalVpnGateway + command.params['project'] = project unless project.nil? + command.params['externalVpnGateway'] = external_vpn_gateway unless external_vpn_gateway.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 ExternalVpnGateway in the specified project using the data included + # in the request. + # @param [String] project + # Project ID for this request. + # @param [Google::Apis::ComputeAlpha::ExternalVpnGateway] external_vpn_gateway_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 + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @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_external_vpn_gateway(project, external_vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/externalVpnGateways', options) + command.request_representation = Google::Apis::ComputeAlpha::ExternalVpnGateway::Representation + command.request_object = external_vpn_gateway_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::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 ExternalVpnGateway available to 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 + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::ExternalVpnGatewayList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::ExternalVpnGatewayList] + # + # @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_external_vpn_gateways(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/externalVpnGateways', options) + command.response_representation = Google::Apis::ComputeAlpha::ExternalVpnGatewayList::Representation + command.response_class = Google::Apis::ComputeAlpha::ExternalVpnGatewayList + 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 + + # Sets the labels on an ExternalVpnGateway. To learn more about labels, read the + # Labeling Resources documentation. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeAlpha::GlobalSetLabelsRequest] global_set_labels_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @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_external_vpn_gateway_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/externalVpnGateways/{resource}/setLabels', options) + command.request_representation = Google::Apis::ComputeAlpha::GlobalSetLabelsRequest::Representation + command.request_object = global_set_labels_request_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['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name or id 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 + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @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_external_vpn_gateway_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/externalVpnGateways/{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 + # Deletes the specified firewall. # @param [String] project # Project ID for this request. @@ -10222,8 +10506,8 @@ module Google execute_or_queue_command(command, &block) end - # Performs a reset on the instance. For more information, see Resetting an - # instance. + # Performs a reset on the instance. This is a hard reset; the VM does not do a + # graceful shutdown. For more information, see Resetting an instance. # @param [String] project # Project ID for this request. # @param [String] zone diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index bc4c0218e..40d686f59 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 = '20181217' + REVISION = '20190107' # 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 9bea7f946..7d9dea76d 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -10697,6 +10697,11 @@ module Google # @return [Array] attr_accessor :disks + # A set of Display Device options + # Corresponds to the JSON property `displayDevice` + # @return [Google::Apis::ComputeBeta::DisplayDevice] + attr_accessor :display_device + # A list of guest accelerator cards' type and count to use for instances created # from the instance template. # Corresponds to the JSON property `guestAccelerators` @@ -10764,6 +10769,7 @@ module Google @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward) @description = args[:description] if args.key?(:description) @disks = args[:disks] if args.key?(:disks) + @display_device = args[:display_device] if args.key?(:display_device) @guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators) @labels = args[:labels] if args.key?(:labels) @machine_type = args[:machine_type] if args.key?(:machine_type) @@ -17251,12 +17257,14 @@ module Google # - https://www.googleapis.com/compute/v1/projects/project/global/ # backendServices/backendService # - compute/v1/projects/project/global/backendServices/backendService - # - global/backendServices/backendService - # Use defaultService instead of defaultRouteAction when simple routing to a - # backend service is desired and other advanced capabilities like traffic - # splitting and URL rewrites are not required. - # Only one of defaultService, defaultRouteAction or defaultUrlRedirect must be - # set. + # - global/backendServices/backendService If defaultRouteAction is additionally + # specified, advanced routing actions like URL Rewrites, etc. take effect prior + # to sending the request to the backend. However, if defaultService is specified, + # defaultRouteAction cannot contain any weightedBackendServices. Conversely, if + # defaultRouteAction specifies any weightedBackendServices, defaultService must + # not be specified. + # Only one of defaultService, defaultUrlRedirect or defaultRouteAction. + # weightedBackendService must be set. # Authorization requires one or more of the following Google IAM permissions on # the specified resource default_service: # - compute.backendBuckets.use @@ -17313,11 +17321,14 @@ module Google # @return [Array] attr_accessor :paths - # The URL of the backend service resource if this rule is matched. - # Use service instead of routeAction when simple routing to a backend service is - # desired and other advanced capabilities like traffic splitting and rewrites - # are not required. - # Only one of service, routeAction or urlRedirect should must be set. + # The full or partial URL of the backend service resource to which traffic is + # directed if this rule is matched. If routeAction is additionally specified, + # advanced routing actions like URL Rewrites, etc. take effect prior to sending + # the request to the backend. However, if service is specified, routeAction + # cannot contain any weightedBackendService s. Conversely, if routeAction + # specifies any weightedBackendServices, service must not be specified. + # Only one of urlRedirect, service or routeAction.weightedBackendService must be + # set. # Corresponds to the JSON property `service` # @return [String] attr_accessor :service @@ -19005,13 +19016,6 @@ module Google class ResourcePolicy include Google::Apis::Core::Hashable - # A backup schedule policy specifies when and how frequently snapshots are to be - # created for the target disk. Also specifies how many and how long these - # scheduled snapshots should be retained. - # Corresponds to the JSON property `backupSchedulePolicy` - # @return [Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicy] - attr_accessor :backup_schedule_policy - # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] @@ -19055,13 +19059,19 @@ module Google # @return [String] attr_accessor :self_link + # A snapshot schedule policy specifies when and how frequently snapshots are to + # be created for the target disk. Also specifies how many and how long these + # scheduled snapshots should be retained. + # Corresponds to the JSON property `snapshotSchedulePolicy` + # @return [Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicy] + attr_accessor :snapshot_schedule_policy + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @backup_schedule_policy = args[:backup_schedule_policy] if args.key?(:backup_schedule_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) @@ -19069,6 +19079,7 @@ module Google @name = args[:name] if args.key?(:name) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) + @snapshot_schedule_policy = args[:snapshot_schedule_policy] if args.key?(:snapshot_schedule_policy) end end @@ -19195,129 +19206,6 @@ module Google end end - # A backup schedule policy specifies when and how frequently snapshots are to be - # created for the target disk. Also specifies how many and how long these - # scheduled snapshots should be retained. - class ResourcePolicyBackupSchedulePolicy - include Google::Apis::Core::Hashable - - # Policy for retention of scheduled snapshots. - # Corresponds to the JSON property `retentionPolicy` - # @return [Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicyRetentionPolicy] - attr_accessor :retention_policy - - # A schedule for disks where the schedueled operations are performed. - # Corresponds to the JSON property `schedule` - # @return [Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySchedule] - attr_accessor :schedule - - # Specified snapshot properties for scheduled snapshots created by this policy. - # Corresponds to the JSON property `snapshotProperties` - # @return [Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySnapshotProperties] - attr_accessor :snapshot_properties - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @retention_policy = args[:retention_policy] if args.key?(:retention_policy) - @schedule = args[:schedule] if args.key?(:schedule) - @snapshot_properties = args[:snapshot_properties] if args.key?(:snapshot_properties) - end - end - - # Policy for retention of scheduled snapshots. - class ResourcePolicyBackupSchedulePolicyRetentionPolicy - include Google::Apis::Core::Hashable - - # Maximum age of the snapshot that is allowed to be kept. - # Corresponds to the JSON property `maxRetentionDays` - # @return [Fixnum] - attr_accessor :max_retention_days - - # Specifies the behavior to apply to scheduled snapshots when the source disk is - # deleted. - # Corresponds to the JSON property `onSourceDiskDelete` - # @return [String] - attr_accessor :on_source_disk_delete - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @max_retention_days = args[:max_retention_days] if args.key?(:max_retention_days) - @on_source_disk_delete = args[:on_source_disk_delete] if args.key?(:on_source_disk_delete) - end - end - - # A schedule for disks where the schedueled operations are performed. - class ResourcePolicyBackupSchedulePolicySchedule - include Google::Apis::Core::Hashable - - # Time window specified for daily operations. - # Corresponds to the JSON property `dailySchedule` - # @return [Google::Apis::ComputeBeta::ResourcePolicyDailyCycle] - attr_accessor :daily_schedule - - # Time window specified for hourly operations. - # Corresponds to the JSON property `hourlySchedule` - # @return [Google::Apis::ComputeBeta::ResourcePolicyHourlyCycle] - attr_accessor :hourly_schedule - - # Time window specified for weekly operations. - # Corresponds to the JSON property `weeklySchedule` - # @return [Google::Apis::ComputeBeta::ResourcePolicyWeeklyCycle] - attr_accessor :weekly_schedule - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @daily_schedule = args[:daily_schedule] if args.key?(:daily_schedule) - @hourly_schedule = args[:hourly_schedule] if args.key?(:hourly_schedule) - @weekly_schedule = args[:weekly_schedule] if args.key?(:weekly_schedule) - end - end - - # Specified snapshot properties for scheduled snapshots created by this policy. - class ResourcePolicyBackupSchedulePolicySnapshotProperties - include Google::Apis::Core::Hashable - - # Indication to perform a ?guest aware? snapshot. - # Corresponds to the JSON property `guestFlush` - # @return [Boolean] - attr_accessor :guest_flush - alias_method :guest_flush?, :guest_flush - - # Labels to apply to scheduled snapshots. These can be later modified by the - # setLabels method. Label values may be empty. - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # GCS bucket storage location of the auto snapshot (regional or multi-regional). - # Corresponds to the JSON property `storageLocations` - # @return [Array] - attr_accessor :storage_locations - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @guest_flush = args[:guest_flush] if args.key?(:guest_flush) - @labels = args[:labels] if args.key?(:labels) - @storage_locations = args[:storage_locations] if args.key?(:storage_locations) - end - end - # Time window specified for daily operations. class ResourcePolicyDailyCycle include Google::Apis::Core::Hashable @@ -19509,6 +19397,129 @@ module Google end end + # A snapshot schedule policy specifies when and how frequently snapshots are to + # be created for the target disk. Also specifies how many and how long these + # scheduled snapshots should be retained. + class ResourcePolicySnapshotSchedulePolicy + include Google::Apis::Core::Hashable + + # Policy for retention of scheduled snapshots. + # Corresponds to the JSON property `retentionPolicy` + # @return [Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicyRetentionPolicy] + attr_accessor :retention_policy + + # A schedule for disks where the schedueled operations are performed. + # Corresponds to the JSON property `schedule` + # @return [Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicySchedule] + attr_accessor :schedule + + # Specified snapshot properties for scheduled snapshots created by this policy. + # Corresponds to the JSON property `snapshotProperties` + # @return [Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicySnapshotProperties] + attr_accessor :snapshot_properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @retention_policy = args[:retention_policy] if args.key?(:retention_policy) + @schedule = args[:schedule] if args.key?(:schedule) + @snapshot_properties = args[:snapshot_properties] if args.key?(:snapshot_properties) + end + end + + # Policy for retention of scheduled snapshots. + class ResourcePolicySnapshotSchedulePolicyRetentionPolicy + include Google::Apis::Core::Hashable + + # Maximum age of the snapshot that is allowed to be kept. + # Corresponds to the JSON property `maxRetentionDays` + # @return [Fixnum] + attr_accessor :max_retention_days + + # Specifies the behavior to apply to scheduled snapshots when the source disk is + # deleted. + # Corresponds to the JSON property `onSourceDiskDelete` + # @return [String] + attr_accessor :on_source_disk_delete + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_retention_days = args[:max_retention_days] if args.key?(:max_retention_days) + @on_source_disk_delete = args[:on_source_disk_delete] if args.key?(:on_source_disk_delete) + end + end + + # A schedule for disks where the schedueled operations are performed. + class ResourcePolicySnapshotSchedulePolicySchedule + include Google::Apis::Core::Hashable + + # Time window specified for daily operations. + # Corresponds to the JSON property `dailySchedule` + # @return [Google::Apis::ComputeBeta::ResourcePolicyDailyCycle] + attr_accessor :daily_schedule + + # Time window specified for hourly operations. + # Corresponds to the JSON property `hourlySchedule` + # @return [Google::Apis::ComputeBeta::ResourcePolicyHourlyCycle] + attr_accessor :hourly_schedule + + # Time window specified for weekly operations. + # Corresponds to the JSON property `weeklySchedule` + # @return [Google::Apis::ComputeBeta::ResourcePolicyWeeklyCycle] + attr_accessor :weekly_schedule + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @daily_schedule = args[:daily_schedule] if args.key?(:daily_schedule) + @hourly_schedule = args[:hourly_schedule] if args.key?(:hourly_schedule) + @weekly_schedule = args[:weekly_schedule] if args.key?(:weekly_schedule) + end + end + + # Specified snapshot properties for scheduled snapshots created by this policy. + class ResourcePolicySnapshotSchedulePolicySnapshotProperties + include Google::Apis::Core::Hashable + + # Indication to perform a ?guest aware? snapshot. + # Corresponds to the JSON property `guestFlush` + # @return [Boolean] + attr_accessor :guest_flush + alias_method :guest_flush?, :guest_flush + + # Labels to apply to scheduled snapshots. These can be later modified by the + # setLabels method. Label values may be empty. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # GCS bucket storage location of the auto snapshot (regional or multi-regional). + # Corresponds to the JSON property `storageLocations` + # @return [Array] + attr_accessor :storage_locations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @guest_flush = args[:guest_flush] if args.key?(:guest_flush) + @labels = args[:labels] if args.key?(:labels) + @storage_locations = args[:storage_locations] if args.key?(:storage_locations) + end + end + # Time window specified for weekly operations. class ResourcePolicyWeeklyCycle include Google::Apis::Core::Hashable @@ -20461,6 +20472,11 @@ module Google # @return [Fixnum] attr_accessor :icmp_idle_timeout_sec + # Configuration of logging on a NAT. + # Corresponds to the JSON property `logConfig` + # @return [Google::Apis::ComputeBeta::RouterNatLogConfig] + attr_accessor :log_config + # Minimum number of ports allocated to a VM from this NAT config. If not set, a # default number of ports is allocated to a VM. This gets rounded up to the # nearest power of 2. Eg. if the value of this field is 50, at least 64 ports @@ -20526,6 +20542,7 @@ module Google # Update properties of this object def update!(**args) @icmp_idle_timeout_sec = args[:icmp_idle_timeout_sec] if args.key?(:icmp_idle_timeout_sec) + @log_config = args[:log_config] if args.key?(:log_config) @min_ports_per_vm = args[:min_ports_per_vm] if args.key?(:min_ports_per_vm) @name = args[:name] if args.key?(:name) @nat_ip_allocate_option = args[:nat_ip_allocate_option] if args.key?(:nat_ip_allocate_option) @@ -20538,6 +20555,33 @@ module Google end end + # Configuration of logging on a NAT. + class RouterNatLogConfig + include Google::Apis::Core::Hashable + + # Indicates whether or not to export logs. This is false by default. + # Corresponds to the JSON property `enable` + # @return [Boolean] + attr_accessor :enable + alias_method :enable?, :enable + + # Specifies the desired filtering of logs on this NAT. If unspecified, logs are + # exported for all connections handled by this NAT. + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enable = args[:enable] if args.key?(:enable) + @filter = args[:filter] if args.key?(:filter) + end + end + # Defines the IP ranges that want to use NAT for a subnetwork. class RouterNatSubnetworkToNat include Google::Apis::Core::Hashable @@ -25714,12 +25758,15 @@ module Google # @return [String] attr_accessor :creation_timestamp - # The URL of the backendService resource if none of the hostRules match. - # Use defaultService instead of defaultRouteAction when simple routing to a - # backendService is desired and other advanced capabilities like traffic - # splitting and rewrites are not required. - # Only one of defaultService, defaultRouteAction or defaultUrlRedirect should - # must be set. + # The full or partial URL of the defaultService resource to which traffic is + # directed if none of the hostRules match. If defaultRouteAction is additionally + # specified, advanced routing actions like URL Rewrites, etc. take effect prior + # to sending the request to the backend. However, if defaultService is specified, + # defaultRouteAction cannot contain any weightedBackendServices. Conversely, if + # routeAction specifies any weightedBackendServices, service must not be + # specified. + # Only one of defaultService, defaultUrlRedirect or defaultRouteAction. + # weightedBackendService must be set. # Corresponds to the JSON property `defaultService` # @return [String] attr_accessor :default_service diff --git a/generated/google/apis/compute_beta/representations.rb b/generated/google/apis/compute_beta/representations.rb index 3f0bdbba1..2cbc35dca 100644 --- a/generated/google/apis/compute_beta/representations.rb +++ b/generated/google/apis/compute_beta/representations.rb @@ -2656,30 +2656,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ResourcePolicyBackupSchedulePolicy - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ResourcePolicyBackupSchedulePolicyRetentionPolicy - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ResourcePolicyBackupSchedulePolicySchedule - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ResourcePolicyBackupSchedulePolicySnapshotProperties - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ResourcePolicyDailyCycle class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2710,6 +2686,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ResourcePolicySnapshotSchedulePolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicySnapshotSchedulePolicyRetentionPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicySnapshotSchedulePolicySchedule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicySnapshotSchedulePolicySnapshotProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ResourcePolicyWeeklyCycle class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2830,6 +2830,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RouterNatLogConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RouterNatSubnetworkToNat class Representation < Google::Apis::Core::JsonRepresentation; end @@ -6430,6 +6436,8 @@ module Google property :description, as: 'description' collection :disks, as: 'disks', class: Google::Apis::ComputeBeta::AttachedDisk, decorator: Google::Apis::ComputeBeta::AttachedDisk::Representation + property :display_device, as: 'displayDevice', class: Google::Apis::ComputeBeta::DisplayDevice, decorator: Google::Apis::ComputeBeta::DisplayDevice::Representation + collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeBeta::AcceleratorConfig, decorator: Google::Apis::ComputeBeta::AcceleratorConfig::Representation hash :labels, as: 'labels' @@ -8613,8 +8621,6 @@ module Google class ResourcePolicy # @private class Representation < Google::Apis::Core::JsonRepresentation - property :backup_schedule_policy, as: 'backupSchedulePolicy', class: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicy, decorator: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicy::Representation - property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' property :id, :numeric_string => true, as: 'id' @@ -8622,6 +8628,8 @@ module Google property :name, as: 'name' property :region, as: 'region' property :self_link, as: 'selfLink' + property :snapshot_schedule_policy, as: 'snapshotSchedulePolicy', class: Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicy, decorator: Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicy::Representation + end end @@ -8658,47 +8666,6 @@ module Google end end - class ResourcePolicyBackupSchedulePolicy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :retention_policy, as: 'retentionPolicy', class: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicyRetentionPolicy, decorator: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicyRetentionPolicy::Representation - - property :schedule, as: 'schedule', class: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySchedule, decorator: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySchedule::Representation - - property :snapshot_properties, as: 'snapshotProperties', class: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySnapshotProperties, decorator: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySnapshotProperties::Representation - - end - end - - class ResourcePolicyBackupSchedulePolicyRetentionPolicy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :max_retention_days, as: 'maxRetentionDays' - property :on_source_disk_delete, as: 'onSourceDiskDelete' - end - end - - class ResourcePolicyBackupSchedulePolicySchedule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :daily_schedule, as: 'dailySchedule', class: Google::Apis::ComputeBeta::ResourcePolicyDailyCycle, decorator: Google::Apis::ComputeBeta::ResourcePolicyDailyCycle::Representation - - property :hourly_schedule, as: 'hourlySchedule', class: Google::Apis::ComputeBeta::ResourcePolicyHourlyCycle, decorator: Google::Apis::ComputeBeta::ResourcePolicyHourlyCycle::Representation - - property :weekly_schedule, as: 'weeklySchedule', class: Google::Apis::ComputeBeta::ResourcePolicyWeeklyCycle, decorator: Google::Apis::ComputeBeta::ResourcePolicyWeeklyCycle::Representation - - end - end - - class ResourcePolicyBackupSchedulePolicySnapshotProperties - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :guest_flush, as: 'guestFlush' - hash :labels, as: 'labels' - collection :storage_locations, as: 'storageLocations' - end - end - class ResourcePolicyDailyCycle # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8750,6 +8717,47 @@ module Google end end + class ResourcePolicySnapshotSchedulePolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :retention_policy, as: 'retentionPolicy', class: Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicyRetentionPolicy, decorator: Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicyRetentionPolicy::Representation + + property :schedule, as: 'schedule', class: Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicySchedule, decorator: Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicySchedule::Representation + + property :snapshot_properties, as: 'snapshotProperties', class: Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicySnapshotProperties, decorator: Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicySnapshotProperties::Representation + + end + end + + class ResourcePolicySnapshotSchedulePolicyRetentionPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_retention_days, as: 'maxRetentionDays' + property :on_source_disk_delete, as: 'onSourceDiskDelete' + end + end + + class ResourcePolicySnapshotSchedulePolicySchedule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :daily_schedule, as: 'dailySchedule', class: Google::Apis::ComputeBeta::ResourcePolicyDailyCycle, decorator: Google::Apis::ComputeBeta::ResourcePolicyDailyCycle::Representation + + property :hourly_schedule, as: 'hourlySchedule', class: Google::Apis::ComputeBeta::ResourcePolicyHourlyCycle, decorator: Google::Apis::ComputeBeta::ResourcePolicyHourlyCycle::Representation + + property :weekly_schedule, as: 'weeklySchedule', class: Google::Apis::ComputeBeta::ResourcePolicyWeeklyCycle, decorator: Google::Apis::ComputeBeta::ResourcePolicyWeeklyCycle::Representation + + end + end + + class ResourcePolicySnapshotSchedulePolicySnapshotProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :guest_flush, as: 'guestFlush' + hash :labels, as: 'labels' + collection :storage_locations, as: 'storageLocations' + end + end + class ResourcePolicyWeeklyCycle # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8979,6 +8987,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :icmp_idle_timeout_sec, as: 'icmpIdleTimeoutSec' + property :log_config, as: 'logConfig', class: Google::Apis::ComputeBeta::RouterNatLogConfig, decorator: Google::Apis::ComputeBeta::RouterNatLogConfig::Representation + property :min_ports_per_vm, as: 'minPortsPerVm' property :name, as: 'name' property :nat_ip_allocate_option, as: 'natIpAllocateOption' @@ -8992,6 +9002,14 @@ module Google end end + class RouterNatLogConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enable, as: 'enable' + property :filter, as: 'filter' + end + end + class RouterNatSubnetworkToNat # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/compute_beta/service.rb b/generated/google/apis/compute_beta/service.rb index 24d5a83eb..90e5b20f8 100644 --- a/generated/google/apis/compute_beta/service.rb +++ b/generated/google/apis/compute_beta/service.rb @@ -9242,8 +9242,8 @@ module Google execute_or_queue_command(command, &block) end - # Performs a reset on the instance. For more information, see Resetting an - # instance. + # Performs a reset on the instance. This is a hard reset; the VM does not do a + # graceful shutdown. For more information, see Resetting an instance. # @param [String] project # Project ID for this request. # @param [String] zone @@ -16315,6 +16315,46 @@ module Google execute_or_queue_command(command, &block) end + # Gets the access control policy for a resource. May be empty if no such policy + # or resource exists. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_region_disk_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/disks/{resource}/getIamPolicy', options) + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + 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 + # Creates a persistent regional disk in the specified project using the data # included in the request. # @param [String] project @@ -16552,6 +16592,49 @@ module Google execute_or_queue_command(command, &block) end + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_region_disk_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/disks/{resource}/setIamPolicy', options) + command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation + command.request_object = region_set_policy_request_object + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + 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 + # Sets the labels on the target regional disk. # @param [String] project # Project ID for this request. diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index 8d8bc02f0..f3a5fefc6 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 = '20181217' + REVISION = '20190107' # 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 2a25f9374..10cb386ff 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -5194,6 +5194,45 @@ module Google end end + # Encapsulates numeric value that can be either absolute or relative. + class FixedOrPercent + include Google::Apis::Core::Hashable + + # [Output Only] Absolute value of VM instances calculated based on the specific + # mode. + # + # - If the value is fixed, then the caculated value is equal to the fixed value. + # - If the value is a percent, then the calculated value is percent/100 * + # targetSize. For example, the calculated value of a 80% of a managed instance + # group with 150 instances would be (80/100 * 150) = 120 VM instances. If there + # is a remainder, the number is rounded up. + # Corresponds to the JSON property `calculated` + # @return [Fixnum] + attr_accessor :calculated + + # Specifies a fixed number of VM instances. This must be a positive integer. + # Corresponds to the JSON property `fixed` + # @return [Fixnum] + attr_accessor :fixed + + # Specifies a percentage of instances between 0 to 100%, inclusive. For example, + # specify 80 for 80%. + # Corresponds to the JSON property `percent` + # @return [Fixnum] + attr_accessor :percent + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @calculated = args[:calculated] if args.key?(:calculated) + @fixed = args[:fixed] if args.key?(:fixed) + @percent = args[:percent] if args.key?(:percent) + end + end + # A ForwardingRule resource. A ForwardingRule resource specifies which pool of # target virtual machines to forward a packet to if it matches the given [ # IPAddress, IPProtocol, ports] tuple. (== resource_for beta.forwardingRules ==) @@ -5358,6 +5397,25 @@ module Google # @return [String] attr_accessor :self_link + # An optional prefix to the service name for this Forwarding Rule. If specified, + # will be the first label of the fully qualified service name. + # The label must be 1-63 characters long, and comply with RFC1035. Specifically, + # the label must be 1-63 characters long and match the regular expression `[a-z]( + # [-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase + # letter, and all following characters must be a dash, lowercase letter, or + # digit, except the last character, which cannot be a dash. + # This field is only used for internal load balancing. + # Corresponds to the JSON property `serviceLabel` + # @return [String] + attr_accessor :service_label + + # [Output Only] The internal fully qualified service name for this Forwarding + # Rule. + # This field is only used for internal load balancing. + # Corresponds to the JSON property `serviceName` + # @return [String] + attr_accessor :service_name + # This field is only used for INTERNAL load balancing. # For internal load balancing, this field identifies the subnetwork that the # load balanced IP should belong to for this Forwarding Rule. @@ -5400,6 +5458,8 @@ module Google @ports = args[:ports] if args.key?(:ports) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) + @service_label = args[:service_label] if args.key?(:service_label) + @service_name = args[:service_name] if args.key?(:service_name) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) @target = args[:target] if args.key?(:target) end @@ -7883,6 +7943,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] The status of this managed instance group. + # Corresponds to the JSON property `status` + # @return [Google::Apis::ComputeV1::InstanceGroupManagerStatus] + attr_accessor :status + # The URLs for all TargetPool resources to which instances in the instanceGroup # field are added. The target pools automatically apply to all of the instances # in the managed instance group. @@ -7897,6 +7962,23 @@ module Google # @return [Fixnum] attr_accessor :target_size + # The update policy for this managed instance group. + # Corresponds to the JSON property `updatePolicy` + # @return [Google::Apis::ComputeV1::InstanceGroupManagerUpdatePolicy] + attr_accessor :update_policy + + # Specifies the instance templates used by this managed instance group to create + # instances. + # Each version is defined by an instanceTemplate. Every template can appear at + # most once per instance group. This field overrides the top-level + # instanceTemplate field. Read more about the relationships between these fields. + # Exactly one version must leave the targetSize field unset. That version will + # be applied to all remaining instances. For more information, read about canary + # updates. + # Corresponds to the JSON property `versions` + # @return [Array] + attr_accessor :versions + # [Output Only] The URL of the zone where the managed instance group is located ( # for zonal resources). # Corresponds to the JSON property `zone` @@ -7924,8 +8006,11 @@ module Google @named_ports = args[:named_ports] if args.key?(:named_ports) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) + @status = args[:status] if args.key?(:status) @target_pools = args[:target_pools] if args.key?(:target_pools) @target_size = args[:target_size] if args.key?(:target_size) + @update_policy = args[:update_policy] if args.key?(:update_policy) + @versions = args[:versions] if args.key?(:versions) @zone = args[:zone] if args.key?(:zone) end end @@ -8284,6 +8369,105 @@ module Google end end + # + class InstanceGroupManagerStatus + include Google::Apis::Core::Hashable + + # [Output Only] A bit indicating whether the managed instance group is in a + # stable state. A stable state means that: none of the instances in the managed + # instance group is currently undergoing any type of change (for example, + # creation, restart, or deletion); no future changes are scheduled for instances + # in the managed instance group; and the managed instance group itself is not + # being modified. + # Corresponds to the JSON property `isStable` + # @return [Boolean] + attr_accessor :is_stable + alias_method :is_stable?, :is_stable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @is_stable = args[:is_stable] if args.key?(:is_stable) + end + end + + # + class InstanceGroupManagerUpdatePolicy + include Google::Apis::Core::Hashable + + # Encapsulates numeric value that can be either absolute or relative. + # Corresponds to the JSON property `maxSurge` + # @return [Google::Apis::ComputeV1::FixedOrPercent] + attr_accessor :max_surge + + # Encapsulates numeric value that can be either absolute or relative. + # Corresponds to the JSON property `maxUnavailable` + # @return [Google::Apis::ComputeV1::FixedOrPercent] + attr_accessor :max_unavailable + + # Minimal action to be taken on an instance. You can specify either RESTART to + # restart existing instances or REPLACE to delete and create new instances from + # the target template. If you specify a RESTART, the Updater will attempt to + # perform that action only. However, if the Updater determines that the minimal + # action you specify is not enough to perform the update, it might perform a + # more disruptive action. + # Corresponds to the JSON property `minimalAction` + # @return [String] + attr_accessor :minimal_action + + # + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_surge = args[:max_surge] if args.key?(:max_surge) + @max_unavailable = args[:max_unavailable] if args.key?(:max_unavailable) + @minimal_action = args[:minimal_action] if args.key?(:minimal_action) + @type = args[:type] if args.key?(:type) + end + end + + # + class InstanceGroupManagerVersion + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `instanceTemplate` + # @return [String] + attr_accessor :instance_template + + # Name of the version. Unique among all versions in the scope of this managed + # instance group. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Encapsulates numeric value that can be either absolute or relative. + # Corresponds to the JSON property `targetSize` + # @return [Google::Apis::ComputeV1::FixedOrPercent] + attr_accessor :target_size + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instance_template = args[:instance_template] if args.key?(:instance_template) + @name = args[:name] if args.key?(:name) + @target_size = args[:target_size] if args.key?(:target_size) + end + end + # class InstanceGroupManagersAbandonInstancesRequest include Google::Apis::Core::Hashable @@ -14818,12 +15002,14 @@ module Google # - https://www.googleapis.com/compute/v1/projects/project/global/ # backendServices/backendService # - compute/v1/projects/project/global/backendServices/backendService - # - global/backendServices/backendService - # Use defaultService instead of defaultRouteAction when simple routing to a - # backend service is desired and other advanced capabilities like traffic - # splitting and URL rewrites are not required. - # Only one of defaultService, defaultRouteAction or defaultUrlRedirect must be - # set. + # - global/backendServices/backendService If defaultRouteAction is additionally + # specified, advanced routing actions like URL Rewrites, etc. take effect prior + # to sending the request to the backend. However, if defaultService is specified, + # defaultRouteAction cannot contain any weightedBackendServices. Conversely, if + # defaultRouteAction specifies any weightedBackendServices, defaultService must + # not be specified. + # Only one of defaultService, defaultUrlRedirect or defaultRouteAction. + # weightedBackendService must be set. # Authorization requires one or more of the following Google IAM permissions on # the specified resource default_service: # - compute.backendBuckets.use @@ -14880,11 +15066,14 @@ module Google # @return [Array] attr_accessor :paths - # The URL of the backend service resource if this rule is matched. - # Use service instead of routeAction when simple routing to a backend service is - # desired and other advanced capabilities like traffic splitting and rewrites - # are not required. - # Only one of service, routeAction or urlRedirect should must be set. + # The full or partial URL of the backend service resource to which traffic is + # directed if this rule is matched. If routeAction is additionally specified, + # advanced routing actions like URL Rewrites, etc. take effect prior to sending + # the request to the backend. However, if service is specified, routeAction + # cannot contain any weightedBackendService s. Conversely, if routeAction + # specifies any weightedBackendServices, service must not be specified. + # Only one of urlRedirect, service or routeAction.weightedBackendService must be + # set. # Corresponds to the JSON property `service` # @return [String] attr_accessor :service @@ -22164,12 +22353,15 @@ module Google # @return [String] attr_accessor :creation_timestamp - # The URL of the backendService resource if none of the hostRules match. - # Use defaultService instead of defaultRouteAction when simple routing to a - # backendService is desired and other advanced capabilities like traffic - # splitting and rewrites are not required. - # Only one of defaultService, defaultRouteAction or defaultUrlRedirect should - # must be set. + # The full or partial URL of the defaultService resource to which traffic is + # directed if none of the hostRules match. If defaultRouteAction is additionally + # specified, advanced routing actions like URL Rewrites, etc. take effect prior + # to sending the request to the backend. However, if defaultService is specified, + # defaultRouteAction cannot contain any weightedBackendServices. Conversely, if + # routeAction specifies any weightedBackendServices, service must not be + # specified. + # Only one of defaultService, defaultUrlRedirect or defaultRouteAction. + # weightedBackendService must be set. # Corresponds to the JSON property `defaultService` # @return [String] attr_accessor :default_service diff --git a/generated/google/apis/compute_v1/representations.rb b/generated/google/apis/compute_v1/representations.rb index b7722d4cf..438be4826 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -700,6 +700,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class FixedOrPercent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ForwardingRule class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1030,6 +1036,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstanceGroupManagerStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstanceGroupManagerUpdatePolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstanceGroupManagerVersion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstanceGroupManagersAbandonInstancesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4568,6 +4592,15 @@ module Google end end + class FixedOrPercent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :calculated, as: 'calculated' + property :fixed, as: 'fixed' + property :percent, as: 'percent' + end + end + class ForwardingRule # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4587,6 +4620,8 @@ module Google collection :ports, as: 'ports' property :region, as: 'region' property :self_link, as: 'selfLink' + property :service_label, as: 'serviceLabel' + property :service_name, as: 'serviceName' property :subnetwork, as: 'subnetwork' property :target, as: 'target' end @@ -5177,8 +5212,14 @@ module Google property :region, as: 'region' property :self_link, as: 'selfLink' + property :status, as: 'status', class: Google::Apis::ComputeV1::InstanceGroupManagerStatus, decorator: Google::Apis::ComputeV1::InstanceGroupManagerStatus::Representation + collection :target_pools, as: 'targetPools' property :target_size, as: 'targetSize' + property :update_policy, as: 'updatePolicy', class: Google::Apis::ComputeV1::InstanceGroupManagerUpdatePolicy, decorator: Google::Apis::ComputeV1::InstanceGroupManagerUpdatePolicy::Representation + + collection :versions, as: 'versions', class: Google::Apis::ComputeV1::InstanceGroupManagerVersion, decorator: Google::Apis::ComputeV1::InstanceGroupManagerVersion::Representation + property :zone, as: 'zone' end end @@ -5270,6 +5311,35 @@ module Google end end + class InstanceGroupManagerStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :is_stable, as: 'isStable' + end + end + + class InstanceGroupManagerUpdatePolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_surge, as: 'maxSurge', class: Google::Apis::ComputeV1::FixedOrPercent, decorator: Google::Apis::ComputeV1::FixedOrPercent::Representation + + property :max_unavailable, as: 'maxUnavailable', class: Google::Apis::ComputeV1::FixedOrPercent, decorator: Google::Apis::ComputeV1::FixedOrPercent::Representation + + property :minimal_action, as: 'minimalAction' + property :type, as: 'type' + end + end + + class InstanceGroupManagerVersion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :instance_template, as: 'instanceTemplate' + property :name, as: 'name' + property :target_size, as: 'targetSize', class: Google::Apis::ComputeV1::FixedOrPercent, decorator: Google::Apis::ComputeV1::FixedOrPercent::Representation + + end + end + class InstanceGroupManagersAbandonInstancesRequest # @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 08228da83..1021066f4 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -7786,8 +7786,8 @@ module Google execute_or_queue_command(command, &block) end - # Performs a reset on the instance. For more information, see Resetting an - # instance. + # Performs a reset on the instance. This is a hard reset; the VM does not do a + # graceful shutdown. For more information, see Resetting an instance. # @param [String] project # Project ID for this request. # @param [String] zone diff --git a/generated/google/apis/containeranalysis_v1beta1.rb b/generated/google/apis/containeranalysis_v1beta1.rb index 7c5eb7f4b..e7803f1c2 100644 --- a/generated/google/apis/containeranalysis_v1beta1.rb +++ b/generated/google/apis/containeranalysis_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-analysis/api/reference/rest/ module ContaineranalysisV1beta1 VERSION = 'V1beta1' - REVISION = '20181207' + REVISION = '20190122' # 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/containeranalysis_v1beta1/classes.rb b/generated/google/apis/containeranalysis_v1beta1/classes.rb index b1762256c..a5bba6e85 100644 --- a/generated/google/apis/containeranalysis_v1beta1/classes.rb +++ b/generated/google/apis/containeranalysis_v1beta1/classes.rb @@ -1555,6 +1555,32 @@ module Google end end + # + class KnowledgeBase + include Google::Apis::Core::Hashable + + # The KB name (generally of the form KB[0-9]+ i.e. KB123456). + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # A link to the KB in the Windows update catalog - + # https://www.catalog.update.microsoft.com/ + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @url = args[:url] if args.key?(:url) + end + end + # Layer holds metadata specific to a layer of a Docker image. class Layer include Google::Apis::Core::Hashable @@ -2634,6 +2660,14 @@ module Google # @return [String] attr_accessor :severity + # Windows details get their own format because the information format and + # model don't match a normal detail. Specifically Windows updates are done as + # patches, thus Windows vulnerabilities really are a missing package, rather + # than a package being at an incorrect version. + # Corresponds to the JSON property `windowsDetails` + # @return [Array] + attr_accessor :windows_details + def initialize(**args) update!(**args) end @@ -2643,6 +2677,7 @@ module Google @cvss_score = args[:cvss_score] if args.key?(:cvss_score) @details = args[:details] if args.key?(:details) @severity = args[:severity] if args.key?(:severity) + @windows_details = args[:windows_details] if args.key?(:windows_details) end end @@ -2697,6 +2732,49 @@ module Google @counts = args[:counts] if args.key?(:counts) end end + + # + class WindowsDetail + include Google::Apis::Core::Hashable + + # Required. The CPE URI in + # [cpe format](https://cpe.mitre.org/specification/) in which the + # vulnerability manifests. Examples include distro or storage location for + # vulnerable jar. + # Corresponds to the JSON property `cpeUri` + # @return [String] + attr_accessor :cpe_uri + + # The description of the vulnerability. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Required. The names of the KBs which have hotfixes to mitigate this + # vulnerability. Note that there may be multiple hotfixes (and thus + # multiple KBs) that mitigate a given vulnerability. Currently any listed + # kb's presence is considered a fix. + # Corresponds to the JSON property `fixingKbs` + # @return [Array] + attr_accessor :fixing_kbs + + # Required. The name of the vulnerability. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri) + @description = args[:description] if args.key?(:description) + @fixing_kbs = args[:fixing_kbs] if args.key?(:fixing_kbs) + @name = args[:name] if args.key?(:name) + end + end end end end diff --git a/generated/google/apis/containeranalysis_v1beta1/representations.rb b/generated/google/apis/containeranalysis_v1beta1/representations.rb index 973341c19..dbba59541 100644 --- a/generated/google/apis/containeranalysis_v1beta1/representations.rb +++ b/generated/google/apis/containeranalysis_v1beta1/representations.rb @@ -280,6 +280,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class KnowledgeBase + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Layer class Representation < Google::Apis::Core::JsonRepresentation; end @@ -442,6 +448,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class WindowsDetail + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AliasContext # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -853,6 +865,14 @@ module Google end end + class KnowledgeBase + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :url, as: 'url' + end + end + class Layer # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1127,6 +1147,8 @@ module Google collection :details, as: 'details', class: Google::Apis::ContaineranalysisV1beta1::Detail, decorator: Google::Apis::ContaineranalysisV1beta1::Detail::Representation property :severity, as: 'severity' + collection :windows_details, as: 'windowsDetails', class: Google::Apis::ContaineranalysisV1beta1::WindowsDetail, decorator: Google::Apis::ContaineranalysisV1beta1::WindowsDetail::Representation + end end @@ -1147,6 +1169,17 @@ module Google end end + + class WindowsDetail + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cpe_uri, as: 'cpeUri' + property :description, as: 'description' + collection :fixing_kbs, as: 'fixingKbs', class: Google::Apis::ContaineranalysisV1beta1::KnowledgeBase, decorator: Google::Apis::ContaineranalysisV1beta1::KnowledgeBase::Representation + + property :name, as: 'name' + end + end end end end diff --git a/generated/google/apis/gmail_v1.rb b/generated/google/apis/gmail_v1.rb index a8a66efa7..45222c066 100644 --- a/generated/google/apis/gmail_v1.rb +++ b/generated/google/apis/gmail_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/gmail/api/ module GmailV1 VERSION = 'V1' - REVISION = '20181202' + REVISION = '20190120' # Read, compose, send, and permanently delete all your email from Gmail AUTH_SCOPE = 'https://mail.google.com/' diff --git a/generated/google/apis/gmail_v1/classes.rb b/generated/google/apis/gmail_v1/classes.rb index 106649bcc..833e7dc63 100644 --- a/generated/google/apis/gmail_v1/classes.rb +++ b/generated/google/apis/gmail_v1/classes.rb @@ -778,7 +778,9 @@ module Google class ListMessagesResponse include Google::Apis::Core::Hashable - # List of messages. + # List of messages. Note that each message resource contains only an id and a + # threadId. Additional message details can be fetched using the messages.get + # method. # Corresponds to the JSON property `messages` # @return [Array] attr_accessor :messages @@ -857,7 +859,9 @@ module Google # @return [Fixnum] attr_accessor :result_size_estimate - # List of threads. + # List of threads. Note that each thread resource does not contain a list of + # messages. The list of messages for a given thread can be fetched using the + # threads.get method. # Corresponds to the JSON property `threads` # @return [Array] attr_accessor :threads diff --git a/generated/google/apis/serviceconsumermanagement_v1.rb b/generated/google/apis/serviceconsumermanagement_v1.rb index 501b9c7c3..5bc8ba31f 100644 --- a/generated/google/apis/serviceconsumermanagement_v1.rb +++ b/generated/google/apis/serviceconsumermanagement_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/service-consumer-management/docs/overview module ServiceconsumermanagementV1 VERSION = 'V1' - REVISION = '20190109' + REVISION = '20190119' # 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/serviceconsumermanagement_v1/service.rb b/generated/google/apis/serviceconsumermanagement_v1/service.rb index 42cc1b3b6..aeba5198f 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/service.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/service.rb @@ -310,6 +310,8 @@ module Google # New billing configuration will be applied if specified. # Omit billing configuration to keep the existing one. # Service account in the project will be created if previously non existing. + # Specified folder will be ignored, moving tenant project to a different + # folder is not supported. # Operation fails if any of the steps fail, but no rollback of already # applied configuration changes is attempted. # Operation. diff --git a/generated/google/apis/texttospeech_v1.rb b/generated/google/apis/texttospeech_v1.rb index 38d0f91b5..c161d3d54 100644 --- a/generated/google/apis/texttospeech_v1.rb +++ b/generated/google/apis/texttospeech_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/text-to-speech/ module TexttospeechV1 VERSION = 'V1' - REVISION = '20180803' + REVISION = '20190118' # 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/texttospeech_v1/classes.rb b/generated/google/apis/texttospeech_v1/classes.rb index f166f1666..2b53fba4c 100644 --- a/generated/google/apis/texttospeech_v1/classes.rb +++ b/generated/google/apis/texttospeech_v1/classes.rb @@ -31,6 +31,17 @@ module Google # @return [String] attr_accessor :audio_encoding + # An identifier which selects 'audio effects' profiles that are applied on + # (post synthesized) text to speech. + # Effects are applied on top of each other in the order they are given. + # See + # [audio-profiles](https: + # //cloud.google.com/text-to-speech/docs/audio-profiles) + # for current supported profile ids. + # Corresponds to the JSON property `effectsProfileId` + # @return [Array] + attr_accessor :effects_profile_id + # Optional speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 # semitones from the original pitch. -20 means decrease 20 semitones from the # original pitch. @@ -75,6 +86,7 @@ module Google # Update properties of this object def update!(**args) @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding) + @effects_profile_id = args[:effects_profile_id] if args.key?(:effects_profile_id) @pitch = args[:pitch] if args.key?(:pitch) @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz) @speaking_rate = args[:speaking_rate] if args.key?(:speaking_rate) diff --git a/generated/google/apis/texttospeech_v1/representations.rb b/generated/google/apis/texttospeech_v1/representations.rb index 7e0c5d65d..b0c9ee646 100644 --- a/generated/google/apis/texttospeech_v1/representations.rb +++ b/generated/google/apis/texttospeech_v1/representations.rb @@ -68,6 +68,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :audio_encoding, as: 'audioEncoding' + collection :effects_profile_id, as: 'effectsProfileId' property :pitch, as: 'pitch' property :sample_rate_hertz, as: 'sampleRateHertz' property :speaking_rate, as: 'speakingRate' diff --git a/generated/google/apis/vision_v1.rb b/generated/google/apis/vision_v1.rb index d9e273040..93a08fbab 100644 --- a/generated/google/apis/vision_v1.rb +++ b/generated/google/apis/vision_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1 VERSION = 'V1' - REVISION = '20190111' + REVISION = '20190119' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/vision_v1p1beta1.rb b/generated/google/apis/vision_v1p1beta1.rb index d7911d9b6..670a2d6d5 100644 --- a/generated/google/apis/vision_v1p1beta1.rb +++ b/generated/google/apis/vision_v1p1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1p1beta1 VERSION = 'V1p1beta1' - REVISION = '20190111' + REVISION = '20190119' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/vision_v1p2beta1.rb b/generated/google/apis/vision_v1p2beta1.rb index cf6a04618..23aa4d47d 100644 --- a/generated/google/apis/vision_v1p2beta1.rb +++ b/generated/google/apis/vision_v1p2beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1p2beta1 VERSION = 'V1p2beta1' - REVISION = '20190111' + REVISION = '20190119' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'