Class: Spaceship::ConnectAPI::AppStoreVersionLocalization

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb

Instance Attribute Summary collapse

Attributes included from Model

#id, #reverse_attr_map

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Model

#attr_mapping, included, #initialize, #reverse_attr_mapping, #to_json, #update_attributes

Instance Attribute Details

#app_preview_setsObject

Returns the value of attribute app_preview_sets.



20
21
22
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 20

def app_preview_sets
  @app_preview_sets
end

#app_screenshot_setsObject

Returns the value of attribute app_screenshot_sets.



19
20
21
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 19

def app_screenshot_sets
  @app_screenshot_sets
end

#descriptionObject

Returns the value of attribute description.



11
12
13
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 11

def description
  @description
end

#keywordsObject

Returns the value of attribute keywords.



13
14
15
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 13

def keywords
  @keywords
end

#localeObject

Returns the value of attribute locale.



12
13
14
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 12

def locale
  @locale
end

#marketing_urlObject

Returns the value of attribute marketing_url.



14
15
16
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 14

def marketing_url
  @marketing_url
end

#promotional_textObject

Returns the value of attribute promotional_text.



15
16
17
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 15

def promotional_text
  @promotional_text
end

#support_urlObject

Returns the value of attribute support_url.



16
17
18
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 16

def support_url
  @support_url
end

#whats_newObject

Returns the value of attribute whats_new.



17
18
19
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 17

def whats_new
  @whats_new
end

Class Method Details

.all(client: nil, app_store_version_id: nil, filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object



51
52
53
54
55
56
57
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 51

def self.all(client: nil, app_store_version_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
  client ||= Spaceship::ConnectAPI
  resp = client.get_app_store_version_localizations(app_store_version_id: app_store_version_id, filter: filter, includes: includes, limit: limit, sort: sort)
  return resp.to_models
rescue
  raise Spaceship::AppStoreLocalizationError, @locale
end

.get(client: nil, app_store_version_localization_id: nil, filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object

API



43
44
45
46
47
48
49
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 43

def self.get(client: nil, app_store_version_localization_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
  client ||= Spaceship::ConnectAPI
  resp = client.get_app_store_version_localization(app_store_version_localization_id: app_store_version_localization_id, filter: filter, includes: includes, limit: limit, sort: sort)
  return resp.to_models
rescue
  raise Spaceship::AppStoreLocalizationError, @locale
end

.typeObject



35
36
37
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 35

def self.type
  return "appStoreVersionLocalizations"
end

Instance Method Details

#create_app_preview_set(client: nil, attributes: nil) ⇒ Object



87
88
89
90
91
92
93
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 87

def create_app_preview_set(client: nil, attributes: nil)
  client ||= Spaceship::ConnectAPI
  resp = client.post_app_preview_set(app_store_version_localization_id: id, attributes: attributes)
  return resp.to_models.first
rescue
  raise Spaceship::AppStoreAppPreviewError, @locale
end

#create_app_screenshot_set(client: nil, attributes: nil) ⇒ Object



106
107
108
109
110
111
112
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 106

def create_app_screenshot_set(client: nil, attributes: nil)
  client ||= Spaceship::ConnectAPI
  resp = client.post_app_screenshot_set(app_store_version_localization_id: id, attributes: attributes)
  return resp.to_models.first
rescue
  raise Spaceship::AppStoreScreenshotError, @locale
end

#delete!(client: nil, filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object



67
68
69
70
71
72
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 67

def delete!(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
  client ||= Spaceship::ConnectAPI
  client.delete_app_store_version_localization(app_store_version_localization_id: id)
rescue
  raise Spaceship::AppStoreLocalizationError, @locale
end

#get_app_preview_sets(client: nil, filter: {}, includes: "appPreviews", limit: nil, sort: nil) ⇒ Object

App Preview Sets



78
79
80
81
82
83
84
85
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 78

def get_app_preview_sets(client: nil, filter: {}, includes: "appPreviews", limit: nil, sort: nil)
  client ||= Spaceship::ConnectAPI
  filter ||= {}
  filter["appStoreVersionLocalization"] = id
  return Spaceship::ConnectAPI::AppPreviewSet.all(client: client, filter: filter, includes: includes, limit: limit, sort: sort)
rescue
  raise Spaceship::AppStoreAppPreviewError, @locale
end

#get_app_screenshot_sets(client: nil, filter: {}, includes: "appScreenshots", limit: nil, sort: nil) ⇒ Object

App Screenshot Sets



99
100
101
102
103
104
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 99

def get_app_screenshot_sets(client: nil, filter: {}, includes: "appScreenshots", limit: nil, sort: nil)
  client ||= Spaceship::ConnectAPI
  return Spaceship::ConnectAPI::AppScreenshotSet.all(client: client, app_store_version_localization_id: id, filter: filter, includes: includes, limit: limit, sort: sort)
rescue
  raise Spaceship::AppStoreScreenshotError, @locale
end

#update(client: nil, attributes: nil) ⇒ Object



59
60
61
62
63
64
65
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 59

def update(client: nil, attributes: nil)
  client ||= Spaceship::ConnectAPI
  attributes = reverse_attr_mapping(attributes)
  client.patch_app_store_version_localization(app_store_version_localization_id: id, attributes: attributes)
rescue
  raise Spaceship::AppStoreLocalizationError, @locale
end