Documentation
¶
Index ¶
- Constants
- func NewLiveTrafficLogPolicy() policy.Policy
- type Client
- type CorrelationIDPolicy
- type MSGraphClient
- func (client *MSGraphClient) Create(ctx context.Context, url string, apiVersion string, body interface{}, ...) (interface{}, error)
- func (client *MSGraphClient) Delete(ctx context.Context, url string, apiVersion string, options RequestOptions) error
- func (client *MSGraphClient) List(ctx context.Context, url string, apiVersion string, options RequestOptions) (interface{}, error)
- func (client *MSGraphClient) Read(ctx context.Context, url string, apiVersion string, options RequestOptions) (interface{}, error)
- func (client *MSGraphClient) Update(ctx context.Context, url string, apiVersion string, body interface{}, ...) (interface{}, error)
- type Option
- type RequestOptions
- type UserAgentPolicy
Constants ¶
View Source
const (
// HeaderCorrelationRequestID is the Azure extension header to set a user-specified correlation request ID.
HeaderCorrelationRequestID = "x-ms-correlation-request-id"
)
View Source
const (
HeaderUserAgent = "User-Agent"
)
Variables ¶
This section is empty.
Functions ¶
func NewLiveTrafficLogPolicy ¶
Types ¶
type Client ¶
type Client struct {
// StopContext is used for propagating control from Terraform Core (e.g. Ctrl/Cmd+C)
StopContext context.Context
MSGraphClient *MSGraphClient
Option *Option
}
type CorrelationIDPolicy ¶
type CorrelationIDPolicy struct {
CorrelationRequestID string
}
type MSGraphClient ¶
type MSGraphClient struct {
// contains filtered or unexported fields
}
func NewMSGraphClient ¶
func NewMSGraphClient(credential azcore.TokenCredential, opt *policy.ClientOptions) (*MSGraphClient, error)
func (*MSGraphClient) Create ¶
func (client *MSGraphClient) Create(ctx context.Context, url string, apiVersion string, body interface{}, options RequestOptions) (interface{}, error)
func (*MSGraphClient) Delete ¶
func (client *MSGraphClient) Delete(ctx context.Context, url string, apiVersion string, options RequestOptions) error
func (*MSGraphClient) List ¶
func (client *MSGraphClient) List(ctx context.Context, url string, apiVersion string, options RequestOptions) (interface{}, error)
func (*MSGraphClient) Read ¶
func (client *MSGraphClient) Read(ctx context.Context, url string, apiVersion string, options RequestOptions) (interface{}, error)
func (*MSGraphClient) Update ¶
func (client *MSGraphClient) Update(ctx context.Context, url string, apiVersion string, body interface{}, options RequestOptions) (interface{}, error)
type Option ¶
type Option struct {
Cred azcore.TokenCredential
ApplicationUserAgent string
DisableCorrelationRequestID bool
CloudCfg cloud.Configuration
CustomCorrelationRequestID string
TenantId string
}
type RequestOptions ¶
func DefaultRequestOptions ¶
func DefaultRequestOptions() RequestOptions
func NewRequestOptions ¶
func NewRequestOptions(headers map[string]string, queryParameters map[string][]string) RequestOptions
Click to show internal directories.
Click to hide internal directories.