Documentation ¶
Overview ¶
Package mtlsv1 : Operations and models for the MtlsV1 service
Index ¶
- Constants
- func GetServiceURLForRegion(region string) (string, error)
- func UnmarshalAccessAppResp(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalAccessCertResp(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalAccessCertSettingsInputArray(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalAccessCertSettingsResp(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalAccessOrgResp(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalAccessOrgRespResult(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalAccessPolicyResp(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalAppResult(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalCertResult(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalCertSettingsResult(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalCreateAccessAppResp(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalCreateAccessAppRespResult(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalDeleteAccessAppResp(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalDeleteAccessAppRespResult(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalDeleteAccessCertResp(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalDeleteAccessCertRespResult(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalDeleteAccessPolicyResp(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalDeleteAccessPolicyRespResult(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalListAccessAppsResp(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalListAccessCertsResp(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalListAccessPoliciesResp(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalPolicyCnRuleCommonName(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalPolicyResult(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalPolicyRule(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalPolicyRulePolicyCertRule(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalPolicyRulePolicyCnRule(m map[string]json.RawMessage, result interface{}) (err error)
- type AccessAppResp
- type AccessCertResp
- type AccessCertSettingsInputArray
- type AccessCertSettingsResp
- type AccessOrgResp
- type AccessOrgRespResult
- type AccessPolicyResp
- type AppResult
- type CertResult
- type CertSettingsResult
- type CreateAccessAppResp
- type CreateAccessAppRespResult
- type CreateAccessApplicationOptions
- func (_options *CreateAccessApplicationOptions) SetDomain(domain string) *CreateAccessApplicationOptions
- func (options *CreateAccessApplicationOptions) SetHeaders(param map[string]string) *CreateAccessApplicationOptions
- func (_options *CreateAccessApplicationOptions) SetName(name string) *CreateAccessApplicationOptions
- func (_options *CreateAccessApplicationOptions) SetSessionDuration(sessionDuration string) *CreateAccessApplicationOptions
- func (_options *CreateAccessApplicationOptions) SetZoneID(zoneID string) *CreateAccessApplicationOptions
- type CreateAccessCertificateOptions
- func (_options *CreateAccessCertificateOptions) SetAssociatedHostnames(associatedHostnames []string) *CreateAccessCertificateOptions
- func (_options *CreateAccessCertificateOptions) SetCertificate(certificate string) *CreateAccessCertificateOptions
- func (options *CreateAccessCertificateOptions) SetHeaders(param map[string]string) *CreateAccessCertificateOptions
- func (_options *CreateAccessCertificateOptions) SetName(name string) *CreateAccessCertificateOptions
- func (_options *CreateAccessCertificateOptions) SetZoneID(zoneID string) *CreateAccessCertificateOptions
- type CreateAccessOrganizationOptions
- func (_options *CreateAccessOrganizationOptions) SetAuthDomain(authDomain string) *CreateAccessOrganizationOptions
- func (options *CreateAccessOrganizationOptions) SetHeaders(param map[string]string) *CreateAccessOrganizationOptions
- func (_options *CreateAccessOrganizationOptions) SetName(name string) *CreateAccessOrganizationOptions
- type CreateAccessPolicyOptions
- func (_options *CreateAccessPolicyOptions) SetAppID(appID string) *CreateAccessPolicyOptions
- func (_options *CreateAccessPolicyOptions) SetDecision(decision string) *CreateAccessPolicyOptions
- func (options *CreateAccessPolicyOptions) SetHeaders(param map[string]string) *CreateAccessPolicyOptions
- func (_options *CreateAccessPolicyOptions) SetInclude(include []PolicyRuleIntf) *CreateAccessPolicyOptions
- func (_options *CreateAccessPolicyOptions) SetName(name string) *CreateAccessPolicyOptions
- func (_options *CreateAccessPolicyOptions) SetZoneID(zoneID string) *CreateAccessPolicyOptions
- type DeleteAccessAppResp
- type DeleteAccessAppRespResult
- type DeleteAccessApplicationOptions
- func (_options *DeleteAccessApplicationOptions) SetAppID(appID string) *DeleteAccessApplicationOptions
- func (options *DeleteAccessApplicationOptions) SetHeaders(param map[string]string) *DeleteAccessApplicationOptions
- func (_options *DeleteAccessApplicationOptions) SetZoneID(zoneID string) *DeleteAccessApplicationOptions
- type DeleteAccessCertResp
- type DeleteAccessCertRespResult
- type DeleteAccessCertificateOptions
- func (_options *DeleteAccessCertificateOptions) SetCertID(certID string) *DeleteAccessCertificateOptions
- func (options *DeleteAccessCertificateOptions) SetHeaders(param map[string]string) *DeleteAccessCertificateOptions
- func (_options *DeleteAccessCertificateOptions) SetZoneID(zoneID string) *DeleteAccessCertificateOptions
- type DeleteAccessPolicyOptions
- func (_options *DeleteAccessPolicyOptions) SetAppID(appID string) *DeleteAccessPolicyOptions
- func (options *DeleteAccessPolicyOptions) SetHeaders(param map[string]string) *DeleteAccessPolicyOptions
- func (_options *DeleteAccessPolicyOptions) SetPolicyID(policyID string) *DeleteAccessPolicyOptions
- func (_options *DeleteAccessPolicyOptions) SetZoneID(zoneID string) *DeleteAccessPolicyOptions
- type DeleteAccessPolicyResp
- type DeleteAccessPolicyRespResult
- type GetAccessApplicationOptions
- func (_options *GetAccessApplicationOptions) SetAppID(appID string) *GetAccessApplicationOptions
- func (options *GetAccessApplicationOptions) SetHeaders(param map[string]string) *GetAccessApplicationOptions
- func (_options *GetAccessApplicationOptions) SetZoneID(zoneID string) *GetAccessApplicationOptions
- type GetAccessCertSettingsOptions
- type GetAccessCertificateOptions
- func (_options *GetAccessCertificateOptions) SetCertID(certID string) *GetAccessCertificateOptions
- func (options *GetAccessCertificateOptions) SetHeaders(param map[string]string) *GetAccessCertificateOptions
- func (_options *GetAccessCertificateOptions) SetZoneID(zoneID string) *GetAccessCertificateOptions
- type GetAccessPolicyOptions
- func (_options *GetAccessPolicyOptions) SetAppID(appID string) *GetAccessPolicyOptions
- func (options *GetAccessPolicyOptions) SetHeaders(param map[string]string) *GetAccessPolicyOptions
- func (_options *GetAccessPolicyOptions) SetPolicyID(policyID string) *GetAccessPolicyOptions
- func (_options *GetAccessPolicyOptions) SetZoneID(zoneID string) *GetAccessPolicyOptions
- type ListAccessApplicationsOptions
- type ListAccessAppsResp
- type ListAccessCertificatesOptions
- type ListAccessCertsResp
- type ListAccessPoliciesOptions
- type ListAccessPoliciesResp
- type MtlsV1
- func (mtls *MtlsV1) Clone() *MtlsV1
- func (mtls *MtlsV1) CreateAccessApplication(createAccessApplicationOptions *CreateAccessApplicationOptions) (result *CreateAccessAppResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) CreateAccessApplicationWithContext(ctx context.Context, ...) (result *CreateAccessAppResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) CreateAccessCertificate(createAccessCertificateOptions *CreateAccessCertificateOptions) (result *AccessCertResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) CreateAccessCertificateWithContext(ctx context.Context, ...) (result *AccessCertResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) CreateAccessOrganization(createAccessOrganizationOptions *CreateAccessOrganizationOptions) (result *AccessOrgResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) CreateAccessOrganizationWithContext(ctx context.Context, ...) (result *AccessOrgResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) CreateAccessPolicy(createAccessPolicyOptions *CreateAccessPolicyOptions) (result *AccessPolicyResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) CreateAccessPolicyWithContext(ctx context.Context, createAccessPolicyOptions *CreateAccessPolicyOptions) (result *AccessPolicyResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) DeleteAccessApplication(deleteAccessApplicationOptions *DeleteAccessApplicationOptions) (result *DeleteAccessAppResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) DeleteAccessApplicationWithContext(ctx context.Context, ...) (result *DeleteAccessAppResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) DeleteAccessCertificate(deleteAccessCertificateOptions *DeleteAccessCertificateOptions) (result *DeleteAccessCertResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) DeleteAccessCertificateWithContext(ctx context.Context, ...) (result *DeleteAccessCertResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) DeleteAccessPolicy(deleteAccessPolicyOptions *DeleteAccessPolicyOptions) (result *DeleteAccessPolicyResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) DeleteAccessPolicyWithContext(ctx context.Context, deleteAccessPolicyOptions *DeleteAccessPolicyOptions) (result *DeleteAccessPolicyResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) DisableRetries()
- func (mtls *MtlsV1) EnableRetries(maxRetries int, maxRetryInterval time.Duration)
- func (mtls *MtlsV1) GetAccessApplication(getAccessApplicationOptions *GetAccessApplicationOptions) (result *AccessAppResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) GetAccessApplicationWithContext(ctx context.Context, getAccessApplicationOptions *GetAccessApplicationOptions) (result *AccessAppResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) GetAccessCertSettings(getAccessCertSettingsOptions *GetAccessCertSettingsOptions) (result *AccessCertSettingsResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) GetAccessCertSettingsWithContext(ctx context.Context, ...) (result *AccessCertSettingsResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) GetAccessCertificate(getAccessCertificateOptions *GetAccessCertificateOptions) (result *AccessCertResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) GetAccessCertificateWithContext(ctx context.Context, getAccessCertificateOptions *GetAccessCertificateOptions) (result *AccessCertResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) GetAccessPolicy(getAccessPolicyOptions *GetAccessPolicyOptions) (result *AccessPolicyResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) GetAccessPolicyWithContext(ctx context.Context, getAccessPolicyOptions *GetAccessPolicyOptions) (result *AccessPolicyResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) GetEnableGzipCompression() bool
- func (mtls *MtlsV1) GetServiceURL() string
- func (mtls *MtlsV1) ListAccessApplications(listAccessApplicationsOptions *ListAccessApplicationsOptions) (result *ListAccessAppsResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) ListAccessApplicationsWithContext(ctx context.Context, ...) (result *ListAccessAppsResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) ListAccessCertificates(listAccessCertificatesOptions *ListAccessCertificatesOptions) (result *ListAccessCertsResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) ListAccessCertificatesWithContext(ctx context.Context, ...) (result *ListAccessCertsResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) ListAccessPolicies(listAccessPoliciesOptions *ListAccessPoliciesOptions) (result *ListAccessPoliciesResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) ListAccessPoliciesWithContext(ctx context.Context, listAccessPoliciesOptions *ListAccessPoliciesOptions) (result *ListAccessPoliciesResp, response *core.DetailedResponse, err error)
- func (*MtlsV1) NewAccessCertSettingsInputArray(hostname string, clientCertificateForwarding bool) (_model *AccessCertSettingsInputArray, err error)
- func (*MtlsV1) NewCreateAccessApplicationOptions(zoneID string) *CreateAccessApplicationOptions
- func (*MtlsV1) NewCreateAccessCertificateOptions(zoneID string) *CreateAccessCertificateOptions
- func (*MtlsV1) NewCreateAccessOrganizationOptions() *CreateAccessOrganizationOptions
- func (*MtlsV1) NewCreateAccessPolicyOptions(zoneID string, appID string) *CreateAccessPolicyOptions
- func (*MtlsV1) NewDeleteAccessApplicationOptions(zoneID string, appID string) *DeleteAccessApplicationOptions
- func (*MtlsV1) NewDeleteAccessCertificateOptions(zoneID string, certID string) *DeleteAccessCertificateOptions
- func (*MtlsV1) NewDeleteAccessPolicyOptions(zoneID string, appID string, policyID string) *DeleteAccessPolicyOptions
- func (*MtlsV1) NewGetAccessApplicationOptions(zoneID string, appID string) *GetAccessApplicationOptions
- func (*MtlsV1) NewGetAccessCertSettingsOptions(zoneID string) *GetAccessCertSettingsOptions
- func (*MtlsV1) NewGetAccessCertificateOptions(zoneID string, certID string) *GetAccessCertificateOptions
- func (*MtlsV1) NewGetAccessPolicyOptions(zoneID string, appID string, policyID string) *GetAccessPolicyOptions
- func (*MtlsV1) NewListAccessApplicationsOptions(zoneID string) *ListAccessApplicationsOptions
- func (*MtlsV1) NewListAccessCertificatesOptions(zoneID string) *ListAccessCertificatesOptions
- func (*MtlsV1) NewListAccessPoliciesOptions(zoneID string, appID string) *ListAccessPoliciesOptions
- func (*MtlsV1) NewPolicyCnRuleCommonName(commonName string) (_model *PolicyCnRuleCommonName, err error)
- func (*MtlsV1) NewPolicyRulePolicyCnRule(commonName *PolicyCnRuleCommonName) (_model *PolicyRulePolicyCnRule, err error)
- func (*MtlsV1) NewUpdateAccessApplicationOptions(zoneID string, appID string) *UpdateAccessApplicationOptions
- func (*MtlsV1) NewUpdateAccessCertSettingsOptions(zoneID string) *UpdateAccessCertSettingsOptions
- func (*MtlsV1) NewUpdateAccessCertificateOptions(zoneID string, certID string) *UpdateAccessCertificateOptions
- func (*MtlsV1) NewUpdateAccessPolicyOptions(zoneID string, appID string, policyID string) *UpdateAccessPolicyOptions
- func (mtls *MtlsV1) SetDefaultHeaders(headers http.Header)
- func (mtls *MtlsV1) SetEnableGzipCompression(enableGzip bool)
- func (mtls *MtlsV1) SetServiceURL(url string) error
- func (mtls *MtlsV1) UpdateAccessApplication(updateAccessApplicationOptions *UpdateAccessApplicationOptions) (result *AccessAppResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) UpdateAccessApplicationWithContext(ctx context.Context, ...) (result *AccessAppResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) UpdateAccessCertSettings(updateAccessCertSettingsOptions *UpdateAccessCertSettingsOptions) (result *AccessCertSettingsResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) UpdateAccessCertSettingsWithContext(ctx context.Context, ...) (result *AccessCertSettingsResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) UpdateAccessCertificate(updateAccessCertificateOptions *UpdateAccessCertificateOptions) (result *AccessCertResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) UpdateAccessCertificateWithContext(ctx context.Context, ...) (result *AccessCertResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) UpdateAccessPolicy(updateAccessPolicyOptions *UpdateAccessPolicyOptions) (result *AccessPolicyResp, response *core.DetailedResponse, err error)
- func (mtls *MtlsV1) UpdateAccessPolicyWithContext(ctx context.Context, updateAccessPolicyOptions *UpdateAccessPolicyOptions) (result *AccessPolicyResp, response *core.DetailedResponse, err error)
- type MtlsV1Options
- type PolicyCnRuleCommonName
- type PolicyResult
- type PolicyRule
- type PolicyRuleIntf
- type PolicyRulePolicyCertRule
- type PolicyRulePolicyCnRule
- type UpdateAccessApplicationOptions
- func (_options *UpdateAccessApplicationOptions) SetAppID(appID string) *UpdateAccessApplicationOptions
- func (_options *UpdateAccessApplicationOptions) SetDomain(domain string) *UpdateAccessApplicationOptions
- func (options *UpdateAccessApplicationOptions) SetHeaders(param map[string]string) *UpdateAccessApplicationOptions
- func (_options *UpdateAccessApplicationOptions) SetName(name string) *UpdateAccessApplicationOptions
- func (_options *UpdateAccessApplicationOptions) SetSessionDuration(sessionDuration string) *UpdateAccessApplicationOptions
- func (_options *UpdateAccessApplicationOptions) SetZoneID(zoneID string) *UpdateAccessApplicationOptions
- type UpdateAccessCertSettingsOptions
- func (options *UpdateAccessCertSettingsOptions) SetHeaders(param map[string]string) *UpdateAccessCertSettingsOptions
- func (_options *UpdateAccessCertSettingsOptions) SetSettings(settings []AccessCertSettingsInputArray) *UpdateAccessCertSettingsOptions
- func (_options *UpdateAccessCertSettingsOptions) SetZoneID(zoneID string) *UpdateAccessCertSettingsOptions
- type UpdateAccessCertificateOptions
- func (_options *UpdateAccessCertificateOptions) SetAssociatedHostnames(associatedHostnames []string) *UpdateAccessCertificateOptions
- func (_options *UpdateAccessCertificateOptions) SetCertID(certID string) *UpdateAccessCertificateOptions
- func (options *UpdateAccessCertificateOptions) SetHeaders(param map[string]string) *UpdateAccessCertificateOptions
- func (_options *UpdateAccessCertificateOptions) SetName(name string) *UpdateAccessCertificateOptions
- func (_options *UpdateAccessCertificateOptions) SetZoneID(zoneID string) *UpdateAccessCertificateOptions
- type UpdateAccessPolicyOptions
- func (_options *UpdateAccessPolicyOptions) SetAppID(appID string) *UpdateAccessPolicyOptions
- func (_options *UpdateAccessPolicyOptions) SetDecision(decision string) *UpdateAccessPolicyOptions
- func (options *UpdateAccessPolicyOptions) SetHeaders(param map[string]string) *UpdateAccessPolicyOptions
- func (_options *UpdateAccessPolicyOptions) SetInclude(include []PolicyRuleIntf) *UpdateAccessPolicyOptions
- func (_options *UpdateAccessPolicyOptions) SetName(name string) *UpdateAccessPolicyOptions
- func (_options *UpdateAccessPolicyOptions) SetPolicyID(policyID string) *UpdateAccessPolicyOptions
- func (_options *UpdateAccessPolicyOptions) SetZoneID(zoneID string) *UpdateAccessPolicyOptions
Constants ¶
const (
CreateAccessPolicyOptions_Decision_NonIdentity = "non_identity"
)
Constants associated with the CreateAccessPolicyOptions.Decision property. Defines the action Access takes if the policy matches the user.
const DefaultServiceName = "mtls"
DefaultServiceName is the default key used to find external configuration information.
const DefaultServiceURL = "https://api.cis.cloud.ibm.com"
DefaultServiceURL is the default URL to make service requests to.
const (
UpdateAccessPolicyOptions_Decision_NonIdentity = "non_identity"
)
Constants associated with the UpdateAccessPolicyOptions.Decision property. Defines the action Access takes if the policy matches the user.
Variables ¶
This section is empty.
Functions ¶
func GetServiceURLForRegion ¶
GetServiceURLForRegion returns the service URL to be used for the specified region
func UnmarshalAccessAppResp ¶
func UnmarshalAccessAppResp(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalAccessAppResp unmarshals an instance of AccessAppResp from the specified map of raw messages.
func UnmarshalAccessCertResp ¶
func UnmarshalAccessCertResp(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalAccessCertResp unmarshals an instance of AccessCertResp from the specified map of raw messages.
func UnmarshalAccessCertSettingsInputArray ¶
func UnmarshalAccessCertSettingsInputArray(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalAccessCertSettingsInputArray unmarshals an instance of AccessCertSettingsInputArray from the specified map of raw messages.
func UnmarshalAccessCertSettingsResp ¶
func UnmarshalAccessCertSettingsResp(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalAccessCertSettingsResp unmarshals an instance of AccessCertSettingsResp from the specified map of raw messages.
func UnmarshalAccessOrgResp ¶
func UnmarshalAccessOrgResp(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalAccessOrgResp unmarshals an instance of AccessOrgResp from the specified map of raw messages.
func UnmarshalAccessOrgRespResult ¶
func UnmarshalAccessOrgRespResult(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalAccessOrgRespResult unmarshals an instance of AccessOrgRespResult from the specified map of raw messages.
func UnmarshalAccessPolicyResp ¶
func UnmarshalAccessPolicyResp(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalAccessPolicyResp unmarshals an instance of AccessPolicyResp from the specified map of raw messages.
func UnmarshalAppResult ¶
func UnmarshalAppResult(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalAppResult unmarshals an instance of AppResult from the specified map of raw messages.
func UnmarshalCertResult ¶
func UnmarshalCertResult(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalCertResult unmarshals an instance of CertResult from the specified map of raw messages.
func UnmarshalCertSettingsResult ¶
func UnmarshalCertSettingsResult(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalCertSettingsResult unmarshals an instance of CertSettingsResult from the specified map of raw messages.
func UnmarshalCreateAccessAppResp ¶
func UnmarshalCreateAccessAppResp(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalCreateAccessAppResp unmarshals an instance of CreateAccessAppResp from the specified map of raw messages.
func UnmarshalCreateAccessAppRespResult ¶
func UnmarshalCreateAccessAppRespResult(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalCreateAccessAppRespResult unmarshals an instance of CreateAccessAppRespResult from the specified map of raw messages.
func UnmarshalDeleteAccessAppResp ¶
func UnmarshalDeleteAccessAppResp(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalDeleteAccessAppResp unmarshals an instance of DeleteAccessAppResp from the specified map of raw messages.
func UnmarshalDeleteAccessAppRespResult ¶
func UnmarshalDeleteAccessAppRespResult(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalDeleteAccessAppRespResult unmarshals an instance of DeleteAccessAppRespResult from the specified map of raw messages.
func UnmarshalDeleteAccessCertResp ¶
func UnmarshalDeleteAccessCertResp(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalDeleteAccessCertResp unmarshals an instance of DeleteAccessCertResp from the specified map of raw messages.
func UnmarshalDeleteAccessCertRespResult ¶
func UnmarshalDeleteAccessCertRespResult(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalDeleteAccessCertRespResult unmarshals an instance of DeleteAccessCertRespResult from the specified map of raw messages.
func UnmarshalDeleteAccessPolicyResp ¶
func UnmarshalDeleteAccessPolicyResp(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalDeleteAccessPolicyResp unmarshals an instance of DeleteAccessPolicyResp from the specified map of raw messages.
func UnmarshalDeleteAccessPolicyRespResult ¶
func UnmarshalDeleteAccessPolicyRespResult(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalDeleteAccessPolicyRespResult unmarshals an instance of DeleteAccessPolicyRespResult from the specified map of raw messages.
func UnmarshalListAccessAppsResp ¶
func UnmarshalListAccessAppsResp(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalListAccessAppsResp unmarshals an instance of ListAccessAppsResp from the specified map of raw messages.
func UnmarshalListAccessCertsResp ¶
func UnmarshalListAccessCertsResp(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalListAccessCertsResp unmarshals an instance of ListAccessCertsResp from the specified map of raw messages.
func UnmarshalListAccessPoliciesResp ¶
func UnmarshalListAccessPoliciesResp(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalListAccessPoliciesResp unmarshals an instance of ListAccessPoliciesResp from the specified map of raw messages.
func UnmarshalPolicyCnRuleCommonName ¶
func UnmarshalPolicyCnRuleCommonName(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalPolicyCnRuleCommonName unmarshals an instance of PolicyCnRuleCommonName from the specified map of raw messages.
func UnmarshalPolicyResult ¶
func UnmarshalPolicyResult(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalPolicyResult unmarshals an instance of PolicyResult from the specified map of raw messages.
func UnmarshalPolicyRule ¶
func UnmarshalPolicyRule(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalPolicyRule unmarshals an instance of PolicyRule from the specified map of raw messages.
func UnmarshalPolicyRulePolicyCertRule ¶
func UnmarshalPolicyRulePolicyCertRule(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalPolicyRulePolicyCertRule unmarshals an instance of PolicyRulePolicyCertRule from the specified map of raw messages.
func UnmarshalPolicyRulePolicyCnRule ¶
func UnmarshalPolicyRulePolicyCnRule(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalPolicyRulePolicyCnRule unmarshals an instance of PolicyRulePolicyCnRule from the specified map of raw messages.
Types ¶
type AccessAppResp ¶
type AccessAppResp struct { // Was operation successful. Success *bool `json:"success,omitempty"` // Array of errors encountered. Errors [][]string `json:"errors,omitempty"` // Array of messages returned. Messages [][]string `json:"messages,omitempty"` // Access application details. Result *AppResult `json:"result,omitempty"` }
AccessAppResp : Access application response.
type AccessCertResp ¶
type AccessCertResp struct { // Was operation successful. Success *bool `json:"success,omitempty"` // Array of errors encountered. Errors [][]string `json:"errors,omitempty"` // Array of messages returned. Messages [][]string `json:"messages,omitempty"` // Access certificate details. Result *CertResult `json:"result,omitempty"` }
AccessCertResp : Access certificate response.
type AccessCertSettingsInputArray ¶
type AccessCertSettingsInputArray struct { Hostname *string `json:"hostname" validate:"required"` // Whether to forward the client certificate. ClientCertificateForwarding *bool `json:"client_certificate_forwarding" validate:"required"` }
AccessCertSettingsInputArray : AccessCertSettingsInputArray struct
type AccessCertSettingsResp ¶
type AccessCertSettingsResp struct { // Was operation successful. Success *bool `json:"success,omitempty"` // Array of errors encountered. Errors [][]string `json:"errors,omitempty"` // Array of messages returned. Messages [][]string `json:"messages,omitempty"` Result []CertSettingsResult `json:"result,omitempty"` }
AccessCertSettingsResp : Access certificates settings response.
type AccessOrgResp ¶
type AccessOrgResp struct { // Was operation successful. Success *bool `json:"success,omitempty"` // Array of errors encountered. Errors [][]string `json:"errors,omitempty"` // Array of messages returned. Messages [][]string `json:"messages,omitempty"` Result *AccessOrgRespResult `json:"result,omitempty"` }
AccessOrgResp : Access organization response.
type AccessOrgRespResult ¶
type AccessOrgRespResult struct { AuthDomain *string `json:"auth_domain,omitempty"` Name *string `json:"name,omitempty"` LoginDesign interface{} `json:"login_design,omitempty"` CreatedAt *string `json:"created_at,omitempty"` UpdatedAt *string `json:"updated_at,omitempty"` }
AccessOrgRespResult : AccessOrgRespResult struct
type AccessPolicyResp ¶
type AccessPolicyResp struct { // Was operation successful. Success *bool `json:"success,omitempty"` // Array of errors encountered. Errors [][]string `json:"errors,omitempty"` // Array of messages returned. Messages [][]string `json:"messages,omitempty"` // Access policies information. Result *PolicyResult `json:"result,omitempty"` }
AccessPolicyResp : Access policy response.
type AppResult ¶
type AppResult struct { // Application ID. ID *string `json:"id,omitempty"` // Application name. Name *string `json:"name,omitempty"` // The domain and path that Access blocks. Domain *string `json:"domain,omitempty"` Aud *string `json:"aud,omitempty"` // Policies of the application. Policies []PolicyResult `json:"policies,omitempty"` // The identity providers selected for application. AllowedIdps []string `json:"allowed_idps,omitempty"` // Option to skip identity provider selection if only one is configured in allowed_idps. AutoRedirectToIdentity *bool `json:"auto_redirect_to_identity,omitempty"` // The amount of time that the tokens issued for this application are valid. SessionDuration *string `json:"session_duration,omitempty"` // Application type. Type *string `json:"type,omitempty"` // UUID, same as ID. Uid *string `json:"uid,omitempty"` // Created time of the application. CreatedAt *string `json:"created_at,omitempty"` // Updated time of the application. UpdatedAt *string `json:"updated_at,omitempty"` }
AppResult : Access application details.
type CertResult ¶
type CertResult struct { // Access certificate ID. ID *string `json:"id,omitempty"` // access certificate name. Name *string `json:"name,omitempty"` // Fingerprint of the certificate. Fingerprint *string `json:"fingerprint,omitempty"` // The hostnames that are prompted for this certificate. AssociatedHostnames []string `json:"associated_hostnames,omitempty"` // Created time of the access certificate. CreatedAt *string `json:"created_at,omitempty"` // Updated time of the access certificate. UpdatedAt *string `json:"updated_at,omitempty"` // Expire time of the access certificate. ExpiresOn *string `json:"expires_on,omitempty"` }
CertResult : Access certificate details.
type CertSettingsResult ¶
type CertSettingsResult struct { Hostname *string `json:"hostname,omitempty"` ChinaNetwork *bool `json:"china_network,omitempty"` ClientCertificateForwarding *bool `json:"client_certificate_forwarding,omitempty"` }
CertSettingsResult : CertSettingsResult struct
type CreateAccessAppResp ¶
type CreateAccessAppResp struct { // Was operation successful. Success *bool `json:"success,omitempty"` // Array of errors encountered. Errors [][]string `json:"errors,omitempty"` // Array of messages returned. Messages [][]string `json:"messages,omitempty"` // Access application details. Result *CreateAccessAppRespResult `json:"result,omitempty"` }
CreateAccessAppResp : Create access application response.
type CreateAccessAppRespResult ¶
type CreateAccessAppRespResult struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Domain *string `json:"domain,omitempty"` Aud *string `json:"aud,omitempty"` Policies []interface{} `json:"policies,omitempty"` AllowedIdps []string `json:"allowed_idps,omitempty"` AutoRedirectToIdentity *bool `json:"auto_redirect_to_identity,omitempty"` SessionDuration *string `json:"session_duration,omitempty"` Type *string `json:"type,omitempty"` Uid *string `json:"uid,omitempty"` CreatedAt *string `json:"created_at,omitempty"` UpdatedAt *string `json:"updated_at,omitempty"` }
CreateAccessAppRespResult : Access application details.
type CreateAccessApplicationOptions ¶
type CreateAccessApplicationOptions struct { // Zone ID. ZoneID *string `json:"zone_id" validate:"required,ne="` // Application name. Name *string `json:"name,omitempty"` // The domain and path that Access blocks. Domain *string `json:"domain,omitempty"` // The amount of time that the tokens issued for this application are valid. SessionDuration *string `json:"session_duration,omitempty"` // Allows users to set headers on API requests Headers map[string]string }
CreateAccessApplicationOptions : The CreateAccessApplication options.
func (*CreateAccessApplicationOptions) SetDomain ¶
func (_options *CreateAccessApplicationOptions) SetDomain(domain string) *CreateAccessApplicationOptions
SetDomain : Allow user to set Domain
func (*CreateAccessApplicationOptions) SetHeaders ¶
func (options *CreateAccessApplicationOptions) SetHeaders(param map[string]string) *CreateAccessApplicationOptions
SetHeaders : Allow user to set Headers
func (*CreateAccessApplicationOptions) SetName ¶
func (_options *CreateAccessApplicationOptions) SetName(name string) *CreateAccessApplicationOptions
SetName : Allow user to set Name
func (*CreateAccessApplicationOptions) SetSessionDuration ¶
func (_options *CreateAccessApplicationOptions) SetSessionDuration(sessionDuration string) *CreateAccessApplicationOptions
SetSessionDuration : Allow user to set SessionDuration
func (*CreateAccessApplicationOptions) SetZoneID ¶
func (_options *CreateAccessApplicationOptions) SetZoneID(zoneID string) *CreateAccessApplicationOptions
SetZoneID : Allow user to set ZoneID
type CreateAccessCertificateOptions ¶
type CreateAccessCertificateOptions struct { // Zone ID. ZoneID *string `json:"zone_id" validate:"required,ne="` // Access certificate name. Name *string `json:"name,omitempty"` // Access certificate. Certificate *string `json:"certificate,omitempty"` // The hostnames that are prompted for this certificate. AssociatedHostnames []string `json:"associated_hostnames,omitempty"` // Allows users to set headers on API requests Headers map[string]string }
CreateAccessCertificateOptions : The CreateAccessCertificate options.
func (*CreateAccessCertificateOptions) SetAssociatedHostnames ¶
func (_options *CreateAccessCertificateOptions) SetAssociatedHostnames(associatedHostnames []string) *CreateAccessCertificateOptions
SetAssociatedHostnames : Allow user to set AssociatedHostnames
func (*CreateAccessCertificateOptions) SetCertificate ¶
func (_options *CreateAccessCertificateOptions) SetCertificate(certificate string) *CreateAccessCertificateOptions
SetCertificate : Allow user to set Certificate
func (*CreateAccessCertificateOptions) SetHeaders ¶
func (options *CreateAccessCertificateOptions) SetHeaders(param map[string]string) *CreateAccessCertificateOptions
SetHeaders : Allow user to set Headers
func (*CreateAccessCertificateOptions) SetName ¶
func (_options *CreateAccessCertificateOptions) SetName(name string) *CreateAccessCertificateOptions
SetName : Allow user to set Name
func (*CreateAccessCertificateOptions) SetZoneID ¶
func (_options *CreateAccessCertificateOptions) SetZoneID(zoneID string) *CreateAccessCertificateOptions
SetZoneID : Allow user to set ZoneID
type CreateAccessOrganizationOptions ¶
type CreateAccessOrganizationOptions struct { // Name of the access organization. Name *string `json:"name,omitempty"` // The domain that you are redirected to on Access login attempts. AuthDomain *string `json:"auth_domain,omitempty"` // Allows users to set headers on API requests Headers map[string]string }
CreateAccessOrganizationOptions : The CreateAccessOrganization options.
func (*CreateAccessOrganizationOptions) SetAuthDomain ¶
func (_options *CreateAccessOrganizationOptions) SetAuthDomain(authDomain string) *CreateAccessOrganizationOptions
SetAuthDomain : Allow user to set AuthDomain
func (*CreateAccessOrganizationOptions) SetHeaders ¶
func (options *CreateAccessOrganizationOptions) SetHeaders(param map[string]string) *CreateAccessOrganizationOptions
SetHeaders : Allow user to set Headers
func (*CreateAccessOrganizationOptions) SetName ¶
func (_options *CreateAccessOrganizationOptions) SetName(name string) *CreateAccessOrganizationOptions
SetName : Allow user to set Name
type CreateAccessPolicyOptions ¶
type CreateAccessPolicyOptions struct { // Zone ID. ZoneID *string `json:"zone_id" validate:"required,ne="` // Access application ID. AppID *string `json:"app_id" validate:"required,ne="` // Policy name. Name *string `json:"name,omitempty"` // Defines the action Access takes if the policy matches the user. Decision *string `json:"decision,omitempty"` // The include policy works like an OR logical operator. The user must satisfy one of the rules in includes. Include []PolicyRuleIntf `json:"include,omitempty"` // Allows users to set headers on API requests Headers map[string]string }
CreateAccessPolicyOptions : The CreateAccessPolicy options.
func (*CreateAccessPolicyOptions) SetAppID ¶
func (_options *CreateAccessPolicyOptions) SetAppID(appID string) *CreateAccessPolicyOptions
SetAppID : Allow user to set AppID
func (*CreateAccessPolicyOptions) SetDecision ¶
func (_options *CreateAccessPolicyOptions) SetDecision(decision string) *CreateAccessPolicyOptions
SetDecision : Allow user to set Decision
func (*CreateAccessPolicyOptions) SetHeaders ¶
func (options *CreateAccessPolicyOptions) SetHeaders(param map[string]string) *CreateAccessPolicyOptions
SetHeaders : Allow user to set Headers
func (*CreateAccessPolicyOptions) SetInclude ¶
func (_options *CreateAccessPolicyOptions) SetInclude(include []PolicyRuleIntf) *CreateAccessPolicyOptions
SetInclude : Allow user to set Include
func (*CreateAccessPolicyOptions) SetName ¶
func (_options *CreateAccessPolicyOptions) SetName(name string) *CreateAccessPolicyOptions
SetName : Allow user to set Name
func (*CreateAccessPolicyOptions) SetZoneID ¶
func (_options *CreateAccessPolicyOptions) SetZoneID(zoneID string) *CreateAccessPolicyOptions
SetZoneID : Allow user to set ZoneID
type DeleteAccessAppResp ¶
type DeleteAccessAppResp struct { // Was operation successful. Success *bool `json:"success,omitempty"` // Array of errors encountered. Errors [][]string `json:"errors,omitempty"` // Array of messages returned. Messages [][]string `json:"messages,omitempty"` Result *DeleteAccessAppRespResult `json:"result,omitempty"` }
DeleteAccessAppResp : Delete access application response.
type DeleteAccessAppRespResult ¶
type DeleteAccessAppRespResult struct { // Application ID. ID *string `json:"id,omitempty"` }
DeleteAccessAppRespResult : DeleteAccessAppRespResult struct
type DeleteAccessApplicationOptions ¶
type DeleteAccessApplicationOptions struct { // Zone ID. ZoneID *string `json:"zone_id" validate:"required,ne="` // Access application ID. AppID *string `json:"app_id" validate:"required,ne="` // Allows users to set headers on API requests Headers map[string]string }
DeleteAccessApplicationOptions : The DeleteAccessApplication options.
func (*DeleteAccessApplicationOptions) SetAppID ¶
func (_options *DeleteAccessApplicationOptions) SetAppID(appID string) *DeleteAccessApplicationOptions
SetAppID : Allow user to set AppID
func (*DeleteAccessApplicationOptions) SetHeaders ¶
func (options *DeleteAccessApplicationOptions) SetHeaders(param map[string]string) *DeleteAccessApplicationOptions
SetHeaders : Allow user to set Headers
func (*DeleteAccessApplicationOptions) SetZoneID ¶
func (_options *DeleteAccessApplicationOptions) SetZoneID(zoneID string) *DeleteAccessApplicationOptions
SetZoneID : Allow user to set ZoneID
type DeleteAccessCertResp ¶
type DeleteAccessCertResp struct { // Was operation successful. Success *bool `json:"success,omitempty"` // Array of errors encountered. Errors [][]string `json:"errors,omitempty"` // Array of messages returned. Messages [][]string `json:"messages,omitempty"` Result *DeleteAccessCertRespResult `json:"result,omitempty"` }
DeleteAccessCertResp : Delete access certificate response.
type DeleteAccessCertRespResult ¶
type DeleteAccessCertRespResult struct { // Certificate ID. ID *string `json:"id,omitempty"` }
DeleteAccessCertRespResult : DeleteAccessCertRespResult struct
type DeleteAccessCertificateOptions ¶
type DeleteAccessCertificateOptions struct { // Zone ID. ZoneID *string `json:"zone_id" validate:"required,ne="` // Access certificate ID. CertID *string `json:"cert_id" validate:"required,ne="` // Allows users to set headers on API requests Headers map[string]string }
DeleteAccessCertificateOptions : The DeleteAccessCertificate options.
func (*DeleteAccessCertificateOptions) SetCertID ¶
func (_options *DeleteAccessCertificateOptions) SetCertID(certID string) *DeleteAccessCertificateOptions
SetCertID : Allow user to set CertID
func (*DeleteAccessCertificateOptions) SetHeaders ¶
func (options *DeleteAccessCertificateOptions) SetHeaders(param map[string]string) *DeleteAccessCertificateOptions
SetHeaders : Allow user to set Headers
func (*DeleteAccessCertificateOptions) SetZoneID ¶
func (_options *DeleteAccessCertificateOptions) SetZoneID(zoneID string) *DeleteAccessCertificateOptions
SetZoneID : Allow user to set ZoneID
type DeleteAccessPolicyOptions ¶
type DeleteAccessPolicyOptions struct { // Zone ID. ZoneID *string `json:"zone_id" validate:"required,ne="` // Access application ID. AppID *string `json:"app_id" validate:"required,ne="` // Access policy ID. PolicyID *string `json:"policy_id" validate:"required,ne="` // Allows users to set headers on API requests Headers map[string]string }
DeleteAccessPolicyOptions : The DeleteAccessPolicy options.
func (*DeleteAccessPolicyOptions) SetAppID ¶
func (_options *DeleteAccessPolicyOptions) SetAppID(appID string) *DeleteAccessPolicyOptions
SetAppID : Allow user to set AppID
func (*DeleteAccessPolicyOptions) SetHeaders ¶
func (options *DeleteAccessPolicyOptions) SetHeaders(param map[string]string) *DeleteAccessPolicyOptions
SetHeaders : Allow user to set Headers
func (*DeleteAccessPolicyOptions) SetPolicyID ¶
func (_options *DeleteAccessPolicyOptions) SetPolicyID(policyID string) *DeleteAccessPolicyOptions
SetPolicyID : Allow user to set PolicyID
func (*DeleteAccessPolicyOptions) SetZoneID ¶
func (_options *DeleteAccessPolicyOptions) SetZoneID(zoneID string) *DeleteAccessPolicyOptions
SetZoneID : Allow user to set ZoneID
type DeleteAccessPolicyResp ¶
type DeleteAccessPolicyResp struct { // Was operation successful. Success *bool `json:"success,omitempty"` // Array of errors encountered. Errors [][]string `json:"errors,omitempty"` // Array of messages returned. Messages [][]string `json:"messages,omitempty"` Result *DeleteAccessPolicyRespResult `json:"result,omitempty"` }
DeleteAccessPolicyResp : Delete access policy response.
type DeleteAccessPolicyRespResult ¶
type DeleteAccessPolicyRespResult struct { // Policy ID. ID *string `json:"id,omitempty"` }
DeleteAccessPolicyRespResult : DeleteAccessPolicyRespResult struct
type GetAccessApplicationOptions ¶
type GetAccessApplicationOptions struct { // Zone ID. ZoneID *string `json:"zone_id" validate:"required,ne="` // Access application ID. AppID *string `json:"app_id" validate:"required,ne="` // Allows users to set headers on API requests Headers map[string]string }
GetAccessApplicationOptions : The GetAccessApplication options.
func (*GetAccessApplicationOptions) SetAppID ¶
func (_options *GetAccessApplicationOptions) SetAppID(appID string) *GetAccessApplicationOptions
SetAppID : Allow user to set AppID
func (*GetAccessApplicationOptions) SetHeaders ¶
func (options *GetAccessApplicationOptions) SetHeaders(param map[string]string) *GetAccessApplicationOptions
SetHeaders : Allow user to set Headers
func (*GetAccessApplicationOptions) SetZoneID ¶
func (_options *GetAccessApplicationOptions) SetZoneID(zoneID string) *GetAccessApplicationOptions
SetZoneID : Allow user to set ZoneID
type GetAccessCertSettingsOptions ¶
type GetAccessCertSettingsOptions struct { // Zone ID. ZoneID *string `json:"zone_id" validate:"required,ne="` // Allows users to set headers on API requests Headers map[string]string }
GetAccessCertSettingsOptions : The GetAccessCertSettings options.
func (*GetAccessCertSettingsOptions) SetHeaders ¶
func (options *GetAccessCertSettingsOptions) SetHeaders(param map[string]string) *GetAccessCertSettingsOptions
SetHeaders : Allow user to set Headers
func (*GetAccessCertSettingsOptions) SetZoneID ¶
func (_options *GetAccessCertSettingsOptions) SetZoneID(zoneID string) *GetAccessCertSettingsOptions
SetZoneID : Allow user to set ZoneID
type GetAccessCertificateOptions ¶
type GetAccessCertificateOptions struct { // Zone ID. ZoneID *string `json:"zone_id" validate:"required,ne="` // Access certificate ID. CertID *string `json:"cert_id" validate:"required,ne="` // Allows users to set headers on API requests Headers map[string]string }
GetAccessCertificateOptions : The GetAccessCertificate options.
func (*GetAccessCertificateOptions) SetCertID ¶
func (_options *GetAccessCertificateOptions) SetCertID(certID string) *GetAccessCertificateOptions
SetCertID : Allow user to set CertID
func (*GetAccessCertificateOptions) SetHeaders ¶
func (options *GetAccessCertificateOptions) SetHeaders(param map[string]string) *GetAccessCertificateOptions
SetHeaders : Allow user to set Headers
func (*GetAccessCertificateOptions) SetZoneID ¶
func (_options *GetAccessCertificateOptions) SetZoneID(zoneID string) *GetAccessCertificateOptions
SetZoneID : Allow user to set ZoneID
type GetAccessPolicyOptions ¶
type GetAccessPolicyOptions struct { // Zone ID. ZoneID *string `json:"zone_id" validate:"required,ne="` // Access application ID. AppID *string `json:"app_id" validate:"required,ne="` // Access policy ID. PolicyID *string `json:"policy_id" validate:"required,ne="` // Allows users to set headers on API requests Headers map[string]string }
GetAccessPolicyOptions : The GetAccessPolicy options.
func (*GetAccessPolicyOptions) SetAppID ¶
func (_options *GetAccessPolicyOptions) SetAppID(appID string) *GetAccessPolicyOptions
SetAppID : Allow user to set AppID
func (*GetAccessPolicyOptions) SetHeaders ¶
func (options *GetAccessPolicyOptions) SetHeaders(param map[string]string) *GetAccessPolicyOptions
SetHeaders : Allow user to set Headers
func (*GetAccessPolicyOptions) SetPolicyID ¶
func (_options *GetAccessPolicyOptions) SetPolicyID(policyID string) *GetAccessPolicyOptions
SetPolicyID : Allow user to set PolicyID
func (*GetAccessPolicyOptions) SetZoneID ¶
func (_options *GetAccessPolicyOptions) SetZoneID(zoneID string) *GetAccessPolicyOptions
SetZoneID : Allow user to set ZoneID
type ListAccessApplicationsOptions ¶
type ListAccessApplicationsOptions struct { // Zone ID. ZoneID *string `json:"zone_id" validate:"required,ne="` // Allows users to set headers on API requests Headers map[string]string }
ListAccessApplicationsOptions : The ListAccessApplications options.
func (*ListAccessApplicationsOptions) SetHeaders ¶
func (options *ListAccessApplicationsOptions) SetHeaders(param map[string]string) *ListAccessApplicationsOptions
SetHeaders : Allow user to set Headers
func (*ListAccessApplicationsOptions) SetZoneID ¶
func (_options *ListAccessApplicationsOptions) SetZoneID(zoneID string) *ListAccessApplicationsOptions
SetZoneID : Allow user to set ZoneID
type ListAccessAppsResp ¶
type ListAccessAppsResp struct { // Was operation successful. Success *bool `json:"success,omitempty"` // Array of errors encountered. Errors [][]string `json:"errors,omitempty"` // Array of messages returned. Messages [][]string `json:"messages,omitempty"` Result []AppResult `json:"result,omitempty"` }
ListAccessAppsResp : List access applications response.
type ListAccessCertificatesOptions ¶
type ListAccessCertificatesOptions struct { // Zone ID. ZoneID *string `json:"zone_id" validate:"required,ne="` // Allows users to set headers on API requests Headers map[string]string }
ListAccessCertificatesOptions : The ListAccessCertificates options.
func (*ListAccessCertificatesOptions) SetHeaders ¶
func (options *ListAccessCertificatesOptions) SetHeaders(param map[string]string) *ListAccessCertificatesOptions
SetHeaders : Allow user to set Headers
func (*ListAccessCertificatesOptions) SetZoneID ¶
func (_options *ListAccessCertificatesOptions) SetZoneID(zoneID string) *ListAccessCertificatesOptions
SetZoneID : Allow user to set ZoneID
type ListAccessCertsResp ¶
type ListAccessCertsResp struct { // Was operation successful. Success *bool `json:"success,omitempty"` // Array of errors encountered. Errors [][]string `json:"errors,omitempty"` // Array of messages returned. Messages [][]string `json:"messages,omitempty"` Result []CertResult `json:"result,omitempty"` }
ListAccessCertsResp : List access certificate response.
type ListAccessPoliciesOptions ¶
type ListAccessPoliciesOptions struct { // Zone ID. ZoneID *string `json:"zone_id" validate:"required,ne="` // Access application ID. AppID *string `json:"app_id" validate:"required,ne="` // Allows users to set headers on API requests Headers map[string]string }
ListAccessPoliciesOptions : The ListAccessPolicies options.
func (*ListAccessPoliciesOptions) SetAppID ¶
func (_options *ListAccessPoliciesOptions) SetAppID(appID string) *ListAccessPoliciesOptions
SetAppID : Allow user to set AppID
func (*ListAccessPoliciesOptions) SetHeaders ¶
func (options *ListAccessPoliciesOptions) SetHeaders(param map[string]string) *ListAccessPoliciesOptions
SetHeaders : Allow user to set Headers
func (*ListAccessPoliciesOptions) SetZoneID ¶
func (_options *ListAccessPoliciesOptions) SetZoneID(zoneID string) *ListAccessPoliciesOptions
SetZoneID : Allow user to set ZoneID
type ListAccessPoliciesResp ¶
type ListAccessPoliciesResp struct { // Was operation successful. Success *bool `json:"success,omitempty"` // Array of errors encountered. Errors [][]string `json:"errors,omitempty"` // Array of messages returned. Messages [][]string `json:"messages,omitempty"` Result []PolicyResult `json:"result,omitempty"` }
ListAccessPoliciesResp : List access policies response.
type MtlsV1 ¶
type MtlsV1 struct { Service *core.BaseService // Cloud resource name. Crn *string }
MtlsV1 : MTLS
API Version: 1.0.0
func NewMtlsV1 ¶
func NewMtlsV1(options *MtlsV1Options) (service *MtlsV1, err error)
NewMtlsV1 : constructs an instance of MtlsV1 with passed in options.
func NewMtlsV1UsingExternalConfig ¶
func NewMtlsV1UsingExternalConfig(options *MtlsV1Options) (mtls *MtlsV1, err error)
NewMtlsV1UsingExternalConfig : constructs an instance of MtlsV1 with passed in options and external configuration.
func (*MtlsV1) CreateAccessApplication ¶
func (mtls *MtlsV1) CreateAccessApplication(createAccessApplicationOptions *CreateAccessApplicationOptions) (result *CreateAccessAppResp, response *core.DetailedResponse, err error)
CreateAccessApplication : Create access application Create access application.
func (*MtlsV1) CreateAccessApplicationWithContext ¶
func (mtls *MtlsV1) CreateAccessApplicationWithContext(ctx context.Context, createAccessApplicationOptions *CreateAccessApplicationOptions) (result *CreateAccessAppResp, response *core.DetailedResponse, err error)
CreateAccessApplicationWithContext is an alternate form of the CreateAccessApplication method which supports a Context parameter
func (*MtlsV1) CreateAccessCertificate ¶
func (mtls *MtlsV1) CreateAccessCertificate(createAccessCertificateOptions *CreateAccessCertificateOptions) (result *AccessCertResp, response *core.DetailedResponse, err error)
CreateAccessCertificate : Create access certificate Create access certificate.
func (*MtlsV1) CreateAccessCertificateWithContext ¶
func (mtls *MtlsV1) CreateAccessCertificateWithContext(ctx context.Context, createAccessCertificateOptions *CreateAccessCertificateOptions) (result *AccessCertResp, response *core.DetailedResponse, err error)
CreateAccessCertificateWithContext is an alternate form of the CreateAccessCertificate method which supports a Context parameter
func (*MtlsV1) CreateAccessOrganization ¶
func (mtls *MtlsV1) CreateAccessOrganization(createAccessOrganizationOptions *CreateAccessOrganizationOptions) (result *AccessOrgResp, response *core.DetailedResponse, err error)
CreateAccessOrganization : Create access organization Create access organization.
func (*MtlsV1) CreateAccessOrganizationWithContext ¶
func (mtls *MtlsV1) CreateAccessOrganizationWithContext(ctx context.Context, createAccessOrganizationOptions *CreateAccessOrganizationOptions) (result *AccessOrgResp, response *core.DetailedResponse, err error)
CreateAccessOrganizationWithContext is an alternate form of the CreateAccessOrganization method which supports a Context parameter
func (*MtlsV1) CreateAccessPolicy ¶
func (mtls *MtlsV1) CreateAccessPolicy(createAccessPolicyOptions *CreateAccessPolicyOptions) (result *AccessPolicyResp, response *core.DetailedResponse, err error)
CreateAccessPolicy : Create access policy Create access policy.
func (*MtlsV1) CreateAccessPolicyWithContext ¶
func (mtls *MtlsV1) CreateAccessPolicyWithContext(ctx context.Context, createAccessPolicyOptions *CreateAccessPolicyOptions) (result *AccessPolicyResp, response *core.DetailedResponse, err error)
CreateAccessPolicyWithContext is an alternate form of the CreateAccessPolicy method which supports a Context parameter
func (*MtlsV1) DeleteAccessApplication ¶
func (mtls *MtlsV1) DeleteAccessApplication(deleteAccessApplicationOptions *DeleteAccessApplicationOptions) (result *DeleteAccessAppResp, response *core.DetailedResponse, err error)
DeleteAccessApplication : Delete access application Delete access application.
func (*MtlsV1) DeleteAccessApplicationWithContext ¶
func (mtls *MtlsV1) DeleteAccessApplicationWithContext(ctx context.Context, deleteAccessApplicationOptions *DeleteAccessApplicationOptions) (result *DeleteAccessAppResp, response *core.DetailedResponse, err error)
DeleteAccessApplicationWithContext is an alternate form of the DeleteAccessApplication method which supports a Context parameter
func (*MtlsV1) DeleteAccessCertificate ¶
func (mtls *MtlsV1) DeleteAccessCertificate(deleteAccessCertificateOptions *DeleteAccessCertificateOptions) (result *DeleteAccessCertResp, response *core.DetailedResponse, err error)
DeleteAccessCertificate : Delete access certificate Delete access certificate.
func (*MtlsV1) DeleteAccessCertificateWithContext ¶
func (mtls *MtlsV1) DeleteAccessCertificateWithContext(ctx context.Context, deleteAccessCertificateOptions *DeleteAccessCertificateOptions) (result *DeleteAccessCertResp, response *core.DetailedResponse, err error)
DeleteAccessCertificateWithContext is an alternate form of the DeleteAccessCertificate method which supports a Context parameter
func (*MtlsV1) DeleteAccessPolicy ¶
func (mtls *MtlsV1) DeleteAccessPolicy(deleteAccessPolicyOptions *DeleteAccessPolicyOptions) (result *DeleteAccessPolicyResp, response *core.DetailedResponse, err error)
DeleteAccessPolicy : Delete access policy Delete access policy.
func (*MtlsV1) DeleteAccessPolicyWithContext ¶
func (mtls *MtlsV1) DeleteAccessPolicyWithContext(ctx context.Context, deleteAccessPolicyOptions *DeleteAccessPolicyOptions) (result *DeleteAccessPolicyResp, response *core.DetailedResponse, err error)
DeleteAccessPolicyWithContext is an alternate form of the DeleteAccessPolicy method which supports a Context parameter
func (*MtlsV1) DisableRetries ¶
func (mtls *MtlsV1) DisableRetries()
DisableRetries disables automatic retries for requests invoked for this service instance.
func (*MtlsV1) EnableRetries ¶
EnableRetries enables automatic retries for requests invoked for this service instance. If either parameter is specified as 0, then a default value is used instead.
func (*MtlsV1) GetAccessApplication ¶
func (mtls *MtlsV1) GetAccessApplication(getAccessApplicationOptions *GetAccessApplicationOptions) (result *AccessAppResp, response *core.DetailedResponse, err error)
GetAccessApplication : Get access application Get access application.
func (*MtlsV1) GetAccessApplicationWithContext ¶
func (mtls *MtlsV1) GetAccessApplicationWithContext(ctx context.Context, getAccessApplicationOptions *GetAccessApplicationOptions) (result *AccessAppResp, response *core.DetailedResponse, err error)
GetAccessApplicationWithContext is an alternate form of the GetAccessApplication method which supports a Context parameter
func (*MtlsV1) GetAccessCertSettings ¶
func (mtls *MtlsV1) GetAccessCertSettings(getAccessCertSettingsOptions *GetAccessCertSettingsOptions) (result *AccessCertSettingsResp, response *core.DetailedResponse, err error)
GetAccessCertSettings : Get access certificates settings Get access certificates settings.
func (*MtlsV1) GetAccessCertSettingsWithContext ¶
func (mtls *MtlsV1) GetAccessCertSettingsWithContext(ctx context.Context, getAccessCertSettingsOptions *GetAccessCertSettingsOptions) (result *AccessCertSettingsResp, response *core.DetailedResponse, err error)
GetAccessCertSettingsWithContext is an alternate form of the GetAccessCertSettings method which supports a Context parameter
func (*MtlsV1) GetAccessCertificate ¶
func (mtls *MtlsV1) GetAccessCertificate(getAccessCertificateOptions *GetAccessCertificateOptions) (result *AccessCertResp, response *core.DetailedResponse, err error)
GetAccessCertificate : Get access certificate Get access certificate.
func (*MtlsV1) GetAccessCertificateWithContext ¶
func (mtls *MtlsV1) GetAccessCertificateWithContext(ctx context.Context, getAccessCertificateOptions *GetAccessCertificateOptions) (result *AccessCertResp, response *core.DetailedResponse, err error)
GetAccessCertificateWithContext is an alternate form of the GetAccessCertificate method which supports a Context parameter
func (*MtlsV1) GetAccessPolicy ¶
func (mtls *MtlsV1) GetAccessPolicy(getAccessPolicyOptions *GetAccessPolicyOptions) (result *AccessPolicyResp, response *core.DetailedResponse, err error)
GetAccessPolicy : Get access policy Get access policy.
func (*MtlsV1) GetAccessPolicyWithContext ¶
func (mtls *MtlsV1) GetAccessPolicyWithContext(ctx context.Context, getAccessPolicyOptions *GetAccessPolicyOptions) (result *AccessPolicyResp, response *core.DetailedResponse, err error)
GetAccessPolicyWithContext is an alternate form of the GetAccessPolicy method which supports a Context parameter
func (*MtlsV1) GetEnableGzipCompression ¶
GetEnableGzipCompression returns the service's EnableGzipCompression field
func (*MtlsV1) GetServiceURL ¶
GetServiceURL returns the service URL
func (*MtlsV1) ListAccessApplications ¶
func (mtls *MtlsV1) ListAccessApplications(listAccessApplicationsOptions *ListAccessApplicationsOptions) (result *ListAccessAppsResp, response *core.DetailedResponse, err error)
ListAccessApplications : List access applications List access applications.
func (*MtlsV1) ListAccessApplicationsWithContext ¶
func (mtls *MtlsV1) ListAccessApplicationsWithContext(ctx context.Context, listAccessApplicationsOptions *ListAccessApplicationsOptions) (result *ListAccessAppsResp, response *core.DetailedResponse, err error)
ListAccessApplicationsWithContext is an alternate form of the ListAccessApplications method which supports a Context parameter
func (*MtlsV1) ListAccessCertificates ¶
func (mtls *MtlsV1) ListAccessCertificates(listAccessCertificatesOptions *ListAccessCertificatesOptions) (result *ListAccessCertsResp, response *core.DetailedResponse, err error)
ListAccessCertificates : List access certificates List access certificates.
func (*MtlsV1) ListAccessCertificatesWithContext ¶
func (mtls *MtlsV1) ListAccessCertificatesWithContext(ctx context.Context, listAccessCertificatesOptions *ListAccessCertificatesOptions) (result *ListAccessCertsResp, response *core.DetailedResponse, err error)
ListAccessCertificatesWithContext is an alternate form of the ListAccessCertificates method which supports a Context parameter
func (*MtlsV1) ListAccessPolicies ¶
func (mtls *MtlsV1) ListAccessPolicies(listAccessPoliciesOptions *ListAccessPoliciesOptions) (result *ListAccessPoliciesResp, response *core.DetailedResponse, err error)
ListAccessPolicies : List access policies List access policies.
func (*MtlsV1) ListAccessPoliciesWithContext ¶
func (mtls *MtlsV1) ListAccessPoliciesWithContext(ctx context.Context, listAccessPoliciesOptions *ListAccessPoliciesOptions) (result *ListAccessPoliciesResp, response *core.DetailedResponse, err error)
ListAccessPoliciesWithContext is an alternate form of the ListAccessPolicies method which supports a Context parameter
func (*MtlsV1) NewAccessCertSettingsInputArray ¶
func (*MtlsV1) NewAccessCertSettingsInputArray(hostname string, clientCertificateForwarding bool) (_model *AccessCertSettingsInputArray, err error)
NewAccessCertSettingsInputArray : Instantiate AccessCertSettingsInputArray (Generic Model Constructor)
func (*MtlsV1) NewCreateAccessApplicationOptions ¶
func (*MtlsV1) NewCreateAccessApplicationOptions(zoneID string) *CreateAccessApplicationOptions
NewCreateAccessApplicationOptions : Instantiate CreateAccessApplicationOptions
func (*MtlsV1) NewCreateAccessCertificateOptions ¶
func (*MtlsV1) NewCreateAccessCertificateOptions(zoneID string) *CreateAccessCertificateOptions
NewCreateAccessCertificateOptions : Instantiate CreateAccessCertificateOptions
func (*MtlsV1) NewCreateAccessOrganizationOptions ¶
func (*MtlsV1) NewCreateAccessOrganizationOptions() *CreateAccessOrganizationOptions
NewCreateAccessOrganizationOptions : Instantiate CreateAccessOrganizationOptions
func (*MtlsV1) NewCreateAccessPolicyOptions ¶
func (*MtlsV1) NewCreateAccessPolicyOptions(zoneID string, appID string) *CreateAccessPolicyOptions
NewCreateAccessPolicyOptions : Instantiate CreateAccessPolicyOptions
func (*MtlsV1) NewDeleteAccessApplicationOptions ¶
func (*MtlsV1) NewDeleteAccessApplicationOptions(zoneID string, appID string) *DeleteAccessApplicationOptions
NewDeleteAccessApplicationOptions : Instantiate DeleteAccessApplicationOptions
func (*MtlsV1) NewDeleteAccessCertificateOptions ¶
func (*MtlsV1) NewDeleteAccessCertificateOptions(zoneID string, certID string) *DeleteAccessCertificateOptions
NewDeleteAccessCertificateOptions : Instantiate DeleteAccessCertificateOptions
func (*MtlsV1) NewDeleteAccessPolicyOptions ¶
func (*MtlsV1) NewDeleteAccessPolicyOptions(zoneID string, appID string, policyID string) *DeleteAccessPolicyOptions
NewDeleteAccessPolicyOptions : Instantiate DeleteAccessPolicyOptions
func (*MtlsV1) NewGetAccessApplicationOptions ¶
func (*MtlsV1) NewGetAccessApplicationOptions(zoneID string, appID string) *GetAccessApplicationOptions
NewGetAccessApplicationOptions : Instantiate GetAccessApplicationOptions
func (*MtlsV1) NewGetAccessCertSettingsOptions ¶
func (*MtlsV1) NewGetAccessCertSettingsOptions(zoneID string) *GetAccessCertSettingsOptions
NewGetAccessCertSettingsOptions : Instantiate GetAccessCertSettingsOptions
func (*MtlsV1) NewGetAccessCertificateOptions ¶
func (*MtlsV1) NewGetAccessCertificateOptions(zoneID string, certID string) *GetAccessCertificateOptions
NewGetAccessCertificateOptions : Instantiate GetAccessCertificateOptions
func (*MtlsV1) NewGetAccessPolicyOptions ¶
func (*MtlsV1) NewGetAccessPolicyOptions(zoneID string, appID string, policyID string) *GetAccessPolicyOptions
NewGetAccessPolicyOptions : Instantiate GetAccessPolicyOptions
func (*MtlsV1) NewListAccessApplicationsOptions ¶
func (*MtlsV1) NewListAccessApplicationsOptions(zoneID string) *ListAccessApplicationsOptions
NewListAccessApplicationsOptions : Instantiate ListAccessApplicationsOptions
func (*MtlsV1) NewListAccessCertificatesOptions ¶
func (*MtlsV1) NewListAccessCertificatesOptions(zoneID string) *ListAccessCertificatesOptions
NewListAccessCertificatesOptions : Instantiate ListAccessCertificatesOptions
func (*MtlsV1) NewListAccessPoliciesOptions ¶
func (*MtlsV1) NewListAccessPoliciesOptions(zoneID string, appID string) *ListAccessPoliciesOptions
NewListAccessPoliciesOptions : Instantiate ListAccessPoliciesOptions
func (*MtlsV1) NewPolicyCnRuleCommonName ¶
func (*MtlsV1) NewPolicyCnRuleCommonName(commonName string) (_model *PolicyCnRuleCommonName, err error)
NewPolicyCnRuleCommonName : Instantiate PolicyCnRuleCommonName (Generic Model Constructor)
func (*MtlsV1) NewPolicyRulePolicyCnRule ¶
func (*MtlsV1) NewPolicyRulePolicyCnRule(commonName *PolicyCnRuleCommonName) (_model *PolicyRulePolicyCnRule, err error)
NewPolicyRulePolicyCnRule : Instantiate PolicyRulePolicyCnRule (Generic Model Constructor)
func (*MtlsV1) NewUpdateAccessApplicationOptions ¶
func (*MtlsV1) NewUpdateAccessApplicationOptions(zoneID string, appID string) *UpdateAccessApplicationOptions
NewUpdateAccessApplicationOptions : Instantiate UpdateAccessApplicationOptions
func (*MtlsV1) NewUpdateAccessCertSettingsOptions ¶
func (*MtlsV1) NewUpdateAccessCertSettingsOptions(zoneID string) *UpdateAccessCertSettingsOptions
NewUpdateAccessCertSettingsOptions : Instantiate UpdateAccessCertSettingsOptions
func (*MtlsV1) NewUpdateAccessCertificateOptions ¶
func (*MtlsV1) NewUpdateAccessCertificateOptions(zoneID string, certID string) *UpdateAccessCertificateOptions
NewUpdateAccessCertificateOptions : Instantiate UpdateAccessCertificateOptions
func (*MtlsV1) NewUpdateAccessPolicyOptions ¶
func (*MtlsV1) NewUpdateAccessPolicyOptions(zoneID string, appID string, policyID string) *UpdateAccessPolicyOptions
NewUpdateAccessPolicyOptions : Instantiate UpdateAccessPolicyOptions
func (*MtlsV1) SetDefaultHeaders ¶
SetDefaultHeaders sets HTTP headers to be sent in every request
func (*MtlsV1) SetEnableGzipCompression ¶
SetEnableGzipCompression sets the service's EnableGzipCompression field
func (*MtlsV1) SetServiceURL ¶
SetServiceURL sets the service URL
func (*MtlsV1) UpdateAccessApplication ¶
func (mtls *MtlsV1) UpdateAccessApplication(updateAccessApplicationOptions *UpdateAccessApplicationOptions) (result *AccessAppResp, response *core.DetailedResponse, err error)
UpdateAccessApplication : Update access application Update access application.
func (*MtlsV1) UpdateAccessApplicationWithContext ¶
func (mtls *MtlsV1) UpdateAccessApplicationWithContext(ctx context.Context, updateAccessApplicationOptions *UpdateAccessApplicationOptions) (result *AccessAppResp, response *core.DetailedResponse, err error)
UpdateAccessApplicationWithContext is an alternate form of the UpdateAccessApplication method which supports a Context parameter
func (*MtlsV1) UpdateAccessCertSettings ¶
func (mtls *MtlsV1) UpdateAccessCertSettings(updateAccessCertSettingsOptions *UpdateAccessCertSettingsOptions) (result *AccessCertSettingsResp, response *core.DetailedResponse, err error)
UpdateAccessCertSettings : Update access certificates settings Update access certificates settings.
func (*MtlsV1) UpdateAccessCertSettingsWithContext ¶
func (mtls *MtlsV1) UpdateAccessCertSettingsWithContext(ctx context.Context, updateAccessCertSettingsOptions *UpdateAccessCertSettingsOptions) (result *AccessCertSettingsResp, response *core.DetailedResponse, err error)
UpdateAccessCertSettingsWithContext is an alternate form of the UpdateAccessCertSettings method which supports a Context parameter
func (*MtlsV1) UpdateAccessCertificate ¶
func (mtls *MtlsV1) UpdateAccessCertificate(updateAccessCertificateOptions *UpdateAccessCertificateOptions) (result *AccessCertResp, response *core.DetailedResponse, err error)
UpdateAccessCertificate : Update access certificate Update access certificate.
func (*MtlsV1) UpdateAccessCertificateWithContext ¶
func (mtls *MtlsV1) UpdateAccessCertificateWithContext(ctx context.Context, updateAccessCertificateOptions *UpdateAccessCertificateOptions) (result *AccessCertResp, response *core.DetailedResponse, err error)
UpdateAccessCertificateWithContext is an alternate form of the UpdateAccessCertificate method which supports a Context parameter
func (*MtlsV1) UpdateAccessPolicy ¶
func (mtls *MtlsV1) UpdateAccessPolicy(updateAccessPolicyOptions *UpdateAccessPolicyOptions) (result *AccessPolicyResp, response *core.DetailedResponse, err error)
UpdateAccessPolicy : Update access policy Update access policy.
func (*MtlsV1) UpdateAccessPolicyWithContext ¶
func (mtls *MtlsV1) UpdateAccessPolicyWithContext(ctx context.Context, updateAccessPolicyOptions *UpdateAccessPolicyOptions) (result *AccessPolicyResp, response *core.DetailedResponse, err error)
UpdateAccessPolicyWithContext is an alternate form of the UpdateAccessPolicy method which supports a Context parameter
type MtlsV1Options ¶
type MtlsV1Options struct { ServiceName string URL string Authenticator core.Authenticator // Cloud resource name. Crn *string `validate:"required"` }
MtlsV1Options : Service options
type PolicyCnRuleCommonName ¶
type PolicyCnRuleCommonName struct { // Common name of client certificate. CommonName *string `json:"common_name" validate:"required"` }
PolicyCnRuleCommonName : PolicyCnRuleCommonName struct
type PolicyResult ¶
type PolicyResult struct { // Policy ID. ID *string `json:"id,omitempty"` // Policy name. Name *string `json:"name,omitempty"` // The action Access takes if the policy matches the user. Decision *string `json:"decision,omitempty"` // The include policy works like an OR logical operator. Include []PolicyRuleIntf `json:"include,omitempty"` // The exclude policy works like a NOT logical operator. Exclude []PolicyRuleIntf `json:"exclude,omitempty"` // The unique precedence for policies on a single application. Precedence *int64 `json:"precedence,omitempty"` // The require policy works like a AND logical operator. Require []PolicyRuleIntf `json:"require,omitempty"` // UUID, same as ID. Uid *string `json:"uid,omitempty"` // Created time of the policy. CreatedAt *string `json:"created_at,omitempty"` // Updated time of the policy. UpdatedAt *string `json:"updated_at,omitempty"` }
PolicyResult : Access policies information.
type PolicyRule ¶
type PolicyRule struct { Certificate interface{} `json:"certificate,omitempty"` CommonName *PolicyCnRuleCommonName `json:"common_name,omitempty"` }
PolicyRule : Policy rule. Models which "extend" this model: - PolicyRulePolicyCertRule - PolicyRulePolicyCnRule
type PolicyRuleIntf ¶
type PolicyRuleIntf interface {
// contains filtered or unexported methods
}
type PolicyRulePolicyCertRule ¶
type PolicyRulePolicyCertRule struct {
Certificate interface{} `json:"certificate,omitempty"`
}
PolicyRulePolicyCertRule : Policy rule of certificate. This model "extends" PolicyRule
type PolicyRulePolicyCnRule ¶
type PolicyRulePolicyCnRule struct {
CommonName *PolicyCnRuleCommonName `json:"common_name" validate:"required"`
}
PolicyRulePolicyCnRule : Policy rule of common name. This model "extends" PolicyRule
type UpdateAccessApplicationOptions ¶
type UpdateAccessApplicationOptions struct { // Zone ID. ZoneID *string `json:"zone_id" validate:"required,ne="` // Access application ID. AppID *string `json:"app_id" validate:"required,ne="` // Application name. Name *string `json:"name,omitempty"` // The domain and path that Access blocks. Domain *string `json:"domain,omitempty"` // The amount of time that the tokens issued for this application are valid. SessionDuration *string `json:"session_duration,omitempty"` // Allows users to set headers on API requests Headers map[string]string }
UpdateAccessApplicationOptions : The UpdateAccessApplication options.
func (*UpdateAccessApplicationOptions) SetAppID ¶
func (_options *UpdateAccessApplicationOptions) SetAppID(appID string) *UpdateAccessApplicationOptions
SetAppID : Allow user to set AppID
func (*UpdateAccessApplicationOptions) SetDomain ¶
func (_options *UpdateAccessApplicationOptions) SetDomain(domain string) *UpdateAccessApplicationOptions
SetDomain : Allow user to set Domain
func (*UpdateAccessApplicationOptions) SetHeaders ¶
func (options *UpdateAccessApplicationOptions) SetHeaders(param map[string]string) *UpdateAccessApplicationOptions
SetHeaders : Allow user to set Headers
func (*UpdateAccessApplicationOptions) SetName ¶
func (_options *UpdateAccessApplicationOptions) SetName(name string) *UpdateAccessApplicationOptions
SetName : Allow user to set Name
func (*UpdateAccessApplicationOptions) SetSessionDuration ¶
func (_options *UpdateAccessApplicationOptions) SetSessionDuration(sessionDuration string) *UpdateAccessApplicationOptions
SetSessionDuration : Allow user to set SessionDuration
func (*UpdateAccessApplicationOptions) SetZoneID ¶
func (_options *UpdateAccessApplicationOptions) SetZoneID(zoneID string) *UpdateAccessApplicationOptions
SetZoneID : Allow user to set ZoneID
type UpdateAccessCertSettingsOptions ¶
type UpdateAccessCertSettingsOptions struct { // Zone ID. ZoneID *string `json:"zone_id" validate:"required,ne="` Settings []AccessCertSettingsInputArray `json:"settings,omitempty"` // Allows users to set headers on API requests Headers map[string]string }
UpdateAccessCertSettingsOptions : The UpdateAccessCertSettings options.
func (*UpdateAccessCertSettingsOptions) SetHeaders ¶
func (options *UpdateAccessCertSettingsOptions) SetHeaders(param map[string]string) *UpdateAccessCertSettingsOptions
SetHeaders : Allow user to set Headers
func (*UpdateAccessCertSettingsOptions) SetSettings ¶
func (_options *UpdateAccessCertSettingsOptions) SetSettings(settings []AccessCertSettingsInputArray) *UpdateAccessCertSettingsOptions
SetSettings : Allow user to set Settings
func (*UpdateAccessCertSettingsOptions) SetZoneID ¶
func (_options *UpdateAccessCertSettingsOptions) SetZoneID(zoneID string) *UpdateAccessCertSettingsOptions
SetZoneID : Allow user to set ZoneID
type UpdateAccessCertificateOptions ¶
type UpdateAccessCertificateOptions struct { // Zone ID. ZoneID *string `json:"zone_id" validate:"required,ne="` // Access certificate ID. CertID *string `json:"cert_id" validate:"required,ne="` // Access certificate name. Name *string `json:"name,omitempty"` // The hostnames that are prompted for this certificate. AssociatedHostnames []string `json:"associated_hostnames,omitempty"` // Allows users to set headers on API requests Headers map[string]string }
UpdateAccessCertificateOptions : The UpdateAccessCertificate options.
func (*UpdateAccessCertificateOptions) SetAssociatedHostnames ¶
func (_options *UpdateAccessCertificateOptions) SetAssociatedHostnames(associatedHostnames []string) *UpdateAccessCertificateOptions
SetAssociatedHostnames : Allow user to set AssociatedHostnames
func (*UpdateAccessCertificateOptions) SetCertID ¶
func (_options *UpdateAccessCertificateOptions) SetCertID(certID string) *UpdateAccessCertificateOptions
SetCertID : Allow user to set CertID
func (*UpdateAccessCertificateOptions) SetHeaders ¶
func (options *UpdateAccessCertificateOptions) SetHeaders(param map[string]string) *UpdateAccessCertificateOptions
SetHeaders : Allow user to set Headers
func (*UpdateAccessCertificateOptions) SetName ¶
func (_options *UpdateAccessCertificateOptions) SetName(name string) *UpdateAccessCertificateOptions
SetName : Allow user to set Name
func (*UpdateAccessCertificateOptions) SetZoneID ¶
func (_options *UpdateAccessCertificateOptions) SetZoneID(zoneID string) *UpdateAccessCertificateOptions
SetZoneID : Allow user to set ZoneID
type UpdateAccessPolicyOptions ¶
type UpdateAccessPolicyOptions struct { // Zone ID. ZoneID *string `json:"zone_id" validate:"required,ne="` // Access application ID. AppID *string `json:"app_id" validate:"required,ne="` // Access policy ID. PolicyID *string `json:"policy_id" validate:"required,ne="` // Policy name. Name *string `json:"name,omitempty"` // Defines the action Access takes if the policy matches the user. Decision *string `json:"decision,omitempty"` // The include policy works like an OR logical operator. The user must satisfy one of the rules in includes. Include []PolicyRuleIntf `json:"include,omitempty"` // Allows users to set headers on API requests Headers map[string]string }
UpdateAccessPolicyOptions : The UpdateAccessPolicy options.
func (*UpdateAccessPolicyOptions) SetAppID ¶
func (_options *UpdateAccessPolicyOptions) SetAppID(appID string) *UpdateAccessPolicyOptions
SetAppID : Allow user to set AppID
func (*UpdateAccessPolicyOptions) SetDecision ¶
func (_options *UpdateAccessPolicyOptions) SetDecision(decision string) *UpdateAccessPolicyOptions
SetDecision : Allow user to set Decision
func (*UpdateAccessPolicyOptions) SetHeaders ¶
func (options *UpdateAccessPolicyOptions) SetHeaders(param map[string]string) *UpdateAccessPolicyOptions
SetHeaders : Allow user to set Headers
func (*UpdateAccessPolicyOptions) SetInclude ¶
func (_options *UpdateAccessPolicyOptions) SetInclude(include []PolicyRuleIntf) *UpdateAccessPolicyOptions
SetInclude : Allow user to set Include
func (*UpdateAccessPolicyOptions) SetName ¶
func (_options *UpdateAccessPolicyOptions) SetName(name string) *UpdateAccessPolicyOptions
SetName : Allow user to set Name
func (*UpdateAccessPolicyOptions) SetPolicyID ¶
func (_options *UpdateAccessPolicyOptions) SetPolicyID(policyID string) *UpdateAccessPolicyOptions
SetPolicyID : Allow user to set PolicyID
func (*UpdateAccessPolicyOptions) SetZoneID ¶
func (_options *UpdateAccessPolicyOptions) SetZoneID(zoneID string) *UpdateAccessPolicyOptions
SetZoneID : Allow user to set ZoneID