From ac7d000859ac46c6f521b06c091cf721036b62e5 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Sun, 3 Jun 2018 00:35:55 +0000 Subject: [PATCH] Autogenerated update (2018-06-03) Update: - compute_alpha - compute_beta - compute_v1 - logging_v2 - tpu_v1 - tpu_v1alpha1 --- api_names_out.yaml | 446 +++++ generated/google/apis/compute_alpha.rb | 2 +- .../google/apis/compute_alpha/classes.rb | 109 +- .../apis/compute_alpha/representations.rb | 23 + .../google/apis/compute_alpha/service.rb | 42 +- generated/google/apis/compute_beta.rb | 2 +- generated/google/apis/compute_beta/classes.rb | 1581 ++++++++++++++++- .../apis/compute_beta/representations.rb | 665 +++++++ generated/google/apis/compute_beta/service.rb | 1286 ++++++++++++++ generated/google/apis/compute_v1.rb | 2 +- generated/google/apis/compute_v1/classes.rb | 187 +- .../google/apis/compute_v1/representations.rb | 43 + generated/google/apis/compute_v1/service.rb | 108 ++ generated/google/apis/logging_v2.rb | 2 +- generated/google/apis/logging_v2/classes.rb | 4 +- generated/google/apis/tpu_v1.rb | 2 +- generated/google/apis/tpu_v1/classes.rb | 366 ++++ .../google/apis/tpu_v1/representations.rb | 179 ++ generated/google/apis/tpu_v1/service.rb | 408 +++++ generated/google/apis/tpu_v1alpha1.rb | 2 +- generated/google/apis/tpu_v1alpha1/classes.rb | 26 + .../apis/tpu_v1alpha1/representations.rb | 15 + 22 files changed, 5472 insertions(+), 28 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index fcd6a22f7..d6e857c7c 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -17019,6 +17019,7 @@ "/compute:alpha/AttachedDiskInitializeParams/labels/label": label "/compute:alpha/AttachedDiskInitializeParams/sourceImage": source_image "/compute:alpha/AttachedDiskInitializeParams/sourceImageEncryptionKey": source_image_encryption_key +"/compute:alpha/AttachedDiskInitializeParams/sourceSnapshot": source_snapshot "/compute:alpha/AuditConfig": audit_config "/compute:alpha/AuditConfig/auditLogConfigs": audit_log_configs "/compute:alpha/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config @@ -17223,8 +17224,13 @@ "/compute:alpha/BackendServiceIAP": backend_service_iap "/compute:alpha/BackendServiceIAP/enabled": enabled "/compute:alpha/BackendServiceIAP/oauth2ClientId": oauth2_client_id +"/compute:alpha/BackendServiceIAP/oauth2ClientInfo": oauth2_client_info "/compute:alpha/BackendServiceIAP/oauth2ClientSecret": oauth2_client_secret "/compute:alpha/BackendServiceIAP/oauth2ClientSecretSha256": oauth2_client_secret_sha256 +"/compute:alpha/BackendServiceIAPOAuth2ClientInfo": backend_service_iapo_auth2_client_info +"/compute:alpha/BackendServiceIAPOAuth2ClientInfo/applicationName": application_name +"/compute:alpha/BackendServiceIAPOAuth2ClientInfo/clientName": client_name +"/compute:alpha/BackendServiceIAPOAuth2ClientInfo/developerEmailAddress": developer_email_address "/compute:alpha/BackendServiceList": backend_service_list "/compute:alpha/BackendServiceList/id": id "/compute:alpha/BackendServiceList/items": items @@ -17984,6 +17990,7 @@ "/compute:alpha/Instance/serviceAccounts/service_account": service_account "/compute:alpha/Instance/shieldedVmConfig": shielded_vm_config "/compute:alpha/Instance/shieldedVmIntegrityPolicy": shielded_vm_integrity_policy +"/compute:alpha/Instance/sourceMachineImage": source_machine_image "/compute:alpha/Instance/startRestricted": start_restricted "/compute:alpha/Instance/status": status "/compute:alpha/Instance/statusMessage": status_message @@ -18939,12 +18946,15 @@ "/compute:alpha/NodeGroupNode/index": index "/compute:alpha/NodeGroupNode/instances": instances "/compute:alpha/NodeGroupNode/instances/instance": instance +"/compute:alpha/NodeGroupNode/name": name "/compute:alpha/NodeGroupNode/nodeType": node_type "/compute:alpha/NodeGroupsAddNodesRequest": node_groups_add_nodes_request "/compute:alpha/NodeGroupsAddNodesRequest/additionalNodeCount": additional_node_count "/compute:alpha/NodeGroupsDeleteNodesRequest": node_groups_delete_nodes_request "/compute:alpha/NodeGroupsDeleteNodesRequest/nodeIndexes": node_indexes "/compute:alpha/NodeGroupsDeleteNodesRequest/nodeIndexes/node_index": node_index +"/compute:alpha/NodeGroupsDeleteNodesRequest/nodes": nodes +"/compute:alpha/NodeGroupsDeleteNodesRequest/nodes/node": node "/compute:alpha/NodeGroupsScopedList": node_groups_scoped_list "/compute:alpha/NodeGroupsScopedList/nodeGroups": node_groups "/compute:alpha/NodeGroupsScopedList/nodeGroups/node_group": node_group @@ -19696,6 +19706,9 @@ "/compute:alpha/SecurityPolicy/fingerprint": fingerprint "/compute:alpha/SecurityPolicy/id": id "/compute:alpha/SecurityPolicy/kind": kind +"/compute:alpha/SecurityPolicy/labelFingerprint": label_fingerprint +"/compute:alpha/SecurityPolicy/labels": labels +"/compute:alpha/SecurityPolicy/labels/label": label "/compute:alpha/SecurityPolicy/name": name "/compute:alpha/SecurityPolicy/rules": rules "/compute:alpha/SecurityPolicy/rules/rule": rule @@ -22521,6 +22534,9 @@ "/compute:alpha/compute.securityPolicies.removeRule/priority": priority "/compute:alpha/compute.securityPolicies.removeRule/project": project "/compute:alpha/compute.securityPolicies.removeRule/securityPolicy": security_policy +"/compute:alpha/compute.securityPolicies.setLabels": set_security_policy_labels +"/compute:alpha/compute.securityPolicies.setLabels/project": project +"/compute:alpha/compute.securityPolicies.setLabels/resource": resource "/compute:alpha/compute.securityPolicies.testIamPermissions": test_security_policy_iam_permissions "/compute:alpha/compute.securityPolicies.testIamPermissions/project": project "/compute:alpha/compute.securityPolicies.testIamPermissions/resource": resource @@ -23644,6 +23660,7 @@ "/compute:beta/Firewall/destinationRanges/destination_range": destination_range "/compute:beta/Firewall/direction": direction "/compute:beta/Firewall/disabled": disabled +"/compute:beta/Firewall/enableLogging": enable_logging "/compute:beta/Firewall/id": id "/compute:beta/Firewall/kind": kind "/compute:beta/Firewall/name": name @@ -23943,6 +23960,8 @@ "/compute:beta/Instance/selfLink": self_link "/compute:beta/Instance/serviceAccounts": service_accounts "/compute:beta/Instance/serviceAccounts/service_account": service_account +"/compute:beta/Instance/shieldedVmConfig": shielded_vm_config +"/compute:beta/Instance/shieldedVmIntegrityPolicy": shielded_vm_integrity_policy "/compute:beta/Instance/startRestricted": start_restricted "/compute:beta/Instance/status": status "/compute:beta/Instance/statusMessage": status_message @@ -24208,6 +24227,7 @@ "/compute:beta/InstanceProperties/scheduling": scheduling "/compute:beta/InstanceProperties/serviceAccounts": service_accounts "/compute:beta/InstanceProperties/serviceAccounts/service_account": service_account +"/compute:beta/InstanceProperties/shieldedVmConfig": shielded_vm_config "/compute:beta/InstanceProperties/tags": tags "/compute:beta/InstanceReference": instance_reference "/compute:beta/InstanceReference/instance": instance @@ -24620,6 +24640,175 @@ "/compute:beta/NetworksAddPeeringRequest/peerNetwork": peer_network "/compute:beta/NetworksRemovePeeringRequest": networks_remove_peering_request "/compute:beta/NetworksRemovePeeringRequest/name": name +"/compute:beta/NodeGroup": node_group +"/compute:beta/NodeGroup/creationTimestamp": creation_timestamp +"/compute:beta/NodeGroup/description": description +"/compute:beta/NodeGroup/id": id +"/compute:beta/NodeGroup/kind": kind +"/compute:beta/NodeGroup/name": name +"/compute:beta/NodeGroup/nodeTemplate": node_template +"/compute:beta/NodeGroup/nodes": nodes +"/compute:beta/NodeGroup/nodes/node": node +"/compute:beta/NodeGroup/selfLink": self_link +"/compute:beta/NodeGroup/status": status +"/compute:beta/NodeGroup/zone": zone +"/compute:beta/NodeGroupAggregatedList": node_group_aggregated_list +"/compute:beta/NodeGroupAggregatedList/id": id +"/compute:beta/NodeGroupAggregatedList/items": items +"/compute:beta/NodeGroupAggregatedList/items/item": item +"/compute:beta/NodeGroupAggregatedList/kind": kind +"/compute:beta/NodeGroupAggregatedList/nextPageToken": next_page_token +"/compute:beta/NodeGroupAggregatedList/selfLink": self_link +"/compute:beta/NodeGroupAggregatedList/warning": warning +"/compute:beta/NodeGroupAggregatedList/warning/code": code +"/compute:beta/NodeGroupAggregatedList/warning/data": data +"/compute:beta/NodeGroupAggregatedList/warning/data/datum": datum +"/compute:beta/NodeGroupAggregatedList/warning/data/datum/key": key +"/compute:beta/NodeGroupAggregatedList/warning/data/datum/value": value +"/compute:beta/NodeGroupAggregatedList/warning/message": message +"/compute:beta/NodeGroupList": node_group_list +"/compute:beta/NodeGroupList/id": id +"/compute:beta/NodeGroupList/items": items +"/compute:beta/NodeGroupList/items/item": item +"/compute:beta/NodeGroupList/kind": kind +"/compute:beta/NodeGroupList/nextPageToken": next_page_token +"/compute:beta/NodeGroupList/selfLink": self_link +"/compute:beta/NodeGroupList/warning": warning +"/compute:beta/NodeGroupList/warning/code": code +"/compute:beta/NodeGroupList/warning/data": data +"/compute:beta/NodeGroupList/warning/data/datum": datum +"/compute:beta/NodeGroupList/warning/data/datum/key": key +"/compute:beta/NodeGroupList/warning/data/datum/value": value +"/compute:beta/NodeGroupList/warning/message": message +"/compute:beta/NodeGroupNode": node_group_node +"/compute:beta/NodeGroupNode/instances": instances +"/compute:beta/NodeGroupNode/instances/instance": instance +"/compute:beta/NodeGroupNode/name": name +"/compute:beta/NodeGroupNode/nodeType": node_type +"/compute:beta/NodeGroupsAddNodesRequest": node_groups_add_nodes_request +"/compute:beta/NodeGroupsAddNodesRequest/additionalNodeCount": additional_node_count +"/compute:beta/NodeGroupsDeleteNodesRequest": node_groups_delete_nodes_request +"/compute:beta/NodeGroupsDeleteNodesRequest/nodes": nodes +"/compute:beta/NodeGroupsDeleteNodesRequest/nodes/node": node +"/compute:beta/NodeGroupsScopedList": node_groups_scoped_list +"/compute:beta/NodeGroupsScopedList/nodeGroups": node_groups +"/compute:beta/NodeGroupsScopedList/nodeGroups/node_group": node_group +"/compute:beta/NodeGroupsScopedList/warning": warning +"/compute:beta/NodeGroupsScopedList/warning/code": code +"/compute:beta/NodeGroupsScopedList/warning/data": data +"/compute:beta/NodeGroupsScopedList/warning/data/datum": datum +"/compute:beta/NodeGroupsScopedList/warning/data/datum/key": key +"/compute:beta/NodeGroupsScopedList/warning/data/datum/value": value +"/compute:beta/NodeGroupsScopedList/warning/message": message +"/compute:beta/NodeGroupsSetNodeTemplateRequest": node_groups_set_node_template_request +"/compute:beta/NodeGroupsSetNodeTemplateRequest/nodeTemplate": node_template +"/compute:beta/NodeTemplate": node_template +"/compute:beta/NodeTemplate/creationTimestamp": creation_timestamp +"/compute:beta/NodeTemplate/description": description +"/compute:beta/NodeTemplate/id": id +"/compute:beta/NodeTemplate/kind": kind +"/compute:beta/NodeTemplate/name": name +"/compute:beta/NodeTemplate/nodeAffinityLabels": node_affinity_labels +"/compute:beta/NodeTemplate/nodeAffinityLabels/node_affinity_label": node_affinity_label +"/compute:beta/NodeTemplate/nodeType": node_type +"/compute:beta/NodeTemplate/nodeTypeFlexibility": node_type_flexibility +"/compute:beta/NodeTemplate/region": region +"/compute:beta/NodeTemplate/selfLink": self_link +"/compute:beta/NodeTemplate/status": status +"/compute:beta/NodeTemplate/statusMessage": status_message +"/compute:beta/NodeTemplateAggregatedList": node_template_aggregated_list +"/compute:beta/NodeTemplateAggregatedList/id": id +"/compute:beta/NodeTemplateAggregatedList/items": items +"/compute:beta/NodeTemplateAggregatedList/items/item": item +"/compute:beta/NodeTemplateAggregatedList/kind": kind +"/compute:beta/NodeTemplateAggregatedList/nextPageToken": next_page_token +"/compute:beta/NodeTemplateAggregatedList/selfLink": self_link +"/compute:beta/NodeTemplateAggregatedList/warning": warning +"/compute:beta/NodeTemplateAggregatedList/warning/code": code +"/compute:beta/NodeTemplateAggregatedList/warning/data": data +"/compute:beta/NodeTemplateAggregatedList/warning/data/datum": datum +"/compute:beta/NodeTemplateAggregatedList/warning/data/datum/key": key +"/compute:beta/NodeTemplateAggregatedList/warning/data/datum/value": value +"/compute:beta/NodeTemplateAggregatedList/warning/message": message +"/compute:beta/NodeTemplateList": node_template_list +"/compute:beta/NodeTemplateList/id": id +"/compute:beta/NodeTemplateList/items": items +"/compute:beta/NodeTemplateList/items/item": item +"/compute:beta/NodeTemplateList/kind": kind +"/compute:beta/NodeTemplateList/nextPageToken": next_page_token +"/compute:beta/NodeTemplateList/selfLink": self_link +"/compute:beta/NodeTemplateList/warning": warning +"/compute:beta/NodeTemplateList/warning/code": code +"/compute:beta/NodeTemplateList/warning/data": data +"/compute:beta/NodeTemplateList/warning/data/datum": datum +"/compute:beta/NodeTemplateList/warning/data/datum/key": key +"/compute:beta/NodeTemplateList/warning/data/datum/value": value +"/compute:beta/NodeTemplateList/warning/message": message +"/compute:beta/NodeTemplateNodeTypeFlexibility": node_template_node_type_flexibility +"/compute:beta/NodeTemplateNodeTypeFlexibility/cpus": cpus +"/compute:beta/NodeTemplateNodeTypeFlexibility/localSsd": local_ssd +"/compute:beta/NodeTemplateNodeTypeFlexibility/memory": memory +"/compute:beta/NodeTemplatesScopedList": node_templates_scoped_list +"/compute:beta/NodeTemplatesScopedList/nodeTemplates": node_templates +"/compute:beta/NodeTemplatesScopedList/nodeTemplates/node_template": node_template +"/compute:beta/NodeTemplatesScopedList/warning": warning +"/compute:beta/NodeTemplatesScopedList/warning/code": code +"/compute:beta/NodeTemplatesScopedList/warning/data": data +"/compute:beta/NodeTemplatesScopedList/warning/data/datum": datum +"/compute:beta/NodeTemplatesScopedList/warning/data/datum/key": key +"/compute:beta/NodeTemplatesScopedList/warning/data/datum/value": value +"/compute:beta/NodeTemplatesScopedList/warning/message": message +"/compute:beta/NodeType": node_type +"/compute:beta/NodeType/cpuPlatform": cpu_platform +"/compute:beta/NodeType/creationTimestamp": creation_timestamp +"/compute:beta/NodeType/deprecated": deprecated +"/compute:beta/NodeType/description": description +"/compute:beta/NodeType/guestCpus": guest_cpus +"/compute:beta/NodeType/id": id +"/compute:beta/NodeType/kind": kind +"/compute:beta/NodeType/localSsdGb": local_ssd_gb +"/compute:beta/NodeType/memoryMb": memory_mb +"/compute:beta/NodeType/name": name +"/compute:beta/NodeType/selfLink": self_link +"/compute:beta/NodeType/zone": zone +"/compute:beta/NodeTypeAggregatedList": node_type_aggregated_list +"/compute:beta/NodeTypeAggregatedList/id": id +"/compute:beta/NodeTypeAggregatedList/items": items +"/compute:beta/NodeTypeAggregatedList/items/item": item +"/compute:beta/NodeTypeAggregatedList/kind": kind +"/compute:beta/NodeTypeAggregatedList/nextPageToken": next_page_token +"/compute:beta/NodeTypeAggregatedList/selfLink": self_link +"/compute:beta/NodeTypeAggregatedList/warning": warning +"/compute:beta/NodeTypeAggregatedList/warning/code": code +"/compute:beta/NodeTypeAggregatedList/warning/data": data +"/compute:beta/NodeTypeAggregatedList/warning/data/datum": datum +"/compute:beta/NodeTypeAggregatedList/warning/data/datum/key": key +"/compute:beta/NodeTypeAggregatedList/warning/data/datum/value": value +"/compute:beta/NodeTypeAggregatedList/warning/message": message +"/compute:beta/NodeTypeList": node_type_list +"/compute:beta/NodeTypeList/id": id +"/compute:beta/NodeTypeList/items": items +"/compute:beta/NodeTypeList/items/item": item +"/compute:beta/NodeTypeList/kind": kind +"/compute:beta/NodeTypeList/nextPageToken": next_page_token +"/compute:beta/NodeTypeList/selfLink": self_link +"/compute:beta/NodeTypeList/warning": warning +"/compute:beta/NodeTypeList/warning/code": code +"/compute:beta/NodeTypeList/warning/data": data +"/compute:beta/NodeTypeList/warning/data/datum": datum +"/compute:beta/NodeTypeList/warning/data/datum/key": key +"/compute:beta/NodeTypeList/warning/data/datum/value": value +"/compute:beta/NodeTypeList/warning/message": message +"/compute:beta/NodeTypesScopedList": node_types_scoped_list +"/compute:beta/NodeTypesScopedList/nodeTypes": node_types +"/compute:beta/NodeTypesScopedList/nodeTypes/node_type": node_type +"/compute:beta/NodeTypesScopedList/warning": warning +"/compute:beta/NodeTypesScopedList/warning/code": code +"/compute:beta/NodeTypesScopedList/warning/data": data +"/compute:beta/NodeTypesScopedList/warning/data/datum": datum +"/compute:beta/NodeTypesScopedList/warning/data/datum/key": key +"/compute:beta/NodeTypesScopedList/warning/data/datum/value": value +"/compute:beta/NodeTypesScopedList/warning/message": message "/compute:beta/Operation": operation "/compute:beta/Operation/clientOperationId": client_operation_id "/compute:beta/Operation/creationTimestamp": creation_timestamp @@ -25061,8 +25250,15 @@ "/compute:beta/SSLHealthCheck/response": response "/compute:beta/Scheduling": scheduling "/compute:beta/Scheduling/automaticRestart": automatic_restart +"/compute:beta/Scheduling/nodeAffinities": node_affinities +"/compute:beta/Scheduling/nodeAffinities/node_affinity": node_affinity "/compute:beta/Scheduling/onHostMaintenance": on_host_maintenance "/compute:beta/Scheduling/preemptible": preemptible +"/compute:beta/SchedulingNodeAffinity": scheduling_node_affinity +"/compute:beta/SchedulingNodeAffinity/key": key +"/compute:beta/SchedulingNodeAffinity/operator": operator +"/compute:beta/SchedulingNodeAffinity/values": values +"/compute:beta/SchedulingNodeAffinity/values/value": value "/compute:beta/SecurityPoliciesList": security_policies_list "/compute:beta/SecurityPoliciesList/id": id "/compute:beta/SecurityPoliciesList/items": items @@ -25120,6 +25316,12 @@ "/compute:beta/ServiceAccount/email": email "/compute:beta/ServiceAccount/scopes": scopes "/compute:beta/ServiceAccount/scopes/scope": scope +"/compute:beta/ShieldedVmConfig": shielded_vm_config +"/compute:beta/ShieldedVmConfig/enableIntegrityMonitoring": enable_integrity_monitoring +"/compute:beta/ShieldedVmConfig/enableSecureBoot": enable_secure_boot +"/compute:beta/ShieldedVmConfig/enableVtpm": enable_vtpm +"/compute:beta/ShieldedVmIntegrityPolicy": shielded_vm_integrity_policy +"/compute:beta/ShieldedVmIntegrityPolicy/updateAutoLearnPolicy": update_auto_learn_policy "/compute:beta/SignedUrlKey": signed_url_key "/compute:beta/SignedUrlKey/keyName": key_name "/compute:beta/SignedUrlKey/keyValue": key_value @@ -25651,7 +25853,12 @@ "/compute:beta/UsableSubnetwork": usable_subnetwork "/compute:beta/UsableSubnetwork/ipCidrRange": ip_cidr_range "/compute:beta/UsableSubnetwork/network": network +"/compute:beta/UsableSubnetwork/secondaryIpRanges": secondary_ip_ranges +"/compute:beta/UsableSubnetwork/secondaryIpRanges/secondary_ip_range": secondary_ip_range "/compute:beta/UsableSubnetwork/subnetwork": subnetwork +"/compute:beta/UsableSubnetworkSecondaryRange": usable_subnetwork_secondary_range +"/compute:beta/UsableSubnetworkSecondaryRange/ipCidrRange": ip_cidr_range +"/compute:beta/UsableSubnetworkSecondaryRange/rangeName": range_name "/compute:beta/UsableSubnetworksAggregatedList": usable_subnetworks_aggregated_list "/compute:beta/UsableSubnetworksAggregatedList/id": id "/compute:beta/UsableSubnetworksAggregatedList/items": items @@ -25777,6 +25984,11 @@ "/compute:beta/ZoneSetLabelsRequest/labelFingerprint": label_fingerprint "/compute:beta/ZoneSetLabelsRequest/labels": labels "/compute:beta/ZoneSetLabelsRequest/labels/label": label +"/compute:beta/ZoneSetPolicyRequest": zone_set_policy_request +"/compute:beta/ZoneSetPolicyRequest/bindings": bindings +"/compute:beta/ZoneSetPolicyRequest/bindings/binding": binding +"/compute:beta/ZoneSetPolicyRequest/etag": etag +"/compute:beta/ZoneSetPolicyRequest/policy": policy "/compute:beta/compute.acceleratorTypes.aggregatedList": aggregated_accelerator_type_list "/compute:beta/compute.acceleratorTypes.aggregatedList/filter": filter "/compute:beta/compute.acceleratorTypes.aggregatedList/maxResults": max_results @@ -26539,6 +26751,11 @@ "/compute:beta/compute.instances.setServiceAccount/project": project "/compute:beta/compute.instances.setServiceAccount/requestId": request_id "/compute:beta/compute.instances.setServiceAccount/zone": zone +"/compute:beta/compute.instances.setShieldedVmIntegrityPolicy": set_instance_shielded_vm_integrity_policy +"/compute:beta/compute.instances.setShieldedVmIntegrityPolicy/instance": instance +"/compute:beta/compute.instances.setShieldedVmIntegrityPolicy/project": project +"/compute:beta/compute.instances.setShieldedVmIntegrityPolicy/requestId": request_id +"/compute:beta/compute.instances.setShieldedVmIntegrityPolicy/zone": zone "/compute:beta/compute.instances.setTags": set_instance_tags "/compute:beta/compute.instances.setTags/instance": instance "/compute:beta/compute.instances.setTags/project": project @@ -26579,6 +26796,11 @@ "/compute:beta/compute.instances.updateNetworkInterface/project": project "/compute:beta/compute.instances.updateNetworkInterface/requestId": request_id "/compute:beta/compute.instances.updateNetworkInterface/zone": zone +"/compute:beta/compute.instances.updateShieldedVmConfig": update_instance_shielded_vm_config +"/compute:beta/compute.instances.updateShieldedVmConfig/instance": instance +"/compute:beta/compute.instances.updateShieldedVmConfig/project": project +"/compute:beta/compute.instances.updateShieldedVmConfig/requestId": request_id +"/compute:beta/compute.instances.updateShieldedVmConfig/zone": zone "/compute:beta/compute.interconnectAttachments.aggregatedList": aggregated_interconnect_attachment_list "/compute:beta/compute.interconnectAttachments.aggregatedList/filter": filter "/compute:beta/compute.interconnectAttachments.aggregatedList/maxResults": max_results @@ -26725,6 +26947,115 @@ "/compute:beta/compute.networks.testIamPermissions": test_network_iam_permissions "/compute:beta/compute.networks.testIamPermissions/project": project "/compute:beta/compute.networks.testIamPermissions/resource": resource +"/compute:beta/compute.nodeGroups.addNodes": add_node_group_nodes +"/compute:beta/compute.nodeGroups.addNodes/nodeGroup": node_group +"/compute:beta/compute.nodeGroups.addNodes/project": project +"/compute:beta/compute.nodeGroups.addNodes/requestId": request_id +"/compute:beta/compute.nodeGroups.addNodes/zone": zone +"/compute:beta/compute.nodeGroups.aggregatedList": aggregated_node_group_list +"/compute:beta/compute.nodeGroups.aggregatedList/filter": filter +"/compute:beta/compute.nodeGroups.aggregatedList/maxResults": max_results +"/compute:beta/compute.nodeGroups.aggregatedList/orderBy": order_by +"/compute:beta/compute.nodeGroups.aggregatedList/pageToken": page_token +"/compute:beta/compute.nodeGroups.aggregatedList/project": project +"/compute:beta/compute.nodeGroups.delete": delete_node_group +"/compute:beta/compute.nodeGroups.delete/nodeGroup": node_group +"/compute:beta/compute.nodeGroups.delete/project": project +"/compute:beta/compute.nodeGroups.delete/requestId": request_id +"/compute:beta/compute.nodeGroups.delete/zone": zone +"/compute:beta/compute.nodeGroups.deleteNodes": delete_node_group_nodes +"/compute:beta/compute.nodeGroups.deleteNodes/nodeGroup": node_group +"/compute:beta/compute.nodeGroups.deleteNodes/project": project +"/compute:beta/compute.nodeGroups.deleteNodes/requestId": request_id +"/compute:beta/compute.nodeGroups.deleteNodes/zone": zone +"/compute:beta/compute.nodeGroups.get": get_node_group +"/compute:beta/compute.nodeGroups.get/nodeGroup": node_group +"/compute:beta/compute.nodeGroups.get/project": project +"/compute:beta/compute.nodeGroups.get/zone": zone +"/compute:beta/compute.nodeGroups.getIamPolicy": get_node_group_iam_policy +"/compute:beta/compute.nodeGroups.getIamPolicy/project": project +"/compute:beta/compute.nodeGroups.getIamPolicy/resource": resource +"/compute:beta/compute.nodeGroups.getIamPolicy/zone": zone +"/compute:beta/compute.nodeGroups.insert": insert_node_group +"/compute:beta/compute.nodeGroups.insert/initialNodeCount": initial_node_count +"/compute:beta/compute.nodeGroups.insert/project": project +"/compute:beta/compute.nodeGroups.insert/requestId": request_id +"/compute:beta/compute.nodeGroups.insert/zone": zone +"/compute:beta/compute.nodeGroups.list": list_node_groups +"/compute:beta/compute.nodeGroups.list/filter": filter +"/compute:beta/compute.nodeGroups.list/maxResults": max_results +"/compute:beta/compute.nodeGroups.list/orderBy": order_by +"/compute:beta/compute.nodeGroups.list/pageToken": page_token +"/compute:beta/compute.nodeGroups.list/project": project +"/compute:beta/compute.nodeGroups.list/zone": zone +"/compute:beta/compute.nodeGroups.setIamPolicy": set_node_group_iam_policy +"/compute:beta/compute.nodeGroups.setIamPolicy/project": project +"/compute:beta/compute.nodeGroups.setIamPolicy/resource": resource +"/compute:beta/compute.nodeGroups.setIamPolicy/zone": zone +"/compute:beta/compute.nodeGroups.setNodeTemplate": set_node_group_node_template +"/compute:beta/compute.nodeGroups.setNodeTemplate/nodeGroup": node_group +"/compute:beta/compute.nodeGroups.setNodeTemplate/project": project +"/compute:beta/compute.nodeGroups.setNodeTemplate/requestId": request_id +"/compute:beta/compute.nodeGroups.setNodeTemplate/zone": zone +"/compute:beta/compute.nodeGroups.testIamPermissions": test_node_group_iam_permissions +"/compute:beta/compute.nodeGroups.testIamPermissions/project": project +"/compute:beta/compute.nodeGroups.testIamPermissions/resource": resource +"/compute:beta/compute.nodeGroups.testIamPermissions/zone": zone +"/compute:beta/compute.nodeTemplates.aggregatedList": aggregated_node_template_list +"/compute:beta/compute.nodeTemplates.aggregatedList/filter": filter +"/compute:beta/compute.nodeTemplates.aggregatedList/maxResults": max_results +"/compute:beta/compute.nodeTemplates.aggregatedList/orderBy": order_by +"/compute:beta/compute.nodeTemplates.aggregatedList/pageToken": page_token +"/compute:beta/compute.nodeTemplates.aggregatedList/project": project +"/compute:beta/compute.nodeTemplates.delete": delete_node_template +"/compute:beta/compute.nodeTemplates.delete/nodeTemplate": node_template +"/compute:beta/compute.nodeTemplates.delete/project": project +"/compute:beta/compute.nodeTemplates.delete/region": region +"/compute:beta/compute.nodeTemplates.delete/requestId": request_id +"/compute:beta/compute.nodeTemplates.get": get_node_template +"/compute:beta/compute.nodeTemplates.get/nodeTemplate": node_template +"/compute:beta/compute.nodeTemplates.get/project": project +"/compute:beta/compute.nodeTemplates.get/region": region +"/compute:beta/compute.nodeTemplates.getIamPolicy": get_node_template_iam_policy +"/compute:beta/compute.nodeTemplates.getIamPolicy/project": project +"/compute:beta/compute.nodeTemplates.getIamPolicy/region": region +"/compute:beta/compute.nodeTemplates.getIamPolicy/resource": resource +"/compute:beta/compute.nodeTemplates.insert": insert_node_template +"/compute:beta/compute.nodeTemplates.insert/project": project +"/compute:beta/compute.nodeTemplates.insert/region": region +"/compute:beta/compute.nodeTemplates.insert/requestId": request_id +"/compute:beta/compute.nodeTemplates.list": list_node_templates +"/compute:beta/compute.nodeTemplates.list/filter": filter +"/compute:beta/compute.nodeTemplates.list/maxResults": max_results +"/compute:beta/compute.nodeTemplates.list/orderBy": order_by +"/compute:beta/compute.nodeTemplates.list/pageToken": page_token +"/compute:beta/compute.nodeTemplates.list/project": project +"/compute:beta/compute.nodeTemplates.list/region": region +"/compute:beta/compute.nodeTemplates.setIamPolicy": set_node_template_iam_policy +"/compute:beta/compute.nodeTemplates.setIamPolicy/project": project +"/compute:beta/compute.nodeTemplates.setIamPolicy/region": region +"/compute:beta/compute.nodeTemplates.setIamPolicy/resource": resource +"/compute:beta/compute.nodeTemplates.testIamPermissions": test_node_template_iam_permissions +"/compute:beta/compute.nodeTemplates.testIamPermissions/project": project +"/compute:beta/compute.nodeTemplates.testIamPermissions/region": region +"/compute:beta/compute.nodeTemplates.testIamPermissions/resource": resource +"/compute:beta/compute.nodeTypes.aggregatedList": aggregated_node_type_list +"/compute:beta/compute.nodeTypes.aggregatedList/filter": filter +"/compute:beta/compute.nodeTypes.aggregatedList/maxResults": max_results +"/compute:beta/compute.nodeTypes.aggregatedList/orderBy": order_by +"/compute:beta/compute.nodeTypes.aggregatedList/pageToken": page_token +"/compute:beta/compute.nodeTypes.aggregatedList/project": project +"/compute:beta/compute.nodeTypes.get": get_node_type +"/compute:beta/compute.nodeTypes.get/nodeType": node_type +"/compute:beta/compute.nodeTypes.get/project": project +"/compute:beta/compute.nodeTypes.get/zone": zone +"/compute:beta/compute.nodeTypes.list": list_node_types +"/compute:beta/compute.nodeTypes.list/filter": filter +"/compute:beta/compute.nodeTypes.list/maxResults": max_results +"/compute:beta/compute.nodeTypes.list/orderBy": order_by +"/compute:beta/compute.nodeTypes.list/pageToken": page_token +"/compute:beta/compute.nodeTypes.list/project": project +"/compute:beta/compute.nodeTypes.list/zone": zone "/compute:beta/compute.projects.disableXpnHost": disable_project_xpn_host "/compute:beta/compute.projects.disableXpnHost/project": project "/compute:beta/compute.projects.disableXpnHost/requestId": request_id @@ -28740,21 +29071,33 @@ "/compute:v1/Interconnect/provisionedLinkCount": provisioned_link_count "/compute:v1/Interconnect/requestedLinkCount": requested_link_count "/compute:v1/Interconnect/selfLink": self_link +"/compute:v1/Interconnect/state": state "/compute:v1/InterconnectAttachment": interconnect_attachment +"/compute:v1/InterconnectAttachment/adminEnabled": admin_enabled +"/compute:v1/InterconnectAttachment/bandwidth": bandwidth +"/compute:v1/InterconnectAttachment/candidateSubnets": candidate_subnets +"/compute:v1/InterconnectAttachment/candidateSubnets/candidate_subnet": candidate_subnet "/compute:v1/InterconnectAttachment/cloudRouterIpAddress": cloud_router_ip_address "/compute:v1/InterconnectAttachment/creationTimestamp": creation_timestamp "/compute:v1/InterconnectAttachment/customerRouterIpAddress": customer_router_ip_address "/compute:v1/InterconnectAttachment/description": description +"/compute:v1/InterconnectAttachment/edgeAvailabilityDomain": edge_availability_domain "/compute:v1/InterconnectAttachment/googleReferenceId": google_reference_id "/compute:v1/InterconnectAttachment/id": id "/compute:v1/InterconnectAttachment/interconnect": interconnect "/compute:v1/InterconnectAttachment/kind": kind "/compute:v1/InterconnectAttachment/name": name "/compute:v1/InterconnectAttachment/operationalStatus": operational_status +"/compute:v1/InterconnectAttachment/pairingKey": pairing_key +"/compute:v1/InterconnectAttachment/partnerAsn": partner_asn +"/compute:v1/InterconnectAttachment/partnerMetadata": partner_metadata "/compute:v1/InterconnectAttachment/privateInterconnectInfo": private_interconnect_info "/compute:v1/InterconnectAttachment/region": region "/compute:v1/InterconnectAttachment/router": router "/compute:v1/InterconnectAttachment/selfLink": self_link +"/compute:v1/InterconnectAttachment/state": state +"/compute:v1/InterconnectAttachment/type": type +"/compute:v1/InterconnectAttachment/vlanTag8021q": vlan_tag8021q "/compute:v1/InterconnectAttachmentAggregatedList": interconnect_attachment_aggregated_list "/compute:v1/InterconnectAttachmentAggregatedList/id": id "/compute:v1/InterconnectAttachmentAggregatedList/items": items @@ -28783,6 +29126,10 @@ "/compute:v1/InterconnectAttachmentList/warning/data/datum/key": key "/compute:v1/InterconnectAttachmentList/warning/data/datum/value": value "/compute:v1/InterconnectAttachmentList/warning/message": message +"/compute:v1/InterconnectAttachmentPartnerMetadata": interconnect_attachment_partner_metadata +"/compute:v1/InterconnectAttachmentPartnerMetadata/interconnectName": interconnect_name +"/compute:v1/InterconnectAttachmentPartnerMetadata/partnerName": partner_name +"/compute:v1/InterconnectAttachmentPartnerMetadata/portalUrl": portal_url "/compute:v1/InterconnectAttachmentPrivateInfo": interconnect_attachment_private_info "/compute:v1/InterconnectAttachmentPrivateInfo/tag8021q": tag8021q "/compute:v1/InterconnectAttachmentsScopedList": interconnect_attachments_scoped_list @@ -29370,6 +29717,7 @@ "/compute:v1/RouterBgpPeer/advertisedRoutePriority": advertised_route_priority "/compute:v1/RouterBgpPeer/interfaceName": interface_name "/compute:v1/RouterBgpPeer/ipAddress": ip_address +"/compute:v1/RouterBgpPeer/managementType": management_type "/compute:v1/RouterBgpPeer/name": name "/compute:v1/RouterBgpPeer/peerAsn": peer_asn "/compute:v1/RouterBgpPeer/peerIpAddress": peer_ip_address @@ -29377,6 +29725,7 @@ "/compute:v1/RouterInterface/ipRange": ip_range "/compute:v1/RouterInterface/linkedInterconnectAttachment": linked_interconnect_attachment "/compute:v1/RouterInterface/linkedVpnTunnel": linked_vpn_tunnel +"/compute:v1/RouterInterface/managementType": management_type "/compute:v1/RouterInterface/name": name "/compute:v1/RouterList": router_list "/compute:v1/RouterList/id": id @@ -29640,6 +29989,8 @@ "/compute:v1/TargetHttpProxyList/warning/data/datum/key": key "/compute:v1/TargetHttpProxyList/warning/data/datum/value": value "/compute:v1/TargetHttpProxyList/warning/message": message +"/compute:v1/TargetHttpsProxiesSetQuicOverrideRequest": target_https_proxies_set_quic_override_request +"/compute:v1/TargetHttpsProxiesSetQuicOverrideRequest/quicOverride": quic_override "/compute:v1/TargetHttpsProxiesSetSslCertificatesRequest": target_https_proxies_set_ssl_certificates_request "/compute:v1/TargetHttpsProxiesSetSslCertificatesRequest/sslCertificates": ssl_certificates "/compute:v1/TargetHttpsProxiesSetSslCertificatesRequest/sslCertificates/ssl_certificate": ssl_certificate @@ -29649,6 +30000,7 @@ "/compute:v1/TargetHttpsProxy/id": id "/compute:v1/TargetHttpsProxy/kind": kind "/compute:v1/TargetHttpsProxy/name": name +"/compute:v1/TargetHttpsProxy/quicOverride": quic_override "/compute:v1/TargetHttpsProxy/selfLink": self_link "/compute:v1/TargetHttpsProxy/sslCertificates": ssl_certificates "/compute:v1/TargetHttpsProxy/sslCertificates/ssl_certificate": ssl_certificate @@ -30776,6 +31128,11 @@ "/compute:v1/compute.interconnectAttachments.list/pageToken": page_token "/compute:v1/compute.interconnectAttachments.list/project": project "/compute:v1/compute.interconnectAttachments.list/region": region +"/compute:v1/compute.interconnectAttachments.patch": patch_interconnect_attachment +"/compute:v1/compute.interconnectAttachments.patch/interconnectAttachment": interconnect_attachment +"/compute:v1/compute.interconnectAttachments.patch/project": project +"/compute:v1/compute.interconnectAttachments.patch/region": region +"/compute:v1/compute.interconnectAttachments.patch/requestId": request_id "/compute:v1/compute.interconnectLocations.get": get_interconnect_location "/compute:v1/compute.interconnectLocations.get/interconnectLocation": interconnect_location "/compute:v1/compute.interconnectLocations.get/project": project @@ -31357,6 +31714,10 @@ "/compute:v1/compute.targetHttpsProxies.list/orderBy": order_by "/compute:v1/compute.targetHttpsProxies.list/pageToken": page_token "/compute:v1/compute.targetHttpsProxies.list/project": project +"/compute:v1/compute.targetHttpsProxies.setQuicOverride": set_target_https_proxy_quic_override +"/compute:v1/compute.targetHttpsProxies.setQuicOverride/project": project +"/compute:v1/compute.targetHttpsProxies.setQuicOverride/requestId": request_id +"/compute:v1/compute.targetHttpsProxies.setQuicOverride/targetHttpsProxy": target_https_proxy "/compute:v1/compute.targetHttpsProxies.setSslCertificates": set_target_https_proxy_ssl_certificates "/compute:v1/compute.targetHttpsProxies.setSslCertificates/project": project "/compute:v1/compute.targetHttpsProxies.setSslCertificates/requestId": request_id @@ -78269,15 +78630,30 @@ "/toolresults:v1beta3firstparty/toolresults.projects.initializeSettings": initialize_project_settings "/toolresults:v1beta3firstparty/toolresults.projects.initializeSettings/projectId": project_id "/toolresults:v1beta3firstparty/userIp": user_ip +"/tpu:v1/AcceleratorType": accelerator_type +"/tpu:v1/AcceleratorType/name": name +"/tpu:v1/AcceleratorType/type": type "/tpu:v1/Empty": empty +"/tpu:v1/ListAcceleratorTypesResponse": list_accelerator_types_response +"/tpu:v1/ListAcceleratorTypesResponse/acceleratorTypes": accelerator_types +"/tpu:v1/ListAcceleratorTypesResponse/acceleratorTypes/accelerator_type": accelerator_type +"/tpu:v1/ListAcceleratorTypesResponse/nextPageToken": next_page_token "/tpu:v1/ListLocationsResponse": list_locations_response "/tpu:v1/ListLocationsResponse/locations": locations "/tpu:v1/ListLocationsResponse/locations/location": location "/tpu:v1/ListLocationsResponse/nextPageToken": next_page_token +"/tpu:v1/ListNodesResponse": list_nodes_response +"/tpu:v1/ListNodesResponse/nextPageToken": next_page_token +"/tpu:v1/ListNodesResponse/nodes": nodes +"/tpu:v1/ListNodesResponse/nodes/node": node "/tpu:v1/ListOperationsResponse": list_operations_response "/tpu:v1/ListOperationsResponse/nextPageToken": next_page_token "/tpu:v1/ListOperationsResponse/operations": operations "/tpu:v1/ListOperationsResponse/operations/operation": operation +"/tpu:v1/ListTensorFlowVersionsResponse": list_tensor_flow_versions_response +"/tpu:v1/ListTensorFlowVersionsResponse/nextPageToken": next_page_token +"/tpu:v1/ListTensorFlowVersionsResponse/tensorflowVersions": tensorflow_versions +"/tpu:v1/ListTensorFlowVersionsResponse/tensorflowVersions/tensorflow_version": tensorflow_version "/tpu:v1/Location": location "/tpu:v1/Location/displayName": display_name "/tpu:v1/Location/labels": labels @@ -78286,6 +78662,28 @@ "/tpu:v1/Location/metadata": metadata "/tpu:v1/Location/metadata/metadatum": metadatum "/tpu:v1/Location/name": name +"/tpu:v1/NetworkEndpoint": network_endpoint +"/tpu:v1/NetworkEndpoint/ipAddress": ip_address +"/tpu:v1/NetworkEndpoint/port": port +"/tpu:v1/Node": node +"/tpu:v1/Node/acceleratorType": accelerator_type +"/tpu:v1/Node/cidrBlock": cidr_block +"/tpu:v1/Node/createTime": create_time +"/tpu:v1/Node/description": description +"/tpu:v1/Node/health": health +"/tpu:v1/Node/healthDescription": health_description +"/tpu:v1/Node/ipAddress": ip_address +"/tpu:v1/Node/labels": labels +"/tpu:v1/Node/labels/label": label +"/tpu:v1/Node/name": name +"/tpu:v1/Node/network": network +"/tpu:v1/Node/networkEndpoints": network_endpoints +"/tpu:v1/Node/networkEndpoints/network_endpoint": network_endpoint +"/tpu:v1/Node/port": port +"/tpu:v1/Node/schedulingConfig": scheduling_config +"/tpu:v1/Node/serviceAccount": service_account +"/tpu:v1/Node/state": state +"/tpu:v1/Node/tensorflowVersion": tensorflow_version "/tpu:v1/Operation": operation "/tpu:v1/Operation/done": done "/tpu:v1/Operation/error": error @@ -78302,15 +78700,33 @@ "/tpu:v1/OperationMetadata/statusDetail": status_detail "/tpu:v1/OperationMetadata/target": target "/tpu:v1/OperationMetadata/verb": verb +"/tpu:v1/ReimageNodeRequest": reimage_node_request +"/tpu:v1/ReimageNodeRequest/tensorflowVersion": tensorflow_version +"/tpu:v1/ResetNodeRequest": reset_node_request +"/tpu:v1/SchedulingConfig": scheduling_config +"/tpu:v1/SchedulingConfig/preemptible": preemptible +"/tpu:v1/StartNodeRequest": start_node_request "/tpu:v1/Status": status "/tpu:v1/Status/code": code "/tpu:v1/Status/details": details "/tpu:v1/Status/details/detail": detail "/tpu:v1/Status/details/detail/detail": detail "/tpu:v1/Status/message": message +"/tpu:v1/StopNodeRequest": stop_node_request +"/tpu:v1/TensorFlowVersion": tensor_flow_version +"/tpu:v1/TensorFlowVersion/name": name +"/tpu:v1/TensorFlowVersion/version": version "/tpu:v1/fields": fields "/tpu:v1/key": key "/tpu:v1/quotaUser": quota_user +"/tpu:v1/tpu.projects.locations.acceleratorTypes.get": get_project_location_accelerator_type +"/tpu:v1/tpu.projects.locations.acceleratorTypes.get/name": name +"/tpu:v1/tpu.projects.locations.acceleratorTypes.list": list_project_location_accelerator_types +"/tpu:v1/tpu.projects.locations.acceleratorTypes.list/filter": filter +"/tpu:v1/tpu.projects.locations.acceleratorTypes.list/orderBy": order_by +"/tpu:v1/tpu.projects.locations.acceleratorTypes.list/pageSize": page_size +"/tpu:v1/tpu.projects.locations.acceleratorTypes.list/pageToken": page_token +"/tpu:v1/tpu.projects.locations.acceleratorTypes.list/parent": parent "/tpu:v1/tpu.projects.locations.get": get_project_location "/tpu:v1/tpu.projects.locations.get/name": name "/tpu:v1/tpu.projects.locations.list": list_project_locations @@ -78318,6 +78734,25 @@ "/tpu:v1/tpu.projects.locations.list/name": name "/tpu:v1/tpu.projects.locations.list/pageSize": page_size "/tpu:v1/tpu.projects.locations.list/pageToken": page_token +"/tpu:v1/tpu.projects.locations.nodes.create": create_project_location_node +"/tpu:v1/tpu.projects.locations.nodes.create/nodeId": node_id +"/tpu:v1/tpu.projects.locations.nodes.create/parent": parent +"/tpu:v1/tpu.projects.locations.nodes.delete": delete_project_location_node +"/tpu:v1/tpu.projects.locations.nodes.delete/name": name +"/tpu:v1/tpu.projects.locations.nodes.get": get_project_location_node +"/tpu:v1/tpu.projects.locations.nodes.get/name": name +"/tpu:v1/tpu.projects.locations.nodes.list": list_project_location_nodes +"/tpu:v1/tpu.projects.locations.nodes.list/pageSize": page_size +"/tpu:v1/tpu.projects.locations.nodes.list/pageToken": page_token +"/tpu:v1/tpu.projects.locations.nodes.list/parent": parent +"/tpu:v1/tpu.projects.locations.nodes.reimage": reimage_node +"/tpu:v1/tpu.projects.locations.nodes.reimage/name": name +"/tpu:v1/tpu.projects.locations.nodes.reset": reset_node +"/tpu:v1/tpu.projects.locations.nodes.reset/name": name +"/tpu:v1/tpu.projects.locations.nodes.start": start_node +"/tpu:v1/tpu.projects.locations.nodes.start/name": name +"/tpu:v1/tpu.projects.locations.nodes.stop": stop_node +"/tpu:v1/tpu.projects.locations.nodes.stop/name": name "/tpu:v1/tpu.projects.locations.operations.cancel": cancel_project_location_operation "/tpu:v1/tpu.projects.locations.operations.cancel/name": name "/tpu:v1/tpu.projects.locations.operations.delete": delete_project_location_operation @@ -78329,6 +78764,14 @@ "/tpu:v1/tpu.projects.locations.operations.list/name": name "/tpu:v1/tpu.projects.locations.operations.list/pageSize": page_size "/tpu:v1/tpu.projects.locations.operations.list/pageToken": page_token +"/tpu:v1/tpu.projects.locations.tensorflowVersions.get": get_project_location_tensorflow_version +"/tpu:v1/tpu.projects.locations.tensorflowVersions.get/name": name +"/tpu:v1/tpu.projects.locations.tensorflowVersions.list": list_project_location_tensorflow_versions +"/tpu:v1/tpu.projects.locations.tensorflowVersions.list/filter": filter +"/tpu:v1/tpu.projects.locations.tensorflowVersions.list/orderBy": order_by +"/tpu:v1/tpu.projects.locations.tensorflowVersions.list/pageSize": page_size +"/tpu:v1/tpu.projects.locations.tensorflowVersions.list/pageToken": page_token +"/tpu:v1/tpu.projects.locations.tensorflowVersions.list/parent": parent "/tpu:v1alpha1/AcceleratorType": accelerator_type "/tpu:v1alpha1/AcceleratorType/name": name "/tpu:v1alpha1/AcceleratorType/type": type @@ -78379,6 +78822,7 @@ "/tpu:v1alpha1/Node/networkEndpoints": network_endpoints "/tpu:v1alpha1/Node/networkEndpoints/network_endpoint": network_endpoint "/tpu:v1alpha1/Node/port": port +"/tpu:v1alpha1/Node/schedulingConfig": scheduling_config "/tpu:v1alpha1/Node/serviceAccount": service_account "/tpu:v1alpha1/Node/state": state "/tpu:v1alpha1/Node/tensorflowVersion": tensorflow_version @@ -78401,6 +78845,8 @@ "/tpu:v1alpha1/ReimageNodeRequest": reimage_node_request "/tpu:v1alpha1/ReimageNodeRequest/tensorflowVersion": tensorflow_version "/tpu:v1alpha1/ResetNodeRequest": reset_node_request +"/tpu:v1alpha1/SchedulingConfig": scheduling_config +"/tpu:v1alpha1/SchedulingConfig/preemptible": preemptible "/tpu:v1alpha1/StartNodeRequest": start_node_request "/tpu:v1alpha1/Status": status "/tpu:v1alpha1/Status/code": code diff --git a/generated/google/apis/compute_alpha.rb b/generated/google/apis/compute_alpha.rb index 6c8fa0051..e35614280 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 = '20180428' + REVISION = '20180518' # 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 42c37972b..4e06b3fa9 100644 --- a/generated/google/apis/compute_alpha/classes.rb +++ b/generated/google/apis/compute_alpha/classes.rb @@ -1259,6 +1259,17 @@ module Google # @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey] attr_accessor :source_image_encryption_key + # The source snapshot to create this disk. When creating a new instance, one of + # initializeParams.sourceSnapshot or disks.source is required except for local + # SSD. + # To create a disk with a snapshot that you created, specify the snapshot name + # in the following format: + # global/snapshots/my-backup + # If the source snapshot is deleted later, this field will not be set. + # Corresponds to the JSON property `sourceSnapshot` + # @return [String] + attr_accessor :source_snapshot + def initialize(**args) update!(**args) end @@ -1272,6 +1283,7 @@ module Google @labels = args[:labels] if args.key?(:labels) @source_image = args[:source_image] if args.key?(:source_image) @source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key) + @source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot) end end @@ -2979,6 +2991,12 @@ module Google # @return [String] attr_accessor :oauth2_client_id + # [Input Only] OAuth client info required to generate client id to be used for + # IAP. + # Corresponds to the JSON property `oauth2ClientInfo` + # @return [Google::Apis::ComputeAlpha::BackendServiceIapoAuth2ClientInfo] + attr_accessor :oauth2_client_info + # # Corresponds to the JSON property `oauth2ClientSecret` # @return [String] @@ -2997,11 +3015,44 @@ module Google def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id) + @oauth2_client_info = args[:oauth2_client_info] if args.key?(:oauth2_client_info) @oauth2_client_secret = args[:oauth2_client_secret] if args.key?(:oauth2_client_secret) @oauth2_client_secret_sha256 = args[:oauth2_client_secret_sha256] if args.key?(:oauth2_client_secret_sha256) end end + # + class BackendServiceIapoAuth2ClientInfo + include Google::Apis::Core::Hashable + + # Application name to be used in OAuth consent screen. + # Corresponds to the JSON property `applicationName` + # @return [String] + attr_accessor :application_name + + # Name of the client to be generated. Optional - If not provided, the name will + # be autogenerated by the backend. + # Corresponds to the JSON property `clientName` + # @return [String] + attr_accessor :client_name + + # Developer's information to be used in OAuth consent screen. + # Corresponds to the JSON property `developerEmailAddress` + # @return [String] + attr_accessor :developer_email_address + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @application_name = args[:application_name] if args.key?(:application_name) + @client_name = args[:client_name] if args.key?(:client_name) + @developer_email_address = args[:developer_email_address] if args.key?(:developer_email_address) + end + end + # Contains a list of BackendService resources. class BackendServiceList include Google::Apis::Core::Hashable @@ -3450,9 +3501,8 @@ module Google attr_accessor :status_message # The type of commitment, which affects the discount rate and the eligible - # resources. Type MEMORY_OPTIMIZED_VM specifies a commitment that will only - # apply to memory optimized VMs. Type NORMAL specifies a commitment that applies - # to all other resources. + # resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply + # to memory optimized machines. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -5279,9 +5329,7 @@ module Google alias_method :disabled?, :disabled # This field denotes whether to enable logging for a particular firewall rule. - # If logging is enabled, logs will be exported to the configured export - # destination for all firewall logs in the network. Logs may be exported to - # BigQuery or Pub/Sub. + # If logging is enabled, logs will be exported to Stackdriver. # Corresponds to the JSON property `enableLogging` # @return [Boolean] attr_accessor :enable_logging @@ -9073,6 +9121,11 @@ module Google # @return [Google::Apis::ComputeAlpha::ShieldedVmIntegrityPolicy] attr_accessor :shielded_vm_integrity_policy + # Source machine image + # Corresponds to the JSON property `sourceMachineImage` + # @return [String] + attr_accessor :source_machine_image + # [Output Only] Whether a VM has been restricted for start because Compute # Engine has detected suspicious activity. # Corresponds to the JSON property `startRestricted` @@ -9135,6 +9188,7 @@ module Google @service_accounts = args[:service_accounts] if args.key?(:service_accounts) @shielded_vm_config = args[:shielded_vm_config] if args.key?(:shielded_vm_config) @shielded_vm_integrity_policy = args[:shielded_vm_integrity_policy] if args.key?(:shielded_vm_integrity_policy) + @source_machine_image = args[:source_machine_image] if args.key?(:source_machine_image) @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) @@ -9662,8 +9716,7 @@ module Google # Fingerprint of this resource. This field may be used in optimistic locking. It # will be ignored when inserting an InstanceGroupManager. An up-to-date - # fingerprint must be provided in order to update the InstanceGroupManager or - # the field need to be unset. + # fingerprint must be provided in order to update the InstanceGroupManager. # Corresponds to the JSON property `fingerprint` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -16264,6 +16317,11 @@ module Google # @return [Array] attr_accessor :instances + # The name of the node. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + # The type of this node. # Corresponds to the JSON property `nodeType` # @return [String] @@ -16277,6 +16335,7 @@ module Google def update!(**args) @index = args[:index] if args.key?(:index) @instances = args[:instances] if args.key?(:instances) + @name = args[:name] if args.key?(:name) @node_type = args[:node_type] if args.key?(:node_type) end end @@ -16309,6 +16368,11 @@ module Google # @return [Array] attr_accessor :node_indexes + # + # Corresponds to the JSON property `nodes` + # @return [Array] + attr_accessor :nodes + def initialize(**args) update!(**args) end @@ -16316,6 +16380,7 @@ module Google # Update properties of this object def update!(**args) @node_indexes = args[:node_indexes] if args.key?(:node_indexes) + @nodes = args[:nodes] if args.key?(:nodes) end end @@ -20873,8 +20938,7 @@ module Google # @return [String] attr_accessor :name - # A list of Nat services created in this router. The maximum number of Nat - # services within a Router is 3 for Alpha. + # A list of Nat services created in this router. # Corresponds to the JSON property `nats` # @return [Array] attr_accessor :nats @@ -22024,7 +22088,7 @@ module Google end # A security policy is comprised of one or more rules. It can also be associated - # with one or more 'targets'. + # with one or more 'targets'. Next available tag: 11 class SecurityPolicy include Google::Apis::Core::Hashable @@ -22062,6 +22126,24 @@ module Google # @return [String] attr_accessor :kind + # A fingerprint for the labels being applied to this security policy, which is + # essentially a hash of the labels set used for optimistic locking. The + # fingerprint is initially generated by Compute Engine and changes after every + # request to modify or update labels. You must always provide an up-to-date + # fingerprint hash in order to update or change labels. + # To see the latest fingerprint, make get() request to the security policy. + # 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 security policy 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- @@ -22096,6 +22178,8 @@ module Google @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) + @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) + @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @rules = args[:rules] if args.key?(:rules) @self_link = args[:self_link] if args.key?(:self_link) @@ -22578,7 +22662,8 @@ module Google # @return [Hash] attr_accessor :labels - # Integer license codes indicating which licenses are attached to this snapshot. + # [Output Only] Integer license codes indicating which licenses are attached to + # this snapshot. # Corresponds to the JSON property `licenseCodes` # @return [Array] attr_accessor :license_codes diff --git a/generated/google/apis/compute_alpha/representations.rb b/generated/google/apis/compute_alpha/representations.rb index 2adfb4bb0..8e4b0fb62 100644 --- a/generated/google/apis/compute_alpha/representations.rb +++ b/generated/google/apis/compute_alpha/representations.rb @@ -388,6 +388,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BackendServiceIapoAuth2ClientInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BackendServiceList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4351,6 +4357,7 @@ module Google property :source_image, as: 'sourceImage' property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation + property :source_snapshot, as: 'sourceSnapshot' end end @@ -4756,11 +4763,22 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :enabled, as: 'enabled' property :oauth2_client_id, as: 'oauth2ClientId' + property :oauth2_client_info, as: 'oauth2ClientInfo', class: Google::Apis::ComputeAlpha::BackendServiceIapoAuth2ClientInfo, decorator: Google::Apis::ComputeAlpha::BackendServiceIapoAuth2ClientInfo::Representation + property :oauth2_client_secret, as: 'oauth2ClientSecret' property :oauth2_client_secret_sha256, as: 'oauth2ClientSecretSha256' end end + class BackendServiceIapoAuth2ClientInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :application_name, as: 'applicationName' + property :client_name, as: 'clientName' + property :developer_email_address, as: 'developerEmailAddress' + end + end + class BackendServiceList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6217,6 +6235,7 @@ 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 :start_restricted, as: 'startRestricted' property :status, as: 'status' property :status_message, as: 'statusMessage' @@ -8071,6 +8090,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :index, as: 'index' collection :instances, as: 'instances' + property :name, as: 'name' property :node_type, as: 'nodeType' end end @@ -8086,6 +8106,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation collection :node_indexes, as: 'nodeIndexes' + collection :nodes, as: 'nodes' end end @@ -9629,6 +9650,8 @@ module Google property :fingerprint, :base64 => true, as: 'fingerprint' property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' + property :label_fingerprint, :base64 => true, as: 'labelFingerprint' + hash :labels, as: 'labels' property :name, as: 'name' collection :rules, as: 'rules', class: Google::Apis::ComputeAlpha::SecurityPolicyRule, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation diff --git a/generated/google/apis/compute_alpha/service.rb b/generated/google/apis/compute_alpha/service.rb index f281300cb..e327daaf0 100644 --- a/generated/google/apis/compute_alpha/service.rb +++ b/generated/google/apis/compute_alpha/service.rb @@ -14216,7 +14216,7 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified NodeGroup. Gets a list of available NodeGroups by making + # Returns the specified NodeGroup. Get a list of available NodeGroups by making # a list() request. # @param [String] project # Project ID for this request. @@ -21792,6 +21792,46 @@ module Google execute_or_queue_command(command, &block) end + # Sets the labels on a security policy. To learn more about labels, read the + # Labeling Resources documentation. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name 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_security_policy_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/securityPolicies/{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. diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index 96d28dccc..0dbe9c621 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 = '20180428' + REVISION = '20180518' # 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 a781a6d09..ab286fe86 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -4903,6 +4903,13 @@ module Google attr_accessor :disabled alias_method :disabled?, :disabled + # This field denotes whether to enable logging for a particular firewall rule. + # If logging is enabled, logs will be exported to Stackdriver. + # Corresponds to the JSON property `enableLogging` + # @return [Boolean] + attr_accessor :enable_logging + alias_method :enable_logging?, :enable_logging + # [Output Only] The unique identifier for the resource. This identifier is # defined by the server. # Corresponds to the JSON property `id` @@ -5021,6 +5028,7 @@ module Google @destination_ranges = args[:destination_ranges] if args.key?(:destination_ranges) @direction = args[:direction] if args.key?(:direction) @disabled = args[:disabled] if args.key?(:disabled) + @enable_logging = args[:enable_logging] if args.key?(:enable_logging) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @@ -7358,6 +7366,16 @@ module Google # @return [Array] attr_accessor :service_accounts + # A set of Shielded VM options. + # Corresponds to the JSON property `shieldedVmConfig` + # @return [Google::Apis::ComputeBeta::ShieldedVmConfig] + attr_accessor :shielded_vm_config + + # The policy describes how boot integrity measurements are evaluated. + # Corresponds to the JSON property `shieldedVmIntegrityPolicy` + # @return [Google::Apis::ComputeBeta::ShieldedVmIntegrityPolicy] + attr_accessor :shielded_vm_integrity_policy + # [Output Only] Whether a VM has been restricted for start because Compute # Engine has detected suspicious activity. # Corresponds to the JSON property `startRestricted` @@ -7414,6 +7432,8 @@ module Google @scheduling = args[:scheduling] if args.key?(:scheduling) @self_link = args[:self_link] if args.key?(:self_link) @service_accounts = args[:service_accounts] if args.key?(:service_accounts) + @shielded_vm_config = args[:shielded_vm_config] if args.key?(:shielded_vm_config) + @shielded_vm_integrity_policy = args[:shielded_vm_integrity_policy] if args.key?(:shielded_vm_integrity_policy) @start_restricted = args[:start_restricted] if args.key?(:start_restricted) @status = args[:status] if args.key?(:status) @status_message = args[:status_message] if args.key?(:status_message) @@ -7936,8 +7956,7 @@ module Google # Fingerprint of this resource. This field may be used in optimistic locking. It # will be ignored when inserting an InstanceGroupManager. An up-to-date - # fingerprint must be provided in order to update the InstanceGroupManager or - # the field need to be unset. + # fingerprint must be provided in order to update the InstanceGroupManager. # Corresponds to the JSON property `fingerprint` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -9491,6 +9510,11 @@ module Google # @return [Array] attr_accessor :service_accounts + # A set of Shielded VM options. + # Corresponds to the JSON property `shieldedVmConfig` + # @return [Google::Apis::ComputeBeta::ShieldedVmConfig] + attr_accessor :shielded_vm_config + # A set of instance tags. # Corresponds to the JSON property `tags` # @return [Google::Apis::ComputeBeta::Tags] @@ -9513,6 +9537,7 @@ module Google @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces) @scheduling = args[:scheduling] if args.key?(:scheduling) @service_accounts = args[:service_accounts] if args.key?(:service_accounts) + @shielded_vm_config = args[:shielded_vm_config] if args.key?(:shielded_vm_config) @tags = args[:tags] if args.key?(:tags) end end @@ -12861,6 +12886,1377 @@ module Google end end + # A NodeGroup resource. + class NodeGroup + 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 + + # [Output Only] The type of the resource. Always compute#nodeGroup for node + # group. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The name of the resource, provided by the client when initially creating the + # resource. The resource name must be 1-63 characters long, and comply with + # RFC1035. Specifically, the name must be 1-63 characters long and match the + # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + # character must be a lowercase letter, and all following characters must be a + # dash, lowercase letter, or digit, except the last character, which cannot be a + # dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The URL of the node template to which this node group belongs. + # Corresponds to the JSON property `nodeTemplate` + # @return [String] + attr_accessor :node_template + + # [Output Only] A list of nodes in this node group. + # Corresponds to the JSON property `nodes` + # @return [Array] + attr_accessor :nodes + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # [Output Only] The name of the zone where the node group resides, such as us- + # central1-a. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @node_template = args[:node_template] if args.key?(:node_template) + @nodes = args[:nodes] if args.key?(:nodes) + @self_link = args[:self_link] if args.key?(:self_link) + @status = args[:status] if args.key?(:status) + @zone = args[:zone] if args.key?(:zone) + end + end + + # + class NodeGroupAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of NodeGroupsScopedList resources. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # [Output Only] Type of resource.Always compute#nodeGroupAggregatedList for + # aggregated lists of node groups. + # 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::ComputeBeta::NodeGroupAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # Contains a list of nodeGroups. + class NodeGroupList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of NodeGroup resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource.Always compute#nodeGroupList for lists of node + # groups. + # 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::ComputeBeta::NodeGroupList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class NodeGroupNode + include Google::Apis::Core::Hashable + + # Instances scheduled on this node. + # Corresponds to the JSON property `instances` + # @return [Array] + attr_accessor :instances + + # The name of the node. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The type of this node. + # Corresponds to the JSON property `nodeType` + # @return [String] + attr_accessor :node_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instances = args[:instances] if args.key?(:instances) + @name = args[:name] if args.key?(:name) + @node_type = args[:node_type] if args.key?(:node_type) + end + end + + # + class NodeGroupsAddNodesRequest + include Google::Apis::Core::Hashable + + # Count of additional nodes to be added to the node group. + # Corresponds to the JSON property `additionalNodeCount` + # @return [Fixnum] + attr_accessor :additional_node_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @additional_node_count = args[:additional_node_count] if args.key?(:additional_node_count) + end + end + + # + class NodeGroupsDeleteNodesRequest + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `nodes` + # @return [Array] + attr_accessor :nodes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @nodes = args[:nodes] if args.key?(:nodes) + end + end + + # + class NodeGroupsScopedList + include Google::Apis::Core::Hashable + + # [Output Only] A list of node groups contained in this scope. + # Corresponds to the JSON property `nodeGroups` + # @return [Array] + attr_accessor :node_groups + + # [Output Only] An informational warning that appears when the nodeGroup list is + # empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::NodeGroupsScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node_groups = args[:node_groups] if args.key?(:node_groups) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] An informational warning that appears when the nodeGroup list is + # empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class NodeGroupsSetNodeTemplateRequest + include Google::Apis::Core::Hashable + + # Full or partial URL of the node template resource to be updated for this node + # group. + # Corresponds to the JSON property `nodeTemplate` + # @return [String] + attr_accessor :node_template + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node_template = args[:node_template] if args.key?(:node_template) + end + end + + # A Node Template resource. + class NodeTemplate + 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 + + # [Output Only] The type of the resource. Always compute#nodeTemplate for node + # templates. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The name of the resource, provided by the client when initially creating the + # resource. The resource name must be 1-63 characters long, and comply with + # RFC1035. Specifically, the name must be 1-63 characters long and match the + # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + # character must be a lowercase letter, and all following characters must be a + # dash, lowercase letter, or digit, except the last charaicter, which cannot be + # a dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Labels to use for node affinity, which will be used in instance scheduling. + # Corresponds to the JSON property `nodeAffinityLabels` + # @return [Hash] + attr_accessor :node_affinity_labels + + # The node type to use for nodes group that are created from this template. + # Corresponds to the JSON property `nodeType` + # @return [String] + attr_accessor :node_type + + # The flexible properties of the desired node type. Node groups that use this + # node template will create nodes of a type that matches these properties. + # This field is mutually exclusive with the node_type property; you can only + # define one or the other, but not both. + # Corresponds to the JSON property `nodeTypeFlexibility` + # @return [Google::Apis::ComputeBeta::NodeTemplateNodeTypeFlexibility] + attr_accessor :node_type_flexibility + + # [Output Only] The name of the region where the node template resides, such as + # us-central1. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] The status of the node template. One of the following values: + # CREATING, READY, and DELETING. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # [Output Only] An optional, human-readable explanation of the status. + # Corresponds to the JSON property `statusMessage` + # @return [String] + attr_accessor :status_message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @node_affinity_labels = args[:node_affinity_labels] if args.key?(:node_affinity_labels) + @node_type = args[:node_type] if args.key?(:node_type) + @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) + @status = args[:status] if args.key?(:status) + @status_message = args[:status_message] if args.key?(:status_message) + end + end + + # + class NodeTemplateAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of NodeTemplatesScopedList resources. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # [Output Only] Type of resource.Always compute#nodeTemplateAggregatedList for + # aggregated lists of node templates. + # 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::ComputeBeta::NodeTemplateAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # Contains a list of node templates. + class NodeTemplateList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of NodeTemplate resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource.Always compute#nodeTemplateList for lists of + # node templates. + # 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::ComputeBeta::NodeTemplateList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class NodeTemplateNodeTypeFlexibility + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `cpus` + # @return [String] + attr_accessor :cpus + + # + # Corresponds to the JSON property `localSsd` + # @return [String] + attr_accessor :local_ssd + + # + # Corresponds to the JSON property `memory` + # @return [String] + attr_accessor :memory + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cpus = args[:cpus] if args.key?(:cpus) + @local_ssd = args[:local_ssd] if args.key?(:local_ssd) + @memory = args[:memory] if args.key?(:memory) + end + end + + # + class NodeTemplatesScopedList + include Google::Apis::Core::Hashable + + # [Output Only] A list of node templates contained in this scope. + # Corresponds to the JSON property `nodeTemplates` + # @return [Array] + attr_accessor :node_templates + + # [Output Only] An informational warning that appears when the node templates + # list is empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::NodeTemplatesScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node_templates = args[:node_templates] if args.key?(:node_templates) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] An informational warning that appears when the node templates + # list is empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # A Node Type resource. + class NodeType + include Google::Apis::Core::Hashable + + # [Output Only] The CPU platform used by this node type. + # Corresponds to the JSON property `cpuPlatform` + # @return [String] + attr_accessor :cpu_platform + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # Deprecation status for a public resource. + # Corresponds to the JSON property `deprecated` + # @return [Google::Apis::ComputeBeta::DeprecationStatus] + attr_accessor :deprecated + + # [Output Only] An optional textual description of the resource. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] The number of virtual CPUs that are available to the node type. + # Corresponds to the JSON property `guestCpus` + # @return [Fixnum] + attr_accessor :guest_cpus + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # [Output Only] The type of the resource. Always compute#nodeType for node types. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] Local SSD available to the node type, defined in GB. + # Corresponds to the JSON property `localSsdGb` + # @return [Fixnum] + attr_accessor :local_ssd_gb + + # [Output Only] The amount of physical memory available to the node type, + # defined in MB. + # Corresponds to the JSON property `memoryMb` + # @return [Fixnum] + attr_accessor :memory_mb + + # [Output Only] Name of the resource. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] The name of the zone where the node type resides, such as us- + # central1-a. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cpu_platform = args[:cpu_platform] if args.key?(:cpu_platform) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @deprecated = args[:deprecated] if args.key?(:deprecated) + @description = args[:description] if args.key?(:description) + @guest_cpus = args[:guest_cpus] if args.key?(:guest_cpus) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @local_ssd_gb = args[:local_ssd_gb] if args.key?(:local_ssd_gb) + @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) + @zone = args[:zone] if args.key?(:zone) + end + end + + # + class NodeTypeAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of NodeTypesScopedList resources. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # [Output Only] Type of resource.Always compute#nodeTypeAggregatedList for + # aggregated lists of node types. + # 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::ComputeBeta::NodeTypeAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # Contains a list of node types. + class NodeTypeList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of NodeType resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource.Always compute#nodeTypeList for lists of node + # types. + # 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::ComputeBeta::NodeTypeList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class NodeTypesScopedList + include Google::Apis::Core::Hashable + + # [Output Only] A list of node types contained in this scope. + # Corresponds to the JSON property `nodeTypes` + # @return [Array] + attr_accessor :node_types + + # [Output Only] An informational warning that appears when the node types list + # is empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::NodeTypesScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node_types = args[:node_types] if args.key?(:node_types) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] An informational warning that appears when the node types list + # is empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # An Operation resource, used to manage asynchronous API requests. (== # resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) # (== resource_for v1.regionOperations ==) (== resource_for beta. @@ -16316,6 +17712,11 @@ module Google attr_accessor :automatic_restart alias_method :automatic_restart?, :automatic_restart + # A set of node affinity and anti-affinity. + # Corresponds to the JSON property `nodeAffinities` + # @return [Array] + attr_accessor :node_affinities + # Defines the maintenance behavior for this instance. For standard instances, # the default behavior is MIGRATE. For preemptible instances, the default and # only possible behavior is TERMINATE. For more information, see Setting @@ -16339,13 +17740,46 @@ module Google # Update properties of this object def update!(**args) @automatic_restart = args[:automatic_restart] if args.key?(:automatic_restart) + @node_affinities = args[:node_affinities] if args.key?(:node_affinities) @on_host_maintenance = args[:on_host_maintenance] if args.key?(:on_host_maintenance) @preemptible = args[:preemptible] if args.key?(:preemptible) end end + # Node Affinity: the configuration of desired nodes onto which this Instance + # could be scheduled. + class SchedulingNodeAffinity + include Google::Apis::Core::Hashable + + # Corresponds to the label key of Node resource. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # Defines the operation of node selection. + # Corresponds to the JSON property `operator` + # @return [String] + attr_accessor :operator + + # Corresponds to the label values of Node resource. + # Corresponds to the JSON property `values` + # @return [Array] + attr_accessor :values + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @operator = args[:operator] if args.key?(:operator) + @values = args[:values] if args.key?(:values) + end + end + # A security policy is comprised of one or more rules. It can also be associated - # with one or more 'targets'. + # with one or more 'targets'. Next available tag: 11 class SecurityPolicy include Google::Apis::Core::Hashable @@ -16749,6 +18183,61 @@ module Google end end + # A set of Shielded VM options. + class ShieldedVmConfig + include Google::Apis::Core::Hashable + + # Defines whether the instance should have integrity monitoring enabled. + # Corresponds to the JSON property `enableIntegrityMonitoring` + # @return [Boolean] + attr_accessor :enable_integrity_monitoring + alias_method :enable_integrity_monitoring?, :enable_integrity_monitoring + + # Defines whether the instance should have secure boot enabled. + # Corresponds to the JSON property `enableSecureBoot` + # @return [Boolean] + attr_accessor :enable_secure_boot + alias_method :enable_secure_boot?, :enable_secure_boot + + # Defines whether the instance should have the TPM enabled. + # Corresponds to the JSON property `enableVtpm` + # @return [Boolean] + attr_accessor :enable_vtpm + alias_method :enable_vtpm?, :enable_vtpm + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enable_integrity_monitoring = args[:enable_integrity_monitoring] if args.key?(:enable_integrity_monitoring) + @enable_secure_boot = args[:enable_secure_boot] if args.key?(:enable_secure_boot) + @enable_vtpm = args[:enable_vtpm] if args.key?(:enable_vtpm) + end + end + + # The policy describes how boot integrity measurements are evaluated. + class ShieldedVmIntegrityPolicy + include Google::Apis::Core::Hashable + + # Triggers an auto relearn event: the integrity monitoring module copies + # existing guest measurements to the baseline. + # Corresponds to the JSON property `updateAutoLearnPolicy` + # @return [Boolean] + attr_accessor :update_auto_learn_policy + alias_method :update_auto_learn_policy?, :update_auto_learn_policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @update_auto_learn_policy = args[:update_auto_learn_policy] if args.key?(:update_auto_learn_policy) + end + end + # Represents a customer-supplied Signing Key used by Cloud CDN Signed URLs class SignedUrlKey include Google::Apis::Core::Hashable @@ -16830,7 +18319,8 @@ module Google # @return [Hash] attr_accessor :labels - # Integer license codes indicating which licenses are attached to this snapshot. + # [Output Only] Integer license codes indicating which licenses are attached to + # this snapshot. # Corresponds to the JSON property `licenseCodes` # @return [Array] attr_accessor :license_codes @@ -21051,6 +22541,11 @@ module Google # @return [String] attr_accessor :network + # Secondary IP ranges. + # Corresponds to the JSON property `secondaryIpRanges` + # @return [Array] + attr_accessor :secondary_ip_ranges + # Subnetwork URL. # Corresponds to the JSON property `subnetwork` # @return [String] @@ -21064,10 +22559,38 @@ module Google def update!(**args) @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) @network = args[:network] if args.key?(:network) + @secondary_ip_ranges = args[:secondary_ip_ranges] if args.key?(:secondary_ip_ranges) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) end end + # Secondary IP range of a usable subnetwork. + class UsableSubnetworkSecondaryRange + include Google::Apis::Core::Hashable + + # The range of IP addresses belonging to this subnetwork secondary range. + # Corresponds to the JSON property `ipCidrRange` + # @return [String] + attr_accessor :ip_cidr_range + + # The name associated with this subnetwork secondary range, used when adding an + # alias IP range to a VM instance. The name must be 1-63 characters long, and + # comply with RFC1035. The name must be unique within the subnetwork. + # Corresponds to the JSON property `rangeName` + # @return [String] + attr_accessor :range_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) + @range_name = args[:range_name] if args.key?(:range_name) + end + end + # class UsableSubnetworksAggregatedList include Google::Apis::Core::Hashable @@ -22062,6 +23585,56 @@ module Google @labels = args[:labels] if args.key?(:labels) end end + + # + class ZoneSetPolicyRequest + include Google::Apis::Core::Hashable + + # Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use ' + # policy' to specify bindings. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # Flatten Policy to create a backward compatible wire-format. Deprecated. Use ' + # policy' to specify the etag. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # Defines an Identity and Access Management (IAM) policy. It is used to specify + # access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of ` + # members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **JSON Example** + # ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", + # "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/viewer", "members": ["user: + # sean@example.com"] ` ] ` + # **YAML Example** + # bindings: - members: - user:mike@example.com - group:admins@example.com - + # domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner - members: - user:sean@example.com role: roles/viewer + # For a description of IAM and its features, see the [IAM developer's guide]( + # https://cloud.google.com/iam/docs). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::ComputeBeta::Policy] + attr_accessor :policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) + @policy = args[:policy] if args.key?(:policy) + end + end end end end diff --git a/generated/google/apis/compute_beta/representations.rb b/generated/google/apis/compute_beta/representations.rb index 6edef7081..f9c5dcbfb 100644 --- a/generated/google/apis/compute_beta/representations.rb +++ b/generated/google/apis/compute_beta/representations.rb @@ -1678,6 +1678,216 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class NodeGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeGroupAggregatedList + 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 NodeGroupList + 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 NodeGroupNode + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeGroupsAddNodesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeGroupsDeleteNodesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeGroupsScopedList + 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 NodeGroupsSetNodeTemplateRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeTemplate + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeTemplateAggregatedList + 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 NodeTemplateList + 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 NodeTemplateNodeTypeFlexibility + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeTemplatesScopedList + 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 NodeType + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NodeTypeAggregatedList + 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 NodeTypeList + 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 NodeTypesScopedList + 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 Operation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2188,6 +2398,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SchedulingNodeAffinity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SecurityPolicy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2248,6 +2464,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ShieldedVmConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ShieldedVmIntegrityPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SignedUrlKey class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2884,6 +3112,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UsableSubnetworkSecondaryRange + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UsableSubnetworksAggregatedList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3022,6 +3256,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ZoneSetPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AcceleratorConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4212,6 +4452,7 @@ module Google collection :destination_ranges, as: 'destinationRanges' property :direction, as: 'direction' property :disabled, as: 'disabled' + property :enable_logging, as: 'enableLogging' property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' property :name, as: 'name' @@ -4753,6 +4994,10 @@ module Google property :self_link, as: 'selfLink' collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::ComputeBeta::ServiceAccount, decorator: Google::Apis::ComputeBeta::ServiceAccount::Representation + property :shielded_vm_config, as: 'shieldedVmConfig', class: Google::Apis::ComputeBeta::ShieldedVmConfig, decorator: Google::Apis::ComputeBeta::ShieldedVmConfig::Representation + + property :shielded_vm_integrity_policy, as: 'shieldedVmIntegrityPolicy', class: Google::Apis::ComputeBeta::ShieldedVmIntegrityPolicy, decorator: Google::Apis::ComputeBeta::ShieldedVmIntegrityPolicy::Representation + property :start_restricted, as: 'startRestricted' property :status, as: 'status' property :status_message, as: 'statusMessage' @@ -5307,6 +5552,8 @@ module Google collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::ComputeBeta::ServiceAccount, decorator: Google::Apis::ComputeBeta::ServiceAccount::Representation + property :shielded_vm_config, as: 'shieldedVmConfig', class: Google::Apis::ComputeBeta::ShieldedVmConfig, decorator: Google::Apis::ComputeBeta::ShieldedVmConfig::Representation + property :tags, as: 'tags', class: Google::Apis::ComputeBeta::Tags, decorator: Google::Apis::ComputeBeta::Tags::Representation end @@ -6146,6 +6393,376 @@ module Google end end + class NodeGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :node_template, as: 'nodeTemplate' + collection :nodes, as: 'nodes', class: Google::Apis::ComputeBeta::NodeGroupNode, decorator: Google::Apis::ComputeBeta::NodeGroupNode::Representation + + property :self_link, as: 'selfLink' + property :status, as: 'status' + property :zone, as: 'zone' + end + end + + class NodeGroupAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeBeta::NodeGroupsScopedList, decorator: Google::Apis::ComputeBeta::NodeGroupsScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::NodeGroupAggregatedList::Warning, decorator: Google::Apis::ComputeBeta::NodeGroupAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::NodeGroupAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::NodeGroupAggregatedList::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 NodeGroupList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeBeta::NodeGroup, decorator: Google::Apis::ComputeBeta::NodeGroup::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::NodeGroupList::Warning, decorator: Google::Apis::ComputeBeta::NodeGroupList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::NodeGroupList::Warning::Datum, decorator: Google::Apis::ComputeBeta::NodeGroupList::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 NodeGroupNode + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :instances, as: 'instances' + property :name, as: 'name' + property :node_type, as: 'nodeType' + end + end + + class NodeGroupsAddNodesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :additional_node_count, as: 'additionalNodeCount' + end + end + + class NodeGroupsDeleteNodesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :nodes, as: 'nodes' + end + end + + class NodeGroupsScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :node_groups, as: 'nodeGroups', class: Google::Apis::ComputeBeta::NodeGroup, decorator: Google::Apis::ComputeBeta::NodeGroup::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::NodeGroupsScopedList::Warning, decorator: Google::Apis::ComputeBeta::NodeGroupsScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::NodeGroupsScopedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::NodeGroupsScopedList::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 NodeGroupsSetNodeTemplateRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :node_template, as: 'nodeTemplate' + end + end + + class NodeTemplate + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + hash :node_affinity_labels, as: 'nodeAffinityLabels' + property :node_type, as: 'nodeType' + property :node_type_flexibility, as: 'nodeTypeFlexibility', class: Google::Apis::ComputeBeta::NodeTemplateNodeTypeFlexibility, decorator: Google::Apis::ComputeBeta::NodeTemplateNodeTypeFlexibility::Representation + + property :region, as: 'region' + property :self_link, as: 'selfLink' + property :status, as: 'status' + property :status_message, as: 'statusMessage' + end + end + + class NodeTemplateAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeBeta::NodeTemplatesScopedList, decorator: Google::Apis::ComputeBeta::NodeTemplatesScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::NodeTemplateAggregatedList::Warning, decorator: Google::Apis::ComputeBeta::NodeTemplateAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::NodeTemplateAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::NodeTemplateAggregatedList::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 NodeTemplateList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeBeta::NodeTemplate, decorator: Google::Apis::ComputeBeta::NodeTemplate::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::NodeTemplateList::Warning, decorator: Google::Apis::ComputeBeta::NodeTemplateList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::NodeTemplateList::Warning::Datum, decorator: Google::Apis::ComputeBeta::NodeTemplateList::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 NodeTemplateNodeTypeFlexibility + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cpus, as: 'cpus' + property :local_ssd, as: 'localSsd' + property :memory, as: 'memory' + end + end + + class NodeTemplatesScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :node_templates, as: 'nodeTemplates', class: Google::Apis::ComputeBeta::NodeTemplate, decorator: Google::Apis::ComputeBeta::NodeTemplate::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::NodeTemplatesScopedList::Warning, decorator: Google::Apis::ComputeBeta::NodeTemplatesScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::NodeTemplatesScopedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::NodeTemplatesScopedList::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 NodeType + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cpu_platform, as: 'cpuPlatform' + property :creation_timestamp, as: 'creationTimestamp' + property :deprecated, as: 'deprecated', class: Google::Apis::ComputeBeta::DeprecationStatus, decorator: Google::Apis::ComputeBeta::DeprecationStatus::Representation + + property :description, as: 'description' + property :guest_cpus, as: 'guestCpus' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :local_ssd_gb, as: 'localSsdGb' + property :memory_mb, as: 'memoryMb' + property :name, as: 'name' + property :self_link, as: 'selfLink' + property :zone, as: 'zone' + end + end + + class NodeTypeAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeBeta::NodeTypesScopedList, decorator: Google::Apis::ComputeBeta::NodeTypesScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::NodeTypeAggregatedList::Warning, decorator: Google::Apis::ComputeBeta::NodeTypeAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::NodeTypeAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::NodeTypeAggregatedList::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 NodeTypeList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeBeta::NodeType, decorator: Google::Apis::ComputeBeta::NodeType::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::NodeTypeList::Warning, decorator: Google::Apis::ComputeBeta::NodeTypeList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::NodeTypeList::Warning::Datum, decorator: Google::Apis::ComputeBeta::NodeTypeList::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 NodeTypesScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :node_types, as: 'nodeTypes', class: Google::Apis::ComputeBeta::NodeType, decorator: Google::Apis::ComputeBeta::NodeType::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::NodeTypesScopedList::Warning, decorator: Google::Apis::ComputeBeta::NodeTypesScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::NodeTypesScopedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::NodeTypesScopedList::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 Operation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -7050,11 +7667,22 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :automatic_restart, as: 'automaticRestart' + collection :node_affinities, as: 'nodeAffinities', class: Google::Apis::ComputeBeta::SchedulingNodeAffinity, decorator: Google::Apis::ComputeBeta::SchedulingNodeAffinity::Representation + property :on_host_maintenance, as: 'onHostMaintenance' property :preemptible, as: 'preemptible' end end + class SchedulingNodeAffinity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :operator, as: 'operator' + collection :values, as: 'values' + end + end + class SecurityPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -7159,6 +7787,22 @@ module Google end end + class ShieldedVmConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enable_integrity_monitoring, as: 'enableIntegrityMonitoring' + property :enable_secure_boot, as: 'enableSecureBoot' + property :enable_vtpm, as: 'enableVtpm' + end + end + + class ShieldedVmIntegrityPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :update_auto_learn_policy, as: 'updateAutoLearnPolicy' + end + end + class SignedUrlKey # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8264,10 +8908,20 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :ip_cidr_range, as: 'ipCidrRange' property :network, as: 'network' + collection :secondary_ip_ranges, as: 'secondaryIpRanges', class: Google::Apis::ComputeBeta::UsableSubnetworkSecondaryRange, decorator: Google::Apis::ComputeBeta::UsableSubnetworkSecondaryRange::Representation + property :subnetwork, as: 'subnetwork' end end + class UsableSubnetworkSecondaryRange + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ip_cidr_range, as: 'ipCidrRange' + property :range_name, as: 'rangeName' + end + end + class UsableSubnetworksAggregatedList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8521,6 +9175,17 @@ module Google hash :labels, as: 'labels' end end + + class ZoneSetPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :bindings, as: 'bindings', class: Google::Apis::ComputeBeta::Binding, decorator: Google::Apis::ComputeBeta::Binding::Representation + + property :etag, :base64 => true, as: 'etag' + property :policy, as: 'policy', class: Google::Apis::ComputeBeta::Policy, decorator: Google::Apis::ComputeBeta::Policy::Representation + + end + end end end end diff --git a/generated/google/apis/compute_beta/service.rb b/generated/google/apis/compute_beta/service.rb index 79da55bc2..3a5d7eaa3 100644 --- a/generated/google/apis/compute_beta/service.rb +++ b/generated/google/apis/compute_beta/service.rb @@ -8866,6 +8866,61 @@ module Google execute_or_queue_command(command, &block) end + # Sets the Shielded VM integrity policy for an instance. This method supports + # PATCH semantics and uses the JSON merge patch format and processing rules. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] instance + # Name of the instance scoping this request. + # @param [Google::Apis::ComputeBeta::ShieldedVmIntegrityPolicy] shielded_vm_integrity_policy_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_instance_shielded_vm_integrity_policy(project, zone, instance, shielded_vm_integrity_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy', options) + command.request_representation = Google::Apis::ComputeBeta::ShieldedVmIntegrityPolicy::Representation + command.request_object = shielded_vm_integrity_policy_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instance'] = instance unless instance.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Sets tags for the specified instance to the data included in the request. # @param [String] project # Project ID for this request. @@ -9279,6 +9334,61 @@ module Google execute_or_queue_command(command, &block) end + # Updates the Shielded VM config for an instance. This method supports PATCH + # semantics and uses the JSON merge patch format and processing rules. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] instance + # Name of the instance scoping this request. + # @param [Google::Apis::ComputeBeta::ShieldedVmConfig] shielded_vm_config_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::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_instance_shielded_vm_config(project, zone, instance, shielded_vm_config_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig', options) + command.request_representation = Google::Apis::ComputeBeta::ShieldedVmConfig::Representation + command.request_object = shielded_vm_config_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instance'] = instance unless instance.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves an aggregated list of interconnect attachments. # @param [String] project # Project ID for this request. @@ -11041,6 +11151,1182 @@ module Google execute_or_queue_command(command, &block) end + # Adds specified number of nodes to the node group. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] node_group + # Name of the NodeGroup resource to delete. + # @param [Google::Apis::ComputeBeta::NodeGroupsAddNodesRequest] node_groups_add_nodes_request_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::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def add_node_group_nodes(project, zone, node_group, node_groups_add_nodes_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes', options) + command.request_representation = Google::Apis::ComputeBeta::NodeGroupsAddNodesRequest::Representation + command.request_object = node_groups_add_nodes_request_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['nodeGroup'] = node_group unless node_group.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves an aggregated list of node groups. + # @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::ComputeBeta::NodeGroupAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::NodeGroupAggregatedList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def aggregated_node_group_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/nodeGroups', options) + command.response_representation = Google::Apis::ComputeBeta::NodeGroupAggregatedList::Representation + command.response_class = Google::Apis::ComputeBeta::NodeGroupAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified NodeGroup resource. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] node_group + # Name of the NodeGroup resource to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_node_group(project, zone, node_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/zones/{zone}/nodeGroups/{nodeGroup}', options) + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['nodeGroup'] = node_group unless node_group.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes specified nodes from the node group. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] node_group + # Name of the NodeGroup resource to delete. + # @param [Google::Apis::ComputeBeta::NodeGroupsDeleteNodesRequest] node_groups_delete_nodes_request_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::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_node_group_nodes(project, zone, node_group, node_groups_delete_nodes_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes', options) + command.request_representation = Google::Apis::ComputeBeta::NodeGroupsDeleteNodesRequest::Representation + command.request_object = node_groups_delete_nodes_request_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['nodeGroup'] = node_group unless node_group.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 NodeGroup. Get a list of available NodeGroups by making + # a list() request. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] node_group + # Name of the node group 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::ComputeBeta::NodeGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::NodeGroup] + # + # @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_node_group(project, zone, node_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/nodeGroups/{nodeGroup}', options) + command.response_representation = Google::Apis::ComputeBeta::NodeGroup::Representation + command.response_class = Google::Apis::ComputeBeta::NodeGroup + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['nodeGroup'] = node_group unless node_group.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 + + # 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] zone + # The name of the zone for this request. + # @param [String] resource + # Name 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_node_group_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/nodeGroups/{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['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a NodeGroup resource in the specified project using the data included + # in the request. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [Fixnum] initial_node_count + # Initial count of nodes in the node group. + # @param [Google::Apis::ComputeBeta::NodeGroup] node_group_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::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_node_group(project, zone, initial_node_count, node_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups', options) + command.request_representation = Google::Apis::ComputeBeta::NodeGroup::Representation + command.request_object = node_group_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.query['initialNodeCount'] = initial_node_count unless initial_node_count.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 a list of node groups available to the specified project. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone 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::ComputeBeta::NodeGroupList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::NodeGroupList] + # + # @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_node_groups(project, zone, 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}/zones/{zone}/nodeGroups', options) + command.response_representation = Google::Apis::ComputeBeta::NodeGroupList::Representation + command.response_class = Google::Apis::ComputeBeta::NodeGroupList + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.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 access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_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_node_group_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy', options) + command.request_representation = Google::Apis::ComputeBeta::ZoneSetPolicyRequest::Representation + command.request_object = zone_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['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates the node template of the node group. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] node_group + # Name of the NodeGroup resource to delete. + # @param [Google::Apis::ComputeBeta::NodeGroupsSetNodeTemplateRequest] node_groups_set_node_template_request_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::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_node_group_node_template(project, zone, node_group, node_groups_set_node_template_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate', options) + command.request_representation = Google::Apis::ComputeBeta::NodeGroupsSetNodeTemplateRequest::Representation + command.request_object = node_groups_set_node_template_request_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['nodeGroup'] = node_group unless node_group.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_node_group_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves an aggregated list of node templates. + # @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::ComputeBeta::NodeTemplateAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::NodeTemplateAggregatedList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def aggregated_node_template_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/nodeTemplates', options) + command.response_representation = Google::Apis::ComputeBeta::NodeTemplateAggregatedList::Representation + command.response_class = Google::Apis::ComputeBeta::NodeTemplateAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified NodeTemplate resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] node_template + # Name of the NodeTemplate resource to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_node_template(project, region, node_template, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/regions/{region}/nodeTemplates/{nodeTemplate}', options) + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['nodeTemplate'] = node_template unless node_template.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 node template. Gets a list of available node templates + # by making a list() request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] node_template + # Name of the node template 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::ComputeBeta::NodeTemplate] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::NodeTemplate] + # + # @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_node_template(project, region, node_template, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/nodeTemplates/{nodeTemplate}', options) + command.response_representation = Google::Apis::ComputeBeta::NodeTemplate::Representation + command.response_class = Google::Apis::ComputeBeta::NodeTemplate + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['nodeTemplate'] = node_template unless node_template.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + 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 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_node_template_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/nodeTemplates/{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 NodeTemplate resource in the specified project using the data + # included in the request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [Google::Apis::ComputeBeta::NodeTemplate] node_template_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::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_node_template(project, region, node_template_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/nodeTemplates', options) + command.request_representation = Google::Apis::ComputeBeta::NodeTemplate::Representation + command.request_object = node_template_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of node templates available to the specified project. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region 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::ComputeBeta::NodeTemplateList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::NodeTemplateList] + # + # @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_node_templates(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/nodeTemplates', options) + command.response_representation = Google::Apis::ComputeBeta::NodeTemplateList::Representation + command.response_class = Google::Apis::ComputeBeta::NodeTemplateList + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # 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 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_node_template_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}/nodeTemplates/{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 + + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_node_template_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves an aggregated list of node types. + # @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::ComputeBeta::NodeTypeAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::NodeTypeAggregatedList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def aggregated_node_type_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/nodeTypes', options) + command.response_representation = Google::Apis::ComputeBeta::NodeTypeAggregatedList::Representation + command.response_class = Google::Apis::ComputeBeta::NodeTypeAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified node type. Gets a list of available node types by making + # a list() request. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] node_type + # Name of the node type 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::ComputeBeta::NodeType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::NodeType] + # + # @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_node_type(project, zone, node_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/nodeTypes/{nodeType}', options) + command.response_representation = Google::Apis::ComputeBeta::NodeType::Representation + command.response_class = Google::Apis::ComputeBeta::NodeType + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['nodeType'] = node_type unless node_type.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 a list of node types available to the specified project. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone 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::ComputeBeta::NodeTypeList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::NodeTypeList] + # + # @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_node_types(project, zone, 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}/zones/{zone}/nodeTypes', options) + command.response_representation = Google::Apis::ComputeBeta::NodeTypeList::Representation + command.response_class = Google::Apis::ComputeBeta::NodeTypeList + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.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 + # Disable this project as a shared VPC host project. # @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 f9477f8ed..5ed3cb674 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 = '20180516' + REVISION = '20180518' # 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 33c16a575..2e4c9d635 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -7215,8 +7215,7 @@ module Google # Fingerprint of this resource. This field may be used in optimistic locking. It # will be ignored when inserting an InstanceGroupManager. An up-to-date - # fingerprint must be provided in order to update the InstanceGroupManager or - # the field need to be unset. + # fingerprint must be provided in order to update the InstanceGroupManager. # Corresponds to the JSON property `fingerprint` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -9126,6 +9125,12 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] The current state of whether or not this Interconnect is + # functional. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + def initialize(**args) update!(**args) end @@ -9153,6 +9158,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) + @state = args[:state] if args.key?(:state) end end @@ -9162,6 +9168,31 @@ module Google class InterconnectAttachment include Google::Apis::Core::Hashable + # Determines whether this Attachment will carry packets. Not present for + # PARTNER_PROVIDER. + # Corresponds to the JSON property `adminEnabled` + # @return [Boolean] + attr_accessor :admin_enabled + alias_method :admin_enabled?, :admin_enabled + + # Provisioned bandwidth capacity for the interconnectAttachment. Can be set by + # the partner to update the customer's provisioned bandwidth. Output only for + # for PARTNER type, mutable for PARTNER_PROVIDER, not available for DEDICATED. + # Corresponds to the JSON property `bandwidth` + # @return [String] + attr_accessor :bandwidth + + # Up to 16 candidate prefixes that can be used to restrict the allocation of + # cloudRouterIpAddress and customerRouterIpAddress for this attachment. All + # prefixes must be within link-local address space (169.254.0.0/16) and must be / + # 29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 + # from the supplied candidate prefix(es). The request will fail if all possible / + # 29s are in use on Google?s edge. If not supplied, Google will randomly select + # an unused /29 from all of link-local space. + # Corresponds to the JSON property `candidateSubnets` + # @return [Array] + attr_accessor :candidate_subnets + # [Output Only] IPv4 address + prefix length to be configured on Cloud Router # Interface for this interconnect attachment. # Corresponds to the JSON property `cloudRouterIpAddress` @@ -9184,6 +9215,16 @@ module Google # @return [String] attr_accessor :description + # Desired availability domain for the attachment. Only available for type + # PARTNER, at creation time. For improved reliability, customers should + # configure a pair of attachments with one per availability domain. The selected + # availability domain will be provided to the Partner via the pairing key so + # that the provisioned circuit will lie in the specified domain. If not + # specified, the value will default to AVAILABILITY_DOMAIN_ANY. + # Corresponds to the JSON property `edgeAvailabilityDomain` + # @return [String] + attr_accessor :edge_availability_domain + # [Output Only] Google reference ID, to be used when raising support tickets # with Google or otherwise to debug backend connectivity issues. # Corresponds to the JSON property `googleReferenceId` @@ -9224,6 +9265,28 @@ module Google # @return [String] attr_accessor :operational_status + # [Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not present + # for DEDICATED]. The opaque identifier of an PARTNER attachment used to + # initiate provisioning with a selected partner. Of the form "XXXXX/region/ + # domain" + # Corresponds to the JSON property `pairingKey` + # @return [String] + attr_accessor :pairing_key + + # Optional BGP ASN for the router that should be supplied by a layer 3 Partner + # if they configured BGP on behalf of the customer. Output only for PARTNER type, + # input only for PARTNER_PROVIDER, not available for DEDICATED. + # Corresponds to the JSON property `partnerAsn` + # @return [Fixnum] + attr_accessor :partner_asn + + # Informational metadata about Partner attachments from Partners to display to + # customers. These fields are propagated from PARTNER_PROVIDER attachments to + # their corresponding PARTNER attachments. + # Corresponds to the JSON property `partnerMetadata` + # @return [Google::Apis::ComputeV1::InterconnectAttachmentPartnerMetadata] + attr_accessor :partner_metadata + # Information for an interconnect attachment when this belongs to an # interconnect of type DEDICATED. # Corresponds to the JSON property `privateInterconnectInfo` @@ -9250,26 +9313,53 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] The current state of this attachment's functionality. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Available only for DEDICATED and PARTNER_PROVIDER. Desired VLAN tag for this + # attachment, in the range 2-4094. This field refers to 802.1q VLAN tag, also + # known as IEEE 802.1Q Only specified at creation time. + # Corresponds to the JSON property `vlanTag8021q` + # @return [Fixnum] + attr_accessor :vlan_tag8021q + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @admin_enabled = args[:admin_enabled] if args.key?(:admin_enabled) + @bandwidth = args[:bandwidth] if args.key?(:bandwidth) + @candidate_subnets = args[:candidate_subnets] if args.key?(:candidate_subnets) @cloud_router_ip_address = args[:cloud_router_ip_address] if args.key?(:cloud_router_ip_address) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @customer_router_ip_address = args[:customer_router_ip_address] if args.key?(:customer_router_ip_address) @description = args[:description] if args.key?(:description) + @edge_availability_domain = args[:edge_availability_domain] if args.key?(:edge_availability_domain) @google_reference_id = args[:google_reference_id] if args.key?(:google_reference_id) @id = args[:id] if args.key?(:id) @interconnect = args[:interconnect] if args.key?(:interconnect) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @operational_status = args[:operational_status] if args.key?(:operational_status) + @pairing_key = args[:pairing_key] if args.key?(:pairing_key) + @partner_asn = args[:partner_asn] if args.key?(:partner_asn) + @partner_metadata = args[:partner_metadata] if args.key?(:partner_metadata) @private_interconnect_info = args[:private_interconnect_info] if args.key?(:private_interconnect_info) @region = args[:region] if args.key?(:region) @router = args[:router] if args.key?(:router) @self_link = args[:self_link] if args.key?(:self_link) + @state = args[:state] if args.key?(:state) + @type = args[:type] if args.key?(:type) + @vlan_tag8021q = args[:vlan_tag8021q] if args.key?(:vlan_tag8021q) end end @@ -9510,6 +9600,44 @@ module Google end end + # Informational metadata about Partner attachments from Partners to display to + # customers. These fields are propagated from PARTNER_PROVIDER attachments to + # their corresponding PARTNER attachments. + class InterconnectAttachmentPartnerMetadata + include Google::Apis::Core::Hashable + + # Plain text name of the Interconnect this attachment is connected to, as + # displayed in the Partner?s portal. For instance ?Chicago 1?. This value may be + # validated to match approved Partner values. + # Corresponds to the JSON property `interconnectName` + # @return [String] + attr_accessor :interconnect_name + + # Plain text name of the Partner providing this attachment. This value may be + # validated to match approved Partner values. + # Corresponds to the JSON property `partnerName` + # @return [String] + attr_accessor :partner_name + + # URL of the Partner?s portal for this Attachment. Partners may customise this + # to be a deep-link to the specific resource on the Partner portal. This value + # may be validated to match approved Partner values. + # Corresponds to the JSON property `portalUrl` + # @return [String] + attr_accessor :portal_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @interconnect_name = args[:interconnect_name] if args.key?(:interconnect_name) + @partner_name = args[:partner_name] if args.key?(:partner_name) + @portal_url = args[:portal_url] if args.key?(:portal_url) + end + end + # Information for an interconnect attachment when this belongs to an # interconnect of type DEDICATED. class InterconnectAttachmentPrivateInfo @@ -14228,6 +14356,15 @@ module Google # @return [String] attr_accessor :ip_address + # [Output Only] Type of how the resource/configuration of the BGP peer is + # managed. MANAGED_BY_USER is the default value; MANAGED_BY_ATTACHMENT + # represents an BGP peer that is automatically created for PARTNER + # interconnectAttachment, Google will automatically create/delete this type of + # BGP peer when the PARTNER interconnectAttachment is created/deleted. + # Corresponds to the JSON property `managementType` + # @return [String] + attr_accessor :management_type + # Name of this BGP peer. The name must be 1-63 characters long and comply with # RFC1035. # Corresponds to the JSON property `name` @@ -14257,6 +14394,7 @@ module Google @advertised_route_priority = args[:advertised_route_priority] if args.key?(:advertised_route_priority) @interface_name = args[:interface_name] if args.key?(:interface_name) @ip_address = args[:ip_address] if args.key?(:ip_address) + @management_type = args[:management_type] if args.key?(:management_type) @name = args[:name] if args.key?(:name) @peer_asn = args[:peer_asn] if args.key?(:peer_asn) @peer_ip_address = args[:peer_ip_address] if args.key?(:peer_ip_address) @@ -14289,6 +14427,16 @@ module Google # @return [String] attr_accessor :linked_vpn_tunnel + # [Output Only] Type of how the resource/configuration of the interface is + # managed. MANAGED_BY_USER is the default value; MANAGED_BY_ATTACHMENT + # represents an interface that is automatically created for PARTNER type + # interconnectAttachment, Google will automatically create/update/delete this + # type of interface when the PARTNER interconnectAttachment is created/ + # provisioned/deleted. + # Corresponds to the JSON property `managementType` + # @return [String] + attr_accessor :management_type + # Name of this interface entry. The name must be 1-63 characters long and comply # with RFC1035. # Corresponds to the JSON property `name` @@ -14304,6 +14452,7 @@ module Google @ip_range = args[:ip_range] if args.key?(:ip_range) @linked_interconnect_attachment = args[:linked_interconnect_attachment] if args.key?(:linked_interconnect_attachment) @linked_vpn_tunnel = args[:linked_vpn_tunnel] if args.key?(:linked_vpn_tunnel) + @management_type = args[:management_type] if args.key?(:management_type) @name = args[:name] if args.key?(:name) end end @@ -14888,7 +15037,8 @@ module Google # @return [Hash] attr_accessor :labels - # Integer license codes indicating which licenses are attached to this snapshot. + # [Output Only] Integer license codes indicating which licenses are attached to + # this snapshot. # Corresponds to the JSON property `licenseCodes` # @return [Array] attr_accessor :license_codes @@ -16410,6 +16560,25 @@ module Google end end + # + class TargetHttpsProxiesSetQuicOverrideRequest + include Google::Apis::Core::Hashable + + # QUIC policy for the TargetHttpsProxy resource. + # Corresponds to the JSON property `quicOverride` + # @return [String] + attr_accessor :quic_override + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @quic_override = args[:quic_override] if args.key?(:quic_override) + end + end + # class TargetHttpsProxiesSetSslCertificatesRequest include Google::Apis::Core::Hashable @@ -16469,6 +16638,17 @@ module Google # @return [String] attr_accessor :name + # Specifies the QUIC override policy for this TargetHttpsProxy resource. This + # determines whether the load balancer will attempt to negotiate QUIC with + # clients or not. Can specify one of NONE, ENABLE, or DISABLE. Specify ENABLE to + # always enable QUIC, Enables QUIC when set to ENABLE, and disables QUIC when + # set to DISABLE. If NONE is specified, uses the QUIC policy with no user + # overrides, which is equivalent to DISABLE. Not specifying this field is + # equivalent to specifying NONE. + # Corresponds to the JSON property `quicOverride` + # @return [String] + attr_accessor :quic_override + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] @@ -16509,6 +16689,7 @@ module Google @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) + @quic_override = args[:quic_override] if args.key?(:quic_override) @self_link = args[:self_link] if args.key?(:self_link) @ssl_certificates = args[:ssl_certificates] if args.key?(:ssl_certificates) @ssl_policy = args[:ssl_policy] if args.key?(:ssl_policy) diff --git a/generated/google/apis/compute_v1/representations.rb b/generated/google/apis/compute_v1/representations.rb index 823d633bc..2986b8709 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -1252,6 +1252,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InterconnectAttachmentPartnerMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InterconnectAttachmentPrivateInfo class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2242,6 +2248,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TargetHttpsProxiesSetQuicOverrideRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class TargetHttpsProxiesSetSslCertificatesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5001,27 +5013,39 @@ module Google property :provisioned_link_count, as: 'provisionedLinkCount' property :requested_link_count, as: 'requestedLinkCount' property :self_link, as: 'selfLink' + property :state, as: 'state' end end class InterconnectAttachment # @private class Representation < Google::Apis::Core::JsonRepresentation + property :admin_enabled, as: 'adminEnabled' + property :bandwidth, as: 'bandwidth' + collection :candidate_subnets, as: 'candidateSubnets' property :cloud_router_ip_address, as: 'cloudRouterIpAddress' property :creation_timestamp, as: 'creationTimestamp' property :customer_router_ip_address, as: 'customerRouterIpAddress' property :description, as: 'description' + property :edge_availability_domain, as: 'edgeAvailabilityDomain' property :google_reference_id, as: 'googleReferenceId' property :id, :numeric_string => true, as: 'id' property :interconnect, as: 'interconnect' property :kind, as: 'kind' property :name, as: 'name' property :operational_status, as: 'operationalStatus' + property :pairing_key, as: 'pairingKey' + property :partner_asn, :numeric_string => true, as: 'partnerAsn' + property :partner_metadata, as: 'partnerMetadata', class: Google::Apis::ComputeV1::InterconnectAttachmentPartnerMetadata, decorator: Google::Apis::ComputeV1::InterconnectAttachmentPartnerMetadata::Representation + property :private_interconnect_info, as: 'privateInterconnectInfo', class: Google::Apis::ComputeV1::InterconnectAttachmentPrivateInfo, decorator: Google::Apis::ComputeV1::InterconnectAttachmentPrivateInfo::Representation property :region, as: 'region' property :router, as: 'router' property :self_link, as: 'selfLink' + property :state, as: 'state' + property :type, as: 'type' + property :vlan_tag8021q, as: 'vlanTag8021q' end end @@ -5089,6 +5113,15 @@ module Google end end + class InterconnectAttachmentPartnerMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :interconnect_name, as: 'interconnectName' + property :partner_name, as: 'partnerName' + property :portal_url, as: 'portalUrl' + end + end + class InterconnectAttachmentPrivateInfo # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6314,6 +6347,7 @@ module Google property :advertised_route_priority, as: 'advertisedRoutePriority' property :interface_name, as: 'interfaceName' property :ip_address, as: 'ipAddress' + property :management_type, as: 'managementType' property :name, as: 'name' property :peer_asn, as: 'peerAsn' property :peer_ip_address, as: 'peerIpAddress' @@ -6326,6 +6360,7 @@ module Google property :ip_range, as: 'ipRange' property :linked_interconnect_attachment, as: 'linkedInterconnectAttachment' property :linked_vpn_tunnel, as: 'linkedVpnTunnel' + property :management_type, as: 'managementType' property :name, as: 'name' end end @@ -6862,6 +6897,13 @@ module Google end end + class TargetHttpsProxiesSetQuicOverrideRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :quic_override, as: 'quicOverride' + end + end + class TargetHttpsProxiesSetSslCertificatesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6877,6 +6919,7 @@ module Google property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' property :name, as: 'name' + property :quic_override, as: 'quicOverride' property :self_link, as: 'selfLink' collection :ssl_certificates, as: 'sslCertificates' property :ssl_policy, as: 'sslPolicy' diff --git a/generated/google/apis/compute_v1/service.rb b/generated/google/apis/compute_v1/service.rb index 82bc3c151..8427453b6 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -8197,6 +8197,62 @@ module Google execute_or_queue_command(command, &block) end + # Updates the specified interconnect attachment with the data included in the + # request. This method supports PATCH semantics and uses the JSON merge patch + # format and processing rules. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] interconnect_attachment + # Name of the interconnect attachment to patch. + # @param [Google::Apis::ComputeV1::InterconnectAttachment] interconnect_attachment_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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_interconnect_attachment(project, region, interconnect_attachment, interconnect_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options) + command.request_representation = Google::Apis::ComputeV1::InterconnectAttachment::Representation + command.request_object = interconnect_attachment_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['interconnectAttachment'] = interconnect_attachment unless interconnect_attachment.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 details for the specified interconnect location. Gets a list of # available interconnect locations by making a list() request. # @param [String] project @@ -14979,6 +15035,58 @@ module Google execute_or_queue_command(command, &block) end + # Sets the QUIC override policy for TargetHttpsProxy. + # @param [String] project + # Project ID for this request. + # @param [String] target_https_proxy + # Name of the TargetHttpsProxy resource to set the QUIC override policy for. The + # name should conform to RFC1035. + # @param [Google::Apis::ComputeV1::TargetHttpsProxiesSetQuicOverrideRequest] target_https_proxies_set_quic_override_request_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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_target_https_proxy_quic_override(project, target_https_proxy, target_https_proxies_set_quic_override_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride', options) + command.request_representation = Google::Apis::ComputeV1::TargetHttpsProxiesSetQuicOverrideRequest::Representation + command.request_object = target_https_proxies_set_quic_override_request_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Replaces SslCertificates for TargetHttpsProxy. # @param [String] project # Project ID for this request. diff --git a/generated/google/apis/logging_v2.rb b/generated/google/apis/logging_v2.rb index ae2d9cb07..4d96c4a97 100644 --- a/generated/google/apis/logging_v2.rb +++ b/generated/google/apis/logging_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/logging/docs/ module LoggingV2 VERSION = 'V2' - REVISION = '20180424' + REVISION = '20180531' # 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/logging_v2/classes.rb b/generated/google/apis/logging_v2/classes.rb index a88cf6193..14e221f59 100644 --- a/generated/google/apis/logging_v2/classes.rb +++ b/generated/google/apis/logging_v2/classes.rb @@ -859,8 +859,8 @@ module Google # Required. An advanced logs filter that matches the log entries to be excluded. # By using the sample function, you can exclude less than 100% of the matching # log entries. For example, the following filter matches 99% of low-severity log - # entries from load balancers: - # "resource.type=http_load_balancer severity] + attr_accessor :accelerator_types + + # The next page token or empty if none. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @accelerator_types = args[:accelerator_types] if args.key?(:accelerator_types) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # The response message for Locations.ListLocations. class ListLocationsResponse include Google::Apis::Core::Hashable @@ -66,6 +116,31 @@ module Google end end + # Response for ListNodes. + class ListNodesResponse + include Google::Apis::Core::Hashable + + # The next page token or empty if none. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The listed nodes. + # Corresponds to the JSON property `nodes` + # @return [Array] + attr_accessor :nodes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @nodes = args[:nodes] if args.key?(:nodes) + end + end + # The response message for Operations.ListOperations. class ListOperationsResponse include Google::Apis::Core::Hashable @@ -91,6 +166,31 @@ module Google end end + # Response for ListTensorFlowVersions. + class ListTensorFlowVersionsResponse + include Google::Apis::Core::Hashable + + # The next page token or empty if none. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The listed nodes. + # Corresponds to the JSON property `tensorflowVersions` + # @return [Array] + attr_accessor :tensorflow_versions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @tensorflow_versions = args[:tensorflow_versions] if args.key?(:tensorflow_versions) + end + end + # A resource that represents Google Cloud Platform location. class Location include Google::Apis::Core::Hashable @@ -138,6 +238,169 @@ module Google end end + # A network endpoint over which a TPU worker can be reached. + class NetworkEndpoint + include Google::Apis::Core::Hashable + + # The IP address of this network endpoint. + # Corresponds to the JSON property `ipAddress` + # @return [String] + attr_accessor :ip_address + + # The port of this network endpoint. + # Corresponds to the JSON property `port` + # @return [Fixnum] + attr_accessor :port + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ip_address = args[:ip_address] if args.key?(:ip_address) + @port = args[:port] if args.key?(:port) + end + end + + # A TPU instance. + class Node + include Google::Apis::Core::Hashable + + # The type of hardware accelerators associated with this node. + # Required. + # Corresponds to the JSON property `acceleratorType` + # @return [String] + attr_accessor :accelerator_type + + # The CIDR block that the TPU node will use when selecting an IP address. + # This CIDR block must be a /29 block; the Compute Engine networks API + # forbids a smaller block, and using a larger block would be wasteful (a + # node can only consume one IP address). Errors will occur if the CIDR block + # has already been used for a currently existing TPU node, the CIDR block + # conflicts with any subnetworks in the user's provided network, or the + # provided network is peered with another network that is using that CIDR + # block. + # Required. + # Corresponds to the JSON property `cidrBlock` + # @return [String] + attr_accessor :cidr_block + + # Output only. + # The time when the node was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The user-supplied description of the TPU. Maximum of 512 characters. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The health status of the TPU node. + # Corresponds to the JSON property `health` + # @return [String] + attr_accessor :health + + # Output only. + # If this field is populated, it contains a description of why the TPU Node + # is unhealthy. + # Corresponds to the JSON property `healthDescription` + # @return [String] + attr_accessor :health_description + + # Output only. + # DEPRECATED! Use network_endpoints instead. + # The network address for the TPU Node as visible to Compute Engine + # instances. + # Corresponds to the JSON property `ipAddress` + # @return [String] + attr_accessor :ip_address + + # Resource labels to represent user-provided metadata. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Output only. + # The immutable name of the TPU + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The name of a network they wish to peer the TPU node to. It must be a + # preexisting Compute Engine network inside of the project on which this API + # has been activated. If none is provided, "default" will be used. + # Corresponds to the JSON property `network` + # @return [String] + attr_accessor :network + + # Output only. The network endpoints where TPU workers can be accessed and sent + # work. + # It is recommended that Tensorflow clients of the node reach out to the 0th + # entry in this map first. + # Corresponds to the JSON property `networkEndpoints` + # @return [Array] + attr_accessor :network_endpoints + + # Output only. + # DEPRECATED! Use network_endpoints instead. + # The network port for the TPU Node as visible to Compute Engine instances. + # Corresponds to the JSON property `port` + # @return [String] + attr_accessor :port + + # + # Corresponds to the JSON property `schedulingConfig` + # @return [Google::Apis::TpuV1::SchedulingConfig] + attr_accessor :scheduling_config + + # Output only. + # The service account used to run the tensor flow services within the node. + # To share resources, including Google Cloud Storage data, with the + # Tensorflow job running in the Node, this account must have permissions to + # that data. + # Corresponds to the JSON property `serviceAccount` + # @return [String] + attr_accessor :service_account + + # Output only. + # The current state for the TPU Node. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The version of Tensorflow running in the Node. + # Required. + # Corresponds to the JSON property `tensorflowVersion` + # @return [String] + attr_accessor :tensorflow_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type) + @cidr_block = args[:cidr_block] if args.key?(:cidr_block) + @create_time = args[:create_time] if args.key?(:create_time) + @description = args[:description] if args.key?(:description) + @health = args[:health] if args.key?(:health) + @health_description = args[:health_description] if args.key?(:health_description) + @ip_address = args[:ip_address] if args.key?(:ip_address) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @network = args[:network] if args.key?(:network) + @network_endpoints = args[:network_endpoints] if args.key?(:network_endpoints) + @port = args[:port] if args.key?(:port) + @scheduling_config = args[:scheduling_config] if args.key?(:scheduling_config) + @service_account = args[:service_account] if args.key?(:service_account) + @state = args[:state] if args.key?(:state) + @tensorflow_version = args[:tensorflow_version] if args.key?(:tensorflow_version) + end + end + # This resource represents a long-running operation that is the result of a # network API call. class Operation @@ -294,6 +557,71 @@ module Google end end + # Request for ReimageNode. + class ReimageNodeRequest + include Google::Apis::Core::Hashable + + # The version for reimage to create. + # Corresponds to the JSON property `tensorflowVersion` + # @return [String] + attr_accessor :tensorflow_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @tensorflow_version = args[:tensorflow_version] if args.key?(:tensorflow_version) + end + end + + # Request for ResetNode. + class ResetNodeRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # + class SchedulingConfig + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `preemptible` + # @return [Boolean] + attr_accessor :preemptible + alias_method :preemptible?, :preemptible + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @preemptible = args[:preemptible] if args.key?(:preemptible) + end + end + + # Request for StartNode. + class StartNodeRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # The `Status` type defines a logical error model that is suitable for different # programming environments, including REST APIs and RPC APIs. It is used by # [gRPC](https://github.com/grpc). The error model is designed to be: @@ -365,6 +693,44 @@ module Google @message = args[:message] if args.key?(:message) end end + + # Request for StopNode. + class StopNodeRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # A tensorflow version that a Node can be configured with. + class TensorFlowVersion + include Google::Apis::Core::Hashable + + # The resource name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # the tensorflow version. + # Corresponds to the JSON property `version` + # @return [String] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @version = args[:version] if args.key?(:version) + end + end end end end diff --git a/generated/google/apis/tpu_v1/representations.rb b/generated/google/apis/tpu_v1/representations.rb index a6b7fca8f..030b59d46 100644 --- a/generated/google/apis/tpu_v1/representations.rb +++ b/generated/google/apis/tpu_v1/representations.rb @@ -22,30 +22,66 @@ module Google module Apis module TpuV1 + class AcceleratorType + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ListAcceleratorTypesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListLocationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ListNodesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListOperationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ListTensorFlowVersionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Location class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class NetworkEndpoint + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Node + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Operation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -58,18 +94,71 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ReimageNodeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResetNodeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SchedulingConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StartNodeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Status class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class StopNodeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TensorFlowVersion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AcceleratorType + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :type, as: 'type' + end + end + class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation end end + class ListAcceleratorTypesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :accelerator_types, as: 'acceleratorTypes', class: Google::Apis::TpuV1::AcceleratorType, decorator: Google::Apis::TpuV1::AcceleratorType::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class ListLocationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -79,6 +168,15 @@ module Google end end + class ListNodesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :nodes, as: 'nodes', class: Google::Apis::TpuV1::Node, decorator: Google::Apis::TpuV1::Node::Representation + + end + end + class ListOperationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -88,6 +186,15 @@ module Google end end + class ListTensorFlowVersionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :tensorflow_versions, as: 'tensorflowVersions', class: Google::Apis::TpuV1::TensorFlowVersion, decorator: Google::Apis::TpuV1::TensorFlowVersion::Representation + + end + end + class Location # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -99,6 +206,38 @@ module Google end end + class NetworkEndpoint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ip_address, as: 'ipAddress' + property :port, as: 'port' + end + end + + class Node + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :accelerator_type, as: 'acceleratorType' + property :cidr_block, as: 'cidrBlock' + property :create_time, as: 'createTime' + property :description, as: 'description' + property :health, as: 'health' + property :health_description, as: 'healthDescription' + property :ip_address, as: 'ipAddress' + hash :labels, as: 'labels' + property :name, as: 'name' + property :network, as: 'network' + collection :network_endpoints, as: 'networkEndpoints', class: Google::Apis::TpuV1::NetworkEndpoint, decorator: Google::Apis::TpuV1::NetworkEndpoint::Representation + + property :port, as: 'port' + property :scheduling_config, as: 'schedulingConfig', class: Google::Apis::TpuV1::SchedulingConfig, decorator: Google::Apis::TpuV1::SchedulingConfig::Representation + + property :service_account, as: 'serviceAccount' + property :state, as: 'state' + property :tensorflow_version, as: 'tensorflowVersion' + end + end + class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -124,6 +263,32 @@ module Google end end + class ReimageNodeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :tensorflow_version, as: 'tensorflowVersion' + end + end + + class ResetNodeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class SchedulingConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :preemptible, as: 'preemptible' + end + end + + class StartNodeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class Status # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -132,6 +297,20 @@ module Google property :message, as: 'message' end end + + class StopNodeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class TensorFlowVersion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :version, as: 'version' + end + end end end end diff --git a/generated/google/apis/tpu_v1/service.rb b/generated/google/apis/tpu_v1/service.rb index 62e400235..908814069 100644 --- a/generated/google/apis/tpu_v1/service.rb +++ b/generated/google/apis/tpu_v1/service.rb @@ -116,6 +116,342 @@ module Google execute_or_queue_command(command, &block) end + # Gets AcceleratorType. + # @param [String] name + # The resource name. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::TpuV1::AcceleratorType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TpuV1::AcceleratorType] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_accelerator_type(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::TpuV1::AcceleratorType::Representation + command.response_class = Google::Apis::TpuV1::AcceleratorType + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists accelerator types supported by this API. + # @param [String] parent + # The parent resource name. + # @param [String] filter + # List filter. + # @param [String] order_by + # Sort results. + # @param [Fixnum] page_size + # The maximum number of items to return. + # @param [String] page_token + # The next_page_token value returned from a previous List request, if any. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::TpuV1::ListAcceleratorTypesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TpuV1::ListAcceleratorTypesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_accelerator_types(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/acceleratorTypes', options) + command.response_representation = Google::Apis::TpuV1::ListAcceleratorTypesResponse::Representation + command.response_class = Google::Apis::TpuV1::ListAcceleratorTypesResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a node. + # @param [String] parent + # The parent resource name. + # @param [Google::Apis::TpuV1::Node] node_object + # @param [String] node_id + # The unqualified resource name. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::TpuV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TpuV1::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 create_project_location_node(parent, node_object = nil, node_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/nodes', options) + command.request_representation = Google::Apis::TpuV1::Node::Representation + command.request_object = node_object + command.response_representation = Google::Apis::TpuV1::Operation::Representation + command.response_class = Google::Apis::TpuV1::Operation + command.params['parent'] = parent unless parent.nil? + command.query['nodeId'] = node_id unless node_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a node. + # @param [String] name + # The resource name. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::TpuV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TpuV1::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_project_location_node(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::TpuV1::Operation::Representation + command.response_class = Google::Apis::TpuV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the details of a node. + # @param [String] name + # The resource name. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::TpuV1::Node] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TpuV1::Node] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_node(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::TpuV1::Node::Representation + command.response_class = Google::Apis::TpuV1::Node + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists nodes. + # @param [String] parent + # The parent resource name. + # @param [Fixnum] page_size + # The maximum number of items to return. + # @param [String] page_token + # The next_page_token value returned from a previous List request, if any. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::TpuV1::ListNodesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TpuV1::ListNodesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_nodes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/nodes', options) + command.response_representation = Google::Apis::TpuV1::ListNodesResponse::Representation + command.response_class = Google::Apis::TpuV1::ListNodesResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Reimages a node's OS. + # @param [String] name + # The resource name. + # @param [Google::Apis::TpuV1::ReimageNodeRequest] reimage_node_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::TpuV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TpuV1::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 reimage_node(name, reimage_node_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:reimage', options) + command.request_representation = Google::Apis::TpuV1::ReimageNodeRequest::Representation + command.request_object = reimage_node_request_object + command.response_representation = Google::Apis::TpuV1::Operation::Representation + command.response_class = Google::Apis::TpuV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Resets a node, which stops and starts the VM. + # @param [String] name + # The resource name. + # @param [Google::Apis::TpuV1::ResetNodeRequest] reset_node_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::TpuV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TpuV1::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 reset_node(name, reset_node_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:reset', options) + command.request_representation = Google::Apis::TpuV1::ResetNodeRequest::Representation + command.request_object = reset_node_request_object + command.response_representation = Google::Apis::TpuV1::Operation::Representation + command.response_class = Google::Apis::TpuV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Starts a node. + # @param [String] name + # The resource name. + # @param [Google::Apis::TpuV1::StartNodeRequest] start_node_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::TpuV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TpuV1::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 start_node(name, start_node_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:start', options) + command.request_representation = Google::Apis::TpuV1::StartNodeRequest::Representation + command.request_object = start_node_request_object + command.response_representation = Google::Apis::TpuV1::Operation::Representation + command.response_class = Google::Apis::TpuV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Stops a node. + # @param [String] name + # The resource name. + # @param [Google::Apis::TpuV1::StopNodeRequest] stop_node_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::TpuV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TpuV1::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 stop_node(name, stop_node_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:stop', options) + command.request_representation = Google::Apis::TpuV1::StopNodeRequest::Representation + command.request_object = stop_node_request_object + command.response_representation = Google::Apis::TpuV1::Operation::Representation + command.response_class = Google::Apis::TpuV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Starts asynchronous cancellation on a long-running operation. The server # makes a best effort to cancel the operation, but success is not # guaranteed. If the server doesn't support this method, it returns @@ -266,6 +602,78 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Gets TensorFlow Version. + # @param [String] name + # The resource name. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::TpuV1::TensorFlowVersion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TpuV1::TensorFlowVersion] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_tensorflow_version(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::TpuV1::TensorFlowVersion::Representation + command.response_class = Google::Apis::TpuV1::TensorFlowVersion + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # List TensorFlow versions supported by this API. + # @param [String] parent + # The parent resource name. + # @param [String] filter + # List filter. + # @param [String] order_by + # Sort results. + # @param [Fixnum] page_size + # The maximum number of items to return. + # @param [String] page_token + # The next_page_token value returned from a previous List request, if any. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::TpuV1::ListTensorFlowVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TpuV1::ListTensorFlowVersionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_tensorflow_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/tensorflowVersions', options) + command.response_representation = Google::Apis::TpuV1::ListTensorFlowVersionsResponse::Representation + command.response_class = Google::Apis::TpuV1::ListTensorFlowVersionsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected diff --git a/generated/google/apis/tpu_v1alpha1.rb b/generated/google/apis/tpu_v1alpha1.rb index 524c02332..ec9ff30fa 100644 --- a/generated/google/apis/tpu_v1alpha1.rb +++ b/generated/google/apis/tpu_v1alpha1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/tpu/ module TpuV1alpha1 VERSION = 'V1alpha1' - REVISION = '20180525' + REVISION = '20180601' # 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/tpu_v1alpha1/classes.rb b/generated/google/apis/tpu_v1alpha1/classes.rb index 11a1ffba4..eaa304256 100644 --- a/generated/google/apis/tpu_v1alpha1/classes.rb +++ b/generated/google/apis/tpu_v1alpha1/classes.rb @@ -350,6 +350,11 @@ module Google # @return [String] attr_accessor :port + # + # Corresponds to the JSON property `schedulingConfig` + # @return [Google::Apis::TpuV1alpha1::SchedulingConfig] + attr_accessor :scheduling_config + # Output only. # The service account used to run the tensor flow services within the node. # To share resources, including Google Cloud Storage data, with the @@ -389,6 +394,7 @@ module Google @network = args[:network] if args.key?(:network) @network_endpoints = args[:network_endpoints] if args.key?(:network_endpoints) @port = args[:port] if args.key?(:port) + @scheduling_config = args[:scheduling_config] if args.key?(:scheduling_config) @service_account = args[:service_account] if args.key?(:service_account) @state = args[:state] if args.key?(:state) @tensorflow_version = args[:tensorflow_version] if args.key?(:tensorflow_version) @@ -583,6 +589,26 @@ module Google end end + # + class SchedulingConfig + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `preemptible` + # @return [Boolean] + attr_accessor :preemptible + alias_method :preemptible?, :preemptible + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @preemptible = args[:preemptible] if args.key?(:preemptible) + end + end + # Request for StartNode. class StartNodeRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/tpu_v1alpha1/representations.rb b/generated/google/apis/tpu_v1alpha1/representations.rb index 4adff9278..469bf88f4 100644 --- a/generated/google/apis/tpu_v1alpha1/representations.rb +++ b/generated/google/apis/tpu_v1alpha1/representations.rb @@ -106,6 +106,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SchedulingConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class StartNodeRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -224,6 +230,8 @@ module Google collection :network_endpoints, as: 'networkEndpoints', class: Google::Apis::TpuV1alpha1::NetworkEndpoint, decorator: Google::Apis::TpuV1alpha1::NetworkEndpoint::Representation property :port, as: 'port' + property :scheduling_config, as: 'schedulingConfig', class: Google::Apis::TpuV1alpha1::SchedulingConfig, decorator: Google::Apis::TpuV1alpha1::SchedulingConfig::Representation + property :service_account, as: 'serviceAccount' property :state, as: 'state' property :tensorflow_version, as: 'tensorflowVersion' @@ -268,6 +276,13 @@ module Google end end + class SchedulingConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :preemptible, as: 'preemptible' + end + end + class StartNodeRequest # @private class Representation < Google::Apis::Core::JsonRepresentation