daytona_api_client 0.141.0 → 0.142.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9e569124ad62d34ddf0b9d1a5cf28925d913a7e35e3d1cdd8fc8c353b907465
4
- data.tar.gz: 1fed93930a6ee2e00d4d0b2b867067c0cb37cfa868b2d53ffb46c0d34035e6ff
3
+ metadata.gz: e9594cd582fff81cfa920726170aaa613b716854e31303688c8f6773940a010e
4
+ data.tar.gz: 4627ea54268b8d751823fc0b51068f79c01b65e3ce6345b1fdac4faed14e2cf3
5
5
  SHA512:
6
- metadata.gz: d16dc0c7dd869fbf2999b860a774815fe3642fb9c677034b9646f86b712d5ae9006a3b56a35f4ca96db6cc4d8654d0d7bb949e5e31bcc43a8621079f572a9064
7
- data.tar.gz: 33af53823e7603391b35a30bfe20d1d46a003e43a770664d0a98c74d2be7ec79fb05dfc36830e6b5e58783c0ece93dbef617df3b358f1ae038f7b080113dd4f6
6
+ metadata.gz: 650755a0a9176b274f69c757cf220bc8001eddf3424e8a6807e977a6fe990e02c7bafe623689fc693cdcc6a36eb63da6b549bd1e373898c5b35293c2b321b730
7
+ data.tar.gz: 111fe10daed44291cc81ae8a263f56aa7769005bf8ab6a13f73b2d1082112f047c7c9544eea66a4e058a7d8ef92aa396896855025a071239ff91505f22be3b62
@@ -33,7 +33,7 @@ module DaytonaApiClient
33
33
  @api_client.config.logger.debug 'Calling API: HealthApi.health_controller_check ...'
34
34
  end
35
35
  # resource path
36
- local_var_path = '/health'
36
+ local_var_path = '/health/ready'
37
37
 
38
38
  # query parameters
39
39
  query_params = opts[:query_params] || {}
@@ -71,5 +71,56 @@ module DaytonaApiClient
71
71
  end
72
72
  return data, status_code, headers
73
73
  end
74
+
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [nil]
77
+ def health_controller_live(opts = {})
78
+ health_controller_live_with_http_info(opts)
79
+ nil
80
+ end
81
+
82
+ # @param [Hash] opts the optional parameters
83
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
84
+ def health_controller_live_with_http_info(opts = {})
85
+ if @api_client.config.debugging
86
+ @api_client.config.logger.debug 'Calling API: HealthApi.health_controller_live ...'
87
+ end
88
+ # resource path
89
+ local_var_path = '/health'
90
+
91
+ # query parameters
92
+ query_params = opts[:query_params] || {}
93
+
94
+ # header parameters
95
+ header_params = opts[:header_params] || {}
96
+
97
+ # form parameters
98
+ form_params = opts[:form_params] || {}
99
+
100
+ # http body (model)
101
+ post_body = opts[:debug_body]
102
+
103
+ # return_type
104
+ return_type = opts[:debug_return_type]
105
+
106
+ # auth_names
107
+ auth_names = opts[:debug_auth_names] || []
108
+
109
+ new_options = opts.merge(
110
+ :operation => :"HealthApi.health_controller_live",
111
+ :header_params => header_params,
112
+ :query_params => query_params,
113
+ :form_params => form_params,
114
+ :body => post_body,
115
+ :auth_names => auth_names,
116
+ :return_type => return_type
117
+ )
118
+
119
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
120
+ if @api_client.config.debugging
121
+ @api_client.config.logger.debug "API called: HealthApi#health_controller_live\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
122
+ end
123
+ return data, status_code, headers
124
+ end
74
125
  end
75
126
  end
@@ -577,6 +577,70 @@ module DaytonaApiClient
577
577
  return data, status_code, headers
578
578
  end
579
579
 
580
+ # Update runner draining status
581
+ # @param id [String] Runner ID
582
+ # @param [Hash] opts the optional parameters
583
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
584
+ # @return [Runner]
585
+ def update_runner_draining(id, opts = {})
586
+ data, _status_code, _headers = update_runner_draining_with_http_info(id, opts)
587
+ data
588
+ end
589
+
590
+ # Update runner draining status
591
+ # @param id [String] Runner ID
592
+ # @param [Hash] opts the optional parameters
593
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
594
+ # @return [Array<(Runner, Integer, Hash)>] Runner data, response status code and response headers
595
+ def update_runner_draining_with_http_info(id, opts = {})
596
+ if @api_client.config.debugging
597
+ @api_client.config.logger.debug 'Calling API: RunnersApi.update_runner_draining ...'
598
+ end
599
+ # verify the required parameter 'id' is set
600
+ if @api_client.config.client_side_validation && id.nil?
601
+ fail ArgumentError, "Missing the required parameter 'id' when calling RunnersApi.update_runner_draining"
602
+ end
603
+ # resource path
604
+ local_var_path = '/runners/{id}/draining'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
605
+
606
+ # query parameters
607
+ query_params = opts[:query_params] || {}
608
+
609
+ # header parameters
610
+ header_params = opts[:header_params] || {}
611
+ # HTTP header 'Accept' (if needed)
612
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
613
+ header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
614
+
615
+ # form parameters
616
+ form_params = opts[:form_params] || {}
617
+
618
+ # http body (model)
619
+ post_body = opts[:debug_body]
620
+
621
+ # return_type
622
+ return_type = opts[:debug_return_type] || 'Runner'
623
+
624
+ # auth_names
625
+ auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
626
+
627
+ new_options = opts.merge(
628
+ :operation => :"RunnersApi.update_runner_draining",
629
+ :header_params => header_params,
630
+ :query_params => query_params,
631
+ :form_params => form_params,
632
+ :body => post_body,
633
+ :auth_names => auth_names,
634
+ :return_type => return_type
635
+ )
636
+
637
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
638
+ if @api_client.config.debugging
639
+ @api_client.config.logger.debug "API called: RunnersApi#update_runner_draining\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
640
+ end
641
+ return data, status_code, headers
642
+ end
643
+
580
644
  # Update runner scheduling status
581
645
  # @param id [String] Runner ID
582
646
  # @param [Hash] opts the optional parameters
@@ -11,5 +11,5 @@ Generator version: 7.12.0
11
11
  =end
12
12
 
13
13
  module DaytonaApiClient
14
- VERSION = '0.141.0'
14
+ VERSION = '0.142.0'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daytona_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.141.0
4
+ version: 0.142.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - daytonaio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-11 00:00:00.000000000 Z
11
+ date: 2026-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus