galileo_sdk.sdk.stations.StationsSdk.update_station_role_resource_policy

StationsSdk.update_station_role_resource_policy(station_id, role_id, max_cpu_per_job=None, max_memory_per_job=None, max_gpu_per_job=None, max_cpu_per_station=None, max_memory_per_station=None, max_gpu_per_station=None, max_cpu_global=None, max_memory_global=None, max_gpu_global=None, max_projects=None, max_users_in_station=None, max_stations=None, max_project_types=None, max_cloud_storage_space=None, max_spend_per_day=None, max_spend_per_week=None, max_spend_per_month=None, max_spend_per_year=None, cpu_credits_per_hour=None, memory_credits_per_hour=None, gpu_credits_per_hour=None)[source]

Updates an the resource policy attached to the station role. Creates the policy if it does not exist.

Parameters
  • station_id

  • role_id

  • max_cpu_per_job

  • max_memory_per_job

  • max_gpu_per_job

  • max_cpu_per_station

  • max_memory_per_station

  • max_gpu_per_station

  • max_cpu_global

  • max_memory_global

  • max_gpu_global

  • max_projects

  • max_users_in_station

  • max_stations

  • max_project_types

  • max_cloud_storage_space

  • max_spend_per_day

  • max_spend_per_week

  • max_spend_per_month

  • max_spend_per_year

  • cpu_credits_per_hour

  • memory_credits_per_hour

  • gpu_credits_per_hour

Returns

ResourcePolicy

Example:
>>> station_id = "my-station-id"
>>> role_id = "my-role-id"
>>> max_cpu_per_job = 2
>>> updated_role_policy = galileo.stations.update_station_role_resource_policy(station_id, role_id, max_cpu_per_job=max_cpu_per_job)