Sha256: e1da31082ed0679bf07589e9c0ed2f7f2ddbb46473ce770c2a17c051107c08d3

Contents?: true

Size: 1.17 KB

Versions: 64

Compression:

Stored size: 1.17 KB

Contents

require_relative '../model'
module Spaceship
  class ConnectAPI
    class AppInfoLocalization
      include Spaceship::ConnectAPI::Model

      attr_accessor :locale
      attr_accessor :name
      attr_accessor :subtitle
      attr_accessor :privacy_policy_url
      attr_accessor :privacy_choices_url
      attr_accessor :privacy_policy_text

      attr_mapping({
        "locale" => "locale",
        "name" => "name",
        "subtitle" => "subtitle",
        "privacyPolicyUrl" => "privacy_policy_url",
        "privacyChoicesUrl" => "privacy_choices_url",
        "privacyPolicyText" => "privacy_policy_text"
      })

      def self.type
        return "appInfoLocalizations"
      end

      #
      # API
      #

      def update(client: nil, attributes: nil)
        client ||= Spaceship::ConnectAPI
        attributes = reverse_attr_mapping(attributes)
        client.patch_app_info_localization(app_info_localization_id: id, attributes: attributes)
      end

      def delete!(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
        client ||= Spaceship::ConnectAPI
        client.delete_app_info_localization(app_info_localization_id: id)
      end
    end
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
fastlane-2.211.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.210.1 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.210.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.209.1 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.209.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.208.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.207.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.206.2 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.206.1 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.206.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.205.2 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.205.1 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.205.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.204.3 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.204.2 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.204.1 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.204.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.203.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.202.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.201.2 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb