Class: Gitabu::Api::V3::Codespaces

Inherits:
Object
  • Object
show all
Defined in:
lib/gitabu/api/v3/codespaces.rb

Overview

Codespaces endpoints.

Class Method Summary collapse

Class Method Details

.add_a_selected_repository_to_a_user_secret(secret_name: nil, repository_id: nil, options: nil) ⇒ Object



122
123
124
# File 'lib/gitabu/api/v3/codespaces.rb', line 122

def self.add_a_selected_repository_to_a_user_secret(secret_name: nil, repository_id: nil, options: nil)
  new.add_a_selected_repository_to_a_user_secret(secret_name, repository_id, options)
end

.create_a_codespace_for_the_authenticated_user(repository_id: nil, ref: nil, location: nil, machine: nil, working_directory: nil, idle_timeout_minutes: nil, display_name: nil, pull_request: nil, options: nil) ⇒ Object



54
55
56
# File 'lib/gitabu/api/v3/codespaces.rb', line 54

def self.create_a_codespace_for_the_authenticated_user(repository_id: nil, ref: nil, location: nil, machine: nil, working_directory: nil, idle_timeout_minutes: nil, display_name: nil, pull_request: nil, options: nil)
  new.create_a_codespace_for_the_authenticated_user(repository_id, ref, location, machine, working_directory, idle_timeout_minutes, display_name, pull_request, options)
end

.create_a_codespace_from_a_pull_request(owner: nil, repo: nil, pull_number: nil, location: nil, machine: nil, working_directory: nil, idle_timeout_minutes: nil, display_name: nil, options: nil) ⇒ Object



46
47
48
# File 'lib/gitabu/api/v3/codespaces.rb', line 46

def self.create_a_codespace_from_a_pull_request(owner: nil, repo: nil, pull_number: nil, location: nil, machine: nil, working_directory: nil, idle_timeout_minutes: nil, display_name: nil, options: nil)
  new.create_a_codespace_from_a_pull_request(owner, repo, pull_number, location, machine, working_directory, idle_timeout_minutes, display_name, options)
end

.create_a_codespace_in_a_repository(owner: nil, repo: nil, ref: nil, location: nil, machine: nil, working_directory: nil, idle_timeout_minutes: nil, display_name: nil, options: nil) ⇒ Object



42
43
44
# File 'lib/gitabu/api/v3/codespaces.rb', line 42

def self.create_a_codespace_in_a_repository(owner: nil, repo: nil, ref: nil, location: nil, machine: nil, working_directory: nil, idle_timeout_minutes: nil, display_name: nil, options: nil)
  new.create_a_codespace_in_a_repository(owner, repo, ref, location, machine, working_directory, idle_timeout_minutes, display_name, options)
end

.create_or_update_a_secret_for_the_authenticated_user(secret_name: nil, encrypted_value: nil, key_id: nil, selected_repository_ids: nil, options: nil) ⇒ Object



106
107
108
# File 'lib/gitabu/api/v3/codespaces.rb', line 106

def self.create_or_update_a_secret_for_the_authenticated_user(secret_name: nil, encrypted_value: nil, key_id: nil, selected_repository_ids: nil, options: nil)
  new.create_or_update_a_secret_for_the_authenticated_user(secret_name, encrypted_value, key_id, selected_repository_ids, options)
end

.delete_a_codespace_for_the_authenticated_user(codespace_name: nil, options: nil) ⇒ Object



66
67
68
# File 'lib/gitabu/api/v3/codespaces.rb', line 66

def self.delete_a_codespace_for_the_authenticated_user(codespace_name: nil, options: nil)
  new.delete_a_codespace_for_the_authenticated_user(codespace_name, options)
end

.delete_a_secret_for_the_authenticated_user(secret_name: nil, options: nil) ⇒ Object



110
111
112
# File 'lib/gitabu/api/v3/codespaces.rb', line 110

def self.delete_a_secret_for_the_authenticated_user(secret_name: nil, options: nil)
  new.delete_a_secret_for_the_authenticated_user(secret_name, options)
end

.export_a_codespace_for_the_authenticated_user(codespace_name: nil, options: nil) ⇒ Object



70
71
72
# File 'lib/gitabu/api/v3/codespaces.rb', line 70

def self.export_a_codespace_for_the_authenticated_user(codespace_name: nil, options: nil)
  new.export_a_codespace_for_the_authenticated_user(codespace_name, options)
end

.get_a_codespace_for_the_authenticated_user(codespace_name: nil, options: nil) ⇒ Object



58
59
60
# File 'lib/gitabu/api/v3/codespaces.rb', line 58

def self.get_a_codespace_for_the_authenticated_user(codespace_name: nil, options: nil)
  new.get_a_codespace_for_the_authenticated_user(codespace_name, options)
end

.get_a_secret_for_the_authenticated_user(secret_name: nil, options: nil) ⇒ Object



102
103
104
# File 'lib/gitabu/api/v3/codespaces.rb', line 102

def self.get_a_secret_for_the_authenticated_user(secret_name: nil, options: nil)
  new.get_a_secret_for_the_authenticated_user(secret_name, options)
end

.get_details_about_a_codespace_export(codespace_name: nil, export_id: nil, options: nil) ⇒ Object



74
75
76
# File 'lib/gitabu/api/v3/codespaces.rb', line 74

def self.get_details_about_a_codespace_export(codespace_name: nil, export_id: nil, options: nil)
  new.get_details_about_a_codespace_export(codespace_name, export_id, options)
end

.get_public_key_for_the_authenticated_user(options: nil) ⇒ Object



98
99
100
# File 'lib/gitabu/api/v3/codespaces.rb', line 98

def self.get_public_key_for_the_authenticated_user(options: nil)
  new.get_public_key_for_the_authenticated_user(options)
end

.list_available_machine_types_for_a_repository(owner: nil, repo: nil, options: nil) ⇒ Object



86
87
88
# File 'lib/gitabu/api/v3/codespaces.rb', line 86

def self.list_available_machine_types_for_a_repository(owner: nil, repo: nil, options: nil)
  new.list_available_machine_types_for_a_repository(owner, repo, options)
end

.list_codespaces_for_the_authenticated_user(options: nil) ⇒ Object



50
51
52
# File 'lib/gitabu/api/v3/codespaces.rb', line 50

def self.list_codespaces_for_the_authenticated_user(options: nil)
  new.list_codespaces_for_the_authenticated_user(options)
end

.list_codespaces_in_a_repository_for_the_authenticated_user(owner: nil, repo: nil, options: nil) ⇒ Object



38
39
40
# File 'lib/gitabu/api/v3/codespaces.rb', line 38

def self.list_codespaces_in_a_repository_for_the_authenticated_user(owner: nil, repo: nil, options: nil)
  new.list_codespaces_in_a_repository_for_the_authenticated_user(owner, repo, options)
end

.list_machine_types_for_a_codespace(codespace_name: nil, options: nil) ⇒ Object



90
91
92
# File 'lib/gitabu/api/v3/codespaces.rb', line 90

def self.list_machine_types_for_a_codespace(codespace_name: nil, options: nil)
  new.list_machine_types_for_a_codespace(codespace_name, options)
end

.list_secrets_for_the_authenticated_user(options: nil) ⇒ Object



94
95
96
# File 'lib/gitabu/api/v3/codespaces.rb', line 94

def self.list_secrets_for_the_authenticated_user(options: nil)
  new.list_secrets_for_the_authenticated_user(options)
end

.list_selected_repositories_for_a_user_secret(secret_name: nil, options: nil) ⇒ Object



114
115
116
# File 'lib/gitabu/api/v3/codespaces.rb', line 114

def self.list_selected_repositories_for_a_user_secret(secret_name: nil, options: nil)
  new.list_selected_repositories_for_a_user_secret(secret_name, options)
end

.remove_a_selected_repository_from_a_user_secret(secret_name: nil, repository_id: nil, options: nil) ⇒ Object



126
127
128
# File 'lib/gitabu/api/v3/codespaces.rb', line 126

def self.remove_a_selected_repository_from_a_user_secret(secret_name: nil, repository_id: nil, options: nil)
  new.remove_a_selected_repository_from_a_user_secret(secret_name, repository_id, options)
end

.set_selected_repositories_for_a_user_secret(secret_name: nil, selected_repository_ids: nil, options: nil) ⇒ Object



118
119
120
# File 'lib/gitabu/api/v3/codespaces.rb', line 118

def self.set_selected_repositories_for_a_user_secret(secret_name: nil, selected_repository_ids: nil, options: nil)
  new.set_selected_repositories_for_a_user_secret(secret_name, selected_repository_ids, options)
end

.start_a_codespace_for_the_authenticated_user(codespace_name: nil, options: nil) ⇒ Object



78
79
80
# File 'lib/gitabu/api/v3/codespaces.rb', line 78

def self.start_a_codespace_for_the_authenticated_user(codespace_name: nil, options: nil)
  new.start_a_codespace_for_the_authenticated_user(codespace_name, options)
end

.stop_a_codespace_for_the_authenticated_user(codespace_name: nil, options: nil) ⇒ Object



82
83
84
# File 'lib/gitabu/api/v3/codespaces.rb', line 82

def self.stop_a_codespace_for_the_authenticated_user(codespace_name: nil, options: nil)
  new.stop_a_codespace_for_the_authenticated_user(codespace_name, options)
end

.update_a_codespace_for_the_authenticated_user(codespace_name: nil, machine: nil, display_name: nil, recent_folders: nil, options: nil) ⇒ Object



62
63
64
# File 'lib/gitabu/api/v3/codespaces.rb', line 62

def self.update_a_codespace_for_the_authenticated_user(codespace_name: nil, machine: nil, display_name: nil, recent_folders: nil, options: nil)
  new.update_a_codespace_for_the_authenticated_user(codespace_name, machine, display_name, recent_folders, options)
end