Documentation ¶
Overview ¶
Package appstoreconnect implements a client for the App Store Connect API.
It contains type definitions, authentication and API calls, without business logic built on those API calls.
Index ¶
- Constants
- Variables
- func NewRetryableHTTPClient() *http.Client
- type BundleID
- type BundleIDAttributes
- type BundleIDCapabilitiesResponse
- type BundleIDCapability
- type BundleIDCapabilityAttributes
- type BundleIDCapabilityCreateRequest
- type BundleIDCapabilityCreateRequestData
- type BundleIDCapabilityCreateRequestDataAttributes
- type BundleIDCapabilityCreateRequestDataRelationships
- type BundleIDCapabilityCreateRequestDataRelationshipsBundleID
- type BundleIDCapabilityCreateRequestDataRelationshipsBundleIDData
- type BundleIDCapabilityResponse
- type BundleIDCapabilityUpdateRequest
- type BundleIDCapabilityUpdateRequestData
- type BundleIDCapabilityUpdateRequestDataAttributes
- type BundleIDCreateRequest
- type BundleIDCreateRequestData
- type BundleIDCreateRequestDataAttributes
- type BundleIDPlatform
- type BundleIDRelationships
- type BundleIDResponse
- type BundleIdsResponse
- type CapabilityOption
- type CapabilityOptionKey
- type CapabilitySetting
- type CapabilitySettingAllowedInstances
- type CapabilitySettingKey
- type CapabilityType
- type Certificate
- type CertificateAttributes
- type CertificateType
- type CertificatesResponse
- type Client
- type Device
- type DeviceAttributes
- type DeviceClass
- type DeviceCreateRequest
- type DeviceCreateRequestData
- type DeviceCreateRequestDataAttributes
- type DevicePlatform
- type DeviceRegistrationError
- type DeviceResponse
- type DevicesResponse
- type ErrorResponse
- type ErrorResponseError
- type HTTPClient
- type Links
- type ListBundleIDsOptions
- type ListCertificatesOptions
- type ListDevicesOptions
- type ListProfilesOptions
- type PagedDocumentLinks
- type PagingOptions
- type Profile
- type ProfileAttributes
- type ProfileCreateRequest
- type ProfileCreateRequestData
- type ProfileCreateRequestDataAttributes
- type ProfileCreateRequestDataRelationshipData
- type ProfileCreateRequestDataRelationships
- type ProfileCreateRequestDataRelationshipsBundleID
- type ProfileCreateRequestDataRelationshipsCertificates
- type ProfileCreateRequestDataRelationshipsDevices
- type ProfileResponse
- type ProfileState
- type ProfileType
- type ProfilesResponse
- type ProvisioningService
- func (s ProvisioningService) BundleID(relationshipLink string) (*BundleIDResponse, error)
- func (s ProvisioningService) Capabilities(relationshipLink string) (*BundleIDCapabilitiesResponse, error)
- func (s ProvisioningService) Certificates(relationshipLink string, opt *PagingOptions) (*CertificatesResponse, error)
- func (s ProvisioningService) CreateBundleID(body BundleIDCreateRequest) (*BundleIDResponse, error)
- func (s ProvisioningService) CreateProfile(body ProfileCreateRequest) (*ProfileResponse, error)
- func (s ProvisioningService) DeleteProfile(id string) error
- func (s ProvisioningService) Devices(relationshipLink string, opt *PagingOptions) (*DevicesResponse, error)
- func (s ProvisioningService) EnableCapability(body BundleIDCapabilityCreateRequest) (*BundleIDCapabilityResponse, error)
- func (s ProvisioningService) FetchCertificate(serialNumber string) (Certificate, error)
- func (s ProvisioningService) ListBundleIDs(opt *ListBundleIDsOptions) (*BundleIdsResponse, error)
- func (s ProvisioningService) ListCertificates(opt *ListCertificatesOptions) (*CertificatesResponse, error)
- func (s ProvisioningService) ListDevices(opt *ListDevicesOptions) (*DevicesResponse, error)
- func (s ProvisioningService) ListProfiles(opt *ListProfilesOptions) (*ProfilesResponse, error)
- func (s ProvisioningService) Profiles(relationshipLink string, opt *PagingOptions) (*ProfilesResponse, error)
- func (s ProvisioningService) RegisterNewDevice(body DeviceCreateRequest) (*DeviceResponse, error)
- func (s ProvisioningService) UpdateCapability(id string, body BundleIDCapabilityUpdateRequest) (*BundleIDCapabilityResponse, error)
- type RelationshipsLinks
- type Status
Constants ¶
const ( ParentApplicationIdentifierEntitlementKey = "com.apple.developer.parent-application-identifiers" SignInWithAppleEntitlementKey = "com.apple.developer.applesignin" )
Entitlement keys ...
const BundleIDCapabilitiesEndpoint = "bundleIdCapabilities"
BundleIDCapabilitiesEndpoint ...
const BundleIDsEndpoint = "bundleIds"
BundleIDsEndpoint ...
const CertificatesEndpoint = "certificates"
CertificatesEndpoint ...
const DevicesEndpoint = "devices"
DevicesEndpoint ...
const ProfilesEndpoint = "profiles"
ProfilesEndpoint ...
Variables ¶
var ServiceTypeByKey = map[string]CapabilityType{ "com.apple.security.application-groups": AppGroups, "com.apple.developer.in-app-payments": ApplePay, "com.apple.developer.associated-domains": AssociatedDomains, "com.apple.developer.healthkit": Healthkit, "com.apple.developer.homekit": Homekit, "com.apple.developer.networking.HotspotConfiguration": HotSpot, "com.apple.InAppPurchase": InAppPurchase, "inter-app-audio": InterAppAudio, "com.apple.developer.networking.multipath": Multipath, "com.apple.developer.networking.networkextension": NetworkExtensions, "com.apple.developer.nfc.readersession.formats": NFCTagReading, "com.apple.developer.networking.vpn.api": PersonalVPN, "aps-environment": PushNotifications, "com.apple.developer.siri": Sirikit, SignInWithAppleEntitlementKey: SignInWithApple, "com.apple.developer.on-demand-install-capable": OnDemandInstallCapable, "com.apple.developer.pass-type-identifiers": Wallet, "com.apple.external-accessory.wireless-configuration": WirelessAccessoryConfiguration, "com.apple.developer.default-data-protection": DataProtection, "com.apple.developer.icloud-services": ICloud, "com.apple.developer.authentication-services.autofill-credential-provider": AutofillCredentialProvider, "com.apple.developer.networking.wifi-info": AccessWIFIInformation, "com.apple.developer.ClassKit-environment": Classkit, "com.apple.developer.coremedia.hls.low-latency": CoremediaHLSLowLatency, "com.apple.developer.icloud-container-identifiers": Ignored, "com.apple.developer.ubiquity-container-identifiers": Ignored, ParentApplicationIdentifierEntitlementKey: Ignored, "com.apple.developer.contacts.notes": ProfileAttachedEntitlement, "com.apple.developer.carplay-audio": ProfileAttachedEntitlement, "com.apple.developer.carplay-communication": ProfileAttachedEntitlement, "com.apple.developer.carplay-charging": ProfileAttachedEntitlement, "com.apple.developer.carplay-maps": ProfileAttachedEntitlement, "com.apple.developer.carplay-parking": ProfileAttachedEntitlement, "com.apple.developer.carplay-quick-ordering": ProfileAttachedEntitlement, "com.apple.developer.exposure-notification": ProfileAttachedEntitlement, }
ServiceTypeByKey ...
Functions ¶
func NewRetryableHTTPClient ¶
NewRetryableHTTPClient create a new http client with retry settings.
Types ¶
type BundleID ¶
type BundleID struct { Attributes BundleIDAttributes `json:"attributes"` Relationships BundleIDRelationships `json:"relationships"` ID string `json:"id"` Type string `json:"type"` }
BundleID ...
type BundleIDAttributes ¶
type BundleIDAttributes struct { Identifier string `json:"identifier"` Name string `json:"name"` Platform string `json:"platform"` }
BundleIDAttributes ...
type BundleIDCapabilitiesResponse ¶
type BundleIDCapabilitiesResponse struct {
Data []BundleIDCapability `json:"data"`
}
BundleIDCapabilitiesResponse ...
type BundleIDCapability ¶
type BundleIDCapability struct { Attributes BundleIDCapabilityAttributes ID string `json:"id"` Type string `json:"type"` }
BundleIDCapability ...
type BundleIDCapabilityAttributes ¶
type BundleIDCapabilityAttributes struct { CapabilityType CapabilityType `json:"capabilityType"` Settings []CapabilitySetting `json:"settings"` }
BundleIDCapabilityAttributes ...
type BundleIDCapabilityCreateRequest ¶
type BundleIDCapabilityCreateRequest struct {
Data BundleIDCapabilityCreateRequestData `json:"data"`
}
BundleIDCapabilityCreateRequest ...
type BundleIDCapabilityCreateRequestData ¶
type BundleIDCapabilityCreateRequestData struct { Attributes BundleIDCapabilityCreateRequestDataAttributes `json:"attributes"` Relationships BundleIDCapabilityCreateRequestDataRelationships `json:"relationships"` Type string `json:"type"` }
BundleIDCapabilityCreateRequestData ...
type BundleIDCapabilityCreateRequestDataAttributes ¶
type BundleIDCapabilityCreateRequestDataAttributes struct { CapabilityType CapabilityType `json:"capabilityType"` Settings []CapabilitySetting `json:"settings"` }
BundleIDCapabilityCreateRequestDataAttributes ...
type BundleIDCapabilityCreateRequestDataRelationships ¶
type BundleIDCapabilityCreateRequestDataRelationships struct {
BundleID BundleIDCapabilityCreateRequestDataRelationshipsBundleID `json:"bundleId"`
}
BundleIDCapabilityCreateRequestDataRelationships ...
type BundleIDCapabilityCreateRequestDataRelationshipsBundleID ¶
type BundleIDCapabilityCreateRequestDataRelationshipsBundleID struct {
Data BundleIDCapabilityCreateRequestDataRelationshipsBundleIDData `json:"data"`
}
BundleIDCapabilityCreateRequestDataRelationshipsBundleID ...
type BundleIDCapabilityCreateRequestDataRelationshipsBundleIDData ¶
type BundleIDCapabilityCreateRequestDataRelationshipsBundleIDData struct { ID string `json:"id"` Type string `json:"type"` }
BundleIDCapabilityCreateRequestDataRelationshipsBundleIDData ...
type BundleIDCapabilityResponse ¶
type BundleIDCapabilityResponse struct {
Data BundleIDCapability `json:"data"`
}
BundleIDCapabilityResponse ...
type BundleIDCapabilityUpdateRequest ¶
type BundleIDCapabilityUpdateRequest struct {
Data BundleIDCapabilityUpdateRequestData `json:"data"`
}
BundleIDCapabilityUpdateRequest ...
type BundleIDCapabilityUpdateRequestData ¶
type BundleIDCapabilityUpdateRequestData struct { Attributes BundleIDCapabilityUpdateRequestDataAttributes `json:"attributes"` ID string `json:"id"` Type string `json:"type"` }
BundleIDCapabilityUpdateRequestData ...
type BundleIDCapabilityUpdateRequestDataAttributes ¶
type BundleIDCapabilityUpdateRequestDataAttributes struct { CapabilityType CapabilityType `json:"capabilityType"` Settings []CapabilitySetting `json:"settings"` }
BundleIDCapabilityUpdateRequestDataAttributes ...
type BundleIDCreateRequest ¶
type BundleIDCreateRequest struct {
Data BundleIDCreateRequestData `json:"data"`
}
BundleIDCreateRequest ...
type BundleIDCreateRequestData ¶
type BundleIDCreateRequestData struct { Attributes BundleIDCreateRequestDataAttributes `json:"attributes"` Type string `json:"type"` }
BundleIDCreateRequestData ...
type BundleIDCreateRequestDataAttributes ¶
type BundleIDCreateRequestDataAttributes struct { Identifier string `json:"identifier"` Name string `json:"name"` Platform BundleIDPlatform `json:"platform"` }
BundleIDCreateRequestDataAttributes ...
type BundleIDPlatform ¶
type BundleIDPlatform string
BundleIDPlatform ...
const ( IOS BundleIDPlatform = "IOS" MacOS BundleIDPlatform = "MAC_OS" Universal BundleIDPlatform = "UNIVERSAL" )
BundleIDPlatforms ...
type BundleIDRelationships ¶
type BundleIDRelationships struct { Profiles RelationshipsLinks `json:"profiles"` Capabilities RelationshipsLinks `json:"bundleIdCapabilities"` }
BundleIDRelationships ...
type BundleIDResponse ¶
type BundleIDResponse struct {
Data BundleID `json:"data,omitempty"`
}
BundleIDResponse ...
type BundleIdsResponse ¶
type BundleIdsResponse struct { Data []BundleID `json:"data,omitempty"` Links PagedDocumentLinks `json:"links,omitempty"` }
BundleIdsResponse ...
type CapabilityOption ¶
type CapabilityOption struct { Description string `json:"description,omitempty"` Enabled bool `json:"enabled,omitempty"` EnabledByDefault bool `json:"enabledByDefault,omitempty"` Key CapabilityOptionKey `json:"key,omitempty"` Name string `json:"name,omitempty"` SupportsWildcard bool `json:"supportsWildcard,omitempty"` }
CapabilityOption ...
type CapabilityOptionKey ¶
type CapabilityOptionKey string
CapabilityOptionKey ...
const ( Xcode5 CapabilityOptionKey = "XCODE_5" Xcode6 CapabilityOptionKey = "XCODE_6" CompleteProtection CapabilityOptionKey = "COMPLETE_PROTECTION" ProtectedUnlessOpen CapabilityOptionKey = "PROTECTED_UNLESS_OPEN" ProtectedUntilFirstUserAuth CapabilityOptionKey = "PROTECTED_UNTIL_FIRST_USER_AUTH" )
CapabilityOptionKeys ...
type CapabilitySetting ¶
type CapabilitySetting struct { AllowedInstances CapabilitySettingAllowedInstances `json:"allowedInstances,omitempty"` Description string `json:"description,omitempty"` EnabledByDefault bool `json:"enabledByDefault,omitempty"` Key CapabilitySettingKey `json:"key,omitempty"` Name string `json:"name,omitempty"` Options []CapabilityOption `json:"options,omitempty"` Visible bool `json:"visible,omitempty"` MinInstances int `json:"minInstances,omitempty"` }
CapabilitySetting ...
type CapabilitySettingAllowedInstances ¶
type CapabilitySettingAllowedInstances string
CapabilitySettingAllowedInstances ...
const ( Entry CapabilitySettingAllowedInstances = "ENTRY" Single CapabilitySettingAllowedInstances = "SINGLE" Multiple CapabilitySettingAllowedInstances = "MULTIPLE" )
AllowedInstances ...
type CapabilitySettingKey ¶
type CapabilitySettingKey string
CapabilitySettingKey ...
const ( IcloudVersion CapabilitySettingKey = "ICLOUD_VERSION" DataProtectionPermissionLevel CapabilitySettingKey = "DATA_PROTECTION_PERMISSION_LEVEL" AppleIDAuthAppConsent CapabilitySettingKey = "APPLE_ID_AUTH_APP_CONSENT" AppGroupIdentifiers CapabilitySettingKey = "APP_GROUP_IDENTIFIERS" )
CapabilitySettingKeys
type CapabilityType ¶
type CapabilityType string
CapabilityType ...
const ( Ignored CapabilityType = "-ignored-" ProfileAttachedEntitlement CapabilityType = "-profile-attached-" ICloud CapabilityType = "ICLOUD" InAppPurchase CapabilityType = "IN_APP_PURCHASE" GameCenter CapabilityType = "GAME_CENTER" PushNotifications CapabilityType = "PUSH_NOTIFICATIONS" Wallet CapabilityType = "WALLET" InterAppAudio CapabilityType = "INTER_APP_AUDIO" Maps CapabilityType = "MAPS" AssociatedDomains CapabilityType = "ASSOCIATED_DOMAINS" PersonalVPN CapabilityType = "PERSONAL_VPN" AppGroups CapabilityType = "APP_GROUPS" Healthkit CapabilityType = "HEALTHKIT" Homekit CapabilityType = "HOMEKIT" WirelessAccessoryConfiguration CapabilityType = "WIRELESS_ACCESSORY_CONFIGURATION" ApplePay CapabilityType = "APPLE_PAY" DataProtection CapabilityType = "DATA_PROTECTION" Sirikit CapabilityType = "SIRIKIT" NetworkExtensions CapabilityType = "NETWORK_EXTENSIONS" Multipath CapabilityType = "MULTIPATH" HotSpot CapabilityType = "HOT_SPOT" NFCTagReading CapabilityType = "NFC_TAG_READING" Classkit CapabilityType = "CLASSKIT" AutofillCredentialProvider CapabilityType = "AUTOFILL_CREDENTIAL_PROVIDER" AccessWIFIInformation CapabilityType = "ACCESS_WIFI_INFORMATION" NetworkCustomProtocol CapabilityType = "NETWORK_CUSTOM_PROTOCOL" CoremediaHLSLowLatency CapabilityType = "COREMEDIA_HLS_LOW_LATENCY" SystemExtensionInstall CapabilityType = "SYSTEM_EXTENSION_INSTALL" UserManagement CapabilityType = "USER_MANAGEMENT" SignInWithApple CapabilityType = "APPLE_ID_AUTH" ParentApplicationIdentifiers CapabilityType = "ODIC_PARENT_BUNDLEID" OnDemandInstallCapable CapabilityType = "ON_DEMAND_INSTALL_CAPABLE" )
CapabilityTypes ...
type Certificate ¶
type Certificate struct { Attributes CertificateAttributes `json:"attributes"` ID string `json:"id"` Type string `json:"type"` }
Certificate ...
type CertificateAttributes ¶
type CertificateAttributes struct { CertificateContent []byte `json:"certificateContent"` DisplayName string `json:"displayName"` ExpirationDate string `json:"expirationDate"` Name string `json:"name"` Platform BundleIDPlatform `json:"platform"` SerialNumber string `json:"serialNumber"` CertificateType CertificateType `json:"certificateType"` }
CertificateAttributes ...
type CertificateType ¶
type CertificateType string
CertificateType ...
const ( Development CertificateType = "DEVELOPMENT" Distribution CertificateType = "DISTRIBUTION" IOSDevelopment CertificateType = "IOS_DEVELOPMENT" IOSDistribution CertificateType = "IOS_DISTRIBUTION" MacDistribution CertificateType = "MAC_APP_DISTRIBUTION" MacInstallerDistribution CertificateType = "MAC_INSTALLER_DISTRIBUTION" MacDevelopment CertificateType = "MAC_APP_DEVELOPMENT" DeveloperIDKext CertificateType = "DEVELOPER_ID_KEXT" DeveloperIDApplication CertificateType = "DEVELOPER_ID_APPLICATION" )
CertificateTypes ...
type CertificatesResponse ¶
type CertificatesResponse struct { Data []Certificate `json:"data"` Links PagedDocumentLinks `json:"links,omitempty"` }
CertificatesResponse ...
type Client ¶
type Client struct { EnableDebugLogs bool BaseURL *url.URL Provisioning *ProvisioningService // contains filtered or unexported fields }
Client communicate with the Apple API
func NewClient ¶
func NewClient(httpClient HTTPClient, keyID, issuerID string, privateKey []byte) *Client
NewClient creates a new client
type Device ¶
type Device struct { Type string `json:"type"` ID string `json:"id"` Attributes DeviceAttributes `json:"attributes"` }
Device ...
type DeviceAttributes ¶
type DeviceAttributes struct { DeviceClass DeviceClass `json:"deviceClass"` Model string `json:"model"` Name string `json:"name"` Platform BundleIDPlatform `json:"platform"` Status Status `json:"status"` UDID string `json:"udid"` AddedDate string `json:"addedDate"` }
DeviceAttributes ...
type DeviceClass ¶
type DeviceClass string
DeviceClass ...
const ( AppleWatch DeviceClass = "APPLE_WATCH" Ipad DeviceClass = "IPAD" Iphone DeviceClass = "IPHONE" Ipod DeviceClass = "IPOD" AppleTV DeviceClass = "APPLE_TV" Mac DeviceClass = "MAC" )
DeviceClasses ...
type DeviceCreateRequest ¶
type DeviceCreateRequest struct {
Data DeviceCreateRequestData `json:"data"`
}
DeviceCreateRequest ...
type DeviceCreateRequestData ¶
type DeviceCreateRequestData struct { Attributes DeviceCreateRequestDataAttributes `json:"attributes"` Type string `json:"type"` }
DeviceCreateRequestData ...
type DeviceCreateRequestDataAttributes ¶
type DeviceCreateRequestDataAttributes struct { Name string `json:"name"` Platform BundleIDPlatform `json:"platform"` UDID string `json:"udid"` }
DeviceCreateRequestDataAttributes ...
type DevicePlatform ¶
type DevicePlatform string
DevicePlatform ...
const ( IOSDevice DevicePlatform = "IOS" MacOSDevice DevicePlatform = "MAC_OS" )
DevicePlatforms ...
type DeviceRegistrationError ¶
type DeviceRegistrationError struct {
Reason string
}
DeviceRegistrationError ...
type DeviceResponse ¶
type DeviceResponse struct { Data Device `json:"data"` Links PagedDocumentLinks `json:"links,omitempty"` }
DeviceResponse ...
type DevicesResponse ¶
type DevicesResponse struct { Data []Device `json:"data"` Links PagedDocumentLinks `json:"links,omitempty"` }
DevicesResponse ...
type ErrorResponse ¶
type ErrorResponse struct { Response *http.Response Errors []ErrorResponseError `json:"errors,omitempty"` }
ErrorResponse ...
type ErrorResponseError ¶
type ErrorResponseError struct { Code string `json:"code,omitempty"` Status string `json:"status,omitempty"` ID string `json:"id,omitempty"` Title string `json:"title,omitempty"` Detail string `json:"detail,omitempty"` Source interface{} `json:"source,omitempty"` }
ErrorResponseError ...
type HTTPClient ¶
HTTPClient ...
type ListBundleIDsOptions ¶
type ListBundleIDsOptions struct { PagingOptions FilterIdentifier string `url:"filter[identifier],omitempty"` FilterName string `url:"filter[name],omitempty"` FilterPlatform BundleIDPlatform `url:"filter[platform],omitempty"` Include string `url:"include,omitempty"` }
ListBundleIDsOptions ...
type ListCertificatesOptions ¶
type ListCertificatesOptions struct { PagingOptions FilterSerialNumber string `url:"filter[serialNumber],omitempty"` FilterCertificateType CertificateType `url:"filter[certificateType],omitempty"` }
ListCertificatesOptions ...
type ListDevicesOptions ¶
type ListDevicesOptions struct { PagingOptions FilterUDID string `url:"filter[udid],omitempty"` FilterPlatform DevicePlatform `url:"filter[platform],omitempty"` FilterStatus Status `url:"filter[status],omitempty"` }
ListDevicesOptions ...
type ListProfilesOptions ¶
type ListProfilesOptions struct { PagingOptions FilterProfileState ProfileState `url:"filter[profileState],omitempty"` FilterProfileType ProfileType `url:"filter[profileType],omitempty"` FilterName string `url:"filter[name],omitempty"` Include string `url:"include,omitempty"` }
ListProfilesOptions ...
type PagedDocumentLinks ¶
type PagedDocumentLinks struct {
Next string `json:"next,omitempty"`
}
PagedDocumentLinks ...
type PagingOptions ¶
type PagingOptions struct { Limit int `url:"limit,omitempty"` Cursor string `url:"cursor,omitempty"` Next string `url:"-"` }
PagingOptions ...
func (*PagingOptions) UpdateCursor ¶
func (opt *PagingOptions) UpdateCursor() error
UpdateCursor ...
type Profile ¶
type Profile struct { Attributes ProfileAttributes `json:"attributes"` Relationships struct { BundleID struct { Links struct { Related string `json:"related"` Self string `json:"self"` } `json:"links"` } `json:"bundleId"` Certificates struct { Links struct { Related string `json:"related"` Self string `json:"self"` } `json:"links"` } `json:"certificates"` Devices struct { Links struct { Related string `json:"related"` Self string `json:"self"` } `json:"links"` } `json:"devices"` } `json:"relationships"` ID string `json:"id"` }
Profile ...
type ProfileAttributes ¶
type ProfileAttributes struct { Name string `json:"name"` Platform BundleIDPlatform `json:"platform"` ProfileContent []byte `json:"profileContent"` UUID string `json:"uuid"` CreatedDate string `json:"createdDate"` ProfileState ProfileState `json:"profileState"` ProfileType ProfileType `json:"profileType"` ExpirationDate time.Time `json:"expirationDate"` }
ProfileAttributes ...
type ProfileCreateRequest ¶
type ProfileCreateRequest struct {
Data ProfileCreateRequestData `json:"data"`
}
ProfileCreateRequest ...
func NewProfileCreateRequest ¶
func NewProfileCreateRequest(profileType ProfileType, name, bundleIDID string, certificateIDs []string, deviceIDs []string) ProfileCreateRequest
NewProfileCreateRequest returns a ProfileCreateRequest structure
type ProfileCreateRequestData ¶
type ProfileCreateRequestData struct { Attributes ProfileCreateRequestDataAttributes `json:"attributes"` Relationships ProfileCreateRequestDataRelationships `json:"relationships"` Type string `json:"type"` }
ProfileCreateRequestData ...
type ProfileCreateRequestDataAttributes ¶
type ProfileCreateRequestDataAttributes struct { Name string `json:"name"` ProfileType ProfileType `json:"profileType"` }
ProfileCreateRequestDataAttributes ...
type ProfileCreateRequestDataRelationshipData ¶
type ProfileCreateRequestDataRelationshipData struct { ID string `json:"id"` Type string `json:"type"` }
ProfileCreateRequestDataRelationshipData ...
type ProfileCreateRequestDataRelationships ¶
type ProfileCreateRequestDataRelationships struct { BundleID ProfileCreateRequestDataRelationshipsBundleID `json:"bundleId"` Certificates ProfileCreateRequestDataRelationshipsCertificates `json:"certificates"` Devices ProfileCreateRequestDataRelationshipsDevices `json:"devices"` }
ProfileCreateRequestDataRelationships ...
type ProfileCreateRequestDataRelationshipsBundleID ¶
type ProfileCreateRequestDataRelationshipsBundleID struct {
Data ProfileCreateRequestDataRelationshipData `json:"data"`
}
ProfileCreateRequestDataRelationshipsBundleID ...
type ProfileCreateRequestDataRelationshipsCertificates ¶
type ProfileCreateRequestDataRelationshipsCertificates struct {
Data []ProfileCreateRequestDataRelationshipData `json:"data"`
}
ProfileCreateRequestDataRelationshipsCertificates ...
type ProfileCreateRequestDataRelationshipsDevices ¶
type ProfileCreateRequestDataRelationshipsDevices struct {
Data []ProfileCreateRequestDataRelationshipData `json:"data"`
}
ProfileCreateRequestDataRelationshipsDevices ...
type ProfileResponse ¶
type ProfileResponse struct { Data Profile `json:"data"` Links PagedDocumentLinks `json:"links,omitempty"` }
ProfileResponse ...
type ProfileState ¶
type ProfileState string
ProfileState ...
const ( Active ProfileState = "ACTIVE" Invalid ProfileState = "INVALID" )
ProfileStates ...
type ProfileType ¶
type ProfileType string
ProfileType ...
const ( IOSAppDevelopment ProfileType = "IOS_APP_DEVELOPMENT" IOSAppStore ProfileType = "IOS_APP_STORE" IOSAppAdHoc ProfileType = "IOS_APP_ADHOC" IOSAppInHouse ProfileType = "IOS_APP_INHOUSE" MacAppDevelopment ProfileType = "MAC_APP_DEVELOPMENT" MacAppStore ProfileType = "MAC_APP_STORE" MacAppDirect ProfileType = "MAC_APP_DIRECT" TvOSAppDevelopment ProfileType = "TVOS_APP_DEVELOPMENT" TvOSAppStore ProfileType = "TVOS_APP_STORE" TvOSAppAdHoc ProfileType = "TVOS_APP_ADHOC" TvOSAppInHouse ProfileType = "TVOS_APP_INHOUSE" )
ProfileTypes ...
func (ProfileType) ReadableString ¶
func (t ProfileType) ReadableString() string
ReadableString returns the readable version of the ProjectType e.g: IOSAppDevelopment => development
type ProfilesResponse ¶
type ProfilesResponse struct { Data []Profile `json:"data"` Included []struct { Type string `json:"type"` ID string `json:"id"` Attributes serialized.Object `json:"attributes"` } `json:"included"` Links PagedDocumentLinks `json:"links,omitempty"` }
ProfilesResponse ...
type ProvisioningService ¶
type ProvisioningService service
ProvisioningService ...
func (ProvisioningService) BundleID ¶
func (s ProvisioningService) BundleID(relationshipLink string) (*BundleIDResponse, error)
BundleID ...
func (ProvisioningService) Capabilities ¶
func (s ProvisioningService) Capabilities(relationshipLink string) (*BundleIDCapabilitiesResponse, error)
Capabilities ...
func (ProvisioningService) Certificates ¶
func (s ProvisioningService) Certificates(relationshipLink string, opt *PagingOptions) (*CertificatesResponse, error)
Certificates ...
func (ProvisioningService) CreateBundleID ¶
func (s ProvisioningService) CreateBundleID(body BundleIDCreateRequest) (*BundleIDResponse, error)
CreateBundleID ...
func (ProvisioningService) CreateProfile ¶
func (s ProvisioningService) CreateProfile(body ProfileCreateRequest) (*ProfileResponse, error)
CreateProfile ...
func (ProvisioningService) DeleteProfile ¶
func (s ProvisioningService) DeleteProfile(id string) error
DeleteProfile ...
func (ProvisioningService) Devices ¶
func (s ProvisioningService) Devices(relationshipLink string, opt *PagingOptions) (*DevicesResponse, error)
Devices ...
func (ProvisioningService) EnableCapability ¶
func (s ProvisioningService) EnableCapability(body BundleIDCapabilityCreateRequest) (*BundleIDCapabilityResponse, error)
EnableCapability ...
func (ProvisioningService) FetchCertificate ¶
func (s ProvisioningService) FetchCertificate(serialNumber string) (Certificate, error)
FetchCertificate fetch the certificate entity from the
func (ProvisioningService) ListBundleIDs ¶
func (s ProvisioningService) ListBundleIDs(opt *ListBundleIDsOptions) (*BundleIdsResponse, error)
ListBundleIDs ...
func (ProvisioningService) ListCertificates ¶
func (s ProvisioningService) ListCertificates(opt *ListCertificatesOptions) (*CertificatesResponse, error)
ListCertificates ...
func (ProvisioningService) ListDevices ¶
func (s ProvisioningService) ListDevices(opt *ListDevicesOptions) (*DevicesResponse, error)
ListDevices ...
func (ProvisioningService) ListProfiles ¶
func (s ProvisioningService) ListProfiles(opt *ListProfilesOptions) (*ProfilesResponse, error)
ListProfiles ...
func (ProvisioningService) Profiles ¶
func (s ProvisioningService) Profiles(relationshipLink string, opt *PagingOptions) (*ProfilesResponse, error)
Profiles fetches provisioning profiles pointed by a relationship URL.
func (ProvisioningService) RegisterNewDevice ¶
func (s ProvisioningService) RegisterNewDevice(body DeviceCreateRequest) (*DeviceResponse, error)
RegisterNewDevice ...
func (ProvisioningService) UpdateCapability ¶
func (s ProvisioningService) UpdateCapability(id string, body BundleIDCapabilityUpdateRequest) (*BundleIDCapabilityResponse, error)
UpdateCapability ...
type RelationshipsLinks ¶
type RelationshipsLinks struct {
Links Links `json:"links"`
}
RelationshipsLinks ...