diff --git a/api_names_out.yaml b/api_names_out.yaml index 8f2f73fc5..48a8b2513 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -30046,6 +30046,10 @@ "/container:v1/AutoUpgradeOptions/autoUpgradeStartTime": auto_upgrade_start_time "/container:v1/AutoUpgradeOptions/description": description "/container:v1/CancelOperationRequest": cancel_operation_request +"/container:v1/CancelOperationRequest/name": name +"/container:v1/CancelOperationRequest/operationId": operation_id +"/container:v1/CancelOperationRequest/projectId": project_id +"/container:v1/CancelOperationRequest/zone": zone "/container:v1/CidrBlock": cidr_block "/container:v1/CidrBlock/cidrBlock": cidr_block "/container:v1/CidrBlock/displayName": display_name @@ -30069,6 +30073,7 @@ "/container:v1/Cluster/ipAllocationPolicy": ip_allocation_policy "/container:v1/Cluster/labelFingerprint": label_fingerprint "/container:v1/Cluster/legacyAbac": legacy_abac +"/container:v1/Cluster/location": location "/container:v1/Cluster/locations": locations "/container:v1/Cluster/locations/location": location "/container:v1/Cluster/loggingService": logging_service @@ -30103,10 +30108,21 @@ "/container:v1/ClusterUpdate/desiredNodePoolId": desired_node_pool_id "/container:v1/ClusterUpdate/desiredNodeVersion": desired_node_version "/container:v1/CompleteIPRotationRequest": complete_ip_rotation_request +"/container:v1/CompleteIPRotationRequest/clusterId": cluster_id +"/container:v1/CompleteIPRotationRequest/name": name +"/container:v1/CompleteIPRotationRequest/projectId": project_id +"/container:v1/CompleteIPRotationRequest/zone": zone "/container:v1/CreateClusterRequest": create_cluster_request "/container:v1/CreateClusterRequest/cluster": cluster +"/container:v1/CreateClusterRequest/parent": parent +"/container:v1/CreateClusterRequest/projectId": project_id +"/container:v1/CreateClusterRequest/zone": zone "/container:v1/CreateNodePoolRequest": create_node_pool_request +"/container:v1/CreateNodePoolRequest/clusterId": cluster_id "/container:v1/CreateNodePoolRequest/nodePool": node_pool +"/container:v1/CreateNodePoolRequest/parent": parent +"/container:v1/CreateNodePoolRequest/projectId": project_id +"/container:v1/CreateNodePoolRequest/zone": zone "/container:v1/DailyMaintenanceWindow": daily_maintenance_window "/container:v1/DailyMaintenanceWindow/duration": duration "/container:v1/DailyMaintenanceWindow/startTime": start_time @@ -30205,6 +30221,7 @@ "/container:v1/Operation": operation "/container:v1/Operation/detail": detail "/container:v1/Operation/endTime": end_time +"/container:v1/Operation/location": location "/container:v1/Operation/name": name "/container:v1/Operation/operationType": operation_type "/container:v1/Operation/selfLink": self_link @@ -30214,6 +30231,11 @@ "/container:v1/Operation/targetLink": target_link "/container:v1/Operation/zone": zone "/container:v1/RollbackNodePoolUpgradeRequest": rollback_node_pool_upgrade_request +"/container:v1/RollbackNodePoolUpgradeRequest/clusterId": cluster_id +"/container:v1/RollbackNodePoolUpgradeRequest/name": name +"/container:v1/RollbackNodePoolUpgradeRequest/nodePoolId": node_pool_id +"/container:v1/RollbackNodePoolUpgradeRequest/projectId": project_id +"/container:v1/RollbackNodePoolUpgradeRequest/zone": zone "/container:v1/ServerConfig": server_config "/container:v1/ServerConfig/defaultClusterVersion": default_cluster_version "/container:v1/ServerConfig/defaultImageType": default_image_type @@ -30225,41 +30247,195 @@ "/container:v1/ServerConfig/validNodeVersions/valid_node_version": valid_node_version "/container:v1/SetAddonsConfigRequest": set_addons_config_request "/container:v1/SetAddonsConfigRequest/addonsConfig": addons_config +"/container:v1/SetAddonsConfigRequest/clusterId": cluster_id +"/container:v1/SetAddonsConfigRequest/name": name +"/container:v1/SetAddonsConfigRequest/projectId": project_id +"/container:v1/SetAddonsConfigRequest/zone": zone "/container:v1/SetLabelsRequest": set_labels_request +"/container:v1/SetLabelsRequest/clusterId": cluster_id "/container:v1/SetLabelsRequest/labelFingerprint": label_fingerprint +"/container:v1/SetLabelsRequest/name": name +"/container:v1/SetLabelsRequest/projectId": project_id "/container:v1/SetLabelsRequest/resourceLabels": resource_labels "/container:v1/SetLabelsRequest/resourceLabels/resource_label": resource_label +"/container:v1/SetLabelsRequest/zone": zone "/container:v1/SetLegacyAbacRequest": set_legacy_abac_request +"/container:v1/SetLegacyAbacRequest/clusterId": cluster_id "/container:v1/SetLegacyAbacRequest/enabled": enabled +"/container:v1/SetLegacyAbacRequest/name": name +"/container:v1/SetLegacyAbacRequest/projectId": project_id +"/container:v1/SetLegacyAbacRequest/zone": zone "/container:v1/SetLocationsRequest": set_locations_request +"/container:v1/SetLocationsRequest/clusterId": cluster_id "/container:v1/SetLocationsRequest/locations": locations "/container:v1/SetLocationsRequest/locations/location": location +"/container:v1/SetLocationsRequest/name": name +"/container:v1/SetLocationsRequest/projectId": project_id +"/container:v1/SetLocationsRequest/zone": zone "/container:v1/SetLoggingServiceRequest": set_logging_service_request +"/container:v1/SetLoggingServiceRequest/clusterId": cluster_id "/container:v1/SetLoggingServiceRequest/loggingService": logging_service +"/container:v1/SetLoggingServiceRequest/name": name +"/container:v1/SetLoggingServiceRequest/projectId": project_id +"/container:v1/SetLoggingServiceRequest/zone": zone "/container:v1/SetMaintenancePolicyRequest": set_maintenance_policy_request +"/container:v1/SetMaintenancePolicyRequest/clusterId": cluster_id "/container:v1/SetMaintenancePolicyRequest/maintenancePolicy": maintenance_policy +"/container:v1/SetMaintenancePolicyRequest/name": name +"/container:v1/SetMaintenancePolicyRequest/projectId": project_id +"/container:v1/SetMaintenancePolicyRequest/zone": zone "/container:v1/SetMasterAuthRequest": set_master_auth_request "/container:v1/SetMasterAuthRequest/action": action +"/container:v1/SetMasterAuthRequest/clusterId": cluster_id +"/container:v1/SetMasterAuthRequest/name": name +"/container:v1/SetMasterAuthRequest/projectId": project_id "/container:v1/SetMasterAuthRequest/update": update +"/container:v1/SetMasterAuthRequest/zone": zone "/container:v1/SetMonitoringServiceRequest": set_monitoring_service_request +"/container:v1/SetMonitoringServiceRequest/clusterId": cluster_id "/container:v1/SetMonitoringServiceRequest/monitoringService": monitoring_service +"/container:v1/SetMonitoringServiceRequest/name": name +"/container:v1/SetMonitoringServiceRequest/projectId": project_id +"/container:v1/SetMonitoringServiceRequest/zone": zone "/container:v1/SetNetworkPolicyRequest": set_network_policy_request +"/container:v1/SetNetworkPolicyRequest/clusterId": cluster_id +"/container:v1/SetNetworkPolicyRequest/name": name "/container:v1/SetNetworkPolicyRequest/networkPolicy": network_policy +"/container:v1/SetNetworkPolicyRequest/projectId": project_id +"/container:v1/SetNetworkPolicyRequest/zone": zone "/container:v1/SetNodePoolAutoscalingRequest": set_node_pool_autoscaling_request "/container:v1/SetNodePoolAutoscalingRequest/autoscaling": autoscaling +"/container:v1/SetNodePoolAutoscalingRequest/clusterId": cluster_id +"/container:v1/SetNodePoolAutoscalingRequest/name": name +"/container:v1/SetNodePoolAutoscalingRequest/nodePoolId": node_pool_id +"/container:v1/SetNodePoolAutoscalingRequest/projectId": project_id +"/container:v1/SetNodePoolAutoscalingRequest/zone": zone "/container:v1/SetNodePoolManagementRequest": set_node_pool_management_request +"/container:v1/SetNodePoolManagementRequest/clusterId": cluster_id "/container:v1/SetNodePoolManagementRequest/management": management +"/container:v1/SetNodePoolManagementRequest/name": name +"/container:v1/SetNodePoolManagementRequest/nodePoolId": node_pool_id +"/container:v1/SetNodePoolManagementRequest/projectId": project_id +"/container:v1/SetNodePoolManagementRequest/zone": zone "/container:v1/SetNodePoolSizeRequest": set_node_pool_size_request +"/container:v1/SetNodePoolSizeRequest/clusterId": cluster_id +"/container:v1/SetNodePoolSizeRequest/name": name "/container:v1/SetNodePoolSizeRequest/nodeCount": node_count +"/container:v1/SetNodePoolSizeRequest/nodePoolId": node_pool_id +"/container:v1/SetNodePoolSizeRequest/projectId": project_id +"/container:v1/SetNodePoolSizeRequest/zone": zone "/container:v1/StartIPRotationRequest": start_ip_rotation_request +"/container:v1/StartIPRotationRequest/clusterId": cluster_id +"/container:v1/StartIPRotationRequest/name": name +"/container:v1/StartIPRotationRequest/projectId": project_id +"/container:v1/StartIPRotationRequest/zone": zone "/container:v1/UpdateClusterRequest": update_cluster_request +"/container:v1/UpdateClusterRequest/clusterId": cluster_id +"/container:v1/UpdateClusterRequest/name": name +"/container:v1/UpdateClusterRequest/projectId": project_id "/container:v1/UpdateClusterRequest/update": update +"/container:v1/UpdateClusterRequest/zone": zone "/container:v1/UpdateMasterRequest": update_master_request +"/container:v1/UpdateMasterRequest/clusterId": cluster_id "/container:v1/UpdateMasterRequest/masterVersion": master_version +"/container:v1/UpdateMasterRequest/name": name +"/container:v1/UpdateMasterRequest/projectId": project_id +"/container:v1/UpdateMasterRequest/zone": zone "/container:v1/UpdateNodePoolRequest": update_node_pool_request +"/container:v1/UpdateNodePoolRequest/clusterId": cluster_id "/container:v1/UpdateNodePoolRequest/imageType": image_type +"/container:v1/UpdateNodePoolRequest/name": name +"/container:v1/UpdateNodePoolRequest/nodePoolId": node_pool_id "/container:v1/UpdateNodePoolRequest/nodeVersion": node_version +"/container:v1/UpdateNodePoolRequest/projectId": project_id +"/container:v1/UpdateNodePoolRequest/zone": zone "/container:v1/container.projects.clusters.list": list_clusters +"/container:v1/container.projects.locations.clusters.completeIpRotation": complete_project_location_cluster_ip_rotation +"/container:v1/container.projects.locations.clusters.completeIpRotation/name": name +"/container:v1/container.projects.locations.clusters.create": create_project_location_cluster +"/container:v1/container.projects.locations.clusters.create/parent": parent +"/container:v1/container.projects.locations.clusters.delete": delete_project_location_cluster +"/container:v1/container.projects.locations.clusters.delete/clusterId": cluster_id +"/container:v1/container.projects.locations.clusters.delete/name": name +"/container:v1/container.projects.locations.clusters.delete/projectId": project_id +"/container:v1/container.projects.locations.clusters.delete/zone": zone +"/container:v1/container.projects.locations.clusters.get": get_project_location_cluster +"/container:v1/container.projects.locations.clusters.get/clusterId": cluster_id +"/container:v1/container.projects.locations.clusters.get/name": name +"/container:v1/container.projects.locations.clusters.get/projectId": project_id +"/container:v1/container.projects.locations.clusters.get/zone": zone +"/container:v1/container.projects.locations.clusters.list": list_project_location_clusters +"/container:v1/container.projects.locations.clusters.list/parent": parent +"/container:v1/container.projects.locations.clusters.list/projectId": project_id +"/container:v1/container.projects.locations.clusters.list/zone": zone +"/container:v1/container.projects.locations.clusters.nodePools.create": create_project_location_cluster_node_pool +"/container:v1/container.projects.locations.clusters.nodePools.create/parent": parent +"/container:v1/container.projects.locations.clusters.nodePools.delete": delete_project_location_cluster_node_pool +"/container:v1/container.projects.locations.clusters.nodePools.delete/clusterId": cluster_id +"/container:v1/container.projects.locations.clusters.nodePools.delete/name": name +"/container:v1/container.projects.locations.clusters.nodePools.delete/nodePoolId": node_pool_id +"/container:v1/container.projects.locations.clusters.nodePools.delete/projectId": project_id +"/container:v1/container.projects.locations.clusters.nodePools.delete/zone": zone +"/container:v1/container.projects.locations.clusters.nodePools.get": get_project_location_cluster_node_pool +"/container:v1/container.projects.locations.clusters.nodePools.get/clusterId": cluster_id +"/container:v1/container.projects.locations.clusters.nodePools.get/name": name +"/container:v1/container.projects.locations.clusters.nodePools.get/nodePoolId": node_pool_id +"/container:v1/container.projects.locations.clusters.nodePools.get/projectId": project_id +"/container:v1/container.projects.locations.clusters.nodePools.get/zone": zone +"/container:v1/container.projects.locations.clusters.nodePools.list": list_project_location_cluster_node_pools +"/container:v1/container.projects.locations.clusters.nodePools.list/clusterId": cluster_id +"/container:v1/container.projects.locations.clusters.nodePools.list/parent": parent +"/container:v1/container.projects.locations.clusters.nodePools.list/projectId": project_id +"/container:v1/container.projects.locations.clusters.nodePools.list/zone": zone +"/container:v1/container.projects.locations.clusters.nodePools.rollback": rollback_project_location_cluster_node_pool +"/container:v1/container.projects.locations.clusters.nodePools.rollback/name": name +"/container:v1/container.projects.locations.clusters.nodePools.setAutoscaling": set_project_location_cluster_node_pool_autoscaling +"/container:v1/container.projects.locations.clusters.nodePools.setAutoscaling/name": name +"/container:v1/container.projects.locations.clusters.nodePools.setManagement": set_project_location_cluster_node_pool_management +"/container:v1/container.projects.locations.clusters.nodePools.setManagement/name": name +"/container:v1/container.projects.locations.clusters.nodePools.setSize": set_project_location_cluster_node_pool_size +"/container:v1/container.projects.locations.clusters.nodePools.setSize/name": name +"/container:v1/container.projects.locations.clusters.nodePools.update": update_project_location_cluster_node_pool +"/container:v1/container.projects.locations.clusters.nodePools.update/name": name +"/container:v1/container.projects.locations.clusters.setAddons": set_cluster_addons_config +"/container:v1/container.projects.locations.clusters.setAddons/name": name +"/container:v1/container.projects.locations.clusters.setLegacyAbac": set_cluster_legacy_abac +"/container:v1/container.projects.locations.clusters.setLegacyAbac/name": name +"/container:v1/container.projects.locations.clusters.setLocations": set_cluster_locations +"/container:v1/container.projects.locations.clusters.setLocations/name": name +"/container:v1/container.projects.locations.clusters.setLogging": set_cluster_logging_service +"/container:v1/container.projects.locations.clusters.setLogging/name": name +"/container:v1/container.projects.locations.clusters.setMaintenancePolicy": set_project_location_cluster_maintenance_policy +"/container:v1/container.projects.locations.clusters.setMaintenancePolicy/name": name +"/container:v1/container.projects.locations.clusters.setMasterAuth": set_project_location_cluster_master_auth +"/container:v1/container.projects.locations.clusters.setMasterAuth/name": name +"/container:v1/container.projects.locations.clusters.setMonitoring": set_cluster_monitoring_service +"/container:v1/container.projects.locations.clusters.setMonitoring/name": name +"/container:v1/container.projects.locations.clusters.setNetworkPolicy": set_project_location_cluster_network_policy +"/container:v1/container.projects.locations.clusters.setNetworkPolicy/name": name +"/container:v1/container.projects.locations.clusters.setResourceLabels": set_project_location_cluster_resource_labels +"/container:v1/container.projects.locations.clusters.setResourceLabels/name": name +"/container:v1/container.projects.locations.clusters.startIpRotation": start_project_location_cluster_ip_rotation +"/container:v1/container.projects.locations.clusters.startIpRotation/name": name +"/container:v1/container.projects.locations.clusters.update": update_project_location_cluster +"/container:v1/container.projects.locations.clusters.update/name": name +"/container:v1/container.projects.locations.clusters.updateMaster": update_cluster_master +"/container:v1/container.projects.locations.clusters.updateMaster/name": name +"/container:v1/container.projects.locations.getServerConfig": get_project_location_server_config +"/container:v1/container.projects.locations.getServerConfig/name": name +"/container:v1/container.projects.locations.getServerConfig/projectId": project_id +"/container:v1/container.projects.locations.getServerConfig/zone": zone +"/container:v1/container.projects.locations.operations.cancel": cancel_project_location_operation +"/container:v1/container.projects.locations.operations.cancel/name": name +"/container:v1/container.projects.locations.operations.get": get_project_location_operation +"/container:v1/container.projects.locations.operations.get/name": name +"/container:v1/container.projects.locations.operations.get/operationId": operation_id +"/container:v1/container.projects.locations.operations.get/projectId": project_id +"/container:v1/container.projects.locations.operations.get/zone": zone +"/container:v1/container.projects.locations.operations.list": list_project_location_operations +"/container:v1/container.projects.locations.operations.list/parent": parent +"/container:v1/container.projects.locations.operations.list/projectId": project_id +"/container:v1/container.projects.locations.operations.list/zone": zone "/container:v1/container.projects.operations.list": list_operations "/container:v1/container.projects.zones.clusters.addons": addons_project_zone_cluster "/container:v1/container.projects.zones.clusters.addons/clusterId": cluster_id @@ -30274,10 +30450,12 @@ "/container:v1/container.projects.zones.clusters.create/zone": zone "/container:v1/container.projects.zones.clusters.delete": delete_zone_cluster "/container:v1/container.projects.zones.clusters.delete/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.delete/name": name "/container:v1/container.projects.zones.clusters.delete/projectId": project_id "/container:v1/container.projects.zones.clusters.delete/zone": zone "/container:v1/container.projects.zones.clusters.get": get_zone_cluster "/container:v1/container.projects.zones.clusters.get/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.get/name": name "/container:v1/container.projects.zones.clusters.get/projectId": project_id "/container:v1/container.projects.zones.clusters.get/zone": zone "/container:v1/container.projects.zones.clusters.legacyAbac": legacy_project_zone_cluster_abac @@ -30285,6 +30463,7 @@ "/container:v1/container.projects.zones.clusters.legacyAbac/projectId": project_id "/container:v1/container.projects.zones.clusters.legacyAbac/zone": zone "/container:v1/container.projects.zones.clusters.list": list_zone_clusters +"/container:v1/container.projects.zones.clusters.list/parent": parent "/container:v1/container.projects.zones.clusters.list/projectId": project_id "/container:v1/container.projects.zones.clusters.list/zone": zone "/container:v1/container.projects.zones.clusters.locations": locations_project_zone_cluster @@ -30314,16 +30493,19 @@ "/container:v1/container.projects.zones.clusters.nodePools.create/zone": zone "/container:v1/container.projects.zones.clusters.nodePools.delete": delete_project_zone_cluster_node_pool "/container:v1/container.projects.zones.clusters.nodePools.delete/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.nodePools.delete/name": name "/container:v1/container.projects.zones.clusters.nodePools.delete/nodePoolId": node_pool_id "/container:v1/container.projects.zones.clusters.nodePools.delete/projectId": project_id "/container:v1/container.projects.zones.clusters.nodePools.delete/zone": zone "/container:v1/container.projects.zones.clusters.nodePools.get": get_project_zone_cluster_node_pool "/container:v1/container.projects.zones.clusters.nodePools.get/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.nodePools.get/name": name "/container:v1/container.projects.zones.clusters.nodePools.get/nodePoolId": node_pool_id "/container:v1/container.projects.zones.clusters.nodePools.get/projectId": project_id "/container:v1/container.projects.zones.clusters.nodePools.get/zone": zone "/container:v1/container.projects.zones.clusters.nodePools.list": list_project_zone_cluster_node_pools "/container:v1/container.projects.zones.clusters.nodePools.list/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.nodePools.list/parent": parent "/container:v1/container.projects.zones.clusters.nodePools.list/projectId": project_id "/container:v1/container.projects.zones.clusters.nodePools.list/zone": zone "/container:v1/container.projects.zones.clusters.nodePools.rollback": rollback_node_pool_upgrade @@ -30371,6 +30553,7 @@ "/container:v1/container.projects.zones.clusters.update/projectId": project_id "/container:v1/container.projects.zones.clusters.update/zone": zone "/container:v1/container.projects.zones.getServerconfig": get_project_zone_serverconfig +"/container:v1/container.projects.zones.getServerconfig/name": name "/container:v1/container.projects.zones.getServerconfig/projectId": project_id "/container:v1/container.projects.zones.getServerconfig/zone": zone "/container:v1/container.projects.zones.operations.cancel": cancel_operation @@ -30378,10 +30561,12 @@ "/container:v1/container.projects.zones.operations.cancel/projectId": project_id "/container:v1/container.projects.zones.operations.cancel/zone": zone "/container:v1/container.projects.zones.operations.get": get_zone_operation +"/container:v1/container.projects.zones.operations.get/name": name "/container:v1/container.projects.zones.operations.get/operationId": operation_id "/container:v1/container.projects.zones.operations.get/projectId": project_id "/container:v1/container.projects.zones.operations.get/zone": zone "/container:v1/container.projects.zones.operations.list": list_zone_operations +"/container:v1/container.projects.zones.operations.list/parent": parent "/container:v1/container.projects.zones.operations.list/projectId": project_id "/container:v1/container.projects.zones.operations.list/zone": zone "/container:v1/container.projects.zones.tokens.get": get_zone_token @@ -34885,6 +35070,45 @@ "/datastore:v1/Filter": filter "/datastore:v1/Filter/compositeFilter": composite_filter "/datastore:v1/Filter/propertyFilter": property_filter +"/datastore:v1/GoogleDatastoreAdminV1CommonMetadata": google_datastore_admin_v1_common_metadata +"/datastore:v1/GoogleDatastoreAdminV1CommonMetadata/endTime": end_time +"/datastore:v1/GoogleDatastoreAdminV1CommonMetadata/labels": labels +"/datastore:v1/GoogleDatastoreAdminV1CommonMetadata/labels/label": label +"/datastore:v1/GoogleDatastoreAdminV1CommonMetadata/operationType": operation_type +"/datastore:v1/GoogleDatastoreAdminV1CommonMetadata/startTime": start_time +"/datastore:v1/GoogleDatastoreAdminV1CommonMetadata/state": state +"/datastore:v1/GoogleDatastoreAdminV1EntityFilter": google_datastore_admin_v1_entity_filter +"/datastore:v1/GoogleDatastoreAdminV1EntityFilter/kinds": kinds +"/datastore:v1/GoogleDatastoreAdminV1EntityFilter/kinds/kind": kind +"/datastore:v1/GoogleDatastoreAdminV1EntityFilter/namespaceIds": namespace_ids +"/datastore:v1/GoogleDatastoreAdminV1EntityFilter/namespaceIds/namespace_id": namespace_id +"/datastore:v1/GoogleDatastoreAdminV1ExportEntitiesMetadata": google_datastore_admin_v1_export_entities_metadata +"/datastore:v1/GoogleDatastoreAdminV1ExportEntitiesMetadata/common": common +"/datastore:v1/GoogleDatastoreAdminV1ExportEntitiesMetadata/entityFilter": entity_filter +"/datastore:v1/GoogleDatastoreAdminV1ExportEntitiesMetadata/outputUrlPrefix": output_url_prefix +"/datastore:v1/GoogleDatastoreAdminV1ExportEntitiesMetadata/progressBytes": progress_bytes +"/datastore:v1/GoogleDatastoreAdminV1ExportEntitiesMetadata/progressEntities": progress_entities +"/datastore:v1/GoogleDatastoreAdminV1ExportEntitiesRequest": google_datastore_admin_v1_export_entities_request +"/datastore:v1/GoogleDatastoreAdminV1ExportEntitiesRequest/entityFilter": entity_filter +"/datastore:v1/GoogleDatastoreAdminV1ExportEntitiesRequest/labels": labels +"/datastore:v1/GoogleDatastoreAdminV1ExportEntitiesRequest/labels/label": label +"/datastore:v1/GoogleDatastoreAdminV1ExportEntitiesRequest/outputUrlPrefix": output_url_prefix +"/datastore:v1/GoogleDatastoreAdminV1ExportEntitiesResponse": google_datastore_admin_v1_export_entities_response +"/datastore:v1/GoogleDatastoreAdminV1ExportEntitiesResponse/outputUrl": output_url +"/datastore:v1/GoogleDatastoreAdminV1ImportEntitiesMetadata": google_datastore_admin_v1_import_entities_metadata +"/datastore:v1/GoogleDatastoreAdminV1ImportEntitiesMetadata/common": common +"/datastore:v1/GoogleDatastoreAdminV1ImportEntitiesMetadata/entityFilter": entity_filter +"/datastore:v1/GoogleDatastoreAdminV1ImportEntitiesMetadata/inputUrl": input_url +"/datastore:v1/GoogleDatastoreAdminV1ImportEntitiesMetadata/progressBytes": progress_bytes +"/datastore:v1/GoogleDatastoreAdminV1ImportEntitiesMetadata/progressEntities": progress_entities +"/datastore:v1/GoogleDatastoreAdminV1ImportEntitiesRequest": google_datastore_admin_v1_import_entities_request +"/datastore:v1/GoogleDatastoreAdminV1ImportEntitiesRequest/entityFilter": entity_filter +"/datastore:v1/GoogleDatastoreAdminV1ImportEntitiesRequest/inputUrl": input_url +"/datastore:v1/GoogleDatastoreAdminV1ImportEntitiesRequest/labels": labels +"/datastore:v1/GoogleDatastoreAdminV1ImportEntitiesRequest/labels/label": label +"/datastore:v1/GoogleDatastoreAdminV1Progress": google_datastore_admin_v1_progress +"/datastore:v1/GoogleDatastoreAdminV1Progress/workCompleted": work_completed +"/datastore:v1/GoogleDatastoreAdminV1Progress/workEstimated": work_estimated "/datastore:v1/GoogleDatastoreAdminV1beta1CommonMetadata": google_datastore_admin_v1beta1_common_metadata "/datastore:v1/GoogleDatastoreAdminV1beta1CommonMetadata/endTime": end_time "/datastore:v1/GoogleDatastoreAdminV1beta1CommonMetadata/labels": labels @@ -35058,6 +35282,10 @@ "/datastore:v1/datastore.projects.beginTransaction/projectId": project_id "/datastore:v1/datastore.projects.commit": commit_project "/datastore:v1/datastore.projects.commit/projectId": project_id +"/datastore:v1/datastore.projects.export": export_project +"/datastore:v1/datastore.projects.export/projectId": project_id +"/datastore:v1/datastore.projects.import": import_project +"/datastore:v1/datastore.projects.import/projectId": project_id "/datastore:v1/datastore.projects.lookup": lookup_project "/datastore:v1/datastore.projects.lookup/projectId": project_id "/datastore:v1/datastore.projects.operations.cancel": cancel_project_operation @@ -35080,6 +35308,35 @@ "/datastore:v1/fields": fields "/datastore:v1/key": key "/datastore:v1/quotaUser": quota_user +"/datastore:v1beta1/GoogleDatastoreAdminV1CommonMetadata": google_datastore_admin_v1_common_metadata +"/datastore:v1beta1/GoogleDatastoreAdminV1CommonMetadata/endTime": end_time +"/datastore:v1beta1/GoogleDatastoreAdminV1CommonMetadata/labels": labels +"/datastore:v1beta1/GoogleDatastoreAdminV1CommonMetadata/labels/label": label +"/datastore:v1beta1/GoogleDatastoreAdminV1CommonMetadata/operationType": operation_type +"/datastore:v1beta1/GoogleDatastoreAdminV1CommonMetadata/startTime": start_time +"/datastore:v1beta1/GoogleDatastoreAdminV1CommonMetadata/state": state +"/datastore:v1beta1/GoogleDatastoreAdminV1EntityFilter": google_datastore_admin_v1_entity_filter +"/datastore:v1beta1/GoogleDatastoreAdminV1EntityFilter/kinds": kinds +"/datastore:v1beta1/GoogleDatastoreAdminV1EntityFilter/kinds/kind": kind +"/datastore:v1beta1/GoogleDatastoreAdminV1EntityFilter/namespaceIds": namespace_ids +"/datastore:v1beta1/GoogleDatastoreAdminV1EntityFilter/namespaceIds/namespace_id": namespace_id +"/datastore:v1beta1/GoogleDatastoreAdminV1ExportEntitiesMetadata": google_datastore_admin_v1_export_entities_metadata +"/datastore:v1beta1/GoogleDatastoreAdminV1ExportEntitiesMetadata/common": common +"/datastore:v1beta1/GoogleDatastoreAdminV1ExportEntitiesMetadata/entityFilter": entity_filter +"/datastore:v1beta1/GoogleDatastoreAdminV1ExportEntitiesMetadata/outputUrlPrefix": output_url_prefix +"/datastore:v1beta1/GoogleDatastoreAdminV1ExportEntitiesMetadata/progressBytes": progress_bytes +"/datastore:v1beta1/GoogleDatastoreAdminV1ExportEntitiesMetadata/progressEntities": progress_entities +"/datastore:v1beta1/GoogleDatastoreAdminV1ExportEntitiesResponse": google_datastore_admin_v1_export_entities_response +"/datastore:v1beta1/GoogleDatastoreAdminV1ExportEntitiesResponse/outputUrl": output_url +"/datastore:v1beta1/GoogleDatastoreAdminV1ImportEntitiesMetadata": google_datastore_admin_v1_import_entities_metadata +"/datastore:v1beta1/GoogleDatastoreAdminV1ImportEntitiesMetadata/common": common +"/datastore:v1beta1/GoogleDatastoreAdminV1ImportEntitiesMetadata/entityFilter": entity_filter +"/datastore:v1beta1/GoogleDatastoreAdminV1ImportEntitiesMetadata/inputUrl": input_url +"/datastore:v1beta1/GoogleDatastoreAdminV1ImportEntitiesMetadata/progressBytes": progress_bytes +"/datastore:v1beta1/GoogleDatastoreAdminV1ImportEntitiesMetadata/progressEntities": progress_entities +"/datastore:v1beta1/GoogleDatastoreAdminV1Progress": google_datastore_admin_v1_progress +"/datastore:v1beta1/GoogleDatastoreAdminV1Progress/workCompleted": work_completed +"/datastore:v1beta1/GoogleDatastoreAdminV1Progress/workEstimated": work_estimated "/datastore:v1beta1/GoogleDatastoreAdminV1beta1CommonMetadata": google_datastore_admin_v1beta1_common_metadata "/datastore:v1beta1/GoogleDatastoreAdminV1beta1CommonMetadata/endTime": end_time "/datastore:v1beta1/GoogleDatastoreAdminV1beta1CommonMetadata/labels": labels @@ -35181,6 +35438,35 @@ "/datastore:v1beta3/Filter": filter "/datastore:v1beta3/Filter/compositeFilter": composite_filter "/datastore:v1beta3/Filter/propertyFilter": property_filter +"/datastore:v1beta3/GoogleDatastoreAdminV1CommonMetadata": google_datastore_admin_v1_common_metadata +"/datastore:v1beta3/GoogleDatastoreAdminV1CommonMetadata/endTime": end_time +"/datastore:v1beta3/GoogleDatastoreAdminV1CommonMetadata/labels": labels +"/datastore:v1beta3/GoogleDatastoreAdminV1CommonMetadata/labels/label": label +"/datastore:v1beta3/GoogleDatastoreAdminV1CommonMetadata/operationType": operation_type +"/datastore:v1beta3/GoogleDatastoreAdminV1CommonMetadata/startTime": start_time +"/datastore:v1beta3/GoogleDatastoreAdminV1CommonMetadata/state": state +"/datastore:v1beta3/GoogleDatastoreAdminV1EntityFilter": google_datastore_admin_v1_entity_filter +"/datastore:v1beta3/GoogleDatastoreAdminV1EntityFilter/kinds": kinds +"/datastore:v1beta3/GoogleDatastoreAdminV1EntityFilter/kinds/kind": kind +"/datastore:v1beta3/GoogleDatastoreAdminV1EntityFilter/namespaceIds": namespace_ids +"/datastore:v1beta3/GoogleDatastoreAdminV1EntityFilter/namespaceIds/namespace_id": namespace_id +"/datastore:v1beta3/GoogleDatastoreAdminV1ExportEntitiesMetadata": google_datastore_admin_v1_export_entities_metadata +"/datastore:v1beta3/GoogleDatastoreAdminV1ExportEntitiesMetadata/common": common +"/datastore:v1beta3/GoogleDatastoreAdminV1ExportEntitiesMetadata/entityFilter": entity_filter +"/datastore:v1beta3/GoogleDatastoreAdminV1ExportEntitiesMetadata/outputUrlPrefix": output_url_prefix +"/datastore:v1beta3/GoogleDatastoreAdminV1ExportEntitiesMetadata/progressBytes": progress_bytes +"/datastore:v1beta3/GoogleDatastoreAdminV1ExportEntitiesMetadata/progressEntities": progress_entities +"/datastore:v1beta3/GoogleDatastoreAdminV1ExportEntitiesResponse": google_datastore_admin_v1_export_entities_response +"/datastore:v1beta3/GoogleDatastoreAdminV1ExportEntitiesResponse/outputUrl": output_url +"/datastore:v1beta3/GoogleDatastoreAdminV1ImportEntitiesMetadata": google_datastore_admin_v1_import_entities_metadata +"/datastore:v1beta3/GoogleDatastoreAdminV1ImportEntitiesMetadata/common": common +"/datastore:v1beta3/GoogleDatastoreAdminV1ImportEntitiesMetadata/entityFilter": entity_filter +"/datastore:v1beta3/GoogleDatastoreAdminV1ImportEntitiesMetadata/inputUrl": input_url +"/datastore:v1beta3/GoogleDatastoreAdminV1ImportEntitiesMetadata/progressBytes": progress_bytes +"/datastore:v1beta3/GoogleDatastoreAdminV1ImportEntitiesMetadata/progressEntities": progress_entities +"/datastore:v1beta3/GoogleDatastoreAdminV1Progress": google_datastore_admin_v1_progress +"/datastore:v1beta3/GoogleDatastoreAdminV1Progress/workCompleted": work_completed +"/datastore:v1beta3/GoogleDatastoreAdminV1Progress/workEstimated": work_estimated "/datastore:v1beta3/GoogleDatastoreAdminV1beta1CommonMetadata": google_datastore_admin_v1beta1_common_metadata "/datastore:v1beta3/GoogleDatastoreAdminV1beta1CommonMetadata/endTime": end_time "/datastore:v1beta3/GoogleDatastoreAdminV1beta1CommonMetadata/labels": labels diff --git a/generated/google/apis/container_v1.rb b/generated/google/apis/container_v1.rb index d36a9c6a3..951d4dcd0 100644 --- a/generated/google/apis/container_v1.rb +++ b/generated/google/apis/container_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1 VERSION = 'V1' - REVISION = '20180223' + REVISION = '20180308' # 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/container_v1/classes.rb b/generated/google/apis/container_v1/classes.rb index bd7e698b9..5370f7842 100644 --- a/generated/google/apis/container_v1/classes.rb +++ b/generated/google/apis/container_v1/classes.rb @@ -124,12 +124,42 @@ module Google class CancelOperationRequest include Google::Apis::Core::Hashable + # The name (project, location, operation id) of the operation to cancel. + # Specified in the format 'projects/*/locations/*/operations/*'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Deprecated. The server-assigned `name` of the operation. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # Deprecated. The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the operation resides. + # This field has been deprecated and replaced by the name field. + # 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) + @name = args[:name] if args.key?(:name) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @project_id = args[:project_id] if args.key?(:project_id) + @zone = args[:zone] if args.key?(:zone) end end @@ -254,6 +284,13 @@ module Google # found in validMasterVersions returned by getServerConfig. The version can # be upgraded over time; such upgrades are reflected in # currentMasterVersion and currentNodeVersion. + # Users may specify either explicit versions offered by + # Kubernetes Engine or version aliases, which have the following behavior: + # - "latest": picks the highest valid Kubernetes version + # - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + # - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + # - "1.X.Y-gke.N": picks an explicit Kubernetes version + # - "","-": picks the default Kubernetes version # Corresponds to the JSON property `initialClusterVersion` # @return [String] attr_accessor :initial_cluster_version @@ -291,6 +328,14 @@ module Google # @return [Google::Apis::ContainerV1::LegacyAbac] attr_accessor :legacy_abac + # [Output only] The name of the Google Compute Engine + # [zone](/compute/docs/regions-zones/regions-zones#available) or + # [region](/compute/docs/regions-zones/regions-zones#available) in which + # the cluster resides. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + # The list of Google Compute Engine # [locations](/compute/docs/zones#available) in which the cluster's nodes # should be located. @@ -420,6 +465,7 @@ module Google # [Output only] The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field is deprecated, use location instead. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -446,6 +492,7 @@ module Google @ip_allocation_policy = args[:ip_allocation_policy] if args.key?(:ip_allocation_policy) @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @legacy_abac = args[:legacy_abac] if args.key?(:legacy_abac) + @location = args[:location] if args.key?(:location) @locations = args[:locations] if args.key?(:locations) @logging_service = args[:logging_service] if args.key?(:logging_service) @maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy) @@ -505,9 +552,14 @@ module Google # @return [Google::Apis::ContainerV1::MasterAuthorizedNetworksConfig] attr_accessor :desired_master_authorized_networks_config - # The Kubernetes version to change the master to. The only valid value is the - # latest supported version. Use "-" to have the server automatically select - # the latest version. + # The Kubernetes version to change the master to. + # Users may specify either explicit versions offered by + # Kubernetes Engine or version aliases, which have the following behavior: + # - "latest": picks the highest valid Kubernetes version + # - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + # - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + # - "1.X.Y-gke.N": picks an explicit Kubernetes version + # - "-": picks the default Kubernetes version # Corresponds to the JSON property `desiredMasterVersion` # @return [String] attr_accessor :desired_master_version @@ -535,8 +587,14 @@ module Google attr_accessor :desired_node_pool_id # The Kubernetes version to change the nodes to (typically an - # upgrade). Use `-` to upgrade to the latest version supported by - # the server. + # upgrade). + # Users may specify either explicit versions offered by + # Kubernetes Engine or version aliases, which have the following behavior: + # - "latest": picks the highest valid Kubernetes version + # - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + # - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + # - "1.X.Y-gke.N": picks an explicit Kubernetes version + # - "-": picks the Kubernetes master version # Corresponds to the JSON property `desiredNodeVersion` # @return [String] attr_accessor :desired_node_version @@ -563,12 +621,44 @@ module Google class CompleteIpRotationRequest include Google::Apis::Core::Hashable + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `clusterId` + # @return [String] + attr_accessor :cluster_id + + # The name (project, location, cluster id) of the cluster to complete IP + # rotation. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Deprecated. The Google Developers Console [project ID or project + # number](https://developers.google.com/console/help/new/#projectnumber). + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # 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) + @cluster_id = args[:cluster_id] if args.key?(:cluster_id) + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) + @zone = args[:zone] if args.key?(:zone) end end @@ -581,6 +671,27 @@ module Google # @return [Google::Apis::ContainerV1::Cluster] attr_accessor :cluster + # The parent (project and location) where the cluster will be created. + # Specified in the format 'projects/*/locations/*'. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # Deprecated. The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the parent field. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the parent field. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + def initialize(**args) update!(**args) end @@ -588,6 +699,9 @@ module Google # Update properties of this object def update!(**args) @cluster = args[:cluster] if args.key?(:cluster) + @parent = args[:parent] if args.key?(:parent) + @project_id = args[:project_id] if args.key?(:project_id) + @zone = args[:zone] if args.key?(:zone) end end @@ -595,6 +709,12 @@ module Google class CreateNodePoolRequest include Google::Apis::Core::Hashable + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the parent field. + # Corresponds to the JSON property `clusterId` + # @return [String] + attr_accessor :cluster_id + # NodePool contains the name and configuration for a cluster's node pool. # Node pools are a set of nodes (i.e. VM's), with a common configuration and # specification, under the control of the cluster master. They may have a set @@ -605,13 +725,38 @@ module Google # @return [Google::Apis::ContainerV1::NodePool] attr_accessor :node_pool + # The parent (project, location, cluster id) where the node pool will be created. + # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # Deprecated. The Google Developers Console [project ID or project + # number](https://developers.google.com/console/help/new/#projectnumber). + # This field has been deprecated and replaced by the parent field. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the parent field. + # 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) + @cluster_id = args[:cluster_id] if args.key?(:cluster_id) @node_pool = args[:node_pool] if args.key?(:node_pool) + @parent = args[:parent] if args.key?(:parent) + @project_id = args[:project_id] if args.key?(:project_id) + @zone = args[:zone] if args.key?(:zone) end end @@ -1450,6 +1595,14 @@ module Google # @return [String] attr_accessor :end_time + # [Output only] The name of the Google Compute Engine + # [zone](/compute/docs/regions-zones/regions-zones#available) or + # [region](/compute/docs/regions-zones/regions-zones#available) in which + # the cluster resides. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + # The server-assigned ID for the operation. # Corresponds to the JSON property `name` # @return [String] @@ -1489,6 +1642,7 @@ module Google # The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the operation # is taking place. + # This field is deprecated, use location instead. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -1501,6 +1655,7 @@ module Google def update!(**args) @detail = args[:detail] if args.key?(:detail) @end_time = args[:end_time] if args.key?(:end_time) + @location = args[:location] if args.key?(:location) @name = args[:name] if args.key?(:name) @operation_type = args[:operation_type] if args.key?(:operation_type) @self_link = args[:self_link] if args.key?(:self_link) @@ -1518,12 +1673,51 @@ module Google class RollbackNodePoolUpgradeRequest include Google::Apis::Core::Hashable + # Deprecated. The name of the cluster to rollback. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `clusterId` + # @return [String] + attr_accessor :cluster_id + + # The name (project, location, cluster, node pool id) of the node poll to + # rollback upgrade. + # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Deprecated. The name of the node pool to rollback. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `nodePoolId` + # @return [String] + attr_accessor :node_pool_id + + # Deprecated. The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # 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) + @cluster_id = args[:cluster_id] if args.key?(:cluster_id) + @name = args[:name] if args.key?(:name) + @node_pool_id = args[:node_pool_id] if args.key?(:node_pool_id) + @project_id = args[:project_id] if args.key?(:project_id) + @zone = args[:zone] if args.key?(:zone) end end @@ -1580,6 +1774,33 @@ module Google # @return [Google::Apis::ContainerV1::AddonsConfig] attr_accessor :addons_config + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `clusterId` + # @return [String] + attr_accessor :cluster_id + + # The name (project, location, cluster) of the cluster to set addons. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Deprecated. The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + def initialize(**args) update!(**args) end @@ -1587,6 +1808,10 @@ module Google # Update properties of this object def update!(**args) @addons_config = args[:addons_config] if args.key?(:addons_config) + @cluster_id = args[:cluster_id] if args.key?(:cluster_id) + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) + @zone = args[:zone] if args.key?(:zone) end end @@ -1596,6 +1821,12 @@ module Google class SetLabelsRequest include Google::Apis::Core::Hashable + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `clusterId` + # @return [String] + attr_accessor :cluster_id + # The fingerprint of the previous set of labels for this resource, # used to detect conflicts. The fingerprint is initially generated by # Kubernetes Engine and changes after every request to modify or update @@ -1606,19 +1837,44 @@ module Google # @return [String] attr_accessor :label_fingerprint + # The name (project, location, cluster id) of the cluster to set labels. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Deprecated. The Google Developers Console [project ID or project + # number](https://developers.google.com/console/help/new/#projectnumber). + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + # The labels to set for that cluster. # Corresponds to the JSON property `resourceLabels` # @return [Hash] attr_accessor :resource_labels + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # 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) + @cluster_id = args[:cluster_id] if args.key?(:cluster_id) @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) @resource_labels = args[:resource_labels] if args.key?(:resource_labels) + @zone = args[:zone] if args.key?(:zone) end end @@ -1627,19 +1883,50 @@ module Google class SetLegacyAbacRequest include Google::Apis::Core::Hashable + # Deprecated. The name of the cluster to update. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `clusterId` + # @return [String] + attr_accessor :cluster_id + # Whether ABAC authorization will be enabled in the cluster. # Corresponds to the JSON property `enabled` # @return [Boolean] attr_accessor :enabled alias_method :enabled?, :enabled + # The name (project, location, cluster id) of the cluster to set legacy abac. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Deprecated. The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # 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) + @cluster_id = args[:cluster_id] if args.key?(:cluster_id) @enabled = args[:enabled] if args.key?(:enabled) + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) + @zone = args[:zone] if args.key?(:zone) end end @@ -1647,6 +1934,12 @@ module Google class SetLocationsRequest include Google::Apis::Core::Hashable + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `clusterId` + # @return [String] + attr_accessor :cluster_id + # The desired list of Google Compute Engine # [locations](/compute/docs/zones#available) in which the cluster's nodes # should be located. Changing the locations a cluster is in will result @@ -1657,13 +1950,38 @@ module Google # @return [Array] attr_accessor :locations + # The name (project, location, cluster) of the cluster to set locations. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Deprecated. The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # 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) + @cluster_id = args[:cluster_id] if args.key?(:cluster_id) @locations = args[:locations] if args.key?(:locations) + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) + @zone = args[:zone] if args.key?(:zone) end end @@ -1671,6 +1989,12 @@ module Google class SetLoggingServiceRequest include Google::Apis::Core::Hashable + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `clusterId` + # @return [String] + attr_accessor :cluster_id + # The logging service the cluster should use to write metrics. # Currently available options: # * "logging.googleapis.com" - the Google Cloud Logging service @@ -1679,13 +2003,38 @@ module Google # @return [String] attr_accessor :logging_service + # The name (project, location, cluster) of the cluster to set logging. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Deprecated. The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # 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) + @cluster_id = args[:cluster_id] if args.key?(:cluster_id) @logging_service = args[:logging_service] if args.key?(:logging_service) + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) + @zone = args[:zone] if args.key?(:zone) end end @@ -1693,18 +2042,47 @@ module Google class SetMaintenancePolicyRequest include Google::Apis::Core::Hashable + # The name of the cluster to update. + # Corresponds to the JSON property `clusterId` + # @return [String] + attr_accessor :cluster_id + # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Corresponds to the JSON property `maintenancePolicy` # @return [Google::Apis::ContainerV1::MaintenancePolicy] attr_accessor :maintenance_policy + # The name (project, location, cluster id) of the cluster to set maintenance + # policy. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # 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) + @cluster_id = args[:cluster_id] if args.key?(:cluster_id) @maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy) + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) + @zone = args[:zone] if args.key?(:zone) end end @@ -1717,6 +2095,25 @@ module Google # @return [String] attr_accessor :action + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `clusterId` + # @return [String] + attr_accessor :cluster_id + + # The name (project, location, cluster) of the cluster to set auth. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Deprecated. The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + # The authentication information for accessing the master endpoint. # Authentication can be done using HTTP basic auth or using client # certificates. @@ -1724,6 +2121,14 @@ module Google # @return [Google::Apis::ContainerV1::MasterAuth] attr_accessor :update + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + def initialize(**args) update!(**args) end @@ -1731,7 +2136,11 @@ module Google # Update properties of this object def update!(**args) @action = args[:action] if args.key?(:action) + @cluster_id = args[:cluster_id] if args.key?(:cluster_id) + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) @update = args[:update] if args.key?(:update) + @zone = args[:zone] if args.key?(:zone) end end @@ -1739,6 +2148,12 @@ module Google class SetMonitoringServiceRequest include Google::Apis::Core::Hashable + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `clusterId` + # @return [String] + attr_accessor :cluster_id + # The monitoring service the cluster should use to write metrics. # Currently available options: # * "monitoring.googleapis.com" - the Google Cloud Monitoring service @@ -1747,13 +2162,38 @@ module Google # @return [String] attr_accessor :monitoring_service + # The name (project, location, cluster) of the cluster to set monitoring. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Deprecated. The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # 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) + @cluster_id = args[:cluster_id] if args.key?(:cluster_id) @monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service) + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) + @zone = args[:zone] if args.key?(:zone) end end @@ -1761,19 +2201,51 @@ module Google class SetNetworkPolicyRequest include Google::Apis::Core::Hashable + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `clusterId` + # @return [String] + attr_accessor :cluster_id + + # The name (project, location, cluster id) of the cluster to set networking + # policy. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + # Configuration options for the NetworkPolicy feature. # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ # Corresponds to the JSON property `networkPolicy` # @return [Google::Apis::ContainerV1::NetworkPolicy] attr_accessor :network_policy + # Deprecated. The Google Developers Console [project ID or project + # number](https://developers.google.com/console/help/new/#projectnumber). + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # 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) + @cluster_id = args[:cluster_id] if args.key?(:cluster_id) + @name = args[:name] if args.key?(:name) @network_policy = args[:network_policy] if args.key?(:network_policy) + @project_id = args[:project_id] if args.key?(:project_id) + @zone = args[:zone] if args.key?(:zone) end end @@ -1787,6 +2259,40 @@ module Google # @return [Google::Apis::ContainerV1::NodePoolAutoscaling] attr_accessor :autoscaling + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `clusterId` + # @return [String] + attr_accessor :cluster_id + + # The name (project, location, cluster, node pool) of the node pool to set + # autoscaler settings. Specified in the format + # 'projects/*/locations/*/clusters/*/nodePools/*'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Deprecated. The name of the node pool to upgrade. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `nodePoolId` + # @return [String] + attr_accessor :node_pool_id + + # Deprecated. The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + def initialize(**args) update!(**args) end @@ -1794,6 +2300,11 @@ module Google # Update properties of this object def update!(**args) @autoscaling = args[:autoscaling] if args.key?(:autoscaling) + @cluster_id = args[:cluster_id] if args.key?(:cluster_id) + @name = args[:name] if args.key?(:name) + @node_pool_id = args[:node_pool_id] if args.key?(:node_pool_id) + @project_id = args[:project_id] if args.key?(:project_id) + @zone = args[:zone] if args.key?(:zone) end end @@ -1802,19 +2313,58 @@ module Google class SetNodePoolManagementRequest include Google::Apis::Core::Hashable + # Deprecated. The name of the cluster to update. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `clusterId` + # @return [String] + attr_accessor :cluster_id + # NodeManagement defines the set of node management services turned on for the # node pool. # Corresponds to the JSON property `management` # @return [Google::Apis::ContainerV1::NodeManagement] attr_accessor :management + # The name (project, location, cluster, node pool id) of the node pool to set + # management properties. Specified in the format + # 'projects/*/locations/*/clusters/*/nodePools/*'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Deprecated. The name of the node pool to update. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `nodePoolId` + # @return [String] + attr_accessor :node_pool_id + + # Deprecated. The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # 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) + @cluster_id = args[:cluster_id] if args.key?(:cluster_id) @management = args[:management] if args.key?(:management) + @name = args[:name] if args.key?(:name) + @node_pool_id = args[:node_pool_id] if args.key?(:node_pool_id) + @project_id = args[:project_id] if args.key?(:project_id) + @zone = args[:zone] if args.key?(:zone) end end @@ -1823,18 +2373,57 @@ module Google class SetNodePoolSizeRequest include Google::Apis::Core::Hashable + # Deprecated. The name of the cluster to update. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `clusterId` + # @return [String] + attr_accessor :cluster_id + + # The name (project, location, cluster, node pool id) of the node pool to set + # size. + # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + # The desired node count for the pool. # Corresponds to the JSON property `nodeCount` # @return [Fixnum] attr_accessor :node_count + # Deprecated. The name of the node pool to update. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `nodePoolId` + # @return [String] + attr_accessor :node_pool_id + + # Deprecated. The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # 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) + @cluster_id = args[:cluster_id] if args.key?(:cluster_id) + @name = args[:name] if args.key?(:name) @node_count = args[:node_count] if args.key?(:node_count) + @node_pool_id = args[:node_pool_id] if args.key?(:node_pool_id) + @project_id = args[:project_id] if args.key?(:project_id) + @zone = args[:zone] if args.key?(:zone) end end @@ -1843,12 +2432,43 @@ module Google class StartIpRotationRequest include Google::Apis::Core::Hashable + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `clusterId` + # @return [String] + attr_accessor :cluster_id + + # The name (project, location, cluster id) of the cluster to start IP rotation. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Deprecated. The Google Developers Console [project ID or project + # number](https://developers.google.com/console/help/new/#projectnumber). + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # 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) + @cluster_id = args[:cluster_id] if args.key?(:cluster_id) + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) + @zone = args[:zone] if args.key?(:zone) end end @@ -1856,6 +2476,25 @@ module Google class UpdateClusterRequest include Google::Apis::Core::Hashable + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `clusterId` + # @return [String] + attr_accessor :cluster_id + + # The name (project, location, cluster) of the cluster to update. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Deprecated. The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + # ClusterUpdate describes an update to the cluster. Exactly one update can # be applied to a cluster with each request, so at most one field can be # provided. @@ -1863,13 +2502,25 @@ module Google # @return [Google::Apis::ContainerV1::ClusterUpdate] attr_accessor :update + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # 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) + @cluster_id = args[:cluster_id] if args.key?(:cluster_id) + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) @update = args[:update] if args.key?(:update) + @zone = args[:zone] if args.key?(:zone) end end @@ -1877,19 +2528,56 @@ module Google class UpdateMasterRequest include Google::Apis::Core::Hashable - # The Kubernetes version to change the master to. Use "-" to have the server - # automatically select the default version. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `clusterId` + # @return [String] + attr_accessor :cluster_id + + # The Kubernetes version to change the master to. + # Users may specify either explicit versions offered by Kubernetes Engine or + # version aliases, which have the following behavior: + # - "latest": picks the highest valid Kubernetes version + # - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + # - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + # - "1.X.Y-gke.N": picks an explicit Kubernetes version + # - "-": picks the default Kubernetes version # Corresponds to the JSON property `masterVersion` # @return [String] attr_accessor :master_version + # The name (project, location, cluster) of the cluster to update. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Deprecated. The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # 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) + @cluster_id = args[:cluster_id] if args.key?(:cluster_id) @master_version = args[:master_version] if args.key?(:master_version) + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) + @zone = args[:zone] if args.key?(:zone) end end @@ -1897,26 +2585,70 @@ module Google class UpdateNodePoolRequest include Google::Apis::Core::Hashable + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `clusterId` + # @return [String] + attr_accessor :cluster_id + # The desired image type for the node pool. # Corresponds to the JSON property `imageType` # @return [String] attr_accessor :image_type + # The name (project, location, cluster, node pool) of the node pool to update. + # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Deprecated. The name of the node pool to upgrade. + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `nodePoolId` + # @return [String] + attr_accessor :node_pool_id + # The Kubernetes version to change the nodes to (typically an - # upgrade). Use `-` to upgrade to the latest version supported by - # the server. + # upgrade). + # Users may specify either explicit versions offered by Kubernetes Engine or + # version aliases, which have the following behavior: + # - "latest": picks the highest valid Kubernetes version + # - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + # - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + # - "1.X.Y-gke.N": picks an explicit Kubernetes version + # - "-": picks the Kubernetes master version # Corresponds to the JSON property `nodeVersion` # @return [String] attr_accessor :node_version + # Deprecated. The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # 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) + @cluster_id = args[:cluster_id] if args.key?(:cluster_id) @image_type = args[:image_type] if args.key?(:image_type) + @name = args[:name] if args.key?(:name) + @node_pool_id = args[:node_pool_id] if args.key?(:node_pool_id) @node_version = args[:node_version] if args.key?(:node_version) + @project_id = args[:project_id] if args.key?(:project_id) + @zone = args[:zone] if args.key?(:zone) end end end diff --git a/generated/google/apis/container_v1/representations.rb b/generated/google/apis/container_v1/representations.rb index da564af3b..51722446f 100644 --- a/generated/google/apis/container_v1/representations.rb +++ b/generated/google/apis/container_v1/representations.rb @@ -355,6 +355,10 @@ module Google class CancelOperationRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :operation_id, as: 'operationId' + property :project_id, as: 'projectId' + property :zone, as: 'zone' end end @@ -395,6 +399,7 @@ module Google property :label_fingerprint, as: 'labelFingerprint' property :legacy_abac, as: 'legacyAbac', class: Google::Apis::ContainerV1::LegacyAbac, decorator: Google::Apis::ContainerV1::LegacyAbac::Representation + property :location, as: 'location' collection :locations, as: 'locations' property :logging_service, as: 'loggingService' property :maintenance_policy, as: 'maintenancePolicy', class: Google::Apis::ContainerV1::MaintenancePolicy, decorator: Google::Apis::ContainerV1::MaintenancePolicy::Representation @@ -444,6 +449,10 @@ module Google class CompleteIpRotationRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_id, as: 'clusterId' + property :name, as: 'name' + property :project_id, as: 'projectId' + property :zone, as: 'zone' end end @@ -452,14 +461,21 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :cluster, as: 'cluster', class: Google::Apis::ContainerV1::Cluster, decorator: Google::Apis::ContainerV1::Cluster::Representation + property :parent, as: 'parent' + property :project_id, as: 'projectId' + property :zone, as: 'zone' end end class CreateNodePoolRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_id, as: 'clusterId' property :node_pool, as: 'nodePool', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation + property :parent, as: 'parent' + property :project_id, as: 'projectId' + property :zone, as: 'zone' end end @@ -663,6 +679,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :detail, as: 'detail' property :end_time, as: 'endTime' + property :location, as: 'location' property :name, as: 'name' property :operation_type, as: 'operationType' property :self_link, as: 'selfLink' @@ -677,6 +694,11 @@ module Google class RollbackNodePoolUpgradeRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_id, as: 'clusterId' + property :name, as: 'name' + property :node_pool_id, as: 'nodePoolId' + property :project_id, as: 'projectId' + property :zone, as: 'zone' end end @@ -696,43 +718,67 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation + property :cluster_id, as: 'clusterId' + property :name, as: 'name' + property :project_id, as: 'projectId' + property :zone, as: 'zone' end end class SetLabelsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_id, as: 'clusterId' property :label_fingerprint, as: 'labelFingerprint' + property :name, as: 'name' + property :project_id, as: 'projectId' hash :resource_labels, as: 'resourceLabels' + property :zone, as: 'zone' end end class SetLegacyAbacRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_id, as: 'clusterId' property :enabled, as: 'enabled' + property :name, as: 'name' + property :project_id, as: 'projectId' + property :zone, as: 'zone' end end class SetLocationsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_id, as: 'clusterId' collection :locations, as: 'locations' + property :name, as: 'name' + property :project_id, as: 'projectId' + property :zone, as: 'zone' end end class SetLoggingServiceRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_id, as: 'clusterId' property :logging_service, as: 'loggingService' + property :name, as: 'name' + property :project_id, as: 'projectId' + property :zone, as: 'zone' end end class SetMaintenancePolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_id, as: 'clusterId' property :maintenance_policy, as: 'maintenancePolicy', class: Google::Apis::ContainerV1::MaintenancePolicy, decorator: Google::Apis::ContainerV1::MaintenancePolicy::Representation + property :name, as: 'name' + property :project_id, as: 'projectId' + property :zone, as: 'zone' end end @@ -740,23 +786,35 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :action, as: 'action' + property :cluster_id, as: 'clusterId' + property :name, as: 'name' + property :project_id, as: 'projectId' property :update, as: 'update', class: Google::Apis::ContainerV1::MasterAuth, decorator: Google::Apis::ContainerV1::MasterAuth::Representation + property :zone, as: 'zone' end end class SetMonitoringServiceRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_id, as: 'clusterId' property :monitoring_service, as: 'monitoringService' + property :name, as: 'name' + property :project_id, as: 'projectId' + property :zone, as: 'zone' end end class SetNetworkPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_id, as: 'clusterId' + property :name, as: 'name' property :network_policy, as: 'networkPolicy', class: Google::Apis::ContainerV1::NetworkPolicy, decorator: Google::Apis::ContainerV1::NetworkPolicy::Representation + property :project_id, as: 'projectId' + property :zone, as: 'zone' end end @@ -765,50 +823,82 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation + property :cluster_id, as: 'clusterId' + property :name, as: 'name' + property :node_pool_id, as: 'nodePoolId' + property :project_id, as: 'projectId' + property :zone, as: 'zone' end end class SetNodePoolManagementRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_id, as: 'clusterId' property :management, as: 'management', class: Google::Apis::ContainerV1::NodeManagement, decorator: Google::Apis::ContainerV1::NodeManagement::Representation + property :name, as: 'name' + property :node_pool_id, as: 'nodePoolId' + property :project_id, as: 'projectId' + property :zone, as: 'zone' end end class SetNodePoolSizeRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_id, as: 'clusterId' + property :name, as: 'name' property :node_count, as: 'nodeCount' + property :node_pool_id, as: 'nodePoolId' + property :project_id, as: 'projectId' + property :zone, as: 'zone' end end class StartIpRotationRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_id, as: 'clusterId' + property :name, as: 'name' + property :project_id, as: 'projectId' + property :zone, as: 'zone' end end class UpdateClusterRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_id, as: 'clusterId' + property :name, as: 'name' + property :project_id, as: 'projectId' property :update, as: 'update', class: Google::Apis::ContainerV1::ClusterUpdate, decorator: Google::Apis::ContainerV1::ClusterUpdate::Representation + property :zone, as: 'zone' end end class UpdateMasterRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_id, as: 'clusterId' property :master_version, as: 'masterVersion' + property :name, as: 'name' + property :project_id, as: 'projectId' + property :zone, as: 'zone' end end class UpdateNodePoolRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_id, as: 'clusterId' property :image_type, as: 'imageType' + property :name, as: 'name' + property :node_pool_id, as: 'nodePoolId' property :node_version, as: 'nodeVersion' + property :project_id, as: 'projectId' + property :zone, as: 'zone' end end end diff --git a/generated/google/apis/container_v1/service.rb b/generated/google/apis/container_v1/service.rb index 87cbc8c5e..f29fbaae7 100644 --- a/generated/google/apis/container_v1/service.rb +++ b/generated/google/apis/container_v1/service.rb @@ -49,12 +49,17 @@ module Google end # Returns configuration info about the Kubernetes Engine service. + # @param [String] name + # The name (project and location) of the server config to get + # Specified in the format 'projects/*/locations/*'. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine [zone](/compute/docs/zones#available) - # to return operations for. + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) to return operations for. + # This field has been deprecated and replaced by the name field. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -72,12 +77,1164 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_zone_serverconfig(project_id, zone, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_server_config(name, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/serverConfig', options) + command.response_representation = Google::Apis::ContainerV1::ServerConfig::Representation + command.response_class = Google::Apis::ContainerV1::ServerConfig + command.params['name'] = name unless name.nil? + command.query['projectId'] = project_id unless project_id.nil? + command.query['zone'] = zone unless zone.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Completes master IP rotation. + # @param [String] name + # The name (project, location, cluster id) of the cluster to complete IP + # rotation. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # @param [Google::Apis::ContainerV1::CompleteIpRotationRequest] complete_ip_rotation_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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 complete_project_location_cluster_ip_rotation(name, complete_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:completeIpRotation', options) + command.request_representation = Google::Apis::ContainerV1::CompleteIpRotationRequest::Representation + command.request_object = complete_ip_rotation_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::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 + + # Creates a cluster, consisting of the specified number and type of Google + # Compute Engine instances. + # By default, the cluster is created in the project's + # [default network](/compute/docs/networks-and-firewalls#networks). + # One firewall is added for the cluster. After cluster creation, + # the cluster creates routes for each node to allow the containers + # on that node to communicate with all other instances in the + # cluster. + # Finally, an entry is added to the project's global metadata indicating + # which CIDR range is being used by the cluster. + # @param [String] parent + # The parent (project and location) where the cluster will be created. + # Specified in the format 'projects/*/locations/*'. + # @param [Google::Apis::ContainerV1::CreateClusterRequest] create_cluster_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_cluster(parent, create_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/clusters', options) + command.request_representation = Google::Apis::ContainerV1::CreateClusterRequest::Representation + command.request_object = create_cluster_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['parent'] = parent unless parent.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 the cluster, including the Kubernetes endpoint and all worker + # nodes. + # Firewalls and routes that were configured during cluster creation + # are also deleted. + # Other Google Compute Engine resources that might be in use by the cluster + # (e.g. load balancer resources) will not be deleted if they weren't present + # at the initial create time. + # @param [String] name + # The name (project, location, cluster) of the cluster to delete. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # @param [String] cluster_id + # Deprecated. The name of the cluster to delete. + # This field has been deprecated and replaced by the name field. + # @param [String] project_id + # Deprecated. The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. + # @param [String] zone + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # @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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_cluster(name, cluster_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['name'] = name unless name.nil? + command.query['clusterId'] = cluster_id unless cluster_id.nil? + command.query['projectId'] = project_id unless project_id.nil? + command.query['zone'] = zone unless zone.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 specific cluster. + # @param [String] name + # The name (project, location, cluster) of the cluster to retrieve. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # @param [String] cluster_id + # Deprecated. The name of the cluster to retrieve. + # This field has been deprecated and replaced by the name field. + # @param [String] project_id + # Deprecated. The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. + # @param [String] zone + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # @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::ContainerV1::Cluster] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::Cluster] + # + # @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_cluster(name, cluster_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::ContainerV1::Cluster::Representation + command.response_class = Google::Apis::ContainerV1::Cluster + command.params['name'] = name unless name.nil? + command.query['clusterId'] = cluster_id unless cluster_id.nil? + command.query['projectId'] = project_id unless project_id.nil? + command.query['zone'] = zone unless zone.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 all clusters owned by a project in either the specified zone or all + # zones. + # @param [String] parent + # The parent (project and location) where the clusters will be listed. + # Specified in the format 'projects/*/locations/*'. + # Location "-" matches all zones and all regions. + # @param [String] project_id + # Deprecated. The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the parent field. + # @param [String] zone + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides, or "-" for all zones. + # This field has been deprecated and replaced by the parent field. + # @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::ContainerV1::ListClustersResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::ListClustersResponse] + # + # @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_clusters(parent, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/clusters', options) + command.response_representation = Google::Apis::ContainerV1::ListClustersResponse::Representation + command.response_class = Google::Apis::ContainerV1::ListClustersResponse + command.params['parent'] = parent unless parent.nil? + command.query['projectId'] = project_id unless project_id.nil? + command.query['zone'] = zone unless zone.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the addons of a specific cluster. + # @param [String] name + # The name (project, location, cluster) of the cluster to set addons. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # @param [Google::Apis::ContainerV1::SetAddonsConfigRequest] set_addons_config_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_cluster_addons_config(name, set_addons_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:setAddons', options) + command.request_representation = Google::Apis::ContainerV1::SetAddonsConfigRequest::Representation + command.request_object = set_addons_config_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::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 + + # Enables or disables the ABAC authorization mechanism on a cluster. + # @param [String] name + # The name (project, location, cluster id) of the cluster to set legacy abac. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # @param [Google::Apis::ContainerV1::SetLegacyAbacRequest] set_legacy_abac_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_cluster_legacy_abac(name, set_legacy_abac_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:setLegacyAbac', options) + command.request_representation = Google::Apis::ContainerV1::SetLegacyAbacRequest::Representation + command.request_object = set_legacy_abac_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::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 + + # Sets the locations of a specific cluster. + # @param [String] name + # The name (project, location, cluster) of the cluster to set locations. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # @param [Google::Apis::ContainerV1::SetLocationsRequest] set_locations_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_cluster_locations(name, set_locations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:setLocations', options) + command.request_representation = Google::Apis::ContainerV1::SetLocationsRequest::Representation + command.request_object = set_locations_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::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 + + # Sets the logging service of a specific cluster. + # @param [String] name + # The name (project, location, cluster) of the cluster to set logging. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # @param [Google::Apis::ContainerV1::SetLoggingServiceRequest] set_logging_service_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_cluster_logging_service(name, set_logging_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:setLogging', options) + command.request_representation = Google::Apis::ContainerV1::SetLoggingServiceRequest::Representation + command.request_object = set_logging_service_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::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 + + # Sets the maintenance policy for a cluster. + # @param [String] name + # The name (project, location, cluster id) of the cluster to set maintenance + # policy. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # @param [Google::Apis::ContainerV1::SetMaintenancePolicyRequest] set_maintenance_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_project_location_cluster_maintenance_policy(name, set_maintenance_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:setMaintenancePolicy', options) + command.request_representation = Google::Apis::ContainerV1::SetMaintenancePolicyRequest::Representation + command.request_object = set_maintenance_policy_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::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 + + # Used to set master auth materials. Currently supports :- + # Changing the admin password of a specific cluster. + # This can be either via password generation or explicitly set the password. + # @param [String] name + # The name (project, location, cluster) of the cluster to set auth. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # @param [Google::Apis::ContainerV1::SetMasterAuthRequest] set_master_auth_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_project_location_cluster_master_auth(name, set_master_auth_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:setMasterAuth', options) + command.request_representation = Google::Apis::ContainerV1::SetMasterAuthRequest::Representation + command.request_object = set_master_auth_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::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 + + # Sets the monitoring service of a specific cluster. + # @param [String] name + # The name (project, location, cluster) of the cluster to set monitoring. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # @param [Google::Apis::ContainerV1::SetMonitoringServiceRequest] set_monitoring_service_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_cluster_monitoring_service(name, set_monitoring_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:setMonitoring', options) + command.request_representation = Google::Apis::ContainerV1::SetMonitoringServiceRequest::Representation + command.request_object = set_monitoring_service_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::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 + + # Enables/Disables Network Policy for a cluster. + # @param [String] name + # The name (project, location, cluster id) of the cluster to set networking + # policy. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # @param [Google::Apis::ContainerV1::SetNetworkPolicyRequest] set_network_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_project_location_cluster_network_policy(name, set_network_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:setNetworkPolicy', options) + command.request_representation = Google::Apis::ContainerV1::SetNetworkPolicyRequest::Representation + command.request_object = set_network_policy_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::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 + + # Sets labels on a cluster. + # @param [String] name + # The name (project, location, cluster id) of the cluster to set labels. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # @param [Google::Apis::ContainerV1::SetLabelsRequest] set_labels_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_project_location_cluster_resource_labels(name, set_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:setResourceLabels', options) + command.request_representation = Google::Apis::ContainerV1::SetLabelsRequest::Representation + command.request_object = set_labels_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::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 + + # Start master IP rotation. + # @param [String] name + # The name (project, location, cluster id) of the cluster to start IP rotation. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # @param [Google::Apis::ContainerV1::StartIpRotationRequest] start_ip_rotation_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_project_location_cluster_ip_rotation(name, start_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:startIpRotation', options) + command.request_representation = Google::Apis::ContainerV1::StartIpRotationRequest::Representation + command.request_object = start_ip_rotation_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::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 + + # Updates the settings of a specific cluster. + # @param [String] name + # The name (project, location, cluster) of the cluster to update. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # @param [Google::Apis::ContainerV1::UpdateClusterRequest] update_cluster_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_project_location_cluster(name, update_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1/{+name}', options) + command.request_representation = Google::Apis::ContainerV1::UpdateClusterRequest::Representation + command.request_object = update_cluster_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::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 + + # Updates the master of a specific cluster. + # @param [String] name + # The name (project, location, cluster) of the cluster to update. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # @param [Google::Apis::ContainerV1::UpdateMasterRequest] update_master_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_cluster_master(name, update_master_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:updateMaster', options) + command.request_representation = Google::Apis::ContainerV1::UpdateMasterRequest::Representation + command.request_object = update_master_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::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 + + # Creates a node pool for a cluster. + # @param [String] parent + # The parent (project, location, cluster id) where the node pool will be created. + # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + # @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_cluster_node_pool(parent, create_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/nodePools', options) + command.request_representation = Google::Apis::ContainerV1::CreateNodePoolRequest::Representation + command.request_object = create_node_pool_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['parent'] = parent unless parent.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 pool from a cluster. + # @param [String] name + # The name (project, location, cluster, node pool id) of the node pool to delete. + # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + # @param [String] cluster_id + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. + # @param [String] node_pool_id + # Deprecated. The name of the node pool to delete. + # This field has been deprecated and replaced by the name field. + # @param [String] project_id + # Deprecated. The Google Developers Console [project ID or project + # number](https://developers.google.com/console/help/new/#projectnumber). + # This field has been deprecated and replaced by the name field. + # @param [String] zone + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # @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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_cluster_node_pool(name, cluster_id: nil, node_pool_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['name'] = name unless name.nil? + command.query['clusterId'] = cluster_id unless cluster_id.nil? + command.query['nodePoolId'] = node_pool_id unless node_pool_id.nil? + command.query['projectId'] = project_id unless project_id.nil? + command.query['zone'] = zone unless zone.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the node pool requested. + # @param [String] name + # The name (project, location, cluster, node pool id) of the node pool to get. + # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + # @param [String] cluster_id + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. + # @param [String] node_pool_id + # Deprecated. The name of the node pool. + # This field has been deprecated and replaced by the name field. + # @param [String] project_id + # Deprecated. The Google Developers Console [project ID or project + # number](https://developers.google.com/console/help/new/#projectnumber). + # This field has been deprecated and replaced by the name field. + # @param [String] zone + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # @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::ContainerV1::NodePool] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::NodePool] + # + # @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_cluster_node_pool(name, cluster_id: nil, node_pool_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::ContainerV1::NodePool::Representation + command.response_class = Google::Apis::ContainerV1::NodePool + command.params['name'] = name unless name.nil? + command.query['clusterId'] = cluster_id unless cluster_id.nil? + command.query['nodePoolId'] = node_pool_id unless node_pool_id.nil? + command.query['projectId'] = project_id unless project_id.nil? + command.query['zone'] = zone unless zone.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 the node pools for a cluster. + # @param [String] parent + # The parent (project, location, cluster id) where the node pools will be listed. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # @param [String] cluster_id + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the parent field. + # @param [String] project_id + # Deprecated. The Google Developers Console [project ID or project + # number](https://developers.google.com/console/help/new/#projectnumber). + # This field has been deprecated and replaced by the parent field. + # @param [String] zone + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the parent field. + # @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::ContainerV1::ListNodePoolsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::ListNodePoolsResponse] + # + # @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_cluster_node_pools(parent, cluster_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/nodePools', options) + command.response_representation = Google::Apis::ContainerV1::ListNodePoolsResponse::Representation + command.response_class = Google::Apis::ContainerV1::ListNodePoolsResponse + command.params['parent'] = parent unless parent.nil? + command.query['clusterId'] = cluster_id unless cluster_id.nil? + command.query['projectId'] = project_id unless project_id.nil? + command.query['zone'] = zone unless zone.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Roll back the previously Aborted or Failed NodePool upgrade. + # This will be an no-op if the last upgrade successfully completed. + # @param [String] name + # The name (project, location, cluster, node pool id) of the node poll to + # rollback upgrade. + # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + # @param [Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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 rollback_project_location_cluster_node_pool(name, rollback_node_pool_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:rollback', options) + command.request_representation = Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest::Representation + command.request_object = rollback_node_pool_upgrade_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::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 + + # Sets the autoscaling settings of a specific node pool. + # @param [String] name + # The name (project, location, cluster, node pool) of the node pool to set + # autoscaler settings. Specified in the format + # 'projects/*/locations/*/clusters/*/nodePools/*'. + # @param [Google::Apis::ContainerV1::SetNodePoolAutoscalingRequest] set_node_pool_autoscaling_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_project_location_cluster_node_pool_autoscaling(name, set_node_pool_autoscaling_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:setAutoscaling', options) + command.request_representation = Google::Apis::ContainerV1::SetNodePoolAutoscalingRequest::Representation + command.request_object = set_node_pool_autoscaling_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::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 + + # Sets the NodeManagement options for a node pool. + # @param [String] name + # The name (project, location, cluster, node pool id) of the node pool to set + # management properties. Specified in the format + # 'projects/*/locations/*/clusters/*/nodePools/*'. + # @param [Google::Apis::ContainerV1::SetNodePoolManagementRequest] set_node_pool_management_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_project_location_cluster_node_pool_management(name, set_node_pool_management_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:setManagement', options) + command.request_representation = Google::Apis::ContainerV1::SetNodePoolManagementRequest::Representation + command.request_object = set_node_pool_management_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::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 + + # Sets the size of a specific node pool. + # @param [String] name + # The name (project, location, cluster, node pool id) of the node pool to set + # size. + # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + # @param [Google::Apis::ContainerV1::SetNodePoolSizeRequest] set_node_pool_size_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_project_location_cluster_node_pool_size(name, set_node_pool_size_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:setSize', options) + command.request_representation = Google::Apis::ContainerV1::SetNodePoolSizeRequest::Representation + command.request_object = set_node_pool_size_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::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 + + # Updates the version and/or image type of a specific node pool. + # @param [String] name + # The name (project, location, cluster, node pool) of the node pool to update. + # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + # @param [Google::Apis::ContainerV1::UpdateNodePoolRequest] update_node_pool_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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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_project_location_cluster_node_pool(name, update_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1/{+name}', options) + command.request_representation = Google::Apis::ContainerV1::UpdateNodePoolRequest::Representation + command.request_object = update_node_pool_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::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 + + # Cancels the specified operation. + # @param [String] name + # The name (project, location, operation id) of the operation to cancel. + # Specified in the format 'projects/*/locations/*/operations/*'. + # @param [Google::Apis::ContainerV1::CancelOperationRequest] cancel_operation_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::ContainerV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def cancel_project_location_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:cancel', options) + command.request_representation = Google::Apis::ContainerV1::CancelOperationRequest::Representation + command.request_object = cancel_operation_request_object + command.response_representation = Google::Apis::ContainerV1::Empty::Representation + command.response_class = Google::Apis::ContainerV1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the specified operation. + # @param [String] name + # The name (project, location, operation id) of the operation to get. + # Specified in the format 'projects/*/locations/*/operations/*'. + # @param [String] operation_id + # Deprecated. The server-assigned `name` of the operation. + # This field has been deprecated and replaced by the name field. + # @param [String] project_id + # Deprecated. The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. + # @param [String] zone + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # This field has been deprecated and replaced by the name field. + # @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::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::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 get_project_location_operation(name, operation_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['name'] = name unless name.nil? + command.query['operationId'] = operation_id unless operation_id.nil? + command.query['projectId'] = project_id unless project_id.nil? + command.query['zone'] = zone unless zone.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 all operations in a project in a specific zone or all zones. + # @param [String] parent + # The parent (project and location) where the operations will be listed. + # Specified in the format 'projects/*/locations/*'. + # Location "-" matches all zones and all regions. + # @param [String] project_id + # Deprecated. The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the parent field. + # @param [String] zone + # Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones# + # available) + # to return operations for, or `-` for all zones. + # This field has been deprecated and replaced by the parent field. + # @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::ContainerV1::ListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::ListOperationsResponse] + # + # @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_operations(parent, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/operations', options) + command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation + command.response_class = Google::Apis::ContainerV1::ListOperationsResponse + command.params['parent'] = parent unless parent.nil? + command.query['projectId'] = project_id unless project_id.nil? + command.query['zone'] = zone unless zone.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns configuration info about the Kubernetes Engine service. + # @param [String] project_id + # Deprecated. The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. + # @param [String] zone + # Deprecated. The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) to return operations for. + # This field has been deprecated and replaced by the name field. + # @param [String] name + # The name (project and location) of the server config to get + # Specified in the format 'projects/*/locations/*'. + # @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::ContainerV1::ServerConfig] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::ServerConfig] + # + # @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_zone_serverconfig(project_id, zone, name: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/serverconfig', options) command.response_representation = Google::Apis::ContainerV1::ServerConfig::Representation command.response_class = Google::Apis::ContainerV1::ServerConfig command.params['projectId'] = project_id unless project_id.nil? command.params['zone'] = zone unless zone.nil? + command.query['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) @@ -85,14 +1242,17 @@ module Google # Sets the addons of a specific cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to upgrade. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetAddonsConfigRequest] set_addons_config_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -127,14 +1287,17 @@ module Google # Completes master IP rotation. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::CompleteIpRotationRequest] complete_ip_rotation_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -178,12 +1341,14 @@ module Google # Finally, an entry is added to the project's global metadata indicating # which CIDR range is being used by the cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the parent field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the parent field. # @param [Google::Apis::ContainerV1::CreateClusterRequest] create_cluster_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -223,14 +1388,20 @@ module Google # (e.g. load balancer resources) will not be deleted if they weren't present # at the initial create time. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to delete. + # Deprecated. The name of the cluster to delete. + # This field has been deprecated and replaced by the name field. + # @param [String] name + # The name (project, location, cluster) of the cluster to delete. + # Specified in the format 'projects/*/locations/*/clusters/*'. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -248,13 +1419,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block) + def delete_zone_cluster(project_id, zone, cluster_id, name: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options) command.response_representation = Google::Apis::ContainerV1::Operation::Representation command.response_class = Google::Apis::ContainerV1::Operation command.params['projectId'] = project_id unless project_id.nil? command.params['zone'] = zone unless zone.nil? command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.query['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) @@ -262,14 +1434,20 @@ module Google # Gets the details of a specific cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to retrieve. + # Deprecated. The name of the cluster to retrieve. + # This field has been deprecated and replaced by the name field. + # @param [String] name + # The name (project, location, cluster) of the cluster to retrieve. + # Specified in the format 'projects/*/locations/*/clusters/*'. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -287,13 +1465,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block) + def get_zone_cluster(project_id, zone, cluster_id, name: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options) command.response_representation = Google::Apis::ContainerV1::Cluster::Representation command.response_class = Google::Apis::ContainerV1::Cluster command.params['projectId'] = project_id unless project_id.nil? command.params['zone'] = zone unless zone.nil? command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.query['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) @@ -301,14 +1480,17 @@ module Google # Enables or disables the ABAC authorization mechanism on a cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to update. + # Deprecated. The name of the cluster to update. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetLegacyAbacRequest] set_legacy_abac_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -344,12 +1526,18 @@ module Google # Lists all clusters owned by a project in either the specified zone or all # zones. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the parent field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides, or "-" for all zones. + # This field has been deprecated and replaced by the parent field. + # @param [String] parent + # The parent (project and location) where the clusters will be listed. + # Specified in the format 'projects/*/locations/*'. + # Location "-" matches all zones and all regions. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -367,12 +1555,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_zone_clusters(project_id, zone, fields: nil, quota_user: nil, options: nil, &block) + def list_zone_clusters(project_id, zone, parent: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters', options) command.response_representation = Google::Apis::ContainerV1::ListClustersResponse::Representation command.response_class = Google::Apis::ContainerV1::ListClustersResponse command.params['projectId'] = project_id unless project_id.nil? command.params['zone'] = zone unless zone.nil? + command.query['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -380,14 +1569,17 @@ module Google # Sets the locations of a specific cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to upgrade. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetLocationsRequest] set_locations_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -422,14 +1614,17 @@ module Google # Sets the logging service of a specific cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to upgrade. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetLoggingServiceRequest] set_logging_service_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -464,14 +1659,17 @@ module Google # Updates the master of a specific cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to upgrade. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::UpdateMasterRequest] update_master_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -506,14 +1704,17 @@ module Google # Sets the monitoring service of a specific cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to upgrade. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetMonitoringServiceRequest] set_monitoring_service_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -548,14 +1749,17 @@ module Google # Sets labels on a cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetLabelsRequest] set_labels_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -634,14 +1838,17 @@ module Google # Changing the admin password of a specific cluster. # This can be either via password generation or explicitly set the password. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to upgrade. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetMasterAuthRequest] set_master_auth_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -676,14 +1883,17 @@ module Google # Enables/Disables Network Policy for a cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetNetworkPolicyRequest] set_network_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -718,14 +1928,17 @@ module Google # Start master IP rotation. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::StartIpRotationRequest] start_ip_rotation_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -760,14 +1973,17 @@ module Google # Updates the settings of a specific cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to upgrade. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::UpdateClusterRequest] update_cluster_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -802,16 +2018,20 @@ module Google # Sets the autoscaling settings of a specific node pool. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to upgrade. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # The name of the node pool to upgrade. + # Deprecated. The name of the node pool to upgrade. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetNodePoolAutoscalingRequest] set_node_pool_autoscaling_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -847,14 +2067,17 @@ module Google # Creates a node pool for a cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). + # This field has been deprecated and replaced by the parent field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the parent field. # @param [String] cluster_id - # The name of the cluster. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the parent field. # @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -889,16 +2112,23 @@ module Google # Deletes a node pool from a cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # The name of the node pool to delete. + # Deprecated. The name of the node pool to delete. + # This field has been deprecated and replaced by the name field. + # @param [String] name + # The name (project, location, cluster, node pool id) of the node pool to delete. + # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -916,7 +2146,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, name: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options) command.response_representation = Google::Apis::ContainerV1::Operation::Representation command.response_class = Google::Apis::ContainerV1::Operation @@ -924,6 +2154,7 @@ module Google command.params['zone'] = zone unless zone.nil? command.params['clusterId'] = cluster_id unless cluster_id.nil? command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil? + command.query['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) @@ -931,16 +2162,23 @@ module Google # Retrieves the node pool requested. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # The name of the node pool. + # Deprecated. The name of the node pool. + # This field has been deprecated and replaced by the name field. + # @param [String] name + # The name (project, location, cluster, node pool id) of the node pool to get. + # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -958,7 +2196,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block) + def get_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, name: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options) command.response_representation = Google::Apis::ContainerV1::NodePool::Representation command.response_class = Google::Apis::ContainerV1::NodePool @@ -966,6 +2204,7 @@ module Google command.params['zone'] = zone unless zone.nil? command.params['clusterId'] = cluster_id unless cluster_id.nil? command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil? + command.query['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) @@ -973,14 +2212,20 @@ module Google # Lists the node pools for a cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). + # This field has been deprecated and replaced by the parent field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the parent field. # @param [String] cluster_id - # The name of the cluster. + # Deprecated. The name of the cluster. + # This field has been deprecated and replaced by the parent field. + # @param [String] parent + # The parent (project, location, cluster id) where the node pools will be listed. + # Specified in the format 'projects/*/locations/*/clusters/*'. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -998,13 +2243,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_zone_cluster_node_pools(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block) + def list_project_zone_cluster_node_pools(project_id, zone, cluster_id, parent: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options) command.response_representation = Google::Apis::ContainerV1::ListNodePoolsResponse::Representation command.response_class = Google::Apis::ContainerV1::ListNodePoolsResponse command.params['projectId'] = project_id unless project_id.nil? command.params['zone'] = zone unless zone.nil? command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.query['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -1013,16 +2259,20 @@ module Google # Roll back the previously Aborted or Failed NodePool upgrade. # This will be an no-op if the last upgrade successfully completed. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to rollback. + # Deprecated. The name of the cluster to rollback. + # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # The name of the node pool to rollback. + # Deprecated. The name of the node pool to rollback. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1058,16 +2308,20 @@ module Google # Sets the NodeManagement options for a node pool. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to update. + # Deprecated. The name of the cluster to update. + # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # The name of the node pool to update. + # Deprecated. The name of the node pool to update. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetNodePoolManagementRequest] set_node_pool_management_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1103,16 +2357,20 @@ module Google # Sets the size of a specific node pool. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to update. + # Deprecated. The name of the cluster to update. + # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # The name of the node pool to update. + # Deprecated. The name of the node pool to update. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetNodePoolSizeRequest] set_node_pool_size_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1148,16 +2406,20 @@ module Google # Updates the version and/or image type of a specific node pool. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # The name of the cluster to upgrade. + # Deprecated. The name of the cluster to upgrade. + # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # The name of the node pool to upgrade. + # Deprecated. The name of the node pool to upgrade. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::UpdateNodePoolRequest] update_node_pool_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1193,13 +2455,16 @@ module Google # Cancels the specified operation. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the operation resides. + # This field has been deprecated and replaced by the name field. # @param [String] operation_id - # The server-assigned `name` of the operation. + # Deprecated. The server-assigned `name` of the operation. + # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::CancelOperationRequest] cancel_operation_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1234,14 +2499,20 @@ module Google # Gets the specified operation. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the name field. # @param [String] zone - # The name of the Google Compute Engine + # Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. + # This field has been deprecated and replaced by the name field. # @param [String] operation_id - # The server-assigned `name` of the operation. + # Deprecated. The server-assigned `name` of the operation. + # This field has been deprecated and replaced by the name field. + # @param [String] name + # The name (project, location, operation id) of the operation to get. + # Specified in the format 'projects/*/locations/*/operations/*'. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1259,13 +2530,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_zone_operation(project_id, zone, operation_id, fields: nil, quota_user: nil, options: nil, &block) + def get_zone_operation(project_id, zone, operation_id, name: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}', options) command.response_representation = Google::Apis::ContainerV1::Operation::Representation command.response_class = Google::Apis::ContainerV1::Operation command.params['projectId'] = project_id unless project_id.nil? command.params['zone'] = zone unless zone.nil? command.params['operationId'] = operation_id unless operation_id.nil? + command.query['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) @@ -1273,11 +2545,18 @@ module Google # Lists all operations in a project in a specific zone or all zones. # @param [String] project_id - # The Google Developers Console [project ID or project + # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). + # This field has been deprecated and replaced by the parent field. # @param [String] zone - # The name of the Google Compute Engine [zone](/compute/docs/zones#available) + # Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones# + # available) # to return operations for, or `-` for all zones. + # This field has been deprecated and replaced by the parent field. + # @param [String] parent + # The parent (project and location) where the operations will be listed. + # Specified in the format 'projects/*/locations/*'. + # Location "-" matches all zones and all regions. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1295,12 +2574,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_zone_operations(project_id, zone, fields: nil, quota_user: nil, options: nil, &block) + def list_zone_operations(project_id, zone, parent: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations', options) command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation command.response_class = Google::Apis::ContainerV1::ListOperationsResponse command.params['projectId'] = project_id unless project_id.nil? command.params['zone'] = zone unless zone.nil? + command.query['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) diff --git a/generated/google/apis/datastore_v1.rb b/generated/google/apis/datastore_v1.rb index 928c63079..852a89d10 100644 --- a/generated/google/apis/datastore_v1.rb +++ b/generated/google/apis/datastore_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/datastore/ module DatastoreV1 VERSION = 'V1' - REVISION = '20171024' + REVISION = '20180321' # 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/datastore_v1/classes.rb b/generated/google/apis/datastore_v1/classes.rb index 486b9eac9..8cababc88 100644 --- a/generated/google/apis/datastore_v1/classes.rb +++ b/generated/google/apis/datastore_v1/classes.rb @@ -343,6 +343,378 @@ module Google end end + # Metadata common to all Datastore Admin operations. + class GoogleDatastoreAdminV1CommonMetadata + include Google::Apis::Core::Hashable + + # The time the operation ended, either successfully or otherwise. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # The client-assigned labels which were provided when the operation was + # created. May also include additional labels. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The type of the operation. Can be used as a filter in + # ListOperationsRequest. + # Corresponds to the JSON property `operationType` + # @return [String] + attr_accessor :operation_type + + # The time that work began on the operation. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # The current state of the Operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_time = args[:end_time] if args.key?(:end_time) + @labels = args[:labels] if args.key?(:labels) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @start_time = args[:start_time] if args.key?(:start_time) + @state = args[:state] if args.key?(:state) + end + end + + # Identifies a subset of entities in a project. This is specified as + # combinations of kinds and namespaces (either or both of which may be all, as + # described in the following examples). + # Example usage: + # Entire project: + # kinds=[], namespace_ids=[] + # Kinds Foo and Bar in all namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=[] + # Kinds Foo and Bar only in the default namespace: + # kinds=['Foo', 'Bar'], namespace_ids=[''] + # Kinds Foo and Bar in both the default and Baz namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] + # The entire Baz namespace: + # kinds=[], namespace_ids=['Baz'] + class GoogleDatastoreAdminV1EntityFilter + include Google::Apis::Core::Hashable + + # If empty, then this represents all kinds. + # Corresponds to the JSON property `kinds` + # @return [Array] + attr_accessor :kinds + + # An empty list represents all namespaces. This is the preferred + # usage for projects that don't use namespaces. + # An empty string element represents the default namespace. This should be + # used if the project has data in non-default namespaces, but doesn't want to + # include them. + # Each namespace in this list must be unique. + # Corresponds to the JSON property `namespaceIds` + # @return [Array] + attr_accessor :namespace_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kinds = args[:kinds] if args.key?(:kinds) + @namespace_ids = args[:namespace_ids] if args.key?(:namespace_ids) + end + end + + # Metadata for ExportEntities operations. + class GoogleDatastoreAdminV1ExportEntitiesMetadata + include Google::Apis::Core::Hashable + + # Metadata common to all Datastore Admin operations. + # Corresponds to the JSON property `common` + # @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1CommonMetadata] + attr_accessor :common + + # Identifies a subset of entities in a project. This is specified as + # combinations of kinds and namespaces (either or both of which may be all, as + # described in the following examples). + # Example usage: + # Entire project: + # kinds=[], namespace_ids=[] + # Kinds Foo and Bar in all namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=[] + # Kinds Foo and Bar only in the default namespace: + # kinds=['Foo', 'Bar'], namespace_ids=[''] + # Kinds Foo and Bar in both the default and Baz namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] + # The entire Baz namespace: + # kinds=[], namespace_ids=['Baz'] + # Corresponds to the JSON property `entityFilter` + # @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter] + attr_accessor :entity_filter + + # Location for the export metadata and data files. This will be the same + # value as the + # google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix + # field. The final output location is provided in + # google.datastore.admin.v1.ExportEntitiesResponse.output_url. + # Corresponds to the JSON property `outputUrlPrefix` + # @return [String] + attr_accessor :output_url_prefix + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressBytes` + # @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress] + attr_accessor :progress_bytes + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressEntities` + # @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress] + attr_accessor :progress_entities + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @common = args[:common] if args.key?(:common) + @entity_filter = args[:entity_filter] if args.key?(:entity_filter) + @output_url_prefix = args[:output_url_prefix] if args.key?(:output_url_prefix) + @progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes) + @progress_entities = args[:progress_entities] if args.key?(:progress_entities) + end + end + + # The request for + # google.datastore.admin.v1.DatastoreAdmin.ExportEntities. + class GoogleDatastoreAdminV1ExportEntitiesRequest + include Google::Apis::Core::Hashable + + # Identifies a subset of entities in a project. This is specified as + # combinations of kinds and namespaces (either or both of which may be all, as + # described in the following examples). + # Example usage: + # Entire project: + # kinds=[], namespace_ids=[] + # Kinds Foo and Bar in all namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=[] + # Kinds Foo and Bar only in the default namespace: + # kinds=['Foo', 'Bar'], namespace_ids=[''] + # Kinds Foo and Bar in both the default and Baz namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] + # The entire Baz namespace: + # kinds=[], namespace_ids=['Baz'] + # Corresponds to the JSON property `entityFilter` + # @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter] + attr_accessor :entity_filter + + # Client-assigned labels. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Location for the export metadata and data files. + # The full resource URL of the external storage location. Currently, only + # Google Cloud Storage is supported. So output_url_prefix should be of the + # form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the + # name of the Cloud Storage bucket and `NAMESPACE_PATH` is an optional Cloud + # Storage namespace path (this is not a Cloud Datastore namespace). For more + # information about Cloud Storage namespace paths, see + # [Object name + # considerations](https://cloud.google.com/storage/docs/naming#object- + # considerations). + # The resulting files will be nested deeper than the specified URL prefix. + # The final output URL will be provided in the + # google.datastore.admin.v1.ExportEntitiesResponse.output_url field. That + # value should be used for subsequent ImportEntities operations. + # By nesting the data files deeper, the same Cloud Storage bucket can be used + # in multiple ExportEntities operations without conflict. + # Corresponds to the JSON property `outputUrlPrefix` + # @return [String] + attr_accessor :output_url_prefix + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entity_filter = args[:entity_filter] if args.key?(:entity_filter) + @labels = args[:labels] if args.key?(:labels) + @output_url_prefix = args[:output_url_prefix] if args.key?(:output_url_prefix) + end + end + + # The response for + # google.datastore.admin.v1.DatastoreAdmin.ExportEntities. + class GoogleDatastoreAdminV1ExportEntitiesResponse + include Google::Apis::Core::Hashable + + # Location of the output metadata file. This can be used to begin an import + # into Cloud Datastore (this project or another project). See + # google.datastore.admin.v1.ImportEntitiesRequest.input_url. + # Only present if the operation completed successfully. + # Corresponds to the JSON property `outputUrl` + # @return [String] + attr_accessor :output_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @output_url = args[:output_url] if args.key?(:output_url) + end + end + + # Metadata for ImportEntities operations. + class GoogleDatastoreAdminV1ImportEntitiesMetadata + include Google::Apis::Core::Hashable + + # Metadata common to all Datastore Admin operations. + # Corresponds to the JSON property `common` + # @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1CommonMetadata] + attr_accessor :common + + # Identifies a subset of entities in a project. This is specified as + # combinations of kinds and namespaces (either or both of which may be all, as + # described in the following examples). + # Example usage: + # Entire project: + # kinds=[], namespace_ids=[] + # Kinds Foo and Bar in all namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=[] + # Kinds Foo and Bar only in the default namespace: + # kinds=['Foo', 'Bar'], namespace_ids=[''] + # Kinds Foo and Bar in both the default and Baz namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] + # The entire Baz namespace: + # kinds=[], namespace_ids=['Baz'] + # Corresponds to the JSON property `entityFilter` + # @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter] + attr_accessor :entity_filter + + # The location of the import metadata file. This will be the same value as + # the google.datastore.admin.v1.ExportEntitiesResponse.output_url field. + # Corresponds to the JSON property `inputUrl` + # @return [String] + attr_accessor :input_url + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressBytes` + # @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress] + attr_accessor :progress_bytes + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressEntities` + # @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress] + attr_accessor :progress_entities + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @common = args[:common] if args.key?(:common) + @entity_filter = args[:entity_filter] if args.key?(:entity_filter) + @input_url = args[:input_url] if args.key?(:input_url) + @progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes) + @progress_entities = args[:progress_entities] if args.key?(:progress_entities) + end + end + + # The request for + # google.datastore.admin.v1.DatastoreAdmin.ImportEntities. + class GoogleDatastoreAdminV1ImportEntitiesRequest + include Google::Apis::Core::Hashable + + # Identifies a subset of entities in a project. This is specified as + # combinations of kinds and namespaces (either or both of which may be all, as + # described in the following examples). + # Example usage: + # Entire project: + # kinds=[], namespace_ids=[] + # Kinds Foo and Bar in all namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=[] + # Kinds Foo and Bar only in the default namespace: + # kinds=['Foo', 'Bar'], namespace_ids=[''] + # Kinds Foo and Bar in both the default and Baz namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] + # The entire Baz namespace: + # kinds=[], namespace_ids=['Baz'] + # Corresponds to the JSON property `entityFilter` + # @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter] + attr_accessor :entity_filter + + # The full resource URL of the external storage location. Currently, only + # Google Cloud Storage is supported. So input_url should be of the form: + # `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where + # `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is + # an optional Cloud Storage namespace path (this is not a Cloud Datastore + # namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written + # by the ExportEntities operation. For more information about Cloud Storage + # namespace paths, see + # [Object name + # considerations](https://cloud.google.com/storage/docs/naming#object- + # considerations). + # For more information, see + # google.datastore.admin.v1.ExportEntitiesResponse.output_url. + # Corresponds to the JSON property `inputUrl` + # @return [String] + attr_accessor :input_url + + # Client-assigned labels. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entity_filter = args[:entity_filter] if args.key?(:entity_filter) + @input_url = args[:input_url] if args.key?(:input_url) + @labels = args[:labels] if args.key?(:labels) + end + end + + # Measures the progress of a particular metric. + class GoogleDatastoreAdminV1Progress + include Google::Apis::Core::Hashable + + # The amount of work that has been completed. Note that this may be greater + # than work_estimated. + # Corresponds to the JSON property `workCompleted` + # @return [Fixnum] + attr_accessor :work_completed + + # An estimate of how much work needs to be performed. May be zero if the + # work estimate is unavailable. + # Corresponds to the JSON property `workEstimated` + # @return [Fixnum] + attr_accessor :work_estimated + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @work_completed = args[:work_completed] if args.key?(:work_completed) + @work_estimated = args[:work_estimated] if args.key?(:work_estimated) + end + end + # Metadata common to all Datastore Admin operations. class GoogleDatastoreAdminV1beta1CommonMetadata include Google::Apis::Core::Hashable diff --git a/generated/google/apis/datastore_v1/representations.rb b/generated/google/apis/datastore_v1/representations.rb index dcd65117d..d447ec497 100644 --- a/generated/google/apis/datastore_v1/representations.rb +++ b/generated/google/apis/datastore_v1/representations.rb @@ -94,6 +94,54 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleDatastoreAdminV1CommonMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1EntityFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1ExportEntitiesMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1ExportEntitiesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1ExportEntitiesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1ImportEntitiesMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1ImportEntitiesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1Progress + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleDatastoreAdminV1beta1CommonMetadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -419,6 +467,90 @@ module Google end end + class GoogleDatastoreAdminV1CommonMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime' + hash :labels, as: 'labels' + property :operation_type, as: 'operationType' + property :start_time, as: 'startTime' + property :state, as: 'state' + end + end + + class GoogleDatastoreAdminV1EntityFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :kinds, as: 'kinds' + collection :namespace_ids, as: 'namespaceIds' + end + end + + class GoogleDatastoreAdminV1ExportEntitiesMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :common, as: 'common', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1CommonMetadata, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1CommonMetadata::Representation + + property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter::Representation + + property :output_url_prefix, as: 'outputUrlPrefix' + property :progress_bytes, as: 'progressBytes', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress::Representation + + property :progress_entities, as: 'progressEntities', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress::Representation + + end + end + + class GoogleDatastoreAdminV1ExportEntitiesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter::Representation + + hash :labels, as: 'labels' + property :output_url_prefix, as: 'outputUrlPrefix' + end + end + + class GoogleDatastoreAdminV1ExportEntitiesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :output_url, as: 'outputUrl' + end + end + + class GoogleDatastoreAdminV1ImportEntitiesMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :common, as: 'common', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1CommonMetadata, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1CommonMetadata::Representation + + property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter::Representation + + property :input_url, as: 'inputUrl' + property :progress_bytes, as: 'progressBytes', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress::Representation + + property :progress_entities, as: 'progressEntities', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress::Representation + + end + end + + class GoogleDatastoreAdminV1ImportEntitiesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter::Representation + + property :input_url, as: 'inputUrl' + hash :labels, as: 'labels' + end + end + + class GoogleDatastoreAdminV1Progress + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :work_completed, :numeric_string => true, as: 'workCompleted' + property :work_estimated, :numeric_string => true, as: 'workEstimated' + end + end + class GoogleDatastoreAdminV1beta1CommonMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/datastore_v1/service.rb b/generated/google/apis/datastore_v1/service.rb index 38e9a5a3c..6a4b66a7b 100644 --- a/generated/google/apis/datastore_v1/service.rb +++ b/generated/google/apis/datastore_v1/service.rb @@ -149,6 +149,83 @@ module Google execute_or_queue_command(command, &block) end + # Exports a copy of all or a subset of entities from Google Cloud Datastore + # to another storage system, such as Google Cloud Storage. Recent updates to + # entities may not be reflected in the export. The export occurs in the + # background and its progress can be monitored and managed via the + # Operation resource that is created. The output of an export may only be + # used once the associated operation is done. If an export operation is + # cancelled before completion it may leave partial data behind in Google + # Cloud Storage. + # @param [String] project_id + # Project ID against which to make the request. + # @param [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1ExportEntitiesRequest] google_datastore_admin_v1_export_entities_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::DatastoreV1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatastoreV1::GoogleLongrunningOperation] + # + # @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 export_project(project_id, google_datastore_admin_v1_export_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}:export', options) + command.request_representation = Google::Apis::DatastoreV1::GoogleDatastoreAdminV1ExportEntitiesRequest::Representation + command.request_object = google_datastore_admin_v1_export_entities_request_object + command.response_representation = Google::Apis::DatastoreV1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DatastoreV1::GoogleLongrunningOperation + command.params['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Imports entities into Google Cloud Datastore. Existing entities with the + # same key are overwritten. The import occurs in the background and its + # progress can be monitored and managed via the Operation resource that is + # created. If an ImportEntities operation is cancelled, it is possible + # that a subset of the data has already been imported to Cloud Datastore. + # @param [String] project_id + # Project ID against which to make the request. + # @param [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1ImportEntitiesRequest] google_datastore_admin_v1_import_entities_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::DatastoreV1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatastoreV1::GoogleLongrunningOperation] + # + # @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 import_project(project_id, google_datastore_admin_v1_import_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}:import', options) + command.request_representation = Google::Apis::DatastoreV1::GoogleDatastoreAdminV1ImportEntitiesRequest::Representation + command.request_object = google_datastore_admin_v1_import_entities_request_object + command.response_representation = Google::Apis::DatastoreV1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DatastoreV1::GoogleLongrunningOperation + command.params['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Looks up entities by key. # @param [String] project_id # The ID of the project against which to make the request. diff --git a/generated/google/apis/datastore_v1beta1.rb b/generated/google/apis/datastore_v1beta1.rb index 059364121..f73f7e975 100644 --- a/generated/google/apis/datastore_v1beta1.rb +++ b/generated/google/apis/datastore_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/datastore/ module DatastoreV1beta1 VERSION = 'V1beta1' - REVISION = '20170904' + REVISION = '20180321' # 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/datastore_v1beta1/classes.rb b/generated/google/apis/datastore_v1beta1/classes.rb index 3fa102440..241ae0adc 100644 --- a/generated/google/apis/datastore_v1beta1/classes.rb +++ b/generated/google/apis/datastore_v1beta1/classes.rb @@ -22,6 +22,261 @@ module Google module Apis module DatastoreV1beta1 + # Metadata common to all Datastore Admin operations. + class GoogleDatastoreAdminV1CommonMetadata + include Google::Apis::Core::Hashable + + # The time the operation ended, either successfully or otherwise. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # The client-assigned labels which were provided when the operation was + # created. May also include additional labels. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The type of the operation. Can be used as a filter in + # ListOperationsRequest. + # Corresponds to the JSON property `operationType` + # @return [String] + attr_accessor :operation_type + + # The time that work began on the operation. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # The current state of the Operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_time = args[:end_time] if args.key?(:end_time) + @labels = args[:labels] if args.key?(:labels) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @start_time = args[:start_time] if args.key?(:start_time) + @state = args[:state] if args.key?(:state) + end + end + + # Identifies a subset of entities in a project. This is specified as + # combinations of kinds and namespaces (either or both of which may be all, as + # described in the following examples). + # Example usage: + # Entire project: + # kinds=[], namespace_ids=[] + # Kinds Foo and Bar in all namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=[] + # Kinds Foo and Bar only in the default namespace: + # kinds=['Foo', 'Bar'], namespace_ids=[''] + # Kinds Foo and Bar in both the default and Baz namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] + # The entire Baz namespace: + # kinds=[], namespace_ids=['Baz'] + class GoogleDatastoreAdminV1EntityFilter + include Google::Apis::Core::Hashable + + # If empty, then this represents all kinds. + # Corresponds to the JSON property `kinds` + # @return [Array] + attr_accessor :kinds + + # An empty list represents all namespaces. This is the preferred + # usage for projects that don't use namespaces. + # An empty string element represents the default namespace. This should be + # used if the project has data in non-default namespaces, but doesn't want to + # include them. + # Each namespace in this list must be unique. + # Corresponds to the JSON property `namespaceIds` + # @return [Array] + attr_accessor :namespace_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kinds = args[:kinds] if args.key?(:kinds) + @namespace_ids = args[:namespace_ids] if args.key?(:namespace_ids) + end + end + + # Metadata for ExportEntities operations. + class GoogleDatastoreAdminV1ExportEntitiesMetadata + include Google::Apis::Core::Hashable + + # Metadata common to all Datastore Admin operations. + # Corresponds to the JSON property `common` + # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1CommonMetadata] + attr_accessor :common + + # Identifies a subset of entities in a project. This is specified as + # combinations of kinds and namespaces (either or both of which may be all, as + # described in the following examples). + # Example usage: + # Entire project: + # kinds=[], namespace_ids=[] + # Kinds Foo and Bar in all namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=[] + # Kinds Foo and Bar only in the default namespace: + # kinds=['Foo', 'Bar'], namespace_ids=[''] + # Kinds Foo and Bar in both the default and Baz namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] + # The entire Baz namespace: + # kinds=[], namespace_ids=['Baz'] + # Corresponds to the JSON property `entityFilter` + # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1EntityFilter] + attr_accessor :entity_filter + + # Location for the export metadata and data files. This will be the same + # value as the + # google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix + # field. The final output location is provided in + # google.datastore.admin.v1.ExportEntitiesResponse.output_url. + # Corresponds to the JSON property `outputUrlPrefix` + # @return [String] + attr_accessor :output_url_prefix + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressBytes` + # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress] + attr_accessor :progress_bytes + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressEntities` + # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress] + attr_accessor :progress_entities + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @common = args[:common] if args.key?(:common) + @entity_filter = args[:entity_filter] if args.key?(:entity_filter) + @output_url_prefix = args[:output_url_prefix] if args.key?(:output_url_prefix) + @progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes) + @progress_entities = args[:progress_entities] if args.key?(:progress_entities) + end + end + + # The response for + # google.datastore.admin.v1.DatastoreAdmin.ExportEntities. + class GoogleDatastoreAdminV1ExportEntitiesResponse + include Google::Apis::Core::Hashable + + # Location of the output metadata file. This can be used to begin an import + # into Cloud Datastore (this project or another project). See + # google.datastore.admin.v1.ImportEntitiesRequest.input_url. + # Only present if the operation completed successfully. + # Corresponds to the JSON property `outputUrl` + # @return [String] + attr_accessor :output_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @output_url = args[:output_url] if args.key?(:output_url) + end + end + + # Metadata for ImportEntities operations. + class GoogleDatastoreAdminV1ImportEntitiesMetadata + include Google::Apis::Core::Hashable + + # Metadata common to all Datastore Admin operations. + # Corresponds to the JSON property `common` + # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1CommonMetadata] + attr_accessor :common + + # Identifies a subset of entities in a project. This is specified as + # combinations of kinds and namespaces (either or both of which may be all, as + # described in the following examples). + # Example usage: + # Entire project: + # kinds=[], namespace_ids=[] + # Kinds Foo and Bar in all namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=[] + # Kinds Foo and Bar only in the default namespace: + # kinds=['Foo', 'Bar'], namespace_ids=[''] + # Kinds Foo and Bar in both the default and Baz namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] + # The entire Baz namespace: + # kinds=[], namespace_ids=['Baz'] + # Corresponds to the JSON property `entityFilter` + # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1EntityFilter] + attr_accessor :entity_filter + + # The location of the import metadata file. This will be the same value as + # the google.datastore.admin.v1.ExportEntitiesResponse.output_url field. + # Corresponds to the JSON property `inputUrl` + # @return [String] + attr_accessor :input_url + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressBytes` + # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress] + attr_accessor :progress_bytes + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressEntities` + # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress] + attr_accessor :progress_entities + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @common = args[:common] if args.key?(:common) + @entity_filter = args[:entity_filter] if args.key?(:entity_filter) + @input_url = args[:input_url] if args.key?(:input_url) + @progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes) + @progress_entities = args[:progress_entities] if args.key?(:progress_entities) + end + end + + # Measures the progress of a particular metric. + class GoogleDatastoreAdminV1Progress + include Google::Apis::Core::Hashable + + # The amount of work that has been completed. Note that this may be greater + # than work_estimated. + # Corresponds to the JSON property `workCompleted` + # @return [Fixnum] + attr_accessor :work_completed + + # An estimate of how much work needs to be performed. May be zero if the + # work estimate is unavailable. + # Corresponds to the JSON property `workEstimated` + # @return [Fixnum] + attr_accessor :work_estimated + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @work_completed = args[:work_completed] if args.key?(:work_completed) + @work_estimated = args[:work_estimated] if args.key?(:work_estimated) + end + end + # Metadata common to all Datastore Admin operations. class GoogleDatastoreAdminV1beta1CommonMetadata include Google::Apis::Core::Hashable diff --git a/generated/google/apis/datastore_v1beta1/representations.rb b/generated/google/apis/datastore_v1beta1/representations.rb index eba20e4da..6c931f1df 100644 --- a/generated/google/apis/datastore_v1beta1/representations.rb +++ b/generated/google/apis/datastore_v1beta1/representations.rb @@ -22,6 +22,42 @@ module Google module Apis module DatastoreV1beta1 + class GoogleDatastoreAdminV1CommonMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1EntityFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1ExportEntitiesMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1ExportEntitiesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1ImportEntitiesMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1Progress + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleDatastoreAdminV1beta1CommonMetadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -82,6 +118,70 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleDatastoreAdminV1CommonMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime' + hash :labels, as: 'labels' + property :operation_type, as: 'operationType' + property :start_time, as: 'startTime' + property :state, as: 'state' + end + end + + class GoogleDatastoreAdminV1EntityFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :kinds, as: 'kinds' + collection :namespace_ids, as: 'namespaceIds' + end + end + + class GoogleDatastoreAdminV1ExportEntitiesMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :common, as: 'common', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1CommonMetadata, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1CommonMetadata::Representation + + property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1EntityFilter, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1EntityFilter::Representation + + property :output_url_prefix, as: 'outputUrlPrefix' + property :progress_bytes, as: 'progressBytes', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress::Representation + + property :progress_entities, as: 'progressEntities', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress::Representation + + end + end + + class GoogleDatastoreAdminV1ExportEntitiesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :output_url, as: 'outputUrl' + end + end + + class GoogleDatastoreAdminV1ImportEntitiesMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :common, as: 'common', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1CommonMetadata, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1CommonMetadata::Representation + + property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1EntityFilter, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1EntityFilter::Representation + + property :input_url, as: 'inputUrl' + property :progress_bytes, as: 'progressBytes', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress::Representation + + property :progress_entities, as: 'progressEntities', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress::Representation + + end + end + + class GoogleDatastoreAdminV1Progress + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :work_completed, :numeric_string => true, as: 'workCompleted' + property :work_estimated, :numeric_string => true, as: 'workEstimated' + end + end + class GoogleDatastoreAdminV1beta1CommonMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/datastore_v1beta3.rb b/generated/google/apis/datastore_v1beta3.rb index 7f6a5f73f..a262c3d4b 100644 --- a/generated/google/apis/datastore_v1beta3.rb +++ b/generated/google/apis/datastore_v1beta3.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/datastore/ module DatastoreV1beta3 VERSION = 'V1beta3' - REVISION = '20171024' + REVISION = '20180321' # 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/datastore_v1beta3/classes.rb b/generated/google/apis/datastore_v1beta3/classes.rb index b92deadbd..b889c1402 100644 --- a/generated/google/apis/datastore_v1beta3/classes.rb +++ b/generated/google/apis/datastore_v1beta3/classes.rb @@ -324,6 +324,261 @@ module Google end end + # Metadata common to all Datastore Admin operations. + class GoogleDatastoreAdminV1CommonMetadata + include Google::Apis::Core::Hashable + + # The time the operation ended, either successfully or otherwise. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # The client-assigned labels which were provided when the operation was + # created. May also include additional labels. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The type of the operation. Can be used as a filter in + # ListOperationsRequest. + # Corresponds to the JSON property `operationType` + # @return [String] + attr_accessor :operation_type + + # The time that work began on the operation. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # The current state of the Operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_time = args[:end_time] if args.key?(:end_time) + @labels = args[:labels] if args.key?(:labels) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @start_time = args[:start_time] if args.key?(:start_time) + @state = args[:state] if args.key?(:state) + end + end + + # Identifies a subset of entities in a project. This is specified as + # combinations of kinds and namespaces (either or both of which may be all, as + # described in the following examples). + # Example usage: + # Entire project: + # kinds=[], namespace_ids=[] + # Kinds Foo and Bar in all namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=[] + # Kinds Foo and Bar only in the default namespace: + # kinds=['Foo', 'Bar'], namespace_ids=[''] + # Kinds Foo and Bar in both the default and Baz namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] + # The entire Baz namespace: + # kinds=[], namespace_ids=['Baz'] + class GoogleDatastoreAdminV1EntityFilter + include Google::Apis::Core::Hashable + + # If empty, then this represents all kinds. + # Corresponds to the JSON property `kinds` + # @return [Array] + attr_accessor :kinds + + # An empty list represents all namespaces. This is the preferred + # usage for projects that don't use namespaces. + # An empty string element represents the default namespace. This should be + # used if the project has data in non-default namespaces, but doesn't want to + # include them. + # Each namespace in this list must be unique. + # Corresponds to the JSON property `namespaceIds` + # @return [Array] + attr_accessor :namespace_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kinds = args[:kinds] if args.key?(:kinds) + @namespace_ids = args[:namespace_ids] if args.key?(:namespace_ids) + end + end + + # Metadata for ExportEntities operations. + class GoogleDatastoreAdminV1ExportEntitiesMetadata + include Google::Apis::Core::Hashable + + # Metadata common to all Datastore Admin operations. + # Corresponds to the JSON property `common` + # @return [Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1CommonMetadata] + attr_accessor :common + + # Identifies a subset of entities in a project. This is specified as + # combinations of kinds and namespaces (either or both of which may be all, as + # described in the following examples). + # Example usage: + # Entire project: + # kinds=[], namespace_ids=[] + # Kinds Foo and Bar in all namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=[] + # Kinds Foo and Bar only in the default namespace: + # kinds=['Foo', 'Bar'], namespace_ids=[''] + # Kinds Foo and Bar in both the default and Baz namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] + # The entire Baz namespace: + # kinds=[], namespace_ids=['Baz'] + # Corresponds to the JSON property `entityFilter` + # @return [Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1EntityFilter] + attr_accessor :entity_filter + + # Location for the export metadata and data files. This will be the same + # value as the + # google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix + # field. The final output location is provided in + # google.datastore.admin.v1.ExportEntitiesResponse.output_url. + # Corresponds to the JSON property `outputUrlPrefix` + # @return [String] + attr_accessor :output_url_prefix + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressBytes` + # @return [Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress] + attr_accessor :progress_bytes + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressEntities` + # @return [Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress] + attr_accessor :progress_entities + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @common = args[:common] if args.key?(:common) + @entity_filter = args[:entity_filter] if args.key?(:entity_filter) + @output_url_prefix = args[:output_url_prefix] if args.key?(:output_url_prefix) + @progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes) + @progress_entities = args[:progress_entities] if args.key?(:progress_entities) + end + end + + # The response for + # google.datastore.admin.v1.DatastoreAdmin.ExportEntities. + class GoogleDatastoreAdminV1ExportEntitiesResponse + include Google::Apis::Core::Hashable + + # Location of the output metadata file. This can be used to begin an import + # into Cloud Datastore (this project or another project). See + # google.datastore.admin.v1.ImportEntitiesRequest.input_url. + # Only present if the operation completed successfully. + # Corresponds to the JSON property `outputUrl` + # @return [String] + attr_accessor :output_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @output_url = args[:output_url] if args.key?(:output_url) + end + end + + # Metadata for ImportEntities operations. + class GoogleDatastoreAdminV1ImportEntitiesMetadata + include Google::Apis::Core::Hashable + + # Metadata common to all Datastore Admin operations. + # Corresponds to the JSON property `common` + # @return [Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1CommonMetadata] + attr_accessor :common + + # Identifies a subset of entities in a project. This is specified as + # combinations of kinds and namespaces (either or both of which may be all, as + # described in the following examples). + # Example usage: + # Entire project: + # kinds=[], namespace_ids=[] + # Kinds Foo and Bar in all namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=[] + # Kinds Foo and Bar only in the default namespace: + # kinds=['Foo', 'Bar'], namespace_ids=[''] + # Kinds Foo and Bar in both the default and Baz namespaces: + # kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] + # The entire Baz namespace: + # kinds=[], namespace_ids=['Baz'] + # Corresponds to the JSON property `entityFilter` + # @return [Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1EntityFilter] + attr_accessor :entity_filter + + # The location of the import metadata file. This will be the same value as + # the google.datastore.admin.v1.ExportEntitiesResponse.output_url field. + # Corresponds to the JSON property `inputUrl` + # @return [String] + attr_accessor :input_url + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressBytes` + # @return [Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress] + attr_accessor :progress_bytes + + # Measures the progress of a particular metric. + # Corresponds to the JSON property `progressEntities` + # @return [Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress] + attr_accessor :progress_entities + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @common = args[:common] if args.key?(:common) + @entity_filter = args[:entity_filter] if args.key?(:entity_filter) + @input_url = args[:input_url] if args.key?(:input_url) + @progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes) + @progress_entities = args[:progress_entities] if args.key?(:progress_entities) + end + end + + # Measures the progress of a particular metric. + class GoogleDatastoreAdminV1Progress + include Google::Apis::Core::Hashable + + # The amount of work that has been completed. Note that this may be greater + # than work_estimated. + # Corresponds to the JSON property `workCompleted` + # @return [Fixnum] + attr_accessor :work_completed + + # An estimate of how much work needs to be performed. May be zero if the + # work estimate is unavailable. + # Corresponds to the JSON property `workEstimated` + # @return [Fixnum] + attr_accessor :work_estimated + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @work_completed = args[:work_completed] if args.key?(:work_completed) + @work_estimated = args[:work_estimated] if args.key?(:work_estimated) + end + end + # Metadata common to all Datastore Admin operations. class GoogleDatastoreAdminV1beta1CommonMetadata include Google::Apis::Core::Hashable diff --git a/generated/google/apis/datastore_v1beta3/representations.rb b/generated/google/apis/datastore_v1beta3/representations.rb index bfaaecdd5..2e3c0c599 100644 --- a/generated/google/apis/datastore_v1beta3/representations.rb +++ b/generated/google/apis/datastore_v1beta3/representations.rb @@ -88,6 +88,42 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleDatastoreAdminV1CommonMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1EntityFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1ExportEntitiesMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1ExportEntitiesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1ImportEntitiesMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleDatastoreAdminV1Progress + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleDatastoreAdminV1beta1CommonMetadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -389,6 +425,70 @@ module Google end end + class GoogleDatastoreAdminV1CommonMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime' + hash :labels, as: 'labels' + property :operation_type, as: 'operationType' + property :start_time, as: 'startTime' + property :state, as: 'state' + end + end + + class GoogleDatastoreAdminV1EntityFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :kinds, as: 'kinds' + collection :namespace_ids, as: 'namespaceIds' + end + end + + class GoogleDatastoreAdminV1ExportEntitiesMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :common, as: 'common', class: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1CommonMetadata, decorator: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1CommonMetadata::Representation + + property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1EntityFilter, decorator: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1EntityFilter::Representation + + property :output_url_prefix, as: 'outputUrlPrefix' + property :progress_bytes, as: 'progressBytes', class: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress::Representation + + property :progress_entities, as: 'progressEntities', class: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress::Representation + + end + end + + class GoogleDatastoreAdminV1ExportEntitiesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :output_url, as: 'outputUrl' + end + end + + class GoogleDatastoreAdminV1ImportEntitiesMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :common, as: 'common', class: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1CommonMetadata, decorator: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1CommonMetadata::Representation + + property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1EntityFilter, decorator: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1EntityFilter::Representation + + property :input_url, as: 'inputUrl' + property :progress_bytes, as: 'progressBytes', class: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress::Representation + + property :progress_entities, as: 'progressEntities', class: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress::Representation + + end + end + + class GoogleDatastoreAdminV1Progress + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :work_completed, :numeric_string => true, as: 'workCompleted' + property :work_estimated, :numeric_string => true, as: 'workEstimated' + end + end + class GoogleDatastoreAdminV1beta1CommonMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/firestore_v1beta1.rb b/generated/google/apis/firestore_v1beta1.rb index 6fc9be504..73b995711 100644 --- a/generated/google/apis/firestore_v1beta1.rb +++ b/generated/google/apis/firestore_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/firestore module FirestoreV1beta1 VERSION = 'V1beta1' - REVISION = '20180124' + REVISION = '20180321' # 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/firestore_v1beta1/classes.rb b/generated/google/apis/firestore_v1beta1/classes.rb index 538835cd2..3df2722a8 100644 --- a/generated/google/apis/firestore_v1beta1/classes.rb +++ b/generated/google/apis/firestore_v1beta1/classes.rb @@ -358,7 +358,7 @@ module Google attr_accessor :name # Output only. The time at which the document was last changed. - # This value is initally set to the `create_time` then increases + # This value is initially set to the `create_time` then increases # monotonically with each change to the document. It can also be # compared to values from other documents and the `read_time` of a query. # Corresponds to the JSON property `updateTime` diff --git a/generated/google/apis/gmail_v1.rb b/generated/google/apis/gmail_v1.rb index 1077dd14f..06824a215 100644 --- a/generated/google/apis/gmail_v1.rb +++ b/generated/google/apis/gmail_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/gmail/api/ module GmailV1 VERSION = 'V1' - REVISION = '20180131' + REVISION = '20180319' # Read, send, delete, and manage your email AUTH_SCOPE = 'https://mail.google.com/' diff --git a/generated/google/apis/gmail_v1/classes.rb b/generated/google/apis/gmail_v1/classes.rb index 6b4d7e6a7..7a762cc07 100644 --- a/generated/google/apis/gmail_v1/classes.rb +++ b/generated/google/apis/gmail_v1/classes.rb @@ -1147,7 +1147,8 @@ module Google # A name that appears in the "From:" header for mail sent using this alias. For # custom "from" addresses, when this is empty, Gmail will populate the "From:" # header with the name that is used for the primary address associated with the - # account. + # account. If the admin has disabled the ability for users to update their name + # format, requests to update this field for the primary login will silently fail. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name