You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

185 lines
5.4 KiB

  1. // Package arrayofenum provides access to the Example API.
  2. //
  3. // Usage example:
  4. //
  5. // import "google.golang.org/api/arrayofenum/v1"
  6. // ...
  7. // arrayofenumService, err := arrayofenum.New(oauthHttpClient)
  8. package arrayofenum // import "google.golang.org/api/arrayofenum/v1"
  9. import (
  10. "bytes"
  11. "encoding/json"
  12. "errors"
  13. "fmt"
  14. context "golang.org/x/net/context"
  15. ctxhttp "golang.org/x/net/context/ctxhttp"
  16. gensupport "google.golang.org/api/gensupport"
  17. googleapi "google.golang.org/api/googleapi"
  18. "io"
  19. "net/http"
  20. "net/url"
  21. "strconv"
  22. "strings"
  23. )
  24. // Always reference these packages, just in case the auto-generated code
  25. // below doesn't.
  26. var _ = bytes.NewBuffer
  27. var _ = strconv.Itoa
  28. var _ = fmt.Sprintf
  29. var _ = json.NewDecoder
  30. var _ = io.Copy
  31. var _ = url.Parse
  32. var _ = gensupport.MarshalJSON
  33. var _ = googleapi.Version
  34. var _ = errors.New
  35. var _ = strings.Replace
  36. var _ = context.Canceled
  37. var _ = ctxhttp.Do
  38. const apiId = "arrayofenum:v1"
  39. const apiName = "arrayofenum"
  40. const apiVersion = "v1"
  41. const basePath = "https://www.googleapis.com/discovery/v1/apis"
  42. func New(client *http.Client) (*Service, error) {
  43. if client == nil {
  44. return nil, errors.New("client is nil")
  45. }
  46. s := &Service{client: client, BasePath: basePath}
  47. return s, nil
  48. }
  49. type Service struct {
  50. client *http.Client
  51. BasePath string // API endpoint base URL
  52. UserAgent string // optional additional User-Agent fragment
  53. }
  54. func (s *Service) userAgent() string {
  55. if s.UserAgent == "" {
  56. return googleapi.UserAgent
  57. }
  58. return googleapi.UserAgent + " " + s.UserAgent
  59. }
  60. // Container: Represents a Google Tag Manager Container.
  61. type Container struct {
  62. // AccountId: GTM Account ID.
  63. AccountId string `json:"accountId,omitempty"`
  64. // ContainerId: This is a long description that has URLs in it that
  65. // shouldn't break.
  66. // https://sites.google.com/a/google.com/adx-integration/Home/engineering/binary-releases/rtb-api-release
  67. // https://cs.corp.google.com/#piper///depot/google3/contentads/adx/tools/rtb_api/adxrtb.py
  68. ContainerId string `json:"containerId,omitempty"`
  69. // DomainName: Optional list of domain names associated with the
  70. // Container.
  71. DomainName []string `json:"domainName,omitempty"`
  72. // EnabledBuiltInVariable: List of enabled built-in variables. Valid
  73. // values include: pageUrl, pageHostname, pagePath, referrer, event,
  74. // clickElement, clickClasses, clickId, clickTarget, clickUrl,
  75. // clickText, formElement, formClasses, formId, formTarget, formUrl,
  76. // formText, errorMessage, errorUrl, errorLine, newHistoryFragment,
  77. // oldHistoryFragment, newHistoryState, oldHistoryState, historySource,
  78. // containerVersion, debugMode, randomNumber, containerId.
  79. //
  80. // Possible values:
  81. // "advertiserId"
  82. // "advertisingTrackingEnabled"
  83. // "appId"
  84. // "appName"
  85. // "appVersionCode"
  86. // "appVersionName"
  87. // "clickClasses"
  88. // "clickElement"
  89. // "clickId"
  90. // "clickTarget"
  91. // "clickText"
  92. // "clickUrl"
  93. // "containerId"
  94. // "containerVersion"
  95. // "debugMode"
  96. // "deviceName"
  97. // "errorLine"
  98. // "errorMessage"
  99. // "errorUrl"
  100. // "event"
  101. // "formClasses"
  102. // "formElement"
  103. // "formId"
  104. // "formTarget"
  105. // "formText"
  106. // "formUrl"
  107. // "historySource"
  108. // "language"
  109. // "newHistoryFragment"
  110. // "newHistoryState"
  111. // "oldHistoryFragment"
  112. // "oldHistoryState"
  113. // "osVersion"
  114. // "pageHostname"
  115. // "pagePath"
  116. // "pageUrl"
  117. // "platform"
  118. // "randomNumber"
  119. // "referrer"
  120. // "resolution"
  121. // "sdkVersion"
  122. EnabledBuiltInVariable []string `json:"enabledBuiltInVariable,omitempty"`
  123. // Fingerprint: The fingerprint of the GTM Container as computed at
  124. // storage time. This value is recomputed whenever the account is
  125. // modified.
  126. Fingerprint string `json:"fingerprint,omitempty"`
  127. // Name: Container display name.
  128. Name string `json:"name,omitempty"`
  129. // Notes: Container Notes.
  130. Notes string `json:"notes,omitempty"`
  131. // PublicId: Container Public ID.
  132. PublicId string `json:"publicId,omitempty"`
  133. // TimeZoneCountryId: Container Country ID.
  134. TimeZoneCountryId string `json:"timeZoneCountryId,omitempty"`
  135. // TimeZoneId: Container Time Zone ID.
  136. TimeZoneId string `json:"timeZoneId,omitempty"`
  137. // UsageContext: List of Usage Contexts for the Container. Valid values
  138. // include: web, android, ios.
  139. //
  140. // Possible values:
  141. // "android"
  142. // "ios"
  143. // "web"
  144. UsageContext []string `json:"usageContext,omitempty"`
  145. // ForceSendFields is a list of field names (e.g. "AccountId") to
  146. // unconditionally include in API requests. By default, fields with
  147. // empty values are omitted from API requests. However, any non-pointer,
  148. // non-interface field appearing in ForceSendFields will be sent to the
  149. // server regardless of whether the field is empty or not. This may be
  150. // used to include empty fields in Patch requests.
  151. ForceSendFields []string `json:"-"`
  152. // NullFields is a list of field names (e.g. "AccountId") to include in
  153. // API requests with the JSON null value. By default, fields with empty
  154. // values are omitted from API requests. However, any field with an
  155. // empty value appearing in NullFields will be sent to the server as
  156. // null. It is an error if a field in this list has a non-empty value.
  157. // This may be used to include null fields in Patch requests.
  158. NullFields []string `json:"-"`
  159. }
  160. func (s *Container) MarshalJSON() ([]byte, error) {
  161. type NoMethod Container
  162. raw := NoMethod(*s)
  163. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  164. }