Documentation ¶
Index ¶
- func PossibleValuesForAuthorizationScopeFilter() []string
- func PossibleValuesForFacetSortOrder() []string
- func PossibleValuesForResultFormat() []string
- func PossibleValuesForResultTruncated() []string
- type AuthorizationScopeFilter
- type ErrorDetails
- type Facet
- type FacetError
- type FacetRequest
- type FacetRequestOptions
- type FacetResult
- type FacetSortOrder
- type QueryRequest
- type QueryRequestOptions
- type QueryResponse
- type RawFacetImpl
- type ResourcesClient
- type ResourcesOperationResponse
- type ResultFormat
- type ResultTruncated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAuthorizationScopeFilter ¶
func PossibleValuesForAuthorizationScopeFilter() []string
func PossibleValuesForFacetSortOrder ¶
func PossibleValuesForFacetSortOrder() []string
func PossibleValuesForResultFormat ¶
func PossibleValuesForResultFormat() []string
func PossibleValuesForResultTruncated ¶
func PossibleValuesForResultTruncated() []string
Types ¶
type AuthorizationScopeFilter ¶
type AuthorizationScopeFilter string
const ( AuthorizationScopeFilterAtScopeAboveAndBelow AuthorizationScopeFilter = "AtScopeAboveAndBelow" AuthorizationScopeFilterAtScopeAndAbove AuthorizationScopeFilter = "AtScopeAndAbove" AuthorizationScopeFilterAtScopeAndBelow AuthorizationScopeFilter = "AtScopeAndBelow" AuthorizationScopeFilterAtScopeExact AuthorizationScopeFilter = "AtScopeExact" )
func (*AuthorizationScopeFilter) UnmarshalJSON ¶
func (s *AuthorizationScopeFilter) UnmarshalJSON(bytes []byte) error
type ErrorDetails ¶
type FacetError ¶
type FacetError struct { Errors []ErrorDetails `json:"errors"` // Fields inherited from Facet Expression string `json:"expression"` }
func (FacetError) MarshalJSON ¶
func (s FacetError) MarshalJSON() ([]byte, error)
type FacetRequest ¶
type FacetRequest struct { Expression string `json:"expression"` Options *FacetRequestOptions `json:"options,omitempty"` }
type FacetRequestOptions ¶
type FacetRequestOptions struct { Filter *string `json:"filter,omitempty"` SortBy *string `json:"sortBy,omitempty"` SortOrder *FacetSortOrder `json:"sortOrder,omitempty"` Top *int64 `json:"$top,omitempty"` }
type FacetResult ¶
type FacetResult struct { Count int64 `json:"count"` Data interface{} `json:"data"` TotalRecords int64 `json:"totalRecords"` // Fields inherited from Facet Expression string `json:"expression"` }
func (FacetResult) MarshalJSON ¶
func (s FacetResult) MarshalJSON() ([]byte, error)
type FacetSortOrder ¶
type FacetSortOrder string
const ( FacetSortOrderAsc FacetSortOrder = "asc" FacetSortOrderDesc FacetSortOrder = "desc" )
func (*FacetSortOrder) UnmarshalJSON ¶
func (s *FacetSortOrder) UnmarshalJSON(bytes []byte) error
type QueryRequest ¶
type QueryRequest struct { Facets *[]FacetRequest `json:"facets,omitempty"` ManagementGroups *[]string `json:"managementGroups,omitempty"` Options *QueryRequestOptions `json:"options,omitempty"` Query string `json:"query"` Subscriptions *[]string `json:"subscriptions,omitempty"` }
type QueryRequestOptions ¶
type QueryRequestOptions struct { AllowPartialScopes *bool `json:"allowPartialScopes,omitempty"` AuthorizationScopeFilter *AuthorizationScopeFilter `json:"authorizationScopeFilter,omitempty"` ResultFormat *ResultFormat `json:"resultFormat,omitempty"` Skip *int64 `json:"$skip,omitempty"` SkipToken *string `json:"$skipToken,omitempty"` Top *int64 `json:"$top,omitempty"` }
type QueryResponse ¶
type QueryResponse struct { Count int64 `json:"count"` Data interface{} `json:"data"` Facets *[]Facet `json:"facets,omitempty"` ResultTruncated ResultTruncated `json:"resultTruncated"` SkipToken *string `json:"$skipToken,omitempty"` TotalRecords int64 `json:"totalRecords"` }
func (*QueryResponse) UnmarshalJSON ¶
func (s *QueryResponse) UnmarshalJSON(bytes []byte) error
type RawFacetImpl ¶
RawModeOfTransitImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).
type ResourcesClient ¶
type ResourcesClient struct {
Client *resourcemanager.Client
}
func NewResourcesClientWithBaseURI ¶
func NewResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*ResourcesClient, error)
func (ResourcesClient) Resources ¶
func (c ResourcesClient) Resources(ctx context.Context, input QueryRequest) (result ResourcesOperationResponse, err error)
Resources ...
type ResourcesOperationResponse ¶
type ResourcesOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *QueryResponse }
type ResultFormat ¶
type ResultFormat string
const ( ResultFormatObjectArray ResultFormat = "objectArray" ResultFormatTable ResultFormat = "table" )
func (*ResultFormat) UnmarshalJSON ¶
func (s *ResultFormat) UnmarshalJSON(bytes []byte) error
type ResultTruncated ¶
type ResultTruncated string
const ( ResultTruncatedFalse ResultTruncated = "false" ResultTruncatedTrue ResultTruncated = "true" )
func (*ResultTruncated) UnmarshalJSON ¶
func (s *ResultTruncated) UnmarshalJSON(bytes []byte) error
Click to show internal directories.
Click to hide internal directories.