Documentation ¶
Index ¶
- func PossibleValuesForProtocol() []string
- func PossibleValuesForStatus() []string
- func PossibleValuesForStatusReason() []string
- func ValidateJitNetworkAccessPolicyID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateProviderLocationID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type InitiateOperationResponse
- type JitNetworkAccessPoliciesClient
- func (c JitNetworkAccessPoliciesClient) CreateOrUpdate(ctx context.Context, id JitNetworkAccessPolicyId, input JitNetworkAccessPolicy) (result CreateOrUpdateOperationResponse, err error)
- func (c JitNetworkAccessPoliciesClient) Delete(ctx context.Context, id JitNetworkAccessPolicyId) (result DeleteOperationResponse, err error)
- func (c JitNetworkAccessPoliciesClient) Get(ctx context.Context, id JitNetworkAccessPolicyId) (result GetOperationResponse, err error)
- func (c JitNetworkAccessPoliciesClient) Initiate(ctx context.Context, id JitNetworkAccessPolicyId, ...) (result InitiateOperationResponse, err error)
- func (c JitNetworkAccessPoliciesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
- func (c JitNetworkAccessPoliciesClient) ListByRegion(ctx context.Context, id LocationId) (result ListByRegionOperationResponse, err error)
- func (c JitNetworkAccessPoliciesClient) ListByRegionComplete(ctx context.Context, id LocationId) (ListByRegionCompleteResult, error)
- func (c JitNetworkAccessPoliciesClient) ListByRegionCompleteMatchingPredicate(ctx context.Context, id LocationId, ...) (result ListByRegionCompleteResult, err error)
- func (c JitNetworkAccessPoliciesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegion(ctx context.Context, id ProviderLocationId) (result ListByResourceGroupAndRegionOperationResponse, err error)
- func (c JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionComplete(ctx context.Context, id ProviderLocationId) (ListByResourceGroupAndRegionCompleteResult, error)
- func (c JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionCompleteMatchingPredicate(ctx context.Context, id ProviderLocationId, ...) (result ListByResourceGroupAndRegionCompleteResult, err error)
- func (c JitNetworkAccessPoliciesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
- func (c JitNetworkAccessPoliciesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c JitNetworkAccessPoliciesClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
- func (c JitNetworkAccessPoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListCompleteResult, err error)
- type JitNetworkAccessPolicy
- type JitNetworkAccessPolicyId
- func NewJitNetworkAccessPolicyID(subscriptionId string, resourceGroupName string, locationName string, ...) JitNetworkAccessPolicyId
- func ParseJitNetworkAccessPolicyID(input string) (*JitNetworkAccessPolicyId, error)
- func ParseJitNetworkAccessPolicyIDInsensitively(input string) (*JitNetworkAccessPolicyId, error)
- type JitNetworkAccessPolicyInitiatePort
- type JitNetworkAccessPolicyInitiateRequest
- type JitNetworkAccessPolicyInitiateVirtualMachine
- type JitNetworkAccessPolicyOperationPredicate
- type JitNetworkAccessPolicyProperties
- type JitNetworkAccessPolicyVirtualMachine
- type JitNetworkAccessPortRule
- type JitNetworkAccessRequest
- type JitNetworkAccessRequestPort
- type JitNetworkAccessRequestVirtualMachine
- type ListByRegionCompleteResult
- type ListByRegionOperationResponse
- type ListByResourceGroupAndRegionCompleteResult
- type ListByResourceGroupAndRegionOperationResponse
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type LocationId
- type Protocol
- type ProviderLocationId
- type Status
- type StatusReason
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForProtocol ¶
func PossibleValuesForProtocol() []string
func PossibleValuesForStatus ¶
func PossibleValuesForStatus() []string
func PossibleValuesForStatusReason ¶
func PossibleValuesForStatusReason() []string
func ValidateJitNetworkAccessPolicyID ¶
func ValidateJitNetworkAccessPolicyID(input interface{}, key string) (warnings []string, errors []error)
ValidateJitNetworkAccessPolicyID checks that 'input' can be parsed as a Jit Network Access Policy ID
func ValidateLocationID ¶
ValidateLocationID checks that 'input' can be parsed as a Location ID
func ValidateProviderLocationID ¶
ValidateProviderLocationID checks that 'input' can be parsed as a Provider Location ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *JitNetworkAccessPolicy }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *JitNetworkAccessPolicy }
type InitiateOperationResponse ¶
type InitiateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *JitNetworkAccessRequest }
type JitNetworkAccessPoliciesClient ¶
type JitNetworkAccessPoliciesClient struct {
Client *resourcemanager.Client
}
func NewJitNetworkAccessPoliciesClientWithBaseURI ¶
func NewJitNetworkAccessPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*JitNetworkAccessPoliciesClient, error)
func (JitNetworkAccessPoliciesClient) CreateOrUpdate ¶
func (c JitNetworkAccessPoliciesClient) CreateOrUpdate(ctx context.Context, id JitNetworkAccessPolicyId, input JitNetworkAccessPolicy) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (JitNetworkAccessPoliciesClient) Delete ¶
func (c JitNetworkAccessPoliciesClient) Delete(ctx context.Context, id JitNetworkAccessPolicyId) (result DeleteOperationResponse, err error)
Delete ...
func (JitNetworkAccessPoliciesClient) Get ¶
func (c JitNetworkAccessPoliciesClient) Get(ctx context.Context, id JitNetworkAccessPolicyId) (result GetOperationResponse, err error)
Get ...
func (JitNetworkAccessPoliciesClient) Initiate ¶
func (c JitNetworkAccessPoliciesClient) Initiate(ctx context.Context, id JitNetworkAccessPolicyId, input JitNetworkAccessPolicyInitiateRequest) (result InitiateOperationResponse, err error)
Initiate ...
func (JitNetworkAccessPoliciesClient) List ¶
func (c JitNetworkAccessPoliciesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
List ...
func (JitNetworkAccessPoliciesClient) ListByRegion ¶
func (c JitNetworkAccessPoliciesClient) ListByRegion(ctx context.Context, id LocationId) (result ListByRegionOperationResponse, err error)
ListByRegion ...
func (JitNetworkAccessPoliciesClient) ListByRegionComplete ¶
func (c JitNetworkAccessPoliciesClient) ListByRegionComplete(ctx context.Context, id LocationId) (ListByRegionCompleteResult, error)
ListByRegionComplete retrieves all the results into a single object
func (JitNetworkAccessPoliciesClient) ListByRegionCompleteMatchingPredicate ¶
func (c JitNetworkAccessPoliciesClient) ListByRegionCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate JitNetworkAccessPolicyOperationPredicate) (result ListByRegionCompleteResult, err error)
ListByRegionCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (JitNetworkAccessPoliciesClient) ListByResourceGroup ¶
func (c JitNetworkAccessPoliciesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegion ¶
func (c JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegion(ctx context.Context, id ProviderLocationId) (result ListByResourceGroupAndRegionOperationResponse, err error)
ListByResourceGroupAndRegion ...
func (JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionComplete ¶
func (c JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionComplete(ctx context.Context, id ProviderLocationId) (ListByResourceGroupAndRegionCompleteResult, error)
ListByResourceGroupAndRegionComplete retrieves all the results into a single object
func (JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionCompleteMatchingPredicate ¶
func (c JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionCompleteMatchingPredicate(ctx context.Context, id ProviderLocationId, predicate JitNetworkAccessPolicyOperationPredicate) (result ListByResourceGroupAndRegionCompleteResult, err error)
ListByResourceGroupAndRegionCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (JitNetworkAccessPoliciesClient) ListByResourceGroupComplete ¶
func (c JitNetworkAccessPoliciesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (JitNetworkAccessPoliciesClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c JitNetworkAccessPoliciesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate JitNetworkAccessPolicyOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (JitNetworkAccessPoliciesClient) ListComplete ¶
func (c JitNetworkAccessPoliciesClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (JitNetworkAccessPoliciesClient) ListCompleteMatchingPredicate ¶
func (c JitNetworkAccessPoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate JitNetworkAccessPolicyOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type JitNetworkAccessPolicy ¶
type JitNetworkAccessPolicyId ¶
type JitNetworkAccessPolicyId struct { SubscriptionId string ResourceGroupName string LocationName string JitNetworkAccessPolicyName string }
JitNetworkAccessPolicyId is a struct representing the Resource ID for a Jit Network Access Policy
func NewJitNetworkAccessPolicyID ¶
func NewJitNetworkAccessPolicyID(subscriptionId string, resourceGroupName string, locationName string, jitNetworkAccessPolicyName string) JitNetworkAccessPolicyId
NewJitNetworkAccessPolicyID returns a new JitNetworkAccessPolicyId struct
func ParseJitNetworkAccessPolicyID ¶
func ParseJitNetworkAccessPolicyID(input string) (*JitNetworkAccessPolicyId, error)
ParseJitNetworkAccessPolicyID parses 'input' into a JitNetworkAccessPolicyId
func ParseJitNetworkAccessPolicyIDInsensitively ¶
func ParseJitNetworkAccessPolicyIDInsensitively(input string) (*JitNetworkAccessPolicyId, error)
ParseJitNetworkAccessPolicyIDInsensitively parses 'input' case-insensitively into a JitNetworkAccessPolicyId note: this method should only be used for API response data and not user input
func (*JitNetworkAccessPolicyId) FromParseResult ¶
func (id *JitNetworkAccessPolicyId) FromParseResult(input resourceids.ParseResult) error
func (JitNetworkAccessPolicyId) ID ¶
func (id JitNetworkAccessPolicyId) ID() string
ID returns the formatted Jit Network Access Policy ID
func (JitNetworkAccessPolicyId) Segments ¶
func (id JitNetworkAccessPolicyId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Jit Network Access Policy ID
func (JitNetworkAccessPolicyId) String ¶
func (id JitNetworkAccessPolicyId) String() string
String returns a human-readable description of this Jit Network Access Policy ID
type JitNetworkAccessPolicyInitiatePort ¶
type JitNetworkAccessPolicyInitiatePort struct { AllowedSourceAddressPrefix *string `json:"allowedSourceAddressPrefix,omitempty"` EndTimeUtc string `json:"endTimeUtc"` Number int64 `json:"number"` }
func (*JitNetworkAccessPolicyInitiatePort) GetEndTimeUtcAsTime ¶
func (o *JitNetworkAccessPolicyInitiatePort) GetEndTimeUtcAsTime() (*time.Time, error)
func (*JitNetworkAccessPolicyInitiatePort) SetEndTimeUtcAsTime ¶
func (o *JitNetworkAccessPolicyInitiatePort) SetEndTimeUtcAsTime(input time.Time)
type JitNetworkAccessPolicyInitiateRequest ¶
type JitNetworkAccessPolicyInitiateRequest struct { Justification *string `json:"justification,omitempty"` VirtualMachines []JitNetworkAccessPolicyInitiateVirtualMachine `json:"virtualMachines"` }
type JitNetworkAccessPolicyInitiateVirtualMachine ¶
type JitNetworkAccessPolicyInitiateVirtualMachine struct { Id string `json:"id"` Ports []JitNetworkAccessPolicyInitiatePort `json:"ports"` }
type JitNetworkAccessPolicyOperationPredicate ¶
type JitNetworkAccessPolicyOperationPredicate struct { Id *string Kind *string Location *string Name *string Type *string }
func (JitNetworkAccessPolicyOperationPredicate) Matches ¶
func (p JitNetworkAccessPolicyOperationPredicate) Matches(input JitNetworkAccessPolicy) bool
type JitNetworkAccessPolicyProperties ¶
type JitNetworkAccessPolicyProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` Requests *[]JitNetworkAccessRequest `json:"requests,omitempty"` VirtualMachines []JitNetworkAccessPolicyVirtualMachine `json:"virtualMachines"` }
type JitNetworkAccessPolicyVirtualMachine ¶
type JitNetworkAccessPolicyVirtualMachine struct { Id string `json:"id"` Ports []JitNetworkAccessPortRule `json:"ports"` PublicIPAddress *string `json:"publicIpAddress,omitempty"` }
type JitNetworkAccessPortRule ¶
type JitNetworkAccessPortRule struct { AllowedSourceAddressPrefix *string `json:"allowedSourceAddressPrefix,omitempty"` AllowedSourceAddressPrefixes *[]string `json:"allowedSourceAddressPrefixes,omitempty"` MaxRequestAccessDuration string `json:"maxRequestAccessDuration"` Number int64 `json:"number"` Protocol Protocol `json:"protocol"` }
type JitNetworkAccessRequest ¶
type JitNetworkAccessRequest struct { Justification *string `json:"justification,omitempty"` Requestor string `json:"requestor"` StartTimeUtc string `json:"startTimeUtc"` VirtualMachines []JitNetworkAccessRequestVirtualMachine `json:"virtualMachines"` }
func (*JitNetworkAccessRequest) GetStartTimeUtcAsTime ¶
func (o *JitNetworkAccessRequest) GetStartTimeUtcAsTime() (*time.Time, error)
func (*JitNetworkAccessRequest) SetStartTimeUtcAsTime ¶
func (o *JitNetworkAccessRequest) SetStartTimeUtcAsTime(input time.Time)
type JitNetworkAccessRequestPort ¶
type JitNetworkAccessRequestPort struct { AllowedSourceAddressPrefix *string `json:"allowedSourceAddressPrefix,omitempty"` AllowedSourceAddressPrefixes *[]string `json:"allowedSourceAddressPrefixes,omitempty"` EndTimeUtc string `json:"endTimeUtc"` MappedPort *int64 `json:"mappedPort,omitempty"` Number int64 `json:"number"` Status Status `json:"status"` StatusReason StatusReason `json:"statusReason"` }
func (*JitNetworkAccessRequestPort) GetEndTimeUtcAsTime ¶
func (o *JitNetworkAccessRequestPort) GetEndTimeUtcAsTime() (*time.Time, error)
func (*JitNetworkAccessRequestPort) SetEndTimeUtcAsTime ¶
func (o *JitNetworkAccessRequestPort) SetEndTimeUtcAsTime(input time.Time)
type JitNetworkAccessRequestVirtualMachine ¶
type JitNetworkAccessRequestVirtualMachine struct { Id string `json:"id"` Ports []JitNetworkAccessRequestPort `json:"ports"` }
type ListByRegionCompleteResult ¶
type ListByRegionCompleteResult struct { LatestHttpResponse *http.Response Items []JitNetworkAccessPolicy }
type ListByRegionOperationResponse ¶
type ListByRegionOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]JitNetworkAccessPolicy }
type ListByResourceGroupAndRegionCompleteResult ¶
type ListByResourceGroupAndRegionCompleteResult struct { LatestHttpResponse *http.Response Items []JitNetworkAccessPolicy }
type ListByResourceGroupAndRegionOperationResponse ¶
type ListByResourceGroupAndRegionOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]JitNetworkAccessPolicy }
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct { LatestHttpResponse *http.Response Items []JitNetworkAccessPolicy }
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]JitNetworkAccessPolicy }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []JitNetworkAccessPolicy }
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]JitNetworkAccessPolicy }
type LocationId ¶
LocationId is a struct representing the Resource ID for a Location
func NewLocationID ¶
func NewLocationID(subscriptionId string, locationName string) LocationId
NewLocationID returns a new LocationId struct
func ParseLocationID ¶
func ParseLocationID(input string) (*LocationId, error)
ParseLocationID parses 'input' into a LocationId
func ParseLocationIDInsensitively ¶
func ParseLocationIDInsensitively(input string) (*LocationId, error)
ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId note: this method should only be used for API response data and not user input
func (*LocationId) FromParseResult ¶
func (id *LocationId) FromParseResult(input resourceids.ParseResult) error
func (LocationId) Segments ¶
func (id LocationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Location ID
func (LocationId) String ¶
func (id LocationId) String() string
String returns a human-readable description of this Location ID
type ProviderLocationId ¶
type ProviderLocationId struct { SubscriptionId string ResourceGroupName string LocationName string }
ProviderLocationId is a struct representing the Resource ID for a Provider Location
func NewProviderLocationID ¶
func NewProviderLocationID(subscriptionId string, resourceGroupName string, locationName string) ProviderLocationId
NewProviderLocationID returns a new ProviderLocationId struct
func ParseProviderLocationID ¶
func ParseProviderLocationID(input string) (*ProviderLocationId, error)
ParseProviderLocationID parses 'input' into a ProviderLocationId
func ParseProviderLocationIDInsensitively ¶
func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, error)
ParseProviderLocationIDInsensitively parses 'input' case-insensitively into a ProviderLocationId note: this method should only be used for API response data and not user input
func (*ProviderLocationId) FromParseResult ¶
func (id *ProviderLocationId) FromParseResult(input resourceids.ParseResult) error
func (ProviderLocationId) ID ¶
func (id ProviderLocationId) ID() string
ID returns the formatted Provider Location ID
func (ProviderLocationId) Segments ¶
func (id ProviderLocationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Provider Location ID
func (ProviderLocationId) String ¶
func (id ProviderLocationId) String() string
String returns a human-readable description of this Provider Location ID
type StatusReason ¶
type StatusReason string
const ( StatusReasonExpired StatusReason = "Expired" StatusReasonNewerRequestInitiated StatusReason = "NewerRequestInitiated" StatusReasonUserRequested StatusReason = "UserRequested" )
func (*StatusReason) UnmarshalJSON ¶ added in v0.20240228.1142829
func (s *StatusReason) UnmarshalJSON(bytes []byte) error
Source Files ¶
- client.go
- constants.go
- id_jitnetworkaccesspolicy.go
- id_location.go
- id_providerlocation.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_initiate.go
- method_list.go
- method_listbyregion.go
- method_listbyresourcegroup.go
- method_listbyresourcegroupandregion.go
- model_jitnetworkaccesspolicy.go
- model_jitnetworkaccesspolicyinitiateport.go
- model_jitnetworkaccesspolicyinitiaterequest.go
- model_jitnetworkaccesspolicyinitiatevirtualmachine.go
- model_jitnetworkaccesspolicyproperties.go
- model_jitnetworkaccesspolicyvirtualmachine.go
- model_jitnetworkaccessportrule.go
- model_jitnetworkaccessrequest.go
- model_jitnetworkaccessrequestport.go
- model_jitnetworkaccessrequestvirtualmachine.go
- predicates.go
- version.go