Documentation ¶
Index ¶
- Constants
- Variables
- func FetchDocumentBytes(documentURL string) ([]byte, error)
- func FetchListBytes() ([]byte, error)
- func Version() string
- type API
- type Annotations
- func (*Annotations) Descriptor() ([]byte, []int)deprecated
- func (x *Annotations) GetRequired() []string
- func (*Annotations) ProtoMessage()
- func (x *Annotations) ProtoReflect() protoreflect.Message
- func (x *Annotations) Reset()
- func (m *Annotations) ResolveReferences(root string) (*yaml.Node, error)
- func (x *Annotations) String() string
- func (m *Annotations) ToRawInfo() *yaml.Node
- type Any
- func (*Any) Descriptor() ([]byte, []int)deprecated
- func (x *Any) GetValue() *anypb.Any
- func (x *Any) GetYaml() string
- func (*Any) ProtoMessage()
- func (x *Any) ProtoReflect() protoreflect.Message
- func (x *Any) Reset()
- func (m *Any) ResolveReferences(root string) (*yaml.Node, error)
- func (x *Any) String() string
- func (m *Any) ToRawInfo() *yaml.Node
- type Auth
- func (*Auth) Descriptor() ([]byte, []int)deprecated
- func (x *Auth) GetOauth2() *Oauth2
- func (*Auth) ProtoMessage()
- func (x *Auth) ProtoReflect() protoreflect.Message
- func (x *Auth) Reset()
- func (m *Auth) ResolveReferences(root string) (*yaml.Node, error)
- func (x *Auth) String() string
- func (m *Auth) ToRawInfo() *yaml.Node
- type Document
- func (*Document) Descriptor() ([]byte, []int)deprecated
- func (x *Document) GetAuth() *Auth
- func (x *Document) GetBasePath() string
- func (x *Document) GetBaseUrl() string
- func (x *Document) GetBatchPath() string
- func (x *Document) GetCanonicalName() string
- func (x *Document) GetDescription() string
- func (x *Document) GetDiscoveryVersion() string
- func (x *Document) GetDocumentationLink() string
- func (x *Document) GetEtag() string
- func (x *Document) GetFeatures() []string
- func (x *Document) GetFullyEncodeReservedExpansion() bool
- func (x *Document) GetIcons() *Icons
- func (x *Document) GetId() string
- func (x *Document) GetKind() string
- func (x *Document) GetLabels() []string
- func (x *Document) GetMethods() *Methods
- func (x *Document) GetMtlsRootUrl() string
- func (x *Document) GetName() string
- func (x *Document) GetOwnerDomain() string
- func (x *Document) GetOwnerName() string
- func (x *Document) GetPackagePath() string
- func (x *Document) GetParameters() *Parameters
- func (x *Document) GetProtocol() string
- func (x *Document) GetResources() *Resources
- func (x *Document) GetRevision() string
- func (x *Document) GetRootUrl() string
- func (x *Document) GetSchemas() *Schemas
- func (x *Document) GetServicePath() string
- func (x *Document) GetTitle() string
- func (x *Document) GetVersion() string
- func (x *Document) GetVersionModule() bool
- func (*Document) ProtoMessage()
- func (x *Document) ProtoReflect() protoreflect.Message
- func (x *Document) Reset()
- func (m *Document) ResolveReferences(root string) (*yaml.Node, error)
- func (x *Document) String() string
- func (m *Document) ToRawInfo() *yaml.Node
- type Icons
- func (*Icons) Descriptor() ([]byte, []int)deprecated
- func (x *Icons) GetX16() string
- func (x *Icons) GetX32() string
- func (*Icons) ProtoMessage()
- func (x *Icons) ProtoReflect() protoreflect.Message
- func (x *Icons) Reset()
- func (m *Icons) ResolveReferences(root string) (*yaml.Node, error)
- func (x *Icons) String() string
- func (m *Icons) ToRawInfo() *yaml.Node
- type List
- type MediaUpload
- func (*MediaUpload) Descriptor() ([]byte, []int)deprecated
- func (x *MediaUpload) GetAccept() []string
- func (x *MediaUpload) GetMaxSize() string
- func (x *MediaUpload) GetProtocols() *Protocols
- func (x *MediaUpload) GetSupportsSubscription() bool
- func (*MediaUpload) ProtoMessage()
- func (x *MediaUpload) ProtoReflect() protoreflect.Message
- func (x *MediaUpload) Reset()
- func (m *MediaUpload) ResolveReferences(root string) (*yaml.Node, error)
- func (x *MediaUpload) String() string
- func (m *MediaUpload) ToRawInfo() *yaml.Node
- type Method
- func (*Method) Descriptor() ([]byte, []int)deprecated
- func (x *Method) GetDescription() string
- func (x *Method) GetEtagRequired() bool
- func (x *Method) GetFlatPath() string
- func (x *Method) GetHttpMethod() string
- func (x *Method) GetId() string
- func (x *Method) GetMediaUpload() *MediaUpload
- func (x *Method) GetParameterOrder() []string
- func (x *Method) GetParameters() *Parameters
- func (x *Method) GetPath() string
- func (x *Method) GetRequest() *Request
- func (x *Method) GetResponse() *Response
- func (x *Method) GetScopes() []string
- func (x *Method) GetStreamingType() string
- func (x *Method) GetSupportsMediaDownload() bool
- func (x *Method) GetSupportsMediaUpload() bool
- func (x *Method) GetSupportsSubscription() bool
- func (x *Method) GetUseMediaDownloadService() bool
- func (*Method) ProtoMessage()
- func (x *Method) ProtoReflect() protoreflect.Message
- func (x *Method) Reset()
- func (m *Method) ResolveReferences(root string) (*yaml.Node, error)
- func (x *Method) String() string
- func (m *Method) ToRawInfo() *yaml.Node
- type Methods
- func (*Methods) Descriptor() ([]byte, []int)deprecated
- func (x *Methods) GetAdditionalProperties() []*NamedMethod
- func (*Methods) ProtoMessage()
- func (x *Methods) ProtoReflect() protoreflect.Message
- func (x *Methods) Reset()
- func (m *Methods) ResolveReferences(root string) (*yaml.Node, error)
- func (x *Methods) String() string
- func (m *Methods) ToRawInfo() *yaml.Node
- type NamedMethod
- func (*NamedMethod) Descriptor() ([]byte, []int)deprecated
- func (x *NamedMethod) GetName() string
- func (x *NamedMethod) GetValue() *Method
- func (*NamedMethod) ProtoMessage()
- func (x *NamedMethod) ProtoReflect() protoreflect.Message
- func (x *NamedMethod) Reset()
- func (m *NamedMethod) ResolveReferences(root string) (*yaml.Node, error)
- func (x *NamedMethod) String() string
- func (m *NamedMethod) ToRawInfo() *yaml.Node
- type NamedParameter
- func (*NamedParameter) Descriptor() ([]byte, []int)deprecated
- func (x *NamedParameter) GetName() string
- func (x *NamedParameter) GetValue() *Parameter
- func (*NamedParameter) ProtoMessage()
- func (x *NamedParameter) ProtoReflect() protoreflect.Message
- func (x *NamedParameter) Reset()
- func (m *NamedParameter) ResolveReferences(root string) (*yaml.Node, error)
- func (x *NamedParameter) String() string
- func (m *NamedParameter) ToRawInfo() *yaml.Node
- type NamedResource
- func (*NamedResource) Descriptor() ([]byte, []int)deprecated
- func (x *NamedResource) GetName() string
- func (x *NamedResource) GetValue() *Resource
- func (*NamedResource) ProtoMessage()
- func (x *NamedResource) ProtoReflect() protoreflect.Message
- func (x *NamedResource) Reset()
- func (m *NamedResource) ResolveReferences(root string) (*yaml.Node, error)
- func (x *NamedResource) String() string
- func (m *NamedResource) ToRawInfo() *yaml.Node
- type NamedSchema
- func (*NamedSchema) Descriptor() ([]byte, []int)deprecated
- func (x *NamedSchema) GetName() string
- func (x *NamedSchema) GetValue() *Schema
- func (*NamedSchema) ProtoMessage()
- func (x *NamedSchema) ProtoReflect() protoreflect.Message
- func (x *NamedSchema) Reset()
- func (m *NamedSchema) ResolveReferences(root string) (*yaml.Node, error)
- func (x *NamedSchema) String() string
- func (m *NamedSchema) ToRawInfo() *yaml.Node
- type NamedScope
- func (*NamedScope) Descriptor() ([]byte, []int)deprecated
- func (x *NamedScope) GetName() string
- func (x *NamedScope) GetValue() *Scope
- func (*NamedScope) ProtoMessage()
- func (x *NamedScope) ProtoReflect() protoreflect.Message
- func (x *NamedScope) Reset()
- func (m *NamedScope) ResolveReferences(root string) (*yaml.Node, error)
- func (x *NamedScope) String() string
- func (m *NamedScope) ToRawInfo() *yaml.Node
- type Oauth2
- func (*Oauth2) Descriptor() ([]byte, []int)deprecated
- func (x *Oauth2) GetScopes() *Scopes
- func (*Oauth2) ProtoMessage()
- func (x *Oauth2) ProtoReflect() protoreflect.Message
- func (x *Oauth2) Reset()
- func (m *Oauth2) ResolveReferences(root string) (*yaml.Node, error)
- func (x *Oauth2) String() string
- func (m *Oauth2) ToRawInfo() *yaml.Node
- type Parameter
- func (*Parameter) Descriptor() ([]byte, []int)deprecated
- func (x *Parameter) GetAdditionalProperties() *Schema
- func (x *Parameter) GetAnnotations() *Annotations
- func (x *Parameter) GetDefault() string
- func (x *Parameter) GetDescription() string
- func (x *Parameter) GetEnum() []string
- func (x *Parameter) GetEnumDescriptions() []string
- func (x *Parameter) GetFormat() string
- func (x *Parameter) GetId() string
- func (x *Parameter) GetItems() *Schema
- func (x *Parameter) GetLocation() string
- func (x *Parameter) GetMaximum() string
- func (x *Parameter) GetMinimum() string
- func (x *Parameter) GetPattern() string
- func (x *Parameter) GetProperties() *Schemas
- func (x *Parameter) GetRepeated() bool
- func (x *Parameter) GetRequired() bool
- func (x *Parameter) GetType() string
- func (x *Parameter) GetXRef() string
- func (*Parameter) ProtoMessage()
- func (x *Parameter) ProtoReflect() protoreflect.Message
- func (x *Parameter) Reset()
- func (m *Parameter) ResolveReferences(root string) (*yaml.Node, error)
- func (x *Parameter) String() string
- func (m *Parameter) ToRawInfo() *yaml.Node
- type Parameters
- func (*Parameters) Descriptor() ([]byte, []int)deprecated
- func (x *Parameters) GetAdditionalProperties() []*NamedParameter
- func (*Parameters) ProtoMessage()
- func (x *Parameters) ProtoReflect() protoreflect.Message
- func (x *Parameters) Reset()
- func (m *Parameters) ResolveReferences(root string) (*yaml.Node, error)
- func (x *Parameters) String() string
- func (m *Parameters) ToRawInfo() *yaml.Node
- type Protocols
- func (*Protocols) Descriptor() ([]byte, []int)deprecated
- func (x *Protocols) GetResumable() *Resumable
- func (x *Protocols) GetSimple() *Simple
- func (*Protocols) ProtoMessage()
- func (x *Protocols) ProtoReflect() protoreflect.Message
- func (x *Protocols) Reset()
- func (m *Protocols) ResolveReferences(root string) (*yaml.Node, error)
- func (x *Protocols) String() string
- func (m *Protocols) ToRawInfo() *yaml.Node
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetParameterName() string
- func (x *Request) GetXRef() string
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (m *Request) ResolveReferences(root string) (*yaml.Node, error)
- func (x *Request) String() string
- func (m *Request) ToRawInfo() *yaml.Node
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)deprecated
- func (x *Resource) GetMethods() *Methods
- func (x *Resource) GetResources() *Resources
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (m *Resource) ResolveReferences(root string) (*yaml.Node, error)
- func (x *Resource) String() string
- func (m *Resource) ToRawInfo() *yaml.Node
- type Resources
- func (*Resources) Descriptor() ([]byte, []int)deprecated
- func (x *Resources) GetAdditionalProperties() []*NamedResource
- func (*Resources) ProtoMessage()
- func (x *Resources) ProtoReflect() protoreflect.Message
- func (x *Resources) Reset()
- func (m *Resources) ResolveReferences(root string) (*yaml.Node, error)
- func (x *Resources) String() string
- func (m *Resources) ToRawInfo() *yaml.Node
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetXRef() string
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (m *Response) ResolveReferences(root string) (*yaml.Node, error)
- func (x *Response) String() string
- func (m *Response) ToRawInfo() *yaml.Node
- type Resumable
- func (*Resumable) Descriptor() ([]byte, []int)deprecated
- func (x *Resumable) GetMultipart() bool
- func (x *Resumable) GetPath() string
- func (*Resumable) ProtoMessage()
- func (x *Resumable) ProtoReflect() protoreflect.Message
- func (x *Resumable) Reset()
- func (m *Resumable) ResolveReferences(root string) (*yaml.Node, error)
- func (x *Resumable) String() string
- func (m *Resumable) ToRawInfo() *yaml.Node
- type Schema
- func (*Schema) Descriptor() ([]byte, []int)deprecated
- func (x *Schema) GetAdditionalProperties() *Schema
- func (x *Schema) GetAnnotations() *Annotations
- func (x *Schema) GetDefault() string
- func (x *Schema) GetDescription() string
- func (x *Schema) GetEnum() []string
- func (x *Schema) GetEnumDescriptions() []string
- func (x *Schema) GetFormat() string
- func (x *Schema) GetId() string
- func (x *Schema) GetItems() *Schema
- func (x *Schema) GetLocation() string
- func (x *Schema) GetMaximum() string
- func (x *Schema) GetMinimum() string
- func (x *Schema) GetPattern() string
- func (x *Schema) GetProperties() *Schemas
- func (x *Schema) GetReadOnly() bool
- func (x *Schema) GetRepeated() bool
- func (x *Schema) GetRequired() bool
- func (x *Schema) GetType() string
- func (x *Schema) GetXRef() string
- func (*Schema) ProtoMessage()
- func (x *Schema) ProtoReflect() protoreflect.Message
- func (x *Schema) Reset()
- func (m *Schema) ResolveReferences(root string) (*yaml.Node, error)
- func (x *Schema) String() string
- func (m *Schema) ToRawInfo() *yaml.Node
- type Schemas
- func (*Schemas) Descriptor() ([]byte, []int)deprecated
- func (x *Schemas) GetAdditionalProperties() []*NamedSchema
- func (*Schemas) ProtoMessage()
- func (x *Schemas) ProtoReflect() protoreflect.Message
- func (x *Schemas) Reset()
- func (m *Schemas) ResolveReferences(root string) (*yaml.Node, error)
- func (x *Schemas) String() string
- func (m *Schemas) ToRawInfo() *yaml.Node
- type Scope
- func (*Scope) Descriptor() ([]byte, []int)deprecated
- func (x *Scope) GetDescription() string
- func (*Scope) ProtoMessage()
- func (x *Scope) ProtoReflect() protoreflect.Message
- func (x *Scope) Reset()
- func (m *Scope) ResolveReferences(root string) (*yaml.Node, error)
- func (x *Scope) String() string
- func (m *Scope) ToRawInfo() *yaml.Node
- type Scopes
- func (*Scopes) Descriptor() ([]byte, []int)deprecated
- func (x *Scopes) GetAdditionalProperties() []*NamedScope
- func (*Scopes) ProtoMessage()
- func (x *Scopes) ProtoReflect() protoreflect.Message
- func (x *Scopes) Reset()
- func (m *Scopes) ResolveReferences(root string) (*yaml.Node, error)
- func (x *Scopes) String() string
- func (m *Scopes) ToRawInfo() *yaml.Node
- type Simple
- func (*Simple) Descriptor() ([]byte, []int)deprecated
- func (x *Simple) GetMultipart() bool
- func (x *Simple) GetPath() string
- func (*Simple) ProtoMessage()
- func (x *Simple) ProtoReflect() protoreflect.Message
- func (x *Simple) Reset()
- func (m *Simple) ResolveReferences(root string) (*yaml.Node, error)
- func (x *Simple) String() string
- func (m *Simple) ToRawInfo() *yaml.Node
- type StringArray
- func (*StringArray) Descriptor() ([]byte, []int)deprecated
- func (x *StringArray) GetValue() []string
- func (*StringArray) ProtoMessage()
- func (x *StringArray) ProtoReflect() protoreflect.Message
- func (x *StringArray) Reset()
- func (m *StringArray) ResolveReferences(root string) (*yaml.Node, error)
- func (x *StringArray) String() string
- func (m *StringArray) ToRawInfo() *yaml.Node
Constants ¶
const APIsListServiceURL = "https://www.googleapis.com/discovery/v1/apis"
APIsListServiceURL is the URL for the Google APIs Discovery Service
Variables ¶
var File_discovery_discovery_proto protoreflect.FileDescriptor
Functions ¶
func FetchDocumentBytes ¶
FetchDocumentBytes downloads the bytes of a discovery document from a URL.
func FetchListBytes ¶
Types ¶
type API ¶
type API struct { Kind string `json:"kind"` ID string `json:"id"` Name string `json:"name"` Version string `json:"version"` Title string `json:"title"` Description string `json:"description"` DiscoveryRestURL string `json:"discoveryRestUrl"` DiscoveryLink string `json:"discoveryLink"` Icons map[string]string `json:"icons"` DocumentationLink string `json:"documentationLink"` Labels []string `json:"labels"` Preferred bool `json:"preferred"` }
An API represents an API description returned by the apis/list API.
type Annotations ¶
type Annotations struct { Required []string `protobuf:"bytes,1,rep,name=required,proto3" json:"required,omitempty"` // contains filtered or unexported fields }
func NewAnnotations ¶
func NewAnnotations(in *yaml.Node, context *compiler.Context) (*Annotations, error)
NewAnnotations creates an object of type Annotations if possible, returning an error if not.
func (*Annotations) Descriptor
deprecated
func (*Annotations) Descriptor() ([]byte, []int)
Deprecated: Use Annotations.ProtoReflect.Descriptor instead.
func (*Annotations) GetRequired ¶
func (x *Annotations) GetRequired() []string
func (*Annotations) ProtoMessage ¶
func (*Annotations) ProtoMessage()
func (*Annotations) ProtoReflect ¶
func (x *Annotations) ProtoReflect() protoreflect.Message
func (*Annotations) Reset ¶
func (x *Annotations) Reset()
func (*Annotations) ResolveReferences ¶
func (m *Annotations) ResolveReferences(root string) (*yaml.Node, error)
ResolveReferences resolves references found inside Annotations objects.
func (*Annotations) String ¶
func (x *Annotations) String() string
func (*Annotations) ToRawInfo ¶
func (m *Annotations) ToRawInfo() *yaml.Node
ToRawInfo returns a description of Annotations suitable for JSON or YAML export.
type Any ¶
type Any struct { Value *anypb.Any `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` Yaml string `protobuf:"bytes,2,opt,name=yaml,proto3" json:"yaml,omitempty"` // contains filtered or unexported fields }
func (*Any) Descriptor
deprecated
func (*Any) ProtoMessage ¶
func (*Any) ProtoMessage()
func (*Any) ProtoReflect ¶
func (x *Any) ProtoReflect() protoreflect.Message
func (*Any) ResolveReferences ¶
ResolveReferences resolves references found inside Any objects.
type Auth ¶
type Auth struct { Oauth2 *Oauth2 `protobuf:"bytes,1,opt,name=oauth2,proto3" json:"oauth2,omitempty"` // contains filtered or unexported fields }
func (*Auth) Descriptor
deprecated
func (*Auth) ProtoMessage ¶
func (*Auth) ProtoMessage()
func (*Auth) ProtoReflect ¶
func (x *Auth) ProtoReflect() protoreflect.Message
func (*Auth) ResolveReferences ¶
ResolveReferences resolves references found inside Auth objects.
type Document ¶
type Document struct { Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` DiscoveryVersion string `protobuf:"bytes,2,opt,name=discovery_version,json=discoveryVersion,proto3" json:"discovery_version,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` Revision string `protobuf:"bytes,6,opt,name=revision,proto3" json:"revision,omitempty"` Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` Icons *Icons `protobuf:"bytes,9,opt,name=icons,proto3" json:"icons,omitempty"` DocumentationLink string `protobuf:"bytes,10,opt,name=documentation_link,json=documentationLink,proto3" json:"documentation_link,omitempty"` Labels []string `protobuf:"bytes,11,rep,name=labels,proto3" json:"labels,omitempty"` Protocol string `protobuf:"bytes,12,opt,name=protocol,proto3" json:"protocol,omitempty"` BaseUrl string `protobuf:"bytes,13,opt,name=base_url,json=baseUrl,proto3" json:"base_url,omitempty"` BasePath string `protobuf:"bytes,14,opt,name=base_path,json=basePath,proto3" json:"base_path,omitempty"` RootUrl string `protobuf:"bytes,15,opt,name=root_url,json=rootUrl,proto3" json:"root_url,omitempty"` ServicePath string `protobuf:"bytes,16,opt,name=service_path,json=servicePath,proto3" json:"service_path,omitempty"` BatchPath string `protobuf:"bytes,17,opt,name=batch_path,json=batchPath,proto3" json:"batch_path,omitempty"` Parameters *Parameters `protobuf:"bytes,18,opt,name=parameters,proto3" json:"parameters,omitempty"` Auth *Auth `protobuf:"bytes,19,opt,name=auth,proto3" json:"auth,omitempty"` Features []string `protobuf:"bytes,20,rep,name=features,proto3" json:"features,omitempty"` Schemas *Schemas `protobuf:"bytes,21,opt,name=schemas,proto3" json:"schemas,omitempty"` Methods *Methods `protobuf:"bytes,22,opt,name=methods,proto3" json:"methods,omitempty"` Resources *Resources `protobuf:"bytes,23,opt,name=resources,proto3" json:"resources,omitempty"` Etag string `protobuf:"bytes,24,opt,name=etag,proto3" json:"etag,omitempty"` OwnerDomain string `protobuf:"bytes,25,opt,name=owner_domain,json=ownerDomain,proto3" json:"owner_domain,omitempty"` OwnerName string `protobuf:"bytes,26,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` VersionModule bool `protobuf:"varint,27,opt,name=version_module,json=versionModule,proto3" json:"version_module,omitempty"` CanonicalName string `protobuf:"bytes,28,opt,name=canonical_name,json=canonicalName,proto3" json:"canonical_name,omitempty"` FullyEncodeReservedExpansion bool `` /* 151-byte string literal not displayed */ PackagePath string `protobuf:"bytes,30,opt,name=package_path,json=packagePath,proto3" json:"package_path,omitempty"` MtlsRootUrl string `protobuf:"bytes,31,opt,name=mtls_root_url,json=mtlsRootUrl,proto3" json:"mtls_root_url,omitempty"` // contains filtered or unexported fields }
func NewDocument ¶
NewDocument creates an object of type Document if possible, returning an error if not.
func ParseDocument ¶
ParseDocument reads a Discovery description from a YAML/JSON representation.
func (*Document) Descriptor
deprecated
func (*Document) GetBasePath ¶
func (*Document) GetBaseUrl ¶
func (*Document) GetBatchPath ¶
func (*Document) GetCanonicalName ¶
func (*Document) GetDescription ¶
func (*Document) GetDiscoveryVersion ¶
func (*Document) GetDocumentationLink ¶
func (*Document) GetFeatures ¶
func (*Document) GetFullyEncodeReservedExpansion ¶
func (*Document) GetMethods ¶
func (*Document) GetMtlsRootUrl ¶
func (*Document) GetOwnerDomain ¶
func (*Document) GetOwnerName ¶
func (*Document) GetPackagePath ¶
func (*Document) GetParameters ¶
func (x *Document) GetParameters() *Parameters
func (*Document) GetProtocol ¶
func (*Document) GetResources ¶
func (*Document) GetRevision ¶
func (*Document) GetRootUrl ¶
func (*Document) GetSchemas ¶
func (*Document) GetServicePath ¶
func (*Document) GetVersion ¶
func (*Document) GetVersionModule ¶
func (*Document) ProtoMessage ¶
func (*Document) ProtoMessage()
func (*Document) ProtoReflect ¶
func (x *Document) ProtoReflect() protoreflect.Message
func (*Document) ResolveReferences ¶
ResolveReferences resolves references found inside Document objects.
type Icons ¶
type Icons struct { X16 string `protobuf:"bytes,1,opt,name=x16,proto3" json:"x16,omitempty"` X32 string `protobuf:"bytes,2,opt,name=x32,proto3" json:"x32,omitempty"` // contains filtered or unexported fields }
Icons that represent the API.
func (*Icons) Descriptor
deprecated
func (*Icons) ProtoMessage ¶
func (*Icons) ProtoMessage()
func (*Icons) ProtoReflect ¶
func (x *Icons) ProtoReflect() protoreflect.Message
func (*Icons) ResolveReferences ¶
ResolveReferences resolves references found inside Icons objects.
type List ¶
type List struct { Kind string `json:"kind"` DiscoveryVersion string `json:"discoveryVersion"` APIs []*API `json:"items"` }
A List represents the results of a call to the apis/list API. https://developers.google.com/discovery/v1/reference/apis/list
type MediaUpload ¶
type MediaUpload struct { Accept []string `protobuf:"bytes,1,rep,name=accept,proto3" json:"accept,omitempty"` MaxSize string `protobuf:"bytes,2,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"` Protocols *Protocols `protobuf:"bytes,3,opt,name=protocols,proto3" json:"protocols,omitempty"` SupportsSubscription bool `protobuf:"varint,4,opt,name=supports_subscription,json=supportsSubscription,proto3" json:"supports_subscription,omitempty"` // contains filtered or unexported fields }
func NewMediaUpload ¶
func NewMediaUpload(in *yaml.Node, context *compiler.Context) (*MediaUpload, error)
NewMediaUpload creates an object of type MediaUpload if possible, returning an error if not.
func (*MediaUpload) Descriptor
deprecated
func (*MediaUpload) Descriptor() ([]byte, []int)
Deprecated: Use MediaUpload.ProtoReflect.Descriptor instead.
func (*MediaUpload) GetAccept ¶
func (x *MediaUpload) GetAccept() []string
func (*MediaUpload) GetMaxSize ¶
func (x *MediaUpload) GetMaxSize() string
func (*MediaUpload) GetProtocols ¶
func (x *MediaUpload) GetProtocols() *Protocols
func (*MediaUpload) GetSupportsSubscription ¶
func (x *MediaUpload) GetSupportsSubscription() bool
func (*MediaUpload) ProtoMessage ¶
func (*MediaUpload) ProtoMessage()
func (*MediaUpload) ProtoReflect ¶
func (x *MediaUpload) ProtoReflect() protoreflect.Message
func (*MediaUpload) Reset ¶
func (x *MediaUpload) Reset()
func (*MediaUpload) ResolveReferences ¶
func (m *MediaUpload) ResolveReferences(root string) (*yaml.Node, error)
ResolveReferences resolves references found inside MediaUpload objects.
func (*MediaUpload) String ¶
func (x *MediaUpload) String() string
func (*MediaUpload) ToRawInfo ¶
func (m *MediaUpload) ToRawInfo() *yaml.Node
ToRawInfo returns a description of MediaUpload suitable for JSON or YAML export.
type Method ¶
type Method struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` HttpMethod string `protobuf:"bytes,3,opt,name=http_method,json=httpMethod,proto3" json:"http_method,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Parameters *Parameters `protobuf:"bytes,5,opt,name=parameters,proto3" json:"parameters,omitempty"` ParameterOrder []string `protobuf:"bytes,6,rep,name=parameter_order,json=parameterOrder,proto3" json:"parameter_order,omitempty"` Request *Request `protobuf:"bytes,7,opt,name=request,proto3" json:"request,omitempty"` Response *Response `protobuf:"bytes,8,opt,name=response,proto3" json:"response,omitempty"` Scopes []string `protobuf:"bytes,9,rep,name=scopes,proto3" json:"scopes,omitempty"` SupportsMediaDownload bool `` /* 128-byte string literal not displayed */ SupportsMediaUpload bool `protobuf:"varint,11,opt,name=supports_media_upload,json=supportsMediaUpload,proto3" json:"supports_media_upload,omitempty"` UseMediaDownloadService bool `` /* 136-byte string literal not displayed */ MediaUpload *MediaUpload `protobuf:"bytes,13,opt,name=media_upload,json=mediaUpload,proto3" json:"media_upload,omitempty"` SupportsSubscription bool `protobuf:"varint,14,opt,name=supports_subscription,json=supportsSubscription,proto3" json:"supports_subscription,omitempty"` FlatPath string `protobuf:"bytes,15,opt,name=flat_path,json=flatPath,proto3" json:"flat_path,omitempty"` EtagRequired bool `protobuf:"varint,16,opt,name=etag_required,json=etagRequired,proto3" json:"etag_required,omitempty"` StreamingType string `protobuf:"bytes,17,opt,name=streaming_type,json=streamingType,proto3" json:"streaming_type,omitempty"` // contains filtered or unexported fields }
func (*Method) Descriptor
deprecated
func (*Method) GetDescription ¶
func (*Method) GetEtagRequired ¶
func (*Method) GetFlatPath ¶
func (*Method) GetHttpMethod ¶
func (*Method) GetMediaUpload ¶
func (x *Method) GetMediaUpload() *MediaUpload
func (*Method) GetParameterOrder ¶
func (*Method) GetParameters ¶
func (x *Method) GetParameters() *Parameters
func (*Method) GetRequest ¶
func (*Method) GetResponse ¶
func (*Method) GetStreamingType ¶
func (*Method) GetSupportsMediaDownload ¶
func (*Method) GetSupportsMediaUpload ¶
func (*Method) GetSupportsSubscription ¶
func (*Method) GetUseMediaDownloadService ¶
func (*Method) ProtoMessage ¶
func (*Method) ProtoMessage()
func (*Method) ProtoReflect ¶
func (x *Method) ProtoReflect() protoreflect.Message
func (*Method) ResolveReferences ¶
ResolveReferences resolves references found inside Method objects.
type Methods ¶
type Methods struct { AdditionalProperties []*NamedMethod `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"` // contains filtered or unexported fields }
func NewMethods ¶
NewMethods creates an object of type Methods if possible, returning an error if not.
func (*Methods) Descriptor
deprecated
func (*Methods) GetAdditionalProperties ¶
func (x *Methods) GetAdditionalProperties() []*NamedMethod
func (*Methods) ProtoMessage ¶
func (*Methods) ProtoMessage()
func (*Methods) ProtoReflect ¶
func (x *Methods) ProtoReflect() protoreflect.Message
func (*Methods) ResolveReferences ¶
ResolveReferences resolves references found inside Methods objects.
type NamedMethod ¶
type NamedMethod struct { // Map key Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Mapped value Value *Method `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Automatically-generated message used to represent maps of Method as ordered (name,value) pairs.
func NewNamedMethod ¶
func NewNamedMethod(in *yaml.Node, context *compiler.Context) (*NamedMethod, error)
NewNamedMethod creates an object of type NamedMethod if possible, returning an error if not.
func (*NamedMethod) Descriptor
deprecated
func (*NamedMethod) Descriptor() ([]byte, []int)
Deprecated: Use NamedMethod.ProtoReflect.Descriptor instead.
func (*NamedMethod) GetName ¶
func (x *NamedMethod) GetName() string
func (*NamedMethod) GetValue ¶
func (x *NamedMethod) GetValue() *Method
func (*NamedMethod) ProtoMessage ¶
func (*NamedMethod) ProtoMessage()
func (*NamedMethod) ProtoReflect ¶
func (x *NamedMethod) ProtoReflect() protoreflect.Message
func (*NamedMethod) Reset ¶
func (x *NamedMethod) Reset()
func (*NamedMethod) ResolveReferences ¶
func (m *NamedMethod) ResolveReferences(root string) (*yaml.Node, error)
ResolveReferences resolves references found inside NamedMethod objects.
func (*NamedMethod) String ¶
func (x *NamedMethod) String() string
func (*NamedMethod) ToRawInfo ¶
func (m *NamedMethod) ToRawInfo() *yaml.Node
ToRawInfo returns a description of NamedMethod suitable for JSON or YAML export.
type NamedParameter ¶
type NamedParameter struct { // Map key Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Mapped value Value *Parameter `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Automatically-generated message used to represent maps of Parameter as ordered (name,value) pairs.
func NewNamedParameter ¶
func NewNamedParameter(in *yaml.Node, context *compiler.Context) (*NamedParameter, error)
NewNamedParameter creates an object of type NamedParameter if possible, returning an error if not.
func (*NamedParameter) Descriptor
deprecated
func (*NamedParameter) Descriptor() ([]byte, []int)
Deprecated: Use NamedParameter.ProtoReflect.Descriptor instead.
func (*NamedParameter) GetName ¶
func (x *NamedParameter) GetName() string
func (*NamedParameter) GetValue ¶
func (x *NamedParameter) GetValue() *Parameter
func (*NamedParameter) ProtoMessage ¶
func (*NamedParameter) ProtoMessage()
func (*NamedParameter) ProtoReflect ¶
func (x *NamedParameter) ProtoReflect() protoreflect.Message
func (*NamedParameter) Reset ¶
func (x *NamedParameter) Reset()
func (*NamedParameter) ResolveReferences ¶
func (m *NamedParameter) ResolveReferences(root string) (*yaml.Node, error)
ResolveReferences resolves references found inside NamedParameter objects.
func (*NamedParameter) String ¶
func (x *NamedParameter) String() string
func (*NamedParameter) ToRawInfo ¶
func (m *NamedParameter) ToRawInfo() *yaml.Node
ToRawInfo returns a description of NamedParameter suitable for JSON or YAML export.
type NamedResource ¶
type NamedResource struct { // Map key Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Mapped value Value *Resource `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Automatically-generated message used to represent maps of Resource as ordered (name,value) pairs.
func NewNamedResource ¶
func NewNamedResource(in *yaml.Node, context *compiler.Context) (*NamedResource, error)
NewNamedResource creates an object of type NamedResource if possible, returning an error if not.
func (*NamedResource) Descriptor
deprecated
func (*NamedResource) Descriptor() ([]byte, []int)
Deprecated: Use NamedResource.ProtoReflect.Descriptor instead.
func (*NamedResource) GetName ¶
func (x *NamedResource) GetName() string
func (*NamedResource) GetValue ¶
func (x *NamedResource) GetValue() *Resource
func (*NamedResource) ProtoMessage ¶
func (*NamedResource) ProtoMessage()
func (*NamedResource) ProtoReflect ¶
func (x *NamedResource) ProtoReflect() protoreflect.Message
func (*NamedResource) Reset ¶
func (x *NamedResource) Reset()
func (*NamedResource) ResolveReferences ¶
func (m *NamedResource) ResolveReferences(root string) (*yaml.Node, error)
ResolveReferences resolves references found inside NamedResource objects.
func (*NamedResource) String ¶
func (x *NamedResource) String() string
func (*NamedResource) ToRawInfo ¶
func (m *NamedResource) ToRawInfo() *yaml.Node
ToRawInfo returns a description of NamedResource suitable for JSON or YAML export.
type NamedSchema ¶
type NamedSchema struct { // Map key Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Mapped value Value *Schema `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Automatically-generated message used to represent maps of Schema as ordered (name,value) pairs.
func NewNamedSchema ¶
func NewNamedSchema(in *yaml.Node, context *compiler.Context) (*NamedSchema, error)
NewNamedSchema creates an object of type NamedSchema if possible, returning an error if not.
func (*NamedSchema) Descriptor
deprecated
func (*NamedSchema) Descriptor() ([]byte, []int)
Deprecated: Use NamedSchema.ProtoReflect.Descriptor instead.
func (*NamedSchema) GetName ¶
func (x *NamedSchema) GetName() string
func (*NamedSchema) GetValue ¶
func (x *NamedSchema) GetValue() *Schema
func (*NamedSchema) ProtoMessage ¶
func (*NamedSchema) ProtoMessage()
func (*NamedSchema) ProtoReflect ¶
func (x *NamedSchema) ProtoReflect() protoreflect.Message
func (*NamedSchema) Reset ¶
func (x *NamedSchema) Reset()
func (*NamedSchema) ResolveReferences ¶
func (m *NamedSchema) ResolveReferences(root string) (*yaml.Node, error)
ResolveReferences resolves references found inside NamedSchema objects.
func (*NamedSchema) String ¶
func (x *NamedSchema) String() string
func (*NamedSchema) ToRawInfo ¶
func (m *NamedSchema) ToRawInfo() *yaml.Node
ToRawInfo returns a description of NamedSchema suitable for JSON or YAML export.
type NamedScope ¶
type NamedScope struct { // Map key Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Mapped value Value *Scope `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Automatically-generated message used to represent maps of Scope as ordered (name,value) pairs.
func NewNamedScope ¶
func NewNamedScope(in *yaml.Node, context *compiler.Context) (*NamedScope, error)
NewNamedScope creates an object of type NamedScope if possible, returning an error if not.
func (*NamedScope) Descriptor
deprecated
func (*NamedScope) Descriptor() ([]byte, []int)
Deprecated: Use NamedScope.ProtoReflect.Descriptor instead.
func (*NamedScope) GetName ¶
func (x *NamedScope) GetName() string
func (*NamedScope) GetValue ¶
func (x *NamedScope) GetValue() *Scope
func (*NamedScope) ProtoMessage ¶
func (*NamedScope) ProtoMessage()
func (*NamedScope) ProtoReflect ¶
func (x *NamedScope) ProtoReflect() protoreflect.Message
func (*NamedScope) Reset ¶
func (x *NamedScope) Reset()
func (*NamedScope) ResolveReferences ¶
func (m *NamedScope) ResolveReferences(root string) (*yaml.Node, error)
ResolveReferences resolves references found inside NamedScope objects.
func (*NamedScope) String ¶
func (x *NamedScope) String() string
func (*NamedScope) ToRawInfo ¶
func (m *NamedScope) ToRawInfo() *yaml.Node
ToRawInfo returns a description of NamedScope suitable for JSON or YAML export.
type Oauth2 ¶
type Oauth2 struct { Scopes *Scopes `protobuf:"bytes,1,opt,name=scopes,proto3" json:"scopes,omitempty"` // contains filtered or unexported fields }
func (*Oauth2) Descriptor
deprecated
func (*Oauth2) ProtoMessage ¶
func (*Oauth2) ProtoMessage()
func (*Oauth2) ProtoReflect ¶
func (x *Oauth2) ProtoReflect() protoreflect.Message
func (*Oauth2) ResolveReferences ¶
ResolveReferences resolves references found inside Oauth2 objects.
type Parameter ¶
type Parameter struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` XRef string `protobuf:"bytes,3,opt,name=_ref,json=Ref,proto3" json:"_ref,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Default string `protobuf:"bytes,5,opt,name=default,proto3" json:"default,omitempty"` Required bool `protobuf:"varint,6,opt,name=required,proto3" json:"required,omitempty"` Format string `protobuf:"bytes,7,opt,name=format,proto3" json:"format,omitempty"` Pattern string `protobuf:"bytes,8,opt,name=pattern,proto3" json:"pattern,omitempty"` Minimum string `protobuf:"bytes,9,opt,name=minimum,proto3" json:"minimum,omitempty"` Maximum string `protobuf:"bytes,10,opt,name=maximum,proto3" json:"maximum,omitempty"` Enum []string `protobuf:"bytes,11,rep,name=enum,proto3" json:"enum,omitempty"` EnumDescriptions []string `protobuf:"bytes,12,rep,name=enum_descriptions,json=enumDescriptions,proto3" json:"enum_descriptions,omitempty"` Repeated bool `protobuf:"varint,13,opt,name=repeated,proto3" json:"repeated,omitempty"` Location string `protobuf:"bytes,14,opt,name=location,proto3" json:"location,omitempty"` Properties *Schemas `protobuf:"bytes,15,opt,name=properties,proto3" json:"properties,omitempty"` AdditionalProperties *Schema `protobuf:"bytes,16,opt,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"` Items *Schema `protobuf:"bytes,17,opt,name=items,proto3" json:"items,omitempty"` Annotations *Annotations `protobuf:"bytes,18,opt,name=annotations,proto3" json:"annotations,omitempty"` // contains filtered or unexported fields }
func NewParameter ¶
NewParameter creates an object of type Parameter if possible, returning an error if not.
func (*Parameter) Descriptor
deprecated
func (*Parameter) GetAdditionalProperties ¶
func (*Parameter) GetAnnotations ¶
func (x *Parameter) GetAnnotations() *Annotations
func (*Parameter) GetDefault ¶
func (*Parameter) GetDescription ¶
func (*Parameter) GetEnumDescriptions ¶
func (*Parameter) GetLocation ¶
func (*Parameter) GetMaximum ¶
func (*Parameter) GetMinimum ¶
func (*Parameter) GetPattern ¶
func (*Parameter) GetProperties ¶
func (*Parameter) GetRepeated ¶
func (*Parameter) GetRequired ¶
func (*Parameter) ProtoMessage ¶
func (*Parameter) ProtoMessage()
func (*Parameter) ProtoReflect ¶
func (x *Parameter) ProtoReflect() protoreflect.Message
func (*Parameter) ResolveReferences ¶
ResolveReferences resolves references found inside Parameter objects.
type Parameters ¶
type Parameters struct { AdditionalProperties []*NamedParameter `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"` // contains filtered or unexported fields }
func NewParameters ¶
func NewParameters(in *yaml.Node, context *compiler.Context) (*Parameters, error)
NewParameters creates an object of type Parameters if possible, returning an error if not.
func (*Parameters) Descriptor
deprecated
func (*Parameters) Descriptor() ([]byte, []int)
Deprecated: Use Parameters.ProtoReflect.Descriptor instead.
func (*Parameters) GetAdditionalProperties ¶
func (x *Parameters) GetAdditionalProperties() []*NamedParameter
func (*Parameters) ProtoMessage ¶
func (*Parameters) ProtoMessage()
func (*Parameters) ProtoReflect ¶
func (x *Parameters) ProtoReflect() protoreflect.Message
func (*Parameters) Reset ¶
func (x *Parameters) Reset()
func (*Parameters) ResolveReferences ¶
func (m *Parameters) ResolveReferences(root string) (*yaml.Node, error)
ResolveReferences resolves references found inside Parameters objects.
func (*Parameters) String ¶
func (x *Parameters) String() string
func (*Parameters) ToRawInfo ¶
func (m *Parameters) ToRawInfo() *yaml.Node
ToRawInfo returns a description of Parameters suitable for JSON or YAML export.
type Protocols ¶
type Protocols struct { Simple *Simple `protobuf:"bytes,1,opt,name=simple,proto3" json:"simple,omitempty"` Resumable *Resumable `protobuf:"bytes,2,opt,name=resumable,proto3" json:"resumable,omitempty"` // contains filtered or unexported fields }
func NewProtocols ¶
NewProtocols creates an object of type Protocols if possible, returning an error if not.
func (*Protocols) Descriptor
deprecated
func (*Protocols) GetResumable ¶
func (*Protocols) ProtoMessage ¶
func (*Protocols) ProtoMessage()
func (*Protocols) ProtoReflect ¶
func (x *Protocols) ProtoReflect() protoreflect.Message
func (*Protocols) ResolveReferences ¶
ResolveReferences resolves references found inside Protocols objects.
type Request ¶
type Request struct { XRef string `protobuf:"bytes,1,opt,name=_ref,json=Ref,proto3" json:"_ref,omitempty"` ParameterName string `protobuf:"bytes,2,opt,name=parameter_name,json=parameterName,proto3" json:"parameter_name,omitempty"` // contains filtered or unexported fields }
func NewRequest ¶
NewRequest creates an object of type Request if possible, returning an error if not.
func (*Request) Descriptor
deprecated
func (*Request) GetParameterName ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
func (*Request) ResolveReferences ¶
ResolveReferences resolves references found inside Request objects.
type Resource ¶
type Resource struct { Methods *Methods `protobuf:"bytes,1,opt,name=methods,proto3" json:"methods,omitempty"` Resources *Resources `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"` // contains filtered or unexported fields }
func NewResource ¶
NewResource creates an object of type Resource if possible, returning an error if not.
func (*Resource) Descriptor
deprecated
func (*Resource) GetMethods ¶
func (*Resource) GetResources ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
func (*Resource) ResolveReferences ¶
ResolveReferences resolves references found inside Resource objects.
type Resources ¶
type Resources struct { AdditionalProperties []*NamedResource `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"` // contains filtered or unexported fields }
func NewResources ¶
NewResources creates an object of type Resources if possible, returning an error if not.
func (*Resources) Descriptor
deprecated
func (*Resources) GetAdditionalProperties ¶
func (x *Resources) GetAdditionalProperties() []*NamedResource
func (*Resources) ProtoMessage ¶
func (*Resources) ProtoMessage()
func (*Resources) ProtoReflect ¶
func (x *Resources) ProtoReflect() protoreflect.Message
func (*Resources) ResolveReferences ¶
ResolveReferences resolves references found inside Resources objects.
type Response ¶
type Response struct { XRef string `protobuf:"bytes,1,opt,name=_ref,json=Ref,proto3" json:"_ref,omitempty"` // contains filtered or unexported fields }
func NewResponse ¶
NewResponse creates an object of type Response if possible, returning an error if not.
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
func (*Response) ResolveReferences ¶
ResolveReferences resolves references found inside Response objects.
type Resumable ¶
type Resumable struct { Multipart bool `protobuf:"varint,1,opt,name=multipart,proto3" json:"multipart,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func NewResumable ¶
NewResumable creates an object of type Resumable if possible, returning an error if not.
func (*Resumable) Descriptor
deprecated
func (*Resumable) GetMultipart ¶
func (*Resumable) ProtoMessage ¶
func (*Resumable) ProtoMessage()
func (*Resumable) ProtoReflect ¶
func (x *Resumable) ProtoReflect() protoreflect.Message
func (*Resumable) ResolveReferences ¶
ResolveReferences resolves references found inside Resumable objects.
type Schema ¶
type Schema struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Default string `protobuf:"bytes,4,opt,name=default,proto3" json:"default,omitempty"` Required bool `protobuf:"varint,5,opt,name=required,proto3" json:"required,omitempty"` Format string `protobuf:"bytes,6,opt,name=format,proto3" json:"format,omitempty"` Pattern string `protobuf:"bytes,7,opt,name=pattern,proto3" json:"pattern,omitempty"` Minimum string `protobuf:"bytes,8,opt,name=minimum,proto3" json:"minimum,omitempty"` Maximum string `protobuf:"bytes,9,opt,name=maximum,proto3" json:"maximum,omitempty"` Enum []string `protobuf:"bytes,10,rep,name=enum,proto3" json:"enum,omitempty"` EnumDescriptions []string `protobuf:"bytes,11,rep,name=enum_descriptions,json=enumDescriptions,proto3" json:"enum_descriptions,omitempty"` Repeated bool `protobuf:"varint,12,opt,name=repeated,proto3" json:"repeated,omitempty"` Location string `protobuf:"bytes,13,opt,name=location,proto3" json:"location,omitempty"` Properties *Schemas `protobuf:"bytes,14,opt,name=properties,proto3" json:"properties,omitempty"` AdditionalProperties *Schema `protobuf:"bytes,15,opt,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"` Items *Schema `protobuf:"bytes,16,opt,name=items,proto3" json:"items,omitempty"` XRef string `protobuf:"bytes,17,opt,name=_ref,json=Ref,proto3" json:"_ref,omitempty"` Annotations *Annotations `protobuf:"bytes,18,opt,name=annotations,proto3" json:"annotations,omitempty"` ReadOnly bool `protobuf:"varint,19,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` // contains filtered or unexported fields }
func (*Schema) Descriptor
deprecated
func (*Schema) GetAdditionalProperties ¶
func (*Schema) GetAnnotations ¶
func (x *Schema) GetAnnotations() *Annotations
func (*Schema) GetDefault ¶
func (*Schema) GetDescription ¶
func (*Schema) GetEnumDescriptions ¶
func (*Schema) GetLocation ¶
func (*Schema) GetMaximum ¶
func (*Schema) GetMinimum ¶
func (*Schema) GetPattern ¶
func (*Schema) GetProperties ¶
func (*Schema) GetReadOnly ¶
func (*Schema) GetRepeated ¶
func (*Schema) GetRequired ¶
func (*Schema) ProtoMessage ¶
func (*Schema) ProtoMessage()
func (*Schema) ProtoReflect ¶
func (x *Schema) ProtoReflect() protoreflect.Message
func (*Schema) ResolveReferences ¶
ResolveReferences resolves references found inside Schema objects.
type Schemas ¶
type Schemas struct { AdditionalProperties []*NamedSchema `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"` // contains filtered or unexported fields }
func NewSchemas ¶
NewSchemas creates an object of type Schemas if possible, returning an error if not.
func (*Schemas) Descriptor
deprecated
func (*Schemas) GetAdditionalProperties ¶
func (x *Schemas) GetAdditionalProperties() []*NamedSchema
func (*Schemas) ProtoMessage ¶
func (*Schemas) ProtoMessage()
func (*Schemas) ProtoReflect ¶
func (x *Schemas) ProtoReflect() protoreflect.Message
func (*Schemas) ResolveReferences ¶
ResolveReferences resolves references found inside Schemas objects.
type Scope ¶
type Scope struct { Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*Scope) Descriptor
deprecated
func (*Scope) GetDescription ¶
func (*Scope) ProtoMessage ¶
func (*Scope) ProtoMessage()
func (*Scope) ProtoReflect ¶
func (x *Scope) ProtoReflect() protoreflect.Message
func (*Scope) ResolveReferences ¶
ResolveReferences resolves references found inside Scope objects.
type Scopes ¶
type Scopes struct { AdditionalProperties []*NamedScope `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"` // contains filtered or unexported fields }
func (*Scopes) Descriptor
deprecated
func (*Scopes) GetAdditionalProperties ¶
func (x *Scopes) GetAdditionalProperties() []*NamedScope
func (*Scopes) ProtoMessage ¶
func (*Scopes) ProtoMessage()
func (*Scopes) ProtoReflect ¶
func (x *Scopes) ProtoReflect() protoreflect.Message
func (*Scopes) ResolveReferences ¶
ResolveReferences resolves references found inside Scopes objects.
type Simple ¶
type Simple struct { Multipart bool `protobuf:"varint,1,opt,name=multipart,proto3" json:"multipart,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*Simple) Descriptor
deprecated
func (*Simple) GetMultipart ¶
func (*Simple) ProtoMessage ¶
func (*Simple) ProtoMessage()
func (*Simple) ProtoReflect ¶
func (x *Simple) ProtoReflect() protoreflect.Message
func (*Simple) ResolveReferences ¶
ResolveReferences resolves references found inside Simple objects.
type StringArray ¶
type StringArray struct { Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func NewStringArray ¶
func NewStringArray(in *yaml.Node, context *compiler.Context) (*StringArray, error)
NewStringArray creates an object of type StringArray if possible, returning an error if not.
func (*StringArray) Descriptor
deprecated
func (*StringArray) Descriptor() ([]byte, []int)
Deprecated: Use StringArray.ProtoReflect.Descriptor instead.
func (*StringArray) GetValue ¶
func (x *StringArray) GetValue() []string
func (*StringArray) ProtoMessage ¶
func (*StringArray) ProtoMessage()
func (*StringArray) ProtoReflect ¶
func (x *StringArray) ProtoReflect() protoreflect.Message
func (*StringArray) Reset ¶
func (x *StringArray) Reset()
func (*StringArray) ResolveReferences ¶
func (m *StringArray) ResolveReferences(root string) (*yaml.Node, error)
ResolveReferences resolves references found inside StringArray objects.
func (*StringArray) String ¶
func (x *StringArray) String() string
func (*StringArray) ToRawInfo ¶
func (m *StringArray) ToRawInfo() *yaml.Node
ToRawInfo returns a description of StringArray suitable for JSON or YAML export.