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.



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

def app_preview_sets
  @app_preview_sets
end

#app_screenshot_setsObject

Returns the value of attribute app_screenshot_sets.



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

def app_screenshot_sets
  @app_screenshot_sets
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#keywordsObject

Returns the value of attribute keywords.



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

def keywords
  @keywords
end

#localeObject

Returns the value of attribute locale.



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

def locale
  @locale
end

#marketing_urlObject

Returns the value of attribute marketing_url.



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

def marketing_url
  @marketing_url
end

#promotional_textObject

Returns the value of attribute promotional_text.



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

def promotional_text
  @promotional_text
end

#support_urlObject

Returns the value of attribute support_url.



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

def support_url
  @support_url
end

#whats_newObject

Returns the value of attribute whats_new.



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

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



48
49
50
51
52
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 48

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
end

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

API



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

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
end

.typeObject



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

def self.type
  return "appStoreVersionLocalizations"
end

Instance Method Details

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



76
77
78
79
80
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 76

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
end

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



91
92
93
94
95
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 91

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
end

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



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

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)
end

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

App Preview Sets



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

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)
end

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

App Screenshot Sets



86
87
88
89
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb', line 86

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)
end

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



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

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)
end