Documentation
¶
Index ¶
- type ActionType
- type AdditionalCacheNodeProperties
- type AdditionalCustomerProperties
- type AutoUpdateRingType
- type BgpCidrsConfiguration
- type BgpConfiguration
- type BgpReviewStateEnum
- type CacheNodeDriveConfiguration
- type CacheNodeEntity
- type CacheNodeInstallProperties
- type CacheNodeProperty
- type ClientFactory
- func (c *ClientFactory) NewEnterpriseMccCacheNodesOperationsClient() *EnterpriseMccCacheNodesOperationsClient
- func (c *ClientFactory) NewEnterpriseMccCustomersClient() *EnterpriseMccCustomersClient
- func (c *ClientFactory) NewIspCacheNodesOperationsClient() *IspCacheNodesOperationsClient
- func (c *ClientFactory) NewIspCustomersClient() *IspCustomersClient
- func (c *ClientFactory) NewOperationsClient() *OperationsClient
- type ConfigurationState
- type CreatedByType
- type CustomerEntity
- type CustomerProperty
- type CustomerTransitState
- type EnterpriseMccCacheNodeResource
- type EnterpriseMccCacheNodeResourceListResult
- type EnterpriseMccCacheNodesOperationsClient
- func (client *EnterpriseMccCacheNodesOperationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (*runtime.Poller[EnterpriseMccCacheNodesOperationsClientCreateOrUpdateResponse], ...)
- func (client *EnterpriseMccCacheNodesOperationsClient) BeginDelete(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (*runtime.Poller[EnterpriseMccCacheNodesOperationsClientDeleteResponse], error)
- func (client *EnterpriseMccCacheNodesOperationsClient) Get(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (EnterpriseMccCacheNodesOperationsClientGetResponse, error)
- func (client *EnterpriseMccCacheNodesOperationsClient) GetCacheNodeAutoUpdateHistory(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (EnterpriseMccCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryResponse, ...)
- func (client *EnterpriseMccCacheNodesOperationsClient) GetCacheNodeInstallDetails(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (EnterpriseMccCacheNodesOperationsClientGetCacheNodeInstallDetailsResponse, ...)
- func (client *EnterpriseMccCacheNodesOperationsClient) GetCacheNodeMccIssueDetailsHistory(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (...)
- func (client *EnterpriseMccCacheNodesOperationsClient) GetCacheNodeTLSCertificateHistory(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (...)
- func (client *EnterpriseMccCacheNodesOperationsClient) NewListByEnterpriseMccCustomerResourcePager(resourceGroupName string, customerResourceName string, ...) ...
- func (client *EnterpriseMccCacheNodesOperationsClient) Update(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (EnterpriseMccCacheNodesOperationsClientUpdateResponse, error)
- type EnterpriseMccCacheNodesOperationsClientBeginCreateOrUpdateOptions
- type EnterpriseMccCacheNodesOperationsClientBeginDeleteOptions
- type EnterpriseMccCacheNodesOperationsClientCreateOrUpdateResponse
- type EnterpriseMccCacheNodesOperationsClientDeleteResponse
- type EnterpriseMccCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryOptions
- type EnterpriseMccCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryResponse
- type EnterpriseMccCacheNodesOperationsClientGetCacheNodeInstallDetailsOptions
- type EnterpriseMccCacheNodesOperationsClientGetCacheNodeInstallDetailsResponse
- type EnterpriseMccCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryOptions
- type EnterpriseMccCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryResponse
- type EnterpriseMccCacheNodesOperationsClientGetCacheNodeTLSCertificateHistoryOptions
- type EnterpriseMccCacheNodesOperationsClientGetCacheNodeTLSCertificateHistoryResponse
- type EnterpriseMccCacheNodesOperationsClientGetOptions
- type EnterpriseMccCacheNodesOperationsClientGetResponse
- type EnterpriseMccCacheNodesOperationsClientListByEnterpriseMccCustomerResourceOptions
- type EnterpriseMccCacheNodesOperationsClientListByEnterpriseMccCustomerResourceResponse
- type EnterpriseMccCacheNodesOperationsClientUpdateOptions
- type EnterpriseMccCacheNodesOperationsClientUpdateResponse
- type EnterpriseMccCustomerResource
- type EnterpriseMccCustomerResourceListResult
- type EnterpriseMccCustomersClient
- func (client *EnterpriseMccCustomersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (*runtime.Poller[EnterpriseMccCustomersClientCreateOrUpdateResponse], error)
- func (client *EnterpriseMccCustomersClient) BeginDelete(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (*runtime.Poller[EnterpriseMccCustomersClientDeleteResponse], error)
- func (client *EnterpriseMccCustomersClient) Get(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (EnterpriseMccCustomersClientGetResponse, error)
- func (client *EnterpriseMccCustomersClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[EnterpriseMccCustomersClientListByResourceGroupResponse]
- func (client *EnterpriseMccCustomersClient) NewListBySubscriptionPager(options *EnterpriseMccCustomersClientListBySubscriptionOptions) *runtime.Pager[EnterpriseMccCustomersClientListBySubscriptionResponse]
- func (client *EnterpriseMccCustomersClient) Update(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (EnterpriseMccCustomersClientUpdateResponse, error)
- type EnterpriseMccCustomersClientBeginCreateOrUpdateOptions
- type EnterpriseMccCustomersClientBeginDeleteOptions
- type EnterpriseMccCustomersClientCreateOrUpdateResponse
- type EnterpriseMccCustomersClientDeleteResponse
- type EnterpriseMccCustomersClientGetOptions
- type EnterpriseMccCustomersClientGetResponse
- type EnterpriseMccCustomersClientListByResourceGroupOptions
- type EnterpriseMccCustomersClientListByResourceGroupResponse
- type EnterpriseMccCustomersClientListBySubscriptionOptions
- type EnterpriseMccCustomersClientListBySubscriptionResponse
- type EnterpriseMccCustomersClientUpdateOptions
- type EnterpriseMccCustomersClientUpdateResponse
- type ErrorAdditionalInfo
- type ErrorDetail
- type IspCacheNodeResource
- type IspCacheNodeResourceListResult
- type IspCacheNodesOperationsClient
- func (client *IspCacheNodesOperationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (*runtime.Poller[IspCacheNodesOperationsClientCreateOrUpdateResponse], error)
- func (client *IspCacheNodesOperationsClient) BeginDelete(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (*runtime.Poller[IspCacheNodesOperationsClientDeleteResponse], error)
- func (client *IspCacheNodesOperationsClient) Get(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (IspCacheNodesOperationsClientGetResponse, error)
- func (client *IspCacheNodesOperationsClient) GetBgpCidrs(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (IspCacheNodesOperationsClientGetBgpCidrsResponse, error)
- func (client *IspCacheNodesOperationsClient) GetCacheNodeAutoUpdateHistory(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (IspCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryResponse, error)
- func (client *IspCacheNodesOperationsClient) GetCacheNodeInstallDetails(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (IspCacheNodesOperationsClientGetCacheNodeInstallDetailsResponse, error)
- func (client *IspCacheNodesOperationsClient) GetCacheNodeMccIssueDetailsHistory(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (IspCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryResponse, error)
- func (client *IspCacheNodesOperationsClient) NewListByIspCustomerResourcePager(resourceGroupName string, customerResourceName string, ...) *runtime.Pager[IspCacheNodesOperationsClientListByIspCustomerResourceResponse]
- func (client *IspCacheNodesOperationsClient) Update(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (IspCacheNodesOperationsClientUpdateResponse, error)
- type IspCacheNodesOperationsClientBeginCreateOrUpdateOptions
- type IspCacheNodesOperationsClientBeginDeleteOptions
- type IspCacheNodesOperationsClientCreateOrUpdateResponse
- type IspCacheNodesOperationsClientDeleteResponse
- type IspCacheNodesOperationsClientGetBgpCidrsOptions
- type IspCacheNodesOperationsClientGetBgpCidrsResponse
- type IspCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryOptions
- type IspCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryResponse
- type IspCacheNodesOperationsClientGetCacheNodeInstallDetailsOptions
- type IspCacheNodesOperationsClientGetCacheNodeInstallDetailsResponse
- type IspCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryOptions
- type IspCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryResponse
- type IspCacheNodesOperationsClientGetOptions
- type IspCacheNodesOperationsClientGetResponse
- type IspCacheNodesOperationsClientListByIspCustomerResourceOptions
- type IspCacheNodesOperationsClientListByIspCustomerResourceResponse
- type IspCacheNodesOperationsClientUpdateOptions
- type IspCacheNodesOperationsClientUpdateResponse
- type IspCustomerResource
- type IspCustomerResourceListResult
- type IspCustomersClient
- func (client *IspCustomersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (*runtime.Poller[IspCustomersClientCreateOrUpdateResponse], error)
- func (client *IspCustomersClient) BeginDelete(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (*runtime.Poller[IspCustomersClientDeleteResponse], error)
- func (client *IspCustomersClient) Get(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (IspCustomersClientGetResponse, error)
- func (client *IspCustomersClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[IspCustomersClientListByResourceGroupResponse]
- func (client *IspCustomersClient) NewListBySubscriptionPager(options *IspCustomersClientListBySubscriptionOptions) *runtime.Pager[IspCustomersClientListBySubscriptionResponse]
- func (client *IspCustomersClient) Update(ctx context.Context, resourceGroupName string, customerResourceName string, ...) (IspCustomersClientUpdateResponse, error)
- type IspCustomersClientBeginCreateOrUpdateOptions
- type IspCustomersClientBeginDeleteOptions
- type IspCustomersClientCreateOrUpdateResponse
- type IspCustomersClientDeleteResponse
- type IspCustomersClientGetOptions
- type IspCustomersClientGetResponse
- type IspCustomersClientListByResourceGroupOptions
- type IspCustomersClientListByResourceGroupResponse
- type IspCustomersClientListBySubscriptionOptions
- type IspCustomersClientListBySubscriptionResponse
- type IspCustomersClientUpdateOptions
- type IspCustomersClientUpdateResponse
- type MccCacheNodeAutoUpdateHistory
- type MccCacheNodeAutoUpdateHistoryProperties
- type MccCacheNodeAutoUpdateInfo
- type MccCacheNodeBgpCidrDetails
- type MccCacheNodeInstallDetails
- type MccCacheNodeIssueHistory
- type MccCacheNodeIssueHistoryProperties
- type MccCacheNodeTLSCertificate
- type MccCacheNodeTLSCertificateHistory
- type MccCacheNodeTLSCertificateProperties
- type MccIssue
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type Origin
- type OsType
- type PatchResource
- type ProvisioningState
- type ProxyRequired
- type ProxyURLConfiguration
- type SystemData
Examples ¶
- EnterpriseMccCacheNodesOperationsClient.BeginCreateOrUpdate
- EnterpriseMccCacheNodesOperationsClient.BeginDelete
- EnterpriseMccCacheNodesOperationsClient.Get
- EnterpriseMccCacheNodesOperationsClient.GetCacheNodeAutoUpdateHistory
- EnterpriseMccCacheNodesOperationsClient.GetCacheNodeInstallDetails
- EnterpriseMccCacheNodesOperationsClient.GetCacheNodeMccIssueDetailsHistory
- EnterpriseMccCacheNodesOperationsClient.GetCacheNodeTLSCertificateHistory
- EnterpriseMccCacheNodesOperationsClient.NewListByEnterpriseMccCustomerResourcePager
- EnterpriseMccCacheNodesOperationsClient.Update
- EnterpriseMccCustomersClient.BeginCreateOrUpdate
- EnterpriseMccCustomersClient.BeginDelete
- EnterpriseMccCustomersClient.Get
- EnterpriseMccCustomersClient.NewListByResourceGroupPager
- EnterpriseMccCustomersClient.NewListBySubscriptionPager
- EnterpriseMccCustomersClient.Update
- IspCacheNodesOperationsClient.BeginCreateOrUpdate
- IspCacheNodesOperationsClient.BeginDelete
- IspCacheNodesOperationsClient.Get
- IspCacheNodesOperationsClient.GetBgpCidrs
- IspCacheNodesOperationsClient.GetCacheNodeAutoUpdateHistory
- IspCacheNodesOperationsClient.GetCacheNodeInstallDetails
- IspCacheNodesOperationsClient.GetCacheNodeMccIssueDetailsHistory
- IspCacheNodesOperationsClient.NewListByIspCustomerResourcePager
- IspCacheNodesOperationsClient.Update
- IspCustomersClient.BeginCreateOrUpdate
- IspCustomersClient.BeginDelete
- IspCustomersClient.Get
- IspCustomersClient.NewListByResourceGroupPager
- IspCustomersClient.NewListBySubscriptionPager
- IspCustomersClient.Update
- OperationsClient.NewListPager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionType ¶
type ActionType string
ActionType - Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
const ( // ActionTypeInternal - Actions are for internal-only APIs. ActionTypeInternal ActionType = "Internal" )
func PossibleActionTypeValues ¶
func PossibleActionTypeValues() []ActionType
PossibleActionTypeValues returns the possible values for the ActionType const type.
type AdditionalCacheNodeProperties ¶
type AdditionalCacheNodeProperties struct {
// Auto update or fast update version
AutoUpdateVersion *string
// Cache node resource Bgp configuration.
BgpConfiguration *BgpConfiguration
// issues list to return the issues as part of the additional cache node properties
CacheNodePropertiesDetailsIssuesList []*string
// Resource creation method of mcc cache node resource, cli or portal
CreationMethod *int32
// Cache node resource drive configurations.
DriveConfiguration []*CacheNodeDriveConfiguration
// Cache node resource requires a proxy
IsProxyRequired *ProxyRequired
// Operating system of the cache node
OSType *OsType
// Optional property #1 of Mcc response object
OptionalProperty1 *string
// Optional property #2 of Mcc response object
OptionalProperty2 *string
// Optional property #3 of Mcc response object
OptionalProperty3 *string
// Optional property #4 of Mcc response object
OptionalProperty4 *string
// Optional property #5 of Mcc response object
OptionalProperty5 *string
// proxyUrl configuration of the cache node
ProxyURLConfiguration *ProxyURLConfiguration
// Update related information details
UpdateInfoDetails *string
// customer requested date time for mcc install of update cycle
UpdateRequestedDateTime *time.Time
// READ-ONLY; Cache node resource aggregated status code.
AggregatedStatusCode *int32
// READ-ONLY; Cache node resource aggregated status details.
AggregatedStatusDetails *string
// READ-ONLY; Cache node resource aggregated status text.
AggregatedStatusText *string
// READ-ONLY; Auto update version that is the applied to update on mcc cache node
AutoUpdateAppliedVersion *string
// READ-ONLY; Auto update last applied date time of mcc install
AutoUpdateLastAppliedDateTime *time.Time
// READ-ONLY; Auto Update status details from the backend after applying the new version details
AutoUpdateLastAppliedDetails *string
// READ-ONLY; Last applied auto update state for mcc install of auto update cycle
AutoUpdateLastAppliedState *string
// READ-ONLY; Auto update last triggered date time of mcc install
AutoUpdateLastTriggeredDateTime *time.Time
// READ-ONLY; Auto update last applied date time of mcc install
AutoUpdateNextAvailableDateTime *time.Time
// READ-ONLY; Auto update version that is the Next available version to update on mcc cache node
AutoUpdateNextAvailableVersion *string
// READ-ONLY; Cache node resource state as integer.
CacheNodeState *int32
// READ-ONLY; Cache node resource detailed state text.
CacheNodeStateDetailedText *string
// READ-ONLY; Cache node resource short state text.
CacheNodeStateShortText *string
// READ-ONLY; cache node current tls certificate.
CurrentTLSCertificate *MccCacheNodeTLSCertificate
// READ-ONLY; Cache node resource flag indicating if cache node has been physically installed or provisioned on their physical
// lab.
IsProvisioned *bool
// READ-ONLY; Number of cache node issues.
IssuesCount *int32
// READ-ONLY; current cache node issue list.
IssuesList []*string
// READ-ONLY; cache node last auto update information.
LastAutoUpdateInfo *MccCacheNodeAutoUpdateInfo
// READ-ONLY; Cache node resource Mcc product version.
ProductVersion *string
// READ-ONLY; Cache node tls certificate status.
TLSStatus *string
}
AdditionalCacheNodeProperties - Model representing cache node for connected cache resource
func (AdditionalCacheNodeProperties) MarshalJSON ¶
func (a AdditionalCacheNodeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AdditionalCacheNodeProperties.
func (*AdditionalCacheNodeProperties) UnmarshalJSON ¶
func (a *AdditionalCacheNodeProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AdditionalCacheNodeProperties.
type AdditionalCustomerProperties ¶
type AdditionalCustomerProperties struct {
// Customer resource Asn (autonomous system number).
CustomerAsn *string
// Customer resource contact email.
CustomerEmail *string
// Customer resource entitlement expiration date string.
CustomerEntitlementExpiration *time.Time
// Customer resource entitlement Sku Guid.
CustomerEntitlementSKUGUID *string
// Customer resource entitlement Sku Id.
CustomerEntitlementSKUID *string
// Customer resource entitlement Sku name.
CustomerEntitlementSKUName *string
// Customer resource transit Asn (autonomous system number).
CustomerTransitAsn *string
// Customer resource transit state.
CustomerTransitState *CustomerTransitState
// Optional property #1 of Mcc response object.
OptionalProperty1 *string
// Optional property #2 of Mcc response object.
OptionalProperty2 *string
// Optional property #3 of Mcc response object.
OptionalProperty3 *string
// Optional property #4 of Mcc response object.
OptionalProperty4 *string
// Optional property #5 of Mcc response object.
OptionalProperty5 *string
// READ-ONLY; Customer resource estimated Asn peering peak in Gbps.
CustomerAsnEstimatedEgressPeekGbps *float32
// READ-ONLY; Customer resource owner organization name.
CustomerOrgName *string
// READ-ONLY; Customer resource average egress in Mbps.
CustomerPropertiesOverviewAverageEgressMbps *float32
// READ-ONLY; Customer resource average cache miss throughput in Mbps.
CustomerPropertiesOverviewAverageMissMbps *float32
// READ-ONLY; Customer resource cache efficiency.
CustomerPropertiesOverviewCacheEfficiency *float32
// READ-ONLY; Customer resource total healthy cache nodes.
CustomerPropertiesOverviewCacheNodesHealthyCount *int32
// READ-ONLY; Customer resource total unhealthy cache nodes.
CustomerPropertiesOverviewCacheNodesUnhealthyCount *int32
// READ-ONLY; Customer resource maximum egress in Mbps.
CustomerPropertiesOverviewEgressMbpsMax *float32
// READ-ONLY; Customer resource peak egress timestamp.
CustomerPropertiesOverviewEgressMbpsMaxDateTime *time.Time
// READ-ONLY; Customer resource maximum cache miss throughput in Mbps.
CustomerPropertiesOverviewMissMbpsMax *float32
// READ-ONLY; Customer resource peak cache miss throughput timestamp.
CustomerPropertiesOverviewMissMbpsMaxDateTime *time.Time
// READ-ONLY; Customer resource last PeeringDB update timestamp.
PeeringDbLastUpdateDate *time.Time
// READ-ONLY; Customer resource signup phase status code as integer.
SignupPhaseStatusCode *int32
// READ-ONLY; Customer resource signup phase status as string text.
SignupPhaseStatusText *string
// READ-ONLY; Customer resource signup status as boolean.
SignupStatus *bool
// READ-ONLY; Customer resource signup status as integer code.
SignupStatusCode *int32
// READ-ONLY; Customer resource signup status as string text.
SignupStatusText *string
}
AdditionalCustomerProperties - Model representing customer for connected cache resource
func (AdditionalCustomerProperties) MarshalJSON ¶
func (a AdditionalCustomerProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AdditionalCustomerProperties.
func (*AdditionalCustomerProperties) UnmarshalJSON ¶
func (a *AdditionalCustomerProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AdditionalCustomerProperties.
type AutoUpdateRingType ¶
type AutoUpdateRingType string
AutoUpdateRingType - Auto update Ring type
const ( // AutoUpdateRingTypeFast - customer selection of fast / auto update to install mcc on their physical vm AutoUpdateRingTypeFast AutoUpdateRingType = "Fast" // AutoUpdateRingTypePreview - customer selection of preview update install mcc on their physical vm AutoUpdateRingTypePreview AutoUpdateRingType = "Preview" // AutoUpdateRingTypeSlow - customer selection of slow update to install mcc on their physical vm AutoUpdateRingTypeSlow AutoUpdateRingType = "Slow" )
func PossibleAutoUpdateRingTypeValues ¶
func PossibleAutoUpdateRingTypeValues() []AutoUpdateRingType
PossibleAutoUpdateRingTypeValues returns the possible values for the AutoUpdateRingType const type.
type BgpCidrsConfiguration ¶
type BgpCidrsConfiguration struct {
// READ-ONLY; Mcc cache node Bgp Cidr details.
BgpCidrs []*string
}
BgpCidrsConfiguration - Mcc cache node Bgp Cidr details.
func (BgpCidrsConfiguration) MarshalJSON ¶
func (b BgpCidrsConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BgpCidrsConfiguration.
func (*BgpCidrsConfiguration) UnmarshalJSON ¶
func (b *BgpCidrsConfiguration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BgpCidrsConfiguration.
type BgpConfiguration ¶
type BgpConfiguration struct {
// Asn to ip address mapping
AsnToIPAddressMapping *string
}
BgpConfiguration - Bgp configuration of cache node
func (BgpConfiguration) MarshalJSON ¶
func (b BgpConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BgpConfiguration.
func (*BgpConfiguration) UnmarshalJSON ¶
func (b *BgpConfiguration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BgpConfiguration.
type BgpReviewStateEnum ¶
type BgpReviewStateEnum string
BgpReviewStateEnum - Cache node resource Bgp review state as integer
const ( // BgpReviewStateEnumApproved - bgp is in Approved state BgpReviewStateEnumApproved BgpReviewStateEnum = "Approved" // BgpReviewStateEnumAttentionRequired - bgp is setup need an attention for more troubleshoot BgpReviewStateEnumAttentionRequired BgpReviewStateEnum = "AttentionRequired" // BgpReviewStateEnumInReview - bgp is in review state BgpReviewStateEnumInReview BgpReviewStateEnum = "InReview" // BgpReviewStateEnumNotConfigured - bgp not configured BgpReviewStateEnumNotConfigured BgpReviewStateEnum = "NotConfigured" )
func PossibleBgpReviewStateEnumValues ¶
func PossibleBgpReviewStateEnumValues() []BgpReviewStateEnum
PossibleBgpReviewStateEnumValues returns the possible values for the BgpReviewStateEnum const type.
type CacheNodeDriveConfiguration ¶
type CacheNodeDriveConfiguration struct {
// corresponding nginx cache number. Valid cache numbers are 1 - 20
CacheNumber *int32
// full binding for corresponding nginx cache drive
NginxMapping *string
// physical path location of the folder used for caching content
PhysicalPath *string
// physical size of the drive used for caching content
SizeInGb *int32
}
CacheNodeDriveConfiguration - Drive configuration for cache node
func (CacheNodeDriveConfiguration) MarshalJSON ¶
func (c CacheNodeDriveConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CacheNodeDriveConfiguration.
func (*CacheNodeDriveConfiguration) UnmarshalJSON ¶
func (c *CacheNodeDriveConfiguration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CacheNodeDriveConfiguration.
type CacheNodeEntity ¶
type CacheNodeEntity struct {
// Customer requested day of week for mcc install of auto update cycle. 0 is default no selection. 1-7 are days of week, 1
// is Sunday, 2 is Monday, etc.
AutoUpdateRequestedDay *int32
// Customer requested time of the day for mcc install of auto update cycle, should be hh:mm
AutoUpdateRequestedTime *string
// Customer requested week of month for mcc install of auto update cycle. 0 is default no selection. 1-5 are valid weeks of
// month, 1 is first week, 2 is second week, etc.
AutoUpdateRequestedWeek *int32
// Auto Update Ring Type which is slow or fast etc.
AutoUpdateRingType *AutoUpdateRingType
// Cache node resource identifier of the cache node
CacheNodeID *string
// Cache node resource name.
CacheNodeName *string
// Cache node resource comma separated values of Cidrs.
CidrCSV []*string
// Cache node resource current Cidr range precedence selection type.
CidrSelectionType *int32
// Cache node resource customer resource Asn (autonomous system number)
CustomerAsn *int32
// Cache node resource customer index as string.
CustomerIndex *string
// Cache node resource customer resource name.
CustomerName *string
// FQDN(fully qualified domain name) value of the mcc cache node
FullyQualifiedDomainName *string
// Cache node resource Azure fully qualified resource Id.
FullyQualifiedResourceID *string
// Cache node resource Ip address.
IPAddress *string
// Cache node resource flag for indicating if cache node is enabled.
IsEnabled *bool
// Cache node resource flag for determining if managed by enterprise as boolean.
IsEnterpriseManaged *bool
// Cache node resource maximum allowed egress in Mbps.
MaxAllowableEgressInMbps *int32
// Cache node resource flag for determining if customer will be migrated.
ShouldMigrate *bool
// READ-ONLY; Cache node resource total addressable space defined by the Cidr Csv block.
AddressSpace *int32
// READ-ONLY; Cache node resource total addressable space defined by Bgp and Cidr Csv blocks.
BgpAddressSpace *int32
// READ-ONLY; Cache node resource Bgp block count.
BgpCidrBlocksCount *int32
// READ-ONLY; Cache node resource last Bgp Cidr Csv update timestamp
BgpCidrCSVLastUpdateTime *time.Time
// READ-ONLY; Cache node resource bytes truncated from Bgp output file.
BgpFileBytesTruncated *int32
// READ-ONLY; Cache node resource last Bgp report timestamp.
BgpLastReportedTime *time.Time
// READ-ONLY; Cache node resource Bgp record count.
BgpNumberOfRecords *int32
// READ-ONLY; Cache node resource Bgp update count.
BgpNumberOfTimesUpdated *int32
// READ-ONLY; Cache node resource Bgp review feedback text.
BgpReviewFeedback *string
// READ-ONLY; Cache node resource Bgp review state string text.
BgpReviewState *BgpReviewStateEnum
// READ-ONLY; Cache node resource Bgp review state string text in detail.
BgpReviewStateText *string
// READ-ONLY; Cache node resource category.
Category *string
// READ-ONLY; Cache node resource last Cidr Csv update timestamp
CidrCSVLastUpdateTime *time.Time
// READ-ONLY; Cache node resource customer resource client tenant Id of subscription.
ClientTenantID *string
// READ-ONLY; Cache node resource configuration state.
ConfigurationState *ConfigurationState
// READ-ONLY; Cache node resource configuration state text.
ConfigurationStateText *string
// READ-ONLY; Cache node resource container configuration details.
ContainerConfigurations *string
// READ-ONLY; Cache node resource Mcc container configuration details re-sync trigger.
ContainerResyncTrigger *int32
// READ-ONLY; Cache node resource create async operation Id.
CreateAsyncOperationID *string
// READ-ONLY; Cache node resource customer resource GUID Id.
CustomerID *string
// READ-ONLY; Cache node resource deletion async operation Id.
DeleteAsyncOperationID *string
// READ-ONLY; Cache node resource Mcc Container Id Uri.
ImageURI *string
// READ-ONLY; Cache node resource flag for indicating the cache node resource is frozen (not selectable, not editable in UI).
IsFrozen *bool
// READ-ONLY; Cache node resource last sync timestamp.
LastSyncWithAzureTimestamp *time.Time
// READ-ONLY; Cache node resource last backend updated timestamp.
LastUpdatedTimestamp *time.Time
// READ-ONLY; Cache node resource maximum allowed probability of egress.
MaxAllowableProbability *float32
// READ-ONLY; Cache node resource release version.
ReleaseVersion *int32
// READ-ONLY; Cache node resource review feedback text.
ReviewFeedback *string
// READ-ONLY; Cache node resource review process state as integer
ReviewState *int32
// READ-ONLY; Cache node resource review state text.
ReviewStateText *string
// READ-ONLY; Cache node resource attempts to sync with Azure.
SynchWithAzureAttemptsCount *int32
// READ-ONLY; Cache node resource Mcc container deployment worker connection count.
WorkerConnections *int32
// READ-ONLY; Cache node resource last updated Mcc container deployment worker connection count timestamp.
WorkerConnectionsLastUpdatedDateTime *time.Time
// READ-ONLY; Cache node resource Azure XCid.
XCid *string
}
CacheNodeEntity - Model representing Cache Node for ConnectedCache resource
func (CacheNodeEntity) MarshalJSON ¶
func (c CacheNodeEntity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CacheNodeEntity.
func (*CacheNodeEntity) UnmarshalJSON ¶
func (c *CacheNodeEntity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CacheNodeEntity.
type CacheNodeInstallProperties ¶
type CacheNodeInstallProperties struct {
// Mcc cache node resource Id.
CacheNodeID *string
// Mcc customer resource Id.
CustomerID *string
// Cache node resource drive configurations.
DriveConfiguration []*CacheNodeDriveConfiguration
// proxyUrl configuration of the cache node
ProxyURLConfiguration *ProxyURLConfiguration
// READ-ONLY; Mcc primary account key. Internal to Mcc.
PrimaryAccountKey *string
// READ-ONLY; Mcc Iot Central temporary device registration key, used once.
RegistrationKey *string
// READ-ONLY; Mcc secondary account key. Internal to Mcc.
SecondaryAccountKey *string
// READ-ONLY; Mcc Tls certificate provisioning key.
TLSCertificateProvisioningKey *string
}
CacheNodeInstallProperties - Mcc cache node resource install script properties.
func (CacheNodeInstallProperties) MarshalJSON ¶
func (c CacheNodeInstallProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CacheNodeInstallProperties.
func (*CacheNodeInstallProperties) UnmarshalJSON ¶
func (c *CacheNodeInstallProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CacheNodeInstallProperties.
type CacheNodeProperty ¶
type CacheNodeProperty struct {
// Mcc cache node resource additional properties.
AdditionalCacheNodeProperties *AdditionalCacheNodeProperties
// Mcc cache node resource (cache node entity).
CacheNode *CacheNodeEntity
// Mcc response error details.
Error *ErrorDetail
// Mcc response status code.
StatusCode *string
// Mcc response status details for retrieving response inner details.
StatusDetails *string
// Mcc response status text as string for retrieving status details.
StatusText *string
// READ-ONLY; The provisioned state of the resource
ProvisioningState *ProvisioningState
// READ-ONLY; HTTP error status code.
Status *string
}
CacheNodeProperty - Model representing an Mcc cache node connectedCache resource
func (CacheNodeProperty) MarshalJSON ¶
func (c CacheNodeProperty) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CacheNodeProperty.
func (*CacheNodeProperty) UnmarshalJSON ¶
func (c *CacheNodeProperty) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CacheNodeProperty.
type ClientFactory ¶
type ClientFactory struct {
// contains filtered or unexported fields
}
ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.
func NewClientFactory ¶
func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)
NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewEnterpriseMccCacheNodesOperationsClient ¶
func (c *ClientFactory) NewEnterpriseMccCacheNodesOperationsClient() *EnterpriseMccCacheNodesOperationsClient
NewEnterpriseMccCacheNodesOperationsClient creates a new instance of EnterpriseMccCacheNodesOperationsClient.
func (*ClientFactory) NewEnterpriseMccCustomersClient ¶
func (c *ClientFactory) NewEnterpriseMccCustomersClient() *EnterpriseMccCustomersClient
NewEnterpriseMccCustomersClient creates a new instance of EnterpriseMccCustomersClient.
func (*ClientFactory) NewIspCacheNodesOperationsClient ¶
func (c *ClientFactory) NewIspCacheNodesOperationsClient() *IspCacheNodesOperationsClient
NewIspCacheNodesOperationsClient creates a new instance of IspCacheNodesOperationsClient.
func (*ClientFactory) NewIspCustomersClient ¶
func (c *ClientFactory) NewIspCustomersClient() *IspCustomersClient
NewIspCustomersClient creates a new instance of IspCustomersClient.
func (*ClientFactory) NewOperationsClient ¶
func (c *ClientFactory) NewOperationsClient() *OperationsClient
NewOperationsClient creates a new instance of OperationsClient.
type ConfigurationState ¶
type ConfigurationState string
ConfigurationState - Cache node configuration setup state
const ( // ConfigurationStateConfigured - connected cache setup configured ConfigurationStateConfigured ConfigurationState = "Configured" // ConfigurationStateNotConfiguredIP - connected cache setup not configured ConfigurationStateNotConfiguredIP ConfigurationState = "NotConfigured_Ip" )
func PossibleConfigurationStateValues ¶
func PossibleConfigurationStateValues() []ConfigurationState
PossibleConfigurationStateValues returns the possible values for the ConfigurationState const type.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The kind of entity that created the resource.
const ( // CreatedByTypeApplication - The entity was created by an application. CreatedByTypeApplication CreatedByType = "Application" // CreatedByTypeKey - The entity was created by a key. CreatedByTypeKey CreatedByType = "Key" // CreatedByTypeManagedIdentity - The entity was created by a managed identity. CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" // CreatedByTypeUser - The entity was created by a user. CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type CustomerEntity ¶
type CustomerEntity struct {
// Customer resource client tenant Id of subscription.
ClientTenantID *string
// Customer resource contact email.
ContactEmail *string
// Customer resource contact full name.
ContactName *string
// Customer resource contact phone.
ContactPhone *string
// Customer resource name.
CustomerName *string
// Customer resource Azure fully qualified resource Id.
FullyQualifiedResourceID *string
// Customer resource flag for enterprise management as boolean.
IsEnterpriseManaged *bool
// Customer resource entitlement flag as boolean.
IsEntitled *bool
// Customer resource Mcc release version.
ReleaseVersion *int32
// Customer resource flag for resending signup code as boolean.
ResendSignupCode *bool
// Customer resource flag for migration.
ShouldMigrate *bool
// Customer resource flag for requiring verification of signup code as boolean.
VerifySignupCode *bool
// Customer resource phrase for verifying signup.
VerifySignupPhrase *string
// READ-ONLY; Customer resource create async operation Id.
CreateAsyncOperationID *string
// READ-ONLY; Customer resource Guid Id.
CustomerID *string
// READ-ONLY; Customer resource deletion async operation Id.
DeleteAsyncOperationID *string
// READ-ONLY; Customer resource last Azure sync timestamp.
LastSyncWithAzureTimestamp *time.Time
// READ-ONLY; Customer resource sync attempts.
SynchWithAzureAttemptsCount *int32
}
CustomerEntity - Model representing Customer resource for ConnectedCache resource
func (CustomerEntity) MarshalJSON ¶
func (c CustomerEntity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomerEntity.
func (*CustomerEntity) UnmarshalJSON ¶
func (c *CustomerEntity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CustomerEntity.
type CustomerProperty ¶
type CustomerProperty struct {
// Mcc customer resource additional properties.
AdditionalCustomerProperties *AdditionalCustomerProperties
// Mcc customer resource (customer entity).
Customer *CustomerEntity
// READ-ONLY; Mcc response error details.
Error *ErrorDetail
// READ-ONLY; The provisioned state of the resource
ProvisioningState *ProvisioningState
// READ-ONLY; HTTP error status code.
Status *string
// READ-ONLY; Mcc response status code.
StatusCode *string
// READ-ONLY; Mcc response status details for retrieving response inner details.
StatusDetails *string
// READ-ONLY; Mcc response status text as string for retrieving status details.
StatusText *string
}
CustomerProperty - Model representing customer for connectedCache resource
func (CustomerProperty) MarshalJSON ¶
func (c CustomerProperty) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomerProperty.
func (*CustomerProperty) UnmarshalJSON ¶
func (c *CustomerProperty) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CustomerProperty.
type CustomerTransitState ¶
type CustomerTransitState string
CustomerTransitState - Customer resource transit states
const ( // CustomerTransitStateCombinedTransit - transit provider and have own subscribers CustomerTransitStateCombinedTransit CustomerTransitState = "CombinedTransit" // CustomerTransitStateNoTransit - do not have transit CustomerTransitStateNoTransit CustomerTransitState = "NoTransit" // CustomerTransitStateTransitOnly - pure transit provider or network service provider CustomerTransitStateTransitOnly CustomerTransitState = "TransitOnly" )
func PossibleCustomerTransitStateValues ¶
func PossibleCustomerTransitStateValues() []CustomerTransitState
PossibleCustomerTransitStateValues returns the possible values for the CustomerTransitState const type.
type EnterpriseMccCacheNodeResource ¶
type EnterpriseMccCacheNodeResource struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// The resource-specific properties for this resource.
Properties *CacheNodeProperty
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
EnterpriseMccCacheNodeResource - Represents the high level Nodes needed to provision cache node resources
func (EnterpriseMccCacheNodeResource) MarshalJSON ¶
func (e EnterpriseMccCacheNodeResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EnterpriseMccCacheNodeResource.
func (*EnterpriseMccCacheNodeResource) UnmarshalJSON ¶
func (e *EnterpriseMccCacheNodeResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EnterpriseMccCacheNodeResource.
type EnterpriseMccCacheNodeResourceListResult ¶
type EnterpriseMccCacheNodeResourceListResult struct {
// REQUIRED; The EnterpriseMccCacheNodeResource items on this page
Value []*EnterpriseMccCacheNodeResource
// The link to the next page of items
NextLink *string
}
EnterpriseMccCacheNodeResourceListResult - The response of a EnterpriseMccCacheNodeResource list operation.
func (EnterpriseMccCacheNodeResourceListResult) MarshalJSON ¶
func (e EnterpriseMccCacheNodeResourceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EnterpriseMccCacheNodeResourceListResult.
func (*EnterpriseMccCacheNodeResourceListResult) UnmarshalJSON ¶
func (e *EnterpriseMccCacheNodeResourceListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EnterpriseMccCacheNodeResourceListResult.
type EnterpriseMccCacheNodesOperationsClient ¶
type EnterpriseMccCacheNodesOperationsClient struct {
// contains filtered or unexported fields
}
EnterpriseMccCacheNodesOperationsClient contains the methods for the EnterpriseMccCacheNodesOperations group. Don't use this type directly, use NewEnterpriseMccCacheNodesOperationsClient() instead.
func NewEnterpriseMccCacheNodesOperationsClient ¶
func NewEnterpriseMccCacheNodesOperationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*EnterpriseMccCacheNodesOperationsClient, error)
NewEnterpriseMccCacheNodesOperationsClient creates a new instance of EnterpriseMccCacheNodesOperationsClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - Contains optional client configuration. Pass nil to accept the default values.
func (*EnterpriseMccCacheNodesOperationsClient) BeginCreateOrUpdate ¶
func (client *EnterpriseMccCacheNodesOperationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, customerResourceName string, cacheNodeResourceName string, resource EnterpriseMccCacheNodeResource, options *EnterpriseMccCacheNodesOperationsClientBeginCreateOrUpdateOptions) (*runtime.Poller[EnterpriseMccCacheNodesOperationsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - This api creates an ispCacheNode with the specified create parameters If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- cacheNodeResourceName - Name of the ConnectedCache resource
- resource - Resource create parameters.
- options - EnterpriseMccCacheNodesOperationsClientBeginCreateOrUpdateOptions contains the optional parameters for the EnterpriseMccCacheNodesOperationsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: 2024-11-30-preview/EnterpriseMccCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEnterpriseMccCacheNodesOperationsClient().BeginCreateOrUpdate(ctx, "rgConnectedCache", "nhdkvstdrrtsxxuz", "fgduqdovidpemlnmhelomffuafdrbgaasqznvrdkbvspfzsnrhncdtqquhijhdpwyzwleukqldpceyxqhqlftqrr", armconnectedcache.EnterpriseMccCacheNodeResource{
Location: to.Ptr("westus"),
Properties: &armconnectedcache.CacheNodeProperty{
CacheNode: &armconnectedcache.CacheNodeEntity{
FullyQualifiedResourceID: to.Ptr("yeinlleavzbehelhsucb"),
CustomerName: to.Ptr("zsklcocjfjhkcpmzyefzkwamdzc"),
IPAddress: to.Ptr("gbfkdhloyphnpnhemwrcrxlk"),
CustomerIndex: to.Ptr("vafvezmelfgmjsrccjukrhppljvipg"),
CacheNodeID: to.Ptr("fmrjefyddfn"),
CacheNodeName: to.Ptr("qppvqxliajjfoalzjbgmxggr"),
CustomerAsn: to.Ptr[int32](25),
IsEnabled: to.Ptr(true),
MaxAllowableEgressInMbps: to.Ptr[int32](27),
IsEnterpriseManaged: to.Ptr(true),
CidrCSV: []*string{
to.Ptr("nlqlvrthafvvljuupcbcw"),
},
ShouldMigrate: to.Ptr(true),
CidrSelectionType: to.Ptr[int32](11),
},
StatusCode: to.Ptr("1"),
StatusText: to.Ptr("Success"),
StatusDetails: to.Ptr("lgljxmyyoakw"),
AdditionalCacheNodeProperties: &armconnectedcache.AdditionalCacheNodeProperties{
CacheNodePropertiesDetailsIssuesList: []*string{
to.Ptr("ennbzfpuszgalzpawmwicaofqcwcj"),
},
DriveConfiguration: []*armconnectedcache.CacheNodeDriveConfiguration{
{
PhysicalPath: to.Ptr("pcbkezoofhamkycot"),
SizeInGb: to.Ptr[int32](14),
CacheNumber: to.Ptr[int32](11),
NginxMapping: to.Ptr("cirlpkpuxg"),
},
},
BgpConfiguration: &armconnectedcache.BgpConfiguration{
AsnToIPAddressMapping: to.Ptr("fjbggfvumrn"),
},
ProxyURLConfiguration: &armconnectedcache.ProxyURLConfiguration{
ProxyURL: to.Ptr("hplstyg"),
},
OptionalProperty1: to.Ptr("ph"),
OptionalProperty2: to.Ptr("soqqgpgcbhb"),
OptionalProperty3: to.Ptr("fpnycrbagptsujiotnjfuhlm"),
OptionalProperty4: to.Ptr("gesqugrxvhxlxxyvatgrautxwlmxsf"),
OptionalProperty5: to.Ptr("zknjgzpaqtvdqjydd"),
},
Error: &armconnectedcache.ErrorDetail{},
},
Tags: map[string]*string{
"key259": to.Ptr("qbkixjuyjkoj"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armconnectedcache.EnterpriseMccCacheNodesOperationsClientCreateOrUpdateResponse{
// EnterpriseMccCacheNodeResource: &armconnectedcache.EnterpriseMccCacheNodeResource{
// Location: to.Ptr("westus"),
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DOTest/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/MccRPTest1/enterpriseMccCacheNodes/MCCCachenode1"),
// Name: to.Ptr("MccRPTest1"),
// Type: to.Ptr("Microsoft.ConnectedCache/enterpriseMccCustomers/enterpriseMccCacheNodes"),
// Properties: &armconnectedcache.CacheNodeProperty{
// ProvisioningState: to.Ptr(armconnectedcache.ProvisioningStateSucceeded),
// CacheNode: &armconnectedcache.CacheNodeEntity{
// FullyQualifiedResourceID: to.Ptr("yeinlleavzbehelhsucb"),
// CustomerID: to.Ptr("xjjgcknmsakfawcmwbdufdxktysp"),
// CustomerName: to.Ptr("zsklcocjfjhkcpmzyefzkwamdzc"),
// IPAddress: to.Ptr("gbfkdhloyphnpnhemwrcrxlk"),
// CustomerIndex: to.Ptr("vafvezmelfgmjsrccjukrhppljvipg"),
// CacheNodeID: to.Ptr("fmrjefyddfn"),
// CacheNodeName: to.Ptr("qppvqxliajjfoalzjbgmxggr"),
// CustomerAsn: to.Ptr[int32](25),
// IsEnabled: to.Ptr(true),
// MaxAllowableEgressInMbps: to.Ptr[int32](27),
// MaxAllowableProbability: to.Ptr[float32](12),
// XCid: to.Ptr("ooyrhuockukmsrqsevwaaqglhf"),
// IsEnterpriseManaged: to.Ptr(true),
// DeleteAsyncOperationID: to.Ptr("tvmivvnpisuboggoqgbobugld"),
// ClientTenantID: to.Ptr("iwrpakllacxvtqygpaimlpxvqrjz"),
// Category: to.Ptr("utfjefejkrpxcmrgygzawa"),
// ReleaseVersion: to.Ptr[int32](29),
// LastSyncWithAzureTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// SynchWithAzureAttemptsCount: to.Ptr[int32](4),
// ContainerConfigurations: to.Ptr("dyvefvbvrtsmdrdmiuphzh"),
// CidrCSV: []*string{
// to.Ptr("nlqlvrthafvvljuupcbcw"),
// },
// CidrCSVLastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.774Z"); return t}()),
// BgpCidrCSVLastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.774Z"); return t}()),
// BgpLastReportedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.774Z"); return t}()),
// BgpReviewStateText: to.Ptr("khtriksrqrjieouoz"),
// BgpReviewState: to.Ptr(armconnectedcache.BgpReviewStateEnumNotConfigured),
// BgpReviewFeedback: to.Ptr("bc"),
// BgpNumberOfTimesUpdated: to.Ptr[int32](23),
// BgpNumberOfRecords: to.Ptr[int32](25),
// BgpCidrBlocksCount: to.Ptr[int32](28),
// BgpAddressSpace: to.Ptr[int32](30),
// ShouldMigrate: to.Ptr(true),
// BgpFileBytesTruncated: to.Ptr[int32](26),
// CidrSelectionType: to.Ptr[int32](11),
// IsFrozen: to.Ptr(true),
// ReviewState: to.Ptr[int32](2),
// ReviewStateText: to.Ptr("xubwhyrdtramrmoldbxqwauyusymqu"),
// ReviewFeedback: to.Ptr("zowuztcnybt"),
// ConfigurationState: to.Ptr(armconnectedcache.ConfigurationStateConfigured),
// ConfigurationStateText: to.Ptr("okbofqwtzcsju"),
// AddressSpace: to.Ptr[int32](1),
// WorkerConnections: to.Ptr[int32](19),
// WorkerConnectionsLastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.774Z"); return t}()),
// ContainerResyncTrigger: to.Ptr[int32](23),
// ImageURI: to.Ptr("wkowdrixfxvjmdcsy"),
// },
// StatusCode: to.Ptr("1"),
// StatusText: to.Ptr("Success"),
// StatusDetails: to.Ptr("lgljxmyyoakw"),
// AdditionalCacheNodeProperties: &armconnectedcache.AdditionalCacheNodeProperties{
// CacheNodePropertiesDetailsIssuesList: []*string{
// to.Ptr("ennbzfpuszgalzpawmwicaofqcwcj"),
// },
// AggregatedStatusDetails: to.Ptr("nztcstlyjhmllbnrrluhzusmoa"),
// AggregatedStatusText: to.Ptr("ofiedyvzpbijnfghnrrigqaws"),
// AggregatedStatusCode: to.Ptr[int32](25),
// ProductVersion: to.Ptr("hfbuukpxoerpkziym"),
// IsProvisioned: to.Ptr(true),
// CacheNodeStateDetailedText: to.Ptr("onckp"),
// CacheNodeStateShortText: to.Ptr("yxkwlubqlzhkmemzjzlxksho"),
// CacheNodeState: to.Ptr[int32](30),
// DriveConfiguration: []*armconnectedcache.CacheNodeDriveConfiguration{
// {
// PhysicalPath: to.Ptr("pcbkezoofhamkycot"),
// SizeInGb: to.Ptr[int32](14),
// CacheNumber: to.Ptr[int32](11),
// NginxMapping: to.Ptr("cirlpkpuxg"),
// },
// },
// BgpConfiguration: &armconnectedcache.BgpConfiguration{
// AsnToIPAddressMapping: to.Ptr("fjbggfvumrn"),
// },
// ProxyURLConfiguration: &armconnectedcache.ProxyURLConfiguration{
// ProxyURL: to.Ptr("hplstyg"),
// },
// OptionalProperty1: to.Ptr("ph"),
// OptionalProperty2: to.Ptr("soqqgpgcbhb"),
// OptionalProperty3: to.Ptr("fpnycrbagptsujiotnjfuhlm"),
// OptionalProperty4: to.Ptr("gesqugrxvhxlxxyvatgrautxwlmxsf"),
// OptionalProperty5: to.Ptr("zknjgzpaqtvdqjydd"),
// },
// Status: to.Ptr("utgrdjsw"),
// Error: &armconnectedcache.ErrorDetail{
// Code: to.Ptr("dkvgvtftpsjsbhlnapvihefxneoggs"),
// Message: to.Ptr("okakgyfnmyob"),
// Details: []*armconnectedcache.ErrorDetail{
// },
// },
// },
// Tags: map[string]*string{
// "key259": to.Ptr("qbkixjuyjkoj"),
// },
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// }
}
Output:
func (*EnterpriseMccCacheNodesOperationsClient) BeginDelete ¶
func (client *EnterpriseMccCacheNodesOperationsClient) BeginDelete(ctx context.Context, resourceGroupName string, customerResourceName string, cacheNodeResourceName string, options *EnterpriseMccCacheNodesOperationsClientBeginDeleteOptions) (*runtime.Poller[EnterpriseMccCacheNodesOperationsClientDeleteResponse], error)
BeginDelete - This api deletes an existing ispCacheNode resource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- cacheNodeResourceName - Name of the ConnectedCache resource
- options - EnterpriseMccCacheNodesOperationsClientBeginDeleteOptions contains the optional parameters for the EnterpriseMccCacheNodesOperationsClient.BeginDelete method.
Example ¶
Generated from example definition: 2024-11-30-preview/EnterpriseMccCacheNodesOperations_Delete_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEnterpriseMccCacheNodesOperationsClient().BeginDelete(ctx, "rgConnectedCache", "hsincngmssuzeyispnufqwinpopadvhsbsemisguxgovwdjwviqexocelijvuyr", "vwtrhdoxvkrunpliwcao", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
Output:
func (*EnterpriseMccCacheNodesOperationsClient) Get ¶
func (client *EnterpriseMccCacheNodesOperationsClient) Get(ctx context.Context, resourceGroupName string, customerResourceName string, cacheNodeResourceName string, options *EnterpriseMccCacheNodesOperationsClientGetOptions) (EnterpriseMccCacheNodesOperationsClientGetResponse, error)
Get - This api gets ispCacheNode resource information If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- cacheNodeResourceName - Name of the ConnectedCache resource
- options - EnterpriseMccCacheNodesOperationsClientGetOptions contains the optional parameters for the EnterpriseMccCacheNodesOperationsClient.Get method.
Example ¶
Generated from example definition: 2024-11-30-preview/EnterpriseMccCacheNodesOperations_Get_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEnterpriseMccCacheNodesOperationsClient().Get(ctx, "rgConnectedCache", "cygqjgtcetihsajgyqwwrbclssqsvhgltrboemcqqtpoxdbhykqxblaihmrumyhbsx", "fqxfadsultwjfzdwlqkvneakfsbyhratytmssmiukpbnus", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armconnectedcache.EnterpriseMccCacheNodesOperationsClientGetResponse{
// EnterpriseMccCacheNodeResource: &armconnectedcache.EnterpriseMccCacheNodeResource{
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DOTest/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/MccRPTest1/enterpriseMccCacheNodes/MCCCachenode1"),
// Name: to.Ptr("MccRPTest1"),
// Type: to.Ptr("Microsoft.ConnectedCache/enterpriseMccCustomers/enterpriseMccCacheNodes"),
// Location: to.Ptr("westus"),
// Properties: &armconnectedcache.CacheNodeProperty{
// ProvisioningState: to.Ptr(armconnectedcache.ProvisioningStateSucceeded),
// CacheNode: &armconnectedcache.CacheNodeEntity{
// FullyQualifiedResourceID: to.Ptr("yeinlleavzbehelhsucb"),
// CustomerID: to.Ptr("xjjgcknmsakfawcmwbdufdxktysp"),
// CustomerName: to.Ptr("zsklcocjfjhkcpmzyefzkwamdzc"),
// IPAddress: to.Ptr("gbfkdhloyphnpnhemwrcrxlk"),
// CustomerIndex: to.Ptr("vafvezmelfgmjsrccjukrhppljvipg"),
// CacheNodeID: to.Ptr("fmrjefyddfn"),
// CacheNodeName: to.Ptr("qppvqxliajjfoalzjbgmxggr"),
// CustomerAsn: to.Ptr[int32](25),
// IsEnabled: to.Ptr(true),
// MaxAllowableEgressInMbps: to.Ptr[int32](27),
// MaxAllowableProbability: to.Ptr[float32](12),
// XCid: to.Ptr("ooyrhuockukmsrqsevwaaqglhf"),
// IsEnterpriseManaged: to.Ptr(true),
// DeleteAsyncOperationID: to.Ptr("tvmivvnpisuboggoqgbobugld"),
// ClientTenantID: to.Ptr("iwrpakllacxvtqygpaimlpxvqrjz"),
// Category: to.Ptr("utfjefejkrpxcmrgygzawa"),
// ReleaseVersion: to.Ptr[int32](29),
// LastSyncWithAzureTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// SynchWithAzureAttemptsCount: to.Ptr[int32](4),
// ContainerConfigurations: to.Ptr("dyvefvbvrtsmdrdmiuphzh"),
// CidrCSV: []*string{
// to.Ptr("kaynxstxqsoreorwh"),
// },
// CidrCSVLastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.774Z"); return t}()),
// BgpCidrCSVLastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.774Z"); return t}()),
// BgpLastReportedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.774Z"); return t}()),
// BgpReviewStateText: to.Ptr("khtriksrqrjieouoz"),
// BgpReviewState: to.Ptr(armconnectedcache.BgpReviewStateEnumNotConfigured),
// BgpReviewFeedback: to.Ptr("bc"),
// BgpNumberOfTimesUpdated: to.Ptr[int32](23),
// BgpNumberOfRecords: to.Ptr[int32](25),
// BgpCidrBlocksCount: to.Ptr[int32](28),
// BgpAddressSpace: to.Ptr[int32](30),
// ShouldMigrate: to.Ptr(true),
// BgpFileBytesTruncated: to.Ptr[int32](26),
// CidrSelectionType: to.Ptr[int32](11),
// IsFrozen: to.Ptr(true),
// ReviewState: to.Ptr[int32](2),
// ReviewStateText: to.Ptr("xubwhyrdtramrmoldbxqwauyusymqu"),
// ReviewFeedback: to.Ptr("zowuztcnybt"),
// ConfigurationState: to.Ptr(armconnectedcache.ConfigurationStateConfigured),
// ConfigurationStateText: to.Ptr("okbofqwtzcsju"),
// AddressSpace: to.Ptr[int32](1),
// WorkerConnections: to.Ptr[int32](19),
// WorkerConnectionsLastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.774Z"); return t}()),
// ContainerResyncTrigger: to.Ptr[int32](23),
// ImageURI: to.Ptr("wkowdrixfxvjmdcsy"),
// },
// StatusCode: to.Ptr("1"),
// StatusText: to.Ptr("Success"),
// StatusDetails: to.Ptr("lgljxmyyoakw"),
// AdditionalCacheNodeProperties: &armconnectedcache.AdditionalCacheNodeProperties{
// CacheNodePropertiesDetailsIssuesList: []*string{
// to.Ptr("ennbzfpuszgalzpawmwicaofqcwcj"),
// },
// AggregatedStatusDetails: to.Ptr("nztcstlyjhmllbnrrluhzusmoa"),
// AggregatedStatusText: to.Ptr("ofiedyvzpbijnfghnrrigqaws"),
// AggregatedStatusCode: to.Ptr[int32](25),
// ProductVersion: to.Ptr("hfbuukpxoerpkziym"),
// IsProvisioned: to.Ptr(true),
// CacheNodeStateDetailedText: to.Ptr("onckp"),
// CacheNodeStateShortText: to.Ptr("yxkwlubqlzhkmemzjzlxksho"),
// CacheNodeState: to.Ptr[int32](30),
// DriveConfiguration: []*armconnectedcache.CacheNodeDriveConfiguration{
// {
// PhysicalPath: to.Ptr("pcbkezoofhamkycot"),
// SizeInGb: to.Ptr[int32](14),
// CacheNumber: to.Ptr[int32](11),
// NginxMapping: to.Ptr("cirlpkpuxg"),
// },
// },
// BgpConfiguration: &armconnectedcache.BgpConfiguration{
// AsnToIPAddressMapping: to.Ptr("fjbggfvumrn"),
// },
// ProxyURLConfiguration: &armconnectedcache.ProxyURLConfiguration{
// ProxyURL: to.Ptr("hplstyg"),
// },
// OptionalProperty1: to.Ptr("ph"),
// OptionalProperty2: to.Ptr("soqqgpgcbhb"),
// OptionalProperty3: to.Ptr("fpnycrbagptsujiotnjfuhlm"),
// OptionalProperty4: to.Ptr("gesqugrxvhxlxxyvatgrautxwlmxsf"),
// OptionalProperty5: to.Ptr("zknjgzpaqtvdqjydd"),
// },
// Status: to.Ptr("utgrdjsw"),
// Error: &armconnectedcache.ErrorDetail{
// Code: to.Ptr("dkvgvtftpsjsbhlnapvihefxneoggs"),
// Message: to.Ptr("okakgyfnmyob"),
// Details: []*armconnectedcache.ErrorDetail{
// },
// },
// },
// Tags: map[string]*string{
// "key259": to.Ptr("qbkixjuyjkoj"),
// },
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// }
}
Output:
func (*EnterpriseMccCacheNodesOperationsClient) GetCacheNodeAutoUpdateHistory ¶ added in v0.2.0
func (client *EnterpriseMccCacheNodesOperationsClient) GetCacheNodeAutoUpdateHistory(ctx context.Context, resourceGroupName string, customerResourceName string, cacheNodeResourceName string, options *EnterpriseMccCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryOptions) (EnterpriseMccCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryResponse, error)
GetCacheNodeAutoUpdateHistory - This api gets ispCacheNode resource auto update histrory information If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- cacheNodeResourceName - Name of the ConnectedCache resource
- options - EnterpriseMccCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryOptions contains the optional parameters for the EnterpriseMccCacheNodesOperationsClient.GetCacheNodeAutoUpdateHistory method.
Example ¶
Generated from example definition: 2024-11-30-preview/EnterpriseMccCacheNodesOperations_GetCacheNodeAutoUpdateHistory_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEnterpriseMccCacheNodesOperationsClient().GetCacheNodeAutoUpdateHistory(ctx, "rgConnectedCache", "MccRPTest1", "MCCCachenode1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armconnectedcache.EnterpriseMccCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryResponse{
// MccCacheNodeAutoUpdateHistory: &armconnectedcache.MccCacheNodeAutoUpdateHistory{
// Properties: &armconnectedcache.MccCacheNodeAutoUpdateHistoryProperties{
// CustomerID: to.Ptr("fqyulypmqacwoifqnddnkcexbgm"),
// CacheNodeID: to.Ptr("elwtomk"),
// AutoUpdateHistory: []*armconnectedcache.MccCacheNodeAutoUpdateInfo{
// {
// ImageURIBeforeUpdate: to.Ptr("ne"),
// ImageURITargeted: to.Ptr("zqgjxlqoucwyjf"),
// ImageURITerminal: to.Ptr("akng"),
// AutoUpdateRingType: to.Ptr[int32](16),
// MovedToTerminalStateDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-08T07:01:45.657Z"); return t}()),
// RuleRequestedWeek: to.Ptr[int32](1),
// RuleRequestedDay: to.Ptr[int32](9),
// CreatedDateTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-08T07:01:45.657Z"); return t}()),
// UpdatedRegistryDateTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-08T07:01:45.657Z"); return t}()),
// PlanChangeLogText: to.Ptr("uhfsokrwx"),
// AutoUpdateLastAppliedStatus: to.Ptr[int32](24),
// AutoUpdateLastAppliedStatusText: to.Ptr("cwoy"),
// AutoUpdateLastAppliedStatusDetailedText: to.Ptr("oicfonhqlnrc"),
// PlanID: to.Ptr[int64](17),
// TimeToGoLiveDateTime: to.Ptr("wqhjexgtkqzu"),
// RuleRequestedMinute: to.Ptr("ewoqhdmofybbpf"),
// RuleRequestedHour: to.Ptr("degiarxknlfqfgwz"),
// },
// },
// },
// Tags: map[string]*string{
// "key5753": to.Ptr("ubrjiectme"),
// },
// Location: to.Ptr("westus"),
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DOTest/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/MccRPTest1/enterpriseMccCacheNodes/MCCCachenode1"),
// Name: to.Ptr("cgy"),
// Type: to.Ptr("kqbnkmxgllkdxfnsogmmdogjtotj"),
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// }
}
Output:
func (*EnterpriseMccCacheNodesOperationsClient) GetCacheNodeInstallDetails ¶
func (client *EnterpriseMccCacheNodesOperationsClient) GetCacheNodeInstallDetails(ctx context.Context, resourceGroupName string, customerResourceName string, cacheNodeResourceName string, options *EnterpriseMccCacheNodesOperationsClientGetCacheNodeInstallDetailsOptions) (EnterpriseMccCacheNodesOperationsClientGetCacheNodeInstallDetailsResponse, error)
GetCacheNodeInstallDetails - This api gets secrets of the ispCacheNode resource install details If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- cacheNodeResourceName - Name of the ConnectedCache resource
- options - EnterpriseMccCacheNodesOperationsClientGetCacheNodeInstallDetailsOptions contains the optional parameters for the EnterpriseMccCacheNodesOperationsClient.GetCacheNodeInstallDetails method.
Example ¶
Generated from example definition: 2024-11-30-preview/EnterpriseMccCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEnterpriseMccCacheNodesOperationsClient().GetCacheNodeInstallDetails(ctx, "rgConnectedCache", "fzwxcjmdpxxzayecabqqlh", "ccexmqqttritxvtctivraso", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armconnectedcache.EnterpriseMccCacheNodesOperationsClientGetCacheNodeInstallDetailsResponse{
// MccCacheNodeInstallDetails: &armconnectedcache.MccCacheNodeInstallDetails{
// Location: to.Ptr("westus"),
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/MccRPTest1/enterpriseMccCacheNodes/MCCCachenode1"),
// Type: to.Ptr("Microsoft.ConnectedCache/enterpriseMccCustomers/enterpriseMccCacheNodes"),
// Properties: &armconnectedcache.CacheNodeInstallProperties{
// CustomerID: to.Ptr("eqklliuswn"),
// CacheNodeID: to.Ptr("zirahqqohbaju"),
// PrimaryAccountKey: to.Ptr("mzfvziehrsbxidhj"),
// SecondaryAccountKey: to.Ptr("dq"),
// RegistrationKey: to.Ptr("tnwkmorctwsgajewcoutombm"),
// },
// Tags: map[string]*string{
// "key5811": to.Ptr("betoafcoprgfcuscoew"),
// },
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// }
}
Output:
func (*EnterpriseMccCacheNodesOperationsClient) GetCacheNodeMccIssueDetailsHistory ¶ added in v0.2.0
func (client *EnterpriseMccCacheNodesOperationsClient) GetCacheNodeMccIssueDetailsHistory(ctx context.Context, resourceGroupName string, customerResourceName string, cacheNodeResourceName string, options *EnterpriseMccCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryOptions) (EnterpriseMccCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryResponse, error)
GetCacheNodeMccIssueDetailsHistory - This api gets ispCacheNode resource issues details histrory information If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- cacheNodeResourceName - Name of the ConnectedCache resource
- options - EnterpriseMccCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryOptions contains the optional parameters for the EnterpriseMccCacheNodesOperationsClient.GetCacheNodeMccIssueDetailsHistory method.
Example ¶
Generated from example definition: 2024-11-30-preview/EnterpriseMccCacheNodesOperations_GetCacheNodeMccIssueDetailsHistory_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEnterpriseMccCacheNodesOperationsClient().GetCacheNodeMccIssueDetailsHistory(ctx, "rgConnectedCache", "MccRPTest1", "MCCCachenode1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armconnectedcache.EnterpriseMccCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryResponse{
// MccCacheNodeIssueHistory: &armconnectedcache.MccCacheNodeIssueHistory{
// Properties: &armconnectedcache.MccCacheNodeIssueHistoryProperties{
// CustomerID: to.Ptr("xqsblxpzcdxwwlzejepoyqrhbrpqgz"),
// CacheNodeID: to.Ptr("enw"),
// MccIssueHistory: []*armconnectedcache.MccIssue{
// {
// MccIssueType: to.Ptr("uznqingg"),
// ToastString: to.Ptr("tkaajhrpptywiwfjnh"),
// DetailString: to.Ptr("rziwfs"),
// HelpLink: to.Ptr("fd"),
// IssueStartDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-08T07:01:40.167Z"); return t}()),
// IssueEndDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-08T07:01:40.167Z"); return t}()),
// },
// },
// },
// Tags: map[string]*string{
// "key587": to.Ptr("tcgetdmzjjwtbvghsskfzzrmnrexgx"),
// },
// Location: to.Ptr("msgrhbbqoannzbfuplaxnl"),
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DOTest/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/MccRPTest1/enterpriseMccCacheNodes/MCCCachenode1"),
// Name: to.Ptr("fizavvfblaoosm"),
// Type: to.Ptr("bkkjnjpkvvlnrcfurjsfdspsnoozu"),
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// }
}
Output:
func (*EnterpriseMccCacheNodesOperationsClient) GetCacheNodeTLSCertificateHistory ¶ added in v0.2.0
func (client *EnterpriseMccCacheNodesOperationsClient) GetCacheNodeTLSCertificateHistory(ctx context.Context, resourceGroupName string, customerResourceName string, cacheNodeResourceName string, options *EnterpriseMccCacheNodesOperationsClientGetCacheNodeTLSCertificateHistoryOptions) (EnterpriseMccCacheNodesOperationsClientGetCacheNodeTLSCertificateHistoryResponse, error)
GetCacheNodeTLSCertificateHistory - This api gets ispCacheNode resource tls certificate histrory information If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- cacheNodeResourceName - Name of the ConnectedCache resource
- options - EnterpriseMccCacheNodesOperationsClientGetCacheNodeTLSCertificateHistoryOptions contains the optional parameters for the EnterpriseMccCacheNodesOperationsClient.GetCacheNodeTLSCertificateHistory method.
Example ¶
Generated from example definition: 2024-11-30-preview/EnterpriseMccCacheNodesOperations_GetCacheNodeTlsCertificateHistory_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEnterpriseMccCacheNodesOperationsClient().GetCacheNodeTLSCertificateHistory(ctx, "rgConnectedCache", "MccRPTest1", "MCCCachenode1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armconnectedcache.EnterpriseMccCacheNodesOperationsClientGetCacheNodeTLSCertificateHistoryResponse{
// MccCacheNodeTLSCertificateHistory: &armconnectedcache.MccCacheNodeTLSCertificateHistory{
// Properties: &armconnectedcache.MccCacheNodeTLSCertificateProperties{
// CustomerID: to.Ptr("hzqoghvbmzvdk"),
// CacheNodeID: to.Ptr("bzbrwogbsuat"),
// TLSCertificateHistory: []*armconnectedcache.MccCacheNodeTLSCertificate{
// {
// ActionRequired: to.Ptr("iwvzhqdwdjhvpqfbwovc"),
// CertificateFileName: to.Ptr("mi"),
// Thumbprint: to.Ptr("bzztaqiu"),
// ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-08T07:01:46.556Z"); return t}()),
// NotBeforeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-08T07:01:46.556Z"); return t}()),
// Subject: to.Ptr("vdabg"),
// SubjectAltName: to.Ptr("sbfyvvyylwjamhjubjjsmypwe"),
// },
// },
// },
// Tags: map[string]*string{
// "key6995": to.Ptr("xuobdofbhsuhqzxpwzlacrxbkcgydn"),
// },
// Location: to.Ptr("dwqjj"),
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DOTest/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/MccRPTest1/enterpriseMccCacheNodes/MCCCachenode1"),
// Name: to.Ptr("zvazurbeqjdbfs"),
// Type: to.Ptr("jxnyhcvyyjvkxddgymvlwvwqtewg"),
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// }
}
Output:
func (*EnterpriseMccCacheNodesOperationsClient) NewListByEnterpriseMccCustomerResourcePager ¶
func (client *EnterpriseMccCacheNodesOperationsClient) NewListByEnterpriseMccCustomerResourcePager(resourceGroupName string, customerResourceName string, options *EnterpriseMccCacheNodesOperationsClientListByEnterpriseMccCustomerResourceOptions) *runtime.Pager[EnterpriseMccCacheNodesOperationsClientListByEnterpriseMccCustomerResourceResponse]
NewListByEnterpriseMccCustomerResourcePager - This api retrieves information about all ispCacheNode resources under the given subscription and resource group
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- options - EnterpriseMccCacheNodesOperationsClientListByEnterpriseMccCustomerResourceOptions contains the optional parameters for the EnterpriseMccCacheNodesOperationsClient.NewListByEnterpriseMccCustomerResourcePager method.
Example ¶
Generated from example definition: 2024-11-30-preview/EnterpriseMccCacheNodesOperations_ListByEnterpriseMccCustomerResource_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewEnterpriseMccCacheNodesOperationsClient().NewListByEnterpriseMccCustomerResourcePager("rgConnectedCache", "syjjjzk", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armconnectedcache.EnterpriseMccCacheNodesOperationsClientListByEnterpriseMccCustomerResourceResponse{
// EnterpriseMccCacheNodeResourceListResult: armconnectedcache.EnterpriseMccCacheNodeResourceListResult{
// Value: []*armconnectedcache.EnterpriseMccCacheNodeResource{
// {
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/MccRPTest1/enterpriseMccCacheNodes/MCCCachenode1"),
// Name: to.Ptr("MccRPTest1"),
// Type: to.Ptr("Microsoft.ConnectedCache/enterpriseMccCustomers/enterpriseMccCacheNodes"),
// Location: to.Ptr("westus"),
// Properties: &armconnectedcache.CacheNodeProperty{
// ProvisioningState: to.Ptr(armconnectedcache.ProvisioningStateSucceeded),
// CacheNode: &armconnectedcache.CacheNodeEntity{
// FullyQualifiedResourceID: to.Ptr("yeinlleavzbehelhsucb"),
// CustomerID: to.Ptr("xjjgcknmsakfawcmwbdufdxktysp"),
// CustomerName: to.Ptr("zsklcocjfjhkcpmzyefzkwamdzc"),
// IPAddress: to.Ptr("gbfkdhloyphnpnhemwrcrxlk"),
// CustomerIndex: to.Ptr("vafvezmelfgmjsrccjukrhppljvipg"),
// CacheNodeID: to.Ptr("fmrjefyddfn"),
// CacheNodeName: to.Ptr("qppvqxliajjfoalzjbgmxggr"),
// CustomerAsn: to.Ptr[int32](25),
// IsEnabled: to.Ptr(true),
// MaxAllowableEgressInMbps: to.Ptr[int32](27),
// MaxAllowableProbability: to.Ptr[float32](12),
// XCid: to.Ptr("ooyrhuockukmsrqsevwaaqglhf"),
// IsEnterpriseManaged: to.Ptr(true),
// DeleteAsyncOperationID: to.Ptr("tvmivvnpisuboggoqgbobugld"),
// ClientTenantID: to.Ptr("iwrpakllacxvtqygpaimlpxvqrjz"),
// Category: to.Ptr("utfjefejkrpxcmrgygzawa"),
// ReleaseVersion: to.Ptr[int32](29),
// LastSyncWithAzureTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// SynchWithAzureAttemptsCount: to.Ptr[int32](4),
// ContainerConfigurations: to.Ptr("dyvefvbvrtsmdrdmiuphzh"),
// CidrCSV: []*string{
// to.Ptr("kaynxstxqsoreorwh"),
// },
// CidrCSVLastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.774Z"); return t}()),
// BgpCidrCSVLastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.774Z"); return t}()),
// BgpLastReportedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.774Z"); return t}()),
// BgpReviewStateText: to.Ptr("khtriksrqrjieouoz"),
// BgpReviewState: to.Ptr(armconnectedcache.BgpReviewStateEnumNotConfigured),
// BgpReviewFeedback: to.Ptr("bc"),
// BgpNumberOfTimesUpdated: to.Ptr[int32](23),
// BgpNumberOfRecords: to.Ptr[int32](25),
// BgpCidrBlocksCount: to.Ptr[int32](28),
// BgpAddressSpace: to.Ptr[int32](30),
// ShouldMigrate: to.Ptr(true),
// BgpFileBytesTruncated: to.Ptr[int32](26),
// CidrSelectionType: to.Ptr[int32](11),
// IsFrozen: to.Ptr(true),
// ReviewState: to.Ptr[int32](2),
// ReviewStateText: to.Ptr("xubwhyrdtramrmoldbxqwauyusymqu"),
// ReviewFeedback: to.Ptr("zowuztcnybt"),
// ConfigurationState: to.Ptr(armconnectedcache.ConfigurationStateConfigured),
// ConfigurationStateText: to.Ptr("okbofqwtzcsju"),
// AddressSpace: to.Ptr[int32](1),
// WorkerConnections: to.Ptr[int32](19),
// WorkerConnectionsLastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.774Z"); return t}()),
// ContainerResyncTrigger: to.Ptr[int32](23),
// ImageURI: to.Ptr("wkowdrixfxvjmdcsy"),
// },
// StatusCode: to.Ptr("1"),
// StatusText: to.Ptr("Success"),
// StatusDetails: to.Ptr("lgljxmyyoakw"),
// AdditionalCacheNodeProperties: &armconnectedcache.AdditionalCacheNodeProperties{
// CacheNodePropertiesDetailsIssuesList: []*string{
// to.Ptr("ennbzfpuszgalzpawmwicaofqcwcj"),
// },
// AggregatedStatusDetails: to.Ptr("nztcstlyjhmllbnrrluhzusmoa"),
// AggregatedStatusText: to.Ptr("ofiedyvzpbijnfghnrrigqaws"),
// AggregatedStatusCode: to.Ptr[int32](25),
// ProductVersion: to.Ptr("hfbuukpxoerpkziym"),
// IsProvisioned: to.Ptr(true),
// CacheNodeStateDetailedText: to.Ptr("onckp"),
// CacheNodeStateShortText: to.Ptr("yxkwlubqlzhkmemzjzlxksho"),
// CacheNodeState: to.Ptr[int32](30),
// DriveConfiguration: []*armconnectedcache.CacheNodeDriveConfiguration{
// {
// PhysicalPath: to.Ptr("pcbkezoofhamkycot"),
// SizeInGb: to.Ptr[int32](14),
// CacheNumber: to.Ptr[int32](11),
// NginxMapping: to.Ptr("cirlpkpuxg"),
// },
// },
// BgpConfiguration: &armconnectedcache.BgpConfiguration{
// AsnToIPAddressMapping: to.Ptr("fjbggfvumrn"),
// },
// ProxyURLConfiguration: &armconnectedcache.ProxyURLConfiguration{
// ProxyURL: to.Ptr("hplstyg"),
// },
// OptionalProperty1: to.Ptr("ph"),
// OptionalProperty2: to.Ptr("soqqgpgcbhb"),
// OptionalProperty3: to.Ptr("fpnycrbagptsujiotnjfuhlm"),
// OptionalProperty4: to.Ptr("gesqugrxvhxlxxyvatgrautxwlmxsf"),
// OptionalProperty5: to.Ptr("zknjgzpaqtvdqjydd"),
// },
// Status: to.Ptr("utgrdjsw"),
// Error: &armconnectedcache.ErrorDetail{
// Code: to.Ptr("dkvgvtftpsjsbhlnapvihefxneoggs"),
// Message: to.Ptr("okakgyfnmyob"),
// Details: []*armconnectedcache.ErrorDetail{
// },
// },
// },
// Tags: map[string]*string{
// "key259": to.Ptr("qbkixjuyjkoj"),
// },
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// },
// NextLink: to.Ptr("https://microsoft.com/a"),
// },
// }
}
}
Output:
func (*EnterpriseMccCacheNodesOperationsClient) Update ¶
func (client *EnterpriseMccCacheNodesOperationsClient) Update(ctx context.Context, resourceGroupName string, customerResourceName string, cacheNodeResourceName string, properties PatchResource, options *EnterpriseMccCacheNodesOperationsClientUpdateOptions) (EnterpriseMccCacheNodesOperationsClientUpdateResponse, error)
Update - This api updates an existing ispCacheNode resource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- cacheNodeResourceName - Name of the ConnectedCache resource
- properties - The resource properties to be updated.
- options - EnterpriseMccCacheNodesOperationsClientUpdateOptions contains the optional parameters for the EnterpriseMccCacheNodesOperationsClient.Update method.
Example ¶
Generated from example definition: 2024-11-30-preview/EnterpriseMccCacheNodesOperations_Update_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEnterpriseMccCacheNodesOperationsClient().Update(ctx, "rgConnectedCache", "qanjqtvrxzjkljdysdjvdiqcxkttskpdzykzuefhbhz", "kllmlvazrcxmfjfozulzqnsgvspgwmhogcafvauchunlgfr", armconnectedcache.PatchResource{
Tags: map[string]*string{
"key1653": to.Ptr("nzjczrhclhkndesgy"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armconnectedcache.EnterpriseMccCacheNodesOperationsClientUpdateResponse{
// EnterpriseMccCacheNodeResource: &armconnectedcache.EnterpriseMccCacheNodeResource{
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/MccRPTest1/enterpriseMccCacheNodes/MCCCachenode1"),
// Name: to.Ptr("MccRPTest1"),
// Type: to.Ptr("Microsoft.ConnectedCache/enterpriseMccCustomers/enterpriseMccCacheNodes"),
// Location: to.Ptr("westus"),
// Properties: &armconnectedcache.CacheNodeProperty{
// ProvisioningState: to.Ptr(armconnectedcache.ProvisioningStateSucceeded),
// CacheNode: &armconnectedcache.CacheNodeEntity{
// FullyQualifiedResourceID: to.Ptr("yeinlleavzbehelhsucb"),
// CustomerID: to.Ptr("xjjgcknmsakfawcmwbdufdxktysp"),
// CustomerName: to.Ptr("zsklcocjfjhkcpmzyefzkwamdzc"),
// IPAddress: to.Ptr("gbfkdhloyphnpnhemwrcrxlk"),
// CustomerIndex: to.Ptr("vafvezmelfgmjsrccjukrhppljvipg"),
// CacheNodeID: to.Ptr("fmrjefyddfn"),
// CacheNodeName: to.Ptr("qppvqxliajjfoalzjbgmxggr"),
// CustomerAsn: to.Ptr[int32](25),
// IsEnabled: to.Ptr(true),
// MaxAllowableEgressInMbps: to.Ptr[int32](27),
// MaxAllowableProbability: to.Ptr[float32](12),
// XCid: to.Ptr("ooyrhuockukmsrqsevwaaqglhf"),
// IsEnterpriseManaged: to.Ptr(true),
// DeleteAsyncOperationID: to.Ptr("tvmivvnpisuboggoqgbobugld"),
// ClientTenantID: to.Ptr("iwrpakllacxvtqygpaimlpxvqrjz"),
// Category: to.Ptr("utfjefejkrpxcmrgygzawa"),
// ReleaseVersion: to.Ptr[int32](29),
// LastSyncWithAzureTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// SynchWithAzureAttemptsCount: to.Ptr[int32](4),
// ContainerConfigurations: to.Ptr("dyvefvbvrtsmdrdmiuphzh"),
// CidrCSV: []*string{
// to.Ptr("kaynxstxqsoreorwh"),
// },
// CidrCSVLastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.774Z"); return t}()),
// BgpCidrCSVLastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.774Z"); return t}()),
// BgpLastReportedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.774Z"); return t}()),
// BgpReviewStateText: to.Ptr("khtriksrqrjieouoz"),
// BgpReviewState: to.Ptr(armconnectedcache.BgpReviewStateEnumNotConfigured),
// BgpReviewFeedback: to.Ptr("bc"),
// BgpNumberOfTimesUpdated: to.Ptr[int32](23),
// BgpNumberOfRecords: to.Ptr[int32](25),
// BgpCidrBlocksCount: to.Ptr[int32](28),
// BgpAddressSpace: to.Ptr[int32](30),
// ShouldMigrate: to.Ptr(true),
// BgpFileBytesTruncated: to.Ptr[int32](26),
// CidrSelectionType: to.Ptr[int32](11),
// IsFrozen: to.Ptr(true),
// ReviewState: to.Ptr[int32](2),
// ReviewStateText: to.Ptr("xubwhyrdtramrmoldbxqwauyusymqu"),
// ReviewFeedback: to.Ptr("zowuztcnybt"),
// ConfigurationState: to.Ptr(armconnectedcache.ConfigurationStateConfigured),
// ConfigurationStateText: to.Ptr("okbofqwtzcsju"),
// AddressSpace: to.Ptr[int32](1),
// WorkerConnections: to.Ptr[int32](19),
// WorkerConnectionsLastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.774Z"); return t}()),
// ContainerResyncTrigger: to.Ptr[int32](23),
// ImageURI: to.Ptr("wkowdrixfxvjmdcsy"),
// },
// StatusCode: to.Ptr("1"),
// StatusText: to.Ptr("Success"),
// StatusDetails: to.Ptr("lgljxmyyoakw"),
// AdditionalCacheNodeProperties: &armconnectedcache.AdditionalCacheNodeProperties{
// CacheNodePropertiesDetailsIssuesList: []*string{
// to.Ptr("ennbzfpuszgalzpawmwicaofqcwcj"),
// },
// AggregatedStatusDetails: to.Ptr("nztcstlyjhmllbnrrluhzusmoa"),
// AggregatedStatusText: to.Ptr("ofiedyvzpbijnfghnrrigqaws"),
// AggregatedStatusCode: to.Ptr[int32](25),
// ProductVersion: to.Ptr("hfbuukpxoerpkziym"),
// IsProvisioned: to.Ptr(true),
// CacheNodeStateDetailedText: to.Ptr("onckp"),
// CacheNodeStateShortText: to.Ptr("yxkwlubqlzhkmemzjzlxksho"),
// CacheNodeState: to.Ptr[int32](30),
// DriveConfiguration: []*armconnectedcache.CacheNodeDriveConfiguration{
// {
// PhysicalPath: to.Ptr("pcbkezoofhamkycot"),
// SizeInGb: to.Ptr[int32](14),
// CacheNumber: to.Ptr[int32](11),
// NginxMapping: to.Ptr("cirlpkpuxg"),
// },
// },
// BgpConfiguration: &armconnectedcache.BgpConfiguration{
// AsnToIPAddressMapping: to.Ptr("fjbggfvumrn"),
// },
// ProxyURLConfiguration: &armconnectedcache.ProxyURLConfiguration{
// ProxyURL: to.Ptr("hplstyg"),
// },
// OptionalProperty1: to.Ptr("ph"),
// OptionalProperty2: to.Ptr("soqqgpgcbhb"),
// OptionalProperty3: to.Ptr("fpnycrbagptsujiotnjfuhlm"),
// OptionalProperty4: to.Ptr("gesqugrxvhxlxxyvatgrautxwlmxsf"),
// OptionalProperty5: to.Ptr("zknjgzpaqtvdqjydd"),
// },
// Status: to.Ptr("utgrdjsw"),
// Error: &armconnectedcache.ErrorDetail{
// Code: to.Ptr("dkvgvtftpsjsbhlnapvihefxneoggs"),
// Message: to.Ptr("okakgyfnmyob"),
// },
// },
// Tags: map[string]*string{
// "key259": to.Ptr("qbkixjuyjkoj"),
// },
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// }
}
Output:
type EnterpriseMccCacheNodesOperationsClientBeginCreateOrUpdateOptions ¶
type EnterpriseMccCacheNodesOperationsClientBeginCreateOrUpdateOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
EnterpriseMccCacheNodesOperationsClientBeginCreateOrUpdateOptions contains the optional parameters for the EnterpriseMccCacheNodesOperationsClient.BeginCreateOrUpdate method.
type EnterpriseMccCacheNodesOperationsClientBeginDeleteOptions ¶
type EnterpriseMccCacheNodesOperationsClientBeginDeleteOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
EnterpriseMccCacheNodesOperationsClientBeginDeleteOptions contains the optional parameters for the EnterpriseMccCacheNodesOperationsClient.BeginDelete method.
type EnterpriseMccCacheNodesOperationsClientCreateOrUpdateResponse ¶
type EnterpriseMccCacheNodesOperationsClientCreateOrUpdateResponse struct {
// Represents the high level Nodes needed to provision cache node resources
EnterpriseMccCacheNodeResource
}
EnterpriseMccCacheNodesOperationsClientCreateOrUpdateResponse contains the response from method EnterpriseMccCacheNodesOperationsClient.BeginCreateOrUpdate.
type EnterpriseMccCacheNodesOperationsClientDeleteResponse ¶
type EnterpriseMccCacheNodesOperationsClientDeleteResponse struct {
}
EnterpriseMccCacheNodesOperationsClientDeleteResponse contains the response from method EnterpriseMccCacheNodesOperationsClient.BeginDelete.
type EnterpriseMccCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryOptions ¶ added in v0.2.0
type EnterpriseMccCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryOptions struct {
}
EnterpriseMccCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryOptions contains the optional parameters for the EnterpriseMccCacheNodesOperationsClient.GetCacheNodeAutoUpdateHistory method.
type EnterpriseMccCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryResponse ¶ added in v0.2.0
type EnterpriseMccCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryResponse struct {
// Mcc cache node resource auto update history.
MccCacheNodeAutoUpdateHistory
}
EnterpriseMccCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryResponse contains the response from method EnterpriseMccCacheNodesOperationsClient.GetCacheNodeAutoUpdateHistory.
type EnterpriseMccCacheNodesOperationsClientGetCacheNodeInstallDetailsOptions ¶
type EnterpriseMccCacheNodesOperationsClientGetCacheNodeInstallDetailsOptions struct {
}
EnterpriseMccCacheNodesOperationsClientGetCacheNodeInstallDetailsOptions contains the optional parameters for the EnterpriseMccCacheNodesOperationsClient.GetCacheNodeInstallDetails method.
type EnterpriseMccCacheNodesOperationsClientGetCacheNodeInstallDetailsResponse ¶
type EnterpriseMccCacheNodesOperationsClientGetCacheNodeInstallDetailsResponse struct {
// Mcc cache node resource all install details.
MccCacheNodeInstallDetails
}
EnterpriseMccCacheNodesOperationsClientGetCacheNodeInstallDetailsResponse contains the response from method EnterpriseMccCacheNodesOperationsClient.GetCacheNodeInstallDetails.
type EnterpriseMccCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryOptions ¶ added in v0.2.0
type EnterpriseMccCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryOptions struct {
}
EnterpriseMccCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryOptions contains the optional parameters for the EnterpriseMccCacheNodesOperationsClient.GetCacheNodeMccIssueDetailsHistory method.
type EnterpriseMccCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryResponse ¶ added in v0.2.0
type EnterpriseMccCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryResponse struct {
// Mcc cache node resource issue history.
MccCacheNodeIssueHistory
}
EnterpriseMccCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryResponse contains the response from method EnterpriseMccCacheNodesOperationsClient.GetCacheNodeMccIssueDetailsHistory.
type EnterpriseMccCacheNodesOperationsClientGetCacheNodeTLSCertificateHistoryOptions ¶ added in v0.2.0
type EnterpriseMccCacheNodesOperationsClientGetCacheNodeTLSCertificateHistoryOptions struct {
}
EnterpriseMccCacheNodesOperationsClientGetCacheNodeTLSCertificateHistoryOptions contains the optional parameters for the EnterpriseMccCacheNodesOperationsClient.GetCacheNodeTLSCertificateHistory method.
type EnterpriseMccCacheNodesOperationsClientGetCacheNodeTLSCertificateHistoryResponse ¶ added in v0.2.0
type EnterpriseMccCacheNodesOperationsClientGetCacheNodeTLSCertificateHistoryResponse struct {
// Mcc cache node resource Tls certificate history details.
MccCacheNodeTLSCertificateHistory
}
EnterpriseMccCacheNodesOperationsClientGetCacheNodeTLSCertificateHistoryResponse contains the response from method EnterpriseMccCacheNodesOperationsClient.GetCacheNodeTLSCertificateHistory.
type EnterpriseMccCacheNodesOperationsClientGetOptions ¶
type EnterpriseMccCacheNodesOperationsClientGetOptions struct {
}
EnterpriseMccCacheNodesOperationsClientGetOptions contains the optional parameters for the EnterpriseMccCacheNodesOperationsClient.Get method.
type EnterpriseMccCacheNodesOperationsClientGetResponse ¶
type EnterpriseMccCacheNodesOperationsClientGetResponse struct {
// Represents the high level Nodes needed to provision cache node resources
EnterpriseMccCacheNodeResource
}
EnterpriseMccCacheNodesOperationsClientGetResponse contains the response from method EnterpriseMccCacheNodesOperationsClient.Get.
type EnterpriseMccCacheNodesOperationsClientListByEnterpriseMccCustomerResourceOptions ¶
type EnterpriseMccCacheNodesOperationsClientListByEnterpriseMccCustomerResourceOptions struct {
}
EnterpriseMccCacheNodesOperationsClientListByEnterpriseMccCustomerResourceOptions contains the optional parameters for the EnterpriseMccCacheNodesOperationsClient.NewListByEnterpriseMccCustomerResourcePager method.
type EnterpriseMccCacheNodesOperationsClientListByEnterpriseMccCustomerResourceResponse ¶
type EnterpriseMccCacheNodesOperationsClientListByEnterpriseMccCustomerResourceResponse struct {
// The response of a EnterpriseMccCacheNodeResource list operation.
EnterpriseMccCacheNodeResourceListResult
}
EnterpriseMccCacheNodesOperationsClientListByEnterpriseMccCustomerResourceResponse contains the response from method EnterpriseMccCacheNodesOperationsClient.NewListByEnterpriseMccCustomerResourcePager.
type EnterpriseMccCacheNodesOperationsClientUpdateOptions ¶
type EnterpriseMccCacheNodesOperationsClientUpdateOptions struct {
}
EnterpriseMccCacheNodesOperationsClientUpdateOptions contains the optional parameters for the EnterpriseMccCacheNodesOperationsClient.Update method.
type EnterpriseMccCacheNodesOperationsClientUpdateResponse ¶
type EnterpriseMccCacheNodesOperationsClientUpdateResponse struct {
// Represents the high level Nodes needed to provision cache node resources
EnterpriseMccCacheNodeResource
}
EnterpriseMccCacheNodesOperationsClientUpdateResponse contains the response from method EnterpriseMccCacheNodesOperationsClient.Update.
type EnterpriseMccCustomerResource ¶
type EnterpriseMccCustomerResource struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// The resource-specific properties for this resource.
Properties *CustomerProperty
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
EnterpriseMccCustomerResource - Represents the high level Nodes needed to provision customer resources
func (EnterpriseMccCustomerResource) MarshalJSON ¶
func (e EnterpriseMccCustomerResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EnterpriseMccCustomerResource.
func (*EnterpriseMccCustomerResource) UnmarshalJSON ¶
func (e *EnterpriseMccCustomerResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EnterpriseMccCustomerResource.
type EnterpriseMccCustomerResourceListResult ¶
type EnterpriseMccCustomerResourceListResult struct {
// REQUIRED; The EnterpriseMccCustomerResource items on this page
Value []*EnterpriseMccCustomerResource
// The link to the next page of items
NextLink *string
}
EnterpriseMccCustomerResourceListResult - The response of a EnterpriseMccCustomerResource list operation.
func (EnterpriseMccCustomerResourceListResult) MarshalJSON ¶
func (e EnterpriseMccCustomerResourceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EnterpriseMccCustomerResourceListResult.
func (*EnterpriseMccCustomerResourceListResult) UnmarshalJSON ¶
func (e *EnterpriseMccCustomerResourceListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EnterpriseMccCustomerResourceListResult.
type EnterpriseMccCustomersClient ¶
type EnterpriseMccCustomersClient struct {
// contains filtered or unexported fields
}
EnterpriseMccCustomersClient contains the methods for the EnterpriseMccCustomers group. Don't use this type directly, use NewEnterpriseMccCustomersClient() instead.
func NewEnterpriseMccCustomersClient ¶
func NewEnterpriseMccCustomersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*EnterpriseMccCustomersClient, error)
NewEnterpriseMccCustomersClient creates a new instance of EnterpriseMccCustomersClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - Contains optional client configuration. Pass nil to accept the default values.
func (*EnterpriseMccCustomersClient) BeginCreateOrUpdate ¶
func (client *EnterpriseMccCustomersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, customerResourceName string, resource EnterpriseMccCustomerResource, options *EnterpriseMccCustomersClientBeginCreateOrUpdateOptions) (*runtime.Poller[EnterpriseMccCustomersClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - This api creates an enterprise mcc customer with the specified create parameters If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- resource - Resource create parameters.
- options - EnterpriseMccCustomersClientBeginCreateOrUpdateOptions contains the optional parameters for the EnterpriseMccCustomersClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: 2024-11-30-preview/EnterpriseMccCustomers_CreateOrUpdate_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
"time"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEnterpriseMccCustomersClient().BeginCreateOrUpdate(ctx, "rgConnectedCache", "MccRPTest1", armconnectedcache.EnterpriseMccCustomerResource{
Properties: &armconnectedcache.CustomerProperty{
Customer: &armconnectedcache.CustomerEntity{
FullyQualifiedResourceID: to.Ptr("uqsbtgae"),
CustomerName: to.Ptr("mkpzynfqihnjfdbaqbqwyhd"),
ContactEmail: to.Ptr("xquos"),
ContactPhone: to.Ptr("vue"),
ContactName: to.Ptr("wxyqjoyoscmvimgwhpitxky"),
IsEntitled: to.Ptr(true),
ReleaseVersion: to.Ptr[int32](20),
ClientTenantID: to.Ptr("fproidkpgvpdnac"),
IsEnterpriseManaged: to.Ptr(true),
ShouldMigrate: to.Ptr(true),
ResendSignupCode: to.Ptr(true),
VerifySignupCode: to.Ptr(true),
VerifySignupPhrase: to.Ptr("tprjvttkgmrqlsyicnidhm"),
},
AdditionalCustomerProperties: &armconnectedcache.AdditionalCustomerProperties{
CustomerEmail: to.Ptr("zdjgibsidydyzm"),
CustomerTransitAsn: to.Ptr("habgklnxqzmozqpazoyejwiphezpi"),
CustomerTransitState: to.Ptr(armconnectedcache.CustomerTransitState("voblixkxfejbmhxilb")),
CustomerAsn: to.Ptr("hgrelgnrtdkleisnepfolu"),
CustomerEntitlementSKUID: to.Ptr("b"),
CustomerEntitlementSKUGUID: to.Ptr("rvzmdpxyflgqetvpwupnfaxsweiiz"),
CustomerEntitlementSKUName: to.Ptr("waaqfijr"),
CustomerEntitlementExpiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t }()),
OptionalProperty1: to.Ptr("qhmwxza"),
OptionalProperty2: to.Ptr("l"),
OptionalProperty3: to.Ptr("mblwwvbie"),
OptionalProperty4: to.Ptr("vzuek"),
OptionalProperty5: to.Ptr("fzjodscdfcdr"),
},
Error: &armconnectedcache.ErrorDetail{},
},
Tags: map[string]*string{
"key3379": to.Ptr("dpyqeaqhcnutzezom"),
},
Location: to.Ptr("westus"),
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armconnectedcache.EnterpriseMccCustomersClientCreateOrUpdateResponse{
// EnterpriseMccCustomerResource: &armconnectedcache.EnterpriseMccCustomerResource{
// Properties: &armconnectedcache.CustomerProperty{
// ProvisioningState: to.Ptr(armconnectedcache.ProvisioningStateSucceeded),
// Customer: &armconnectedcache.CustomerEntity{
// FullyQualifiedResourceID: to.Ptr("uqsbtgae"),
// CustomerID: to.Ptr("nqxuzybu"),
// CustomerName: to.Ptr("mkpzynfqihnjfdbaqbqwyhd"),
// ContactEmail: to.Ptr("xquos"),
// ContactPhone: to.Ptr("vue"),
// ContactName: to.Ptr("wxyqjoyoscmvimgwhpitxky"),
// IsEntitled: to.Ptr(true),
// ReleaseVersion: to.Ptr[int32](20),
// CreateAsyncOperationID: to.Ptr("zjpvgirzxecwmnfyofqkikst"),
// DeleteAsyncOperationID: to.Ptr("ajtdyoyecybeaxzyztjkvvtx"),
// ClientTenantID: to.Ptr("fproidkpgvpdnac"),
// SynchWithAzureAttemptsCount: to.Ptr[int32](17),
// LastSyncWithAzureTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// IsEnterpriseManaged: to.Ptr(true),
// ShouldMigrate: to.Ptr(true),
// ResendSignupCode: to.Ptr(true),
// VerifySignupCode: to.Ptr(true),
// },
// AdditionalCustomerProperties: &armconnectedcache.AdditionalCustomerProperties{
// CustomerPropertiesOverviewCacheEfficiency: to.Ptr[float32](20),
// CustomerPropertiesOverviewAverageEgressMbps: to.Ptr[float32](8),
// CustomerPropertiesOverviewAverageMissMbps: to.Ptr[float32](19),
// CustomerPropertiesOverviewEgressMbpsMax: to.Ptr[float32](15),
// CustomerPropertiesOverviewEgressMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewMissMbpsMax: to.Ptr[float32](28),
// CustomerPropertiesOverviewMissMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewCacheNodesHealthyCount: to.Ptr[int32](24),
// CustomerPropertiesOverviewCacheNodesUnhealthyCount: to.Ptr[int32](15),
// SignupStatus: to.Ptr(true),
// SignupStatusCode: to.Ptr[int32](21),
// SignupStatusText: to.Ptr("dccv"),
// SignupPhaseStatusCode: to.Ptr[int32](4),
// SignupPhaseStatusText: to.Ptr("q"),
// PeeringDbLastUpdateDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerOrgName: to.Ptr("nshrwjhhggmdaqlpc"),
// CustomerEmail: to.Ptr("zdjgibsidydyzm"),
// CustomerTransitAsn: to.Ptr("habgklnxqzmozqpazoyejwiphezpi"),
// CustomerTransitState: to.Ptr(armconnectedcache.CustomerTransitState("voblixkxfejbmhxilb")),
// CustomerAsn: to.Ptr("hgrelgnrtdkleisnepfolu"),
// CustomerAsnEstimatedEgressPeekGbps: to.Ptr[float32](10),
// CustomerEntitlementSKUID: to.Ptr("b"),
// CustomerEntitlementSKUGUID: to.Ptr("rvzmdpxyflgqetvpwupnfaxsweiiz"),
// CustomerEntitlementSKUName: to.Ptr("waaqfijr"),
// CustomerEntitlementExpiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// OptionalProperty1: to.Ptr("qhmwxza"),
// OptionalProperty2: to.Ptr("l"),
// OptionalProperty3: to.Ptr("mblwwvbie"),
// OptionalProperty4: to.Ptr("vzuek"),
// OptionalProperty5: to.Ptr("fzjodscdfcdr"),
// },
// StatusCode: to.Ptr("jax"),
// StatusText: to.Ptr("vsqydgruhuwuyipsplylgiqmkcv"),
// StatusDetails: to.Ptr("wmtksbahlbxrzaksogdbozfi"),
// Status: to.Ptr("rhfjbcr"),
// Error: &armconnectedcache.ErrorDetail{
// Code: to.Ptr("dkvgvtftpsjsbhlnapvihefxneoggs"),
// Message: to.Ptr("okakgyfnmyob"),
// Details: []*armconnectedcache.ErrorDetail{
// },
// },
// },
// Tags: map[string]*string{
// "key3379": to.Ptr("dpyqeaqhcnutzezom"),
// },
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/MccRPTest1"),
// Name: to.Ptr("MccRPTest1"),
// Type: to.Ptr("Microsoft.ConnectedCache/enterpriseMccCustomers"),
// Location: to.Ptr("westus"),
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// }
}
Output:
func (*EnterpriseMccCustomersClient) BeginDelete ¶
func (client *EnterpriseMccCustomersClient) BeginDelete(ctx context.Context, resourceGroupName string, customerResourceName string, options *EnterpriseMccCustomersClientBeginDeleteOptions) (*runtime.Poller[EnterpriseMccCustomersClientDeleteResponse], error)
BeginDelete - This api deletes an existing enterprise mcc customer resource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- options - EnterpriseMccCustomersClientBeginDeleteOptions contains the optional parameters for the EnterpriseMccCustomersClient.BeginDelete method.
Example ¶
Generated from example definition: 2024-11-30-preview/EnterpriseMccCustomers_Delete_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewEnterpriseMccCustomersClient().BeginDelete(ctx, "rgConnectedCache", "zktb", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
Output:
func (*EnterpriseMccCustomersClient) Get ¶
func (client *EnterpriseMccCustomersClient) Get(ctx context.Context, resourceGroupName string, customerResourceName string, options *EnterpriseMccCustomersClientGetOptions) (EnterpriseMccCustomersClientGetResponse, error)
Get - Gets the enterprise mcc customer resource information using this get call If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- options - EnterpriseMccCustomersClientGetOptions contains the optional parameters for the EnterpriseMccCustomersClient.Get method.
Example ¶
Generated from example definition: 2024-11-30-preview/EnterpriseMccCustomers_Get_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEnterpriseMccCustomersClient().Get(ctx, "rgConnectedCache", "pvilvqkofbjbykupeewgvzlmjao", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armconnectedcache.EnterpriseMccCustomersClientGetResponse{
// EnterpriseMccCustomerResource: &armconnectedcache.EnterpriseMccCustomerResource{
// Properties: &armconnectedcache.CustomerProperty{
// ProvisioningState: to.Ptr(armconnectedcache.ProvisioningStateSucceeded),
// Customer: &armconnectedcache.CustomerEntity{
// FullyQualifiedResourceID: to.Ptr("uqsbtgae"),
// CustomerID: to.Ptr("nqxuzybu"),
// CustomerName: to.Ptr("mkpzynfqihnjfdbaqbqwyhd"),
// ContactEmail: to.Ptr("xquos"),
// ContactPhone: to.Ptr("vue"),
// ContactName: to.Ptr("wxyqjoyoscmvimgwhpitxky"),
// IsEntitled: to.Ptr(true),
// ReleaseVersion: to.Ptr[int32](20),
// CreateAsyncOperationID: to.Ptr("zjpvgirzxecwmnfyofqkikst"),
// DeleteAsyncOperationID: to.Ptr("ajtdyoyecybeaxzyztjkvvtx"),
// ClientTenantID: to.Ptr("fproidkpgvpdnac"),
// SynchWithAzureAttemptsCount: to.Ptr[int32](17),
// LastSyncWithAzureTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// IsEnterpriseManaged: to.Ptr(true),
// ShouldMigrate: to.Ptr(true),
// ResendSignupCode: to.Ptr(true),
// VerifySignupCode: to.Ptr(true),
// },
// AdditionalCustomerProperties: &armconnectedcache.AdditionalCustomerProperties{
// CustomerPropertiesOverviewCacheEfficiency: to.Ptr[float32](20),
// CustomerPropertiesOverviewAverageEgressMbps: to.Ptr[float32](8),
// CustomerPropertiesOverviewAverageMissMbps: to.Ptr[float32](19),
// CustomerPropertiesOverviewEgressMbpsMax: to.Ptr[float32](15),
// CustomerPropertiesOverviewEgressMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewMissMbpsMax: to.Ptr[float32](28),
// CustomerPropertiesOverviewMissMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewCacheNodesHealthyCount: to.Ptr[int32](24),
// CustomerPropertiesOverviewCacheNodesUnhealthyCount: to.Ptr[int32](15),
// SignupStatus: to.Ptr(true),
// SignupStatusCode: to.Ptr[int32](21),
// SignupStatusText: to.Ptr("dccv"),
// SignupPhaseStatusCode: to.Ptr[int32](4),
// SignupPhaseStatusText: to.Ptr("q"),
// PeeringDbLastUpdateDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerOrgName: to.Ptr("nshrwjhhggmdaqlpc"),
// CustomerEmail: to.Ptr("zdjgibsidydyzm"),
// CustomerTransitAsn: to.Ptr("habgklnxqzmozqpazoyejwiphezpi"),
// CustomerTransitState: to.Ptr(armconnectedcache.CustomerTransitState("voblixkxfejbmhxilb")),
// CustomerAsn: to.Ptr("hgrelgnrtdkleisnepfolu"),
// CustomerAsnEstimatedEgressPeekGbps: to.Ptr[float32](10),
// CustomerEntitlementSKUID: to.Ptr("b"),
// CustomerEntitlementSKUGUID: to.Ptr("rvzmdpxyflgqetvpwupnfaxsweiiz"),
// CustomerEntitlementSKUName: to.Ptr("waaqfijr"),
// CustomerEntitlementExpiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// OptionalProperty1: to.Ptr("qhmwxza"),
// OptionalProperty2: to.Ptr("l"),
// OptionalProperty3: to.Ptr("mblwwvbie"),
// OptionalProperty4: to.Ptr("vzuek"),
// OptionalProperty5: to.Ptr("fzjodscdfcdr"),
// },
// StatusCode: to.Ptr("jax"),
// StatusText: to.Ptr("vsqydgruhuwuyipsplylgiqmkcv"),
// StatusDetails: to.Ptr("wmtksbahlbxrzaksogdbozfi"),
// Status: to.Ptr("rhfjbcr"),
// Error: &armconnectedcache.ErrorDetail{
// Code: to.Ptr("dkvgvtftpsjsbhlnapvihefxneoggs"),
// Message: to.Ptr("okakgyfnmyob"),
// Details: []*armconnectedcache.ErrorDetail{
// },
// },
// },
// Tags: map[string]*string{
// "key3379": to.Ptr("dpyqeaqhcnutzezom"),
// },
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/MccRPTest1"),
// Name: to.Ptr("MccRPTest1"),
// Type: to.Ptr("Microsoft.ConnectedCache/enterpriseMccCustomers"),
// Location: to.Ptr("westus"),
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// }
}
Output:
func (*EnterpriseMccCustomersClient) NewListByResourceGroupPager ¶
func (client *EnterpriseMccCustomersClient) NewListByResourceGroupPager(resourceGroupName string, options *EnterpriseMccCustomersClientListByResourceGroupOptions) *runtime.Pager[EnterpriseMccCustomersClientListByResourceGroupResponse]
NewListByResourceGroupPager - This api gets the information about all enterprise mcc customer resources under the given subscription and resource group
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- options - EnterpriseMccCustomersClientListByResourceGroupOptions contains the optional parameters for the EnterpriseMccCustomersClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: 2024-11-30-preview/EnterpriseMccCustomers_ListByResourceGroup_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewEnterpriseMccCustomersClient().NewListByResourceGroupPager("rgConnectedCache", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armconnectedcache.EnterpriseMccCustomersClientListByResourceGroupResponse{
// EnterpriseMccCustomerResourceListResult: armconnectedcache.EnterpriseMccCustomerResourceListResult{
// Value: []*armconnectedcache.EnterpriseMccCustomerResource{
// {
// Properties: &armconnectedcache.CustomerProperty{
// ProvisioningState: to.Ptr(armconnectedcache.ProvisioningStateSucceeded),
// Customer: &armconnectedcache.CustomerEntity{
// FullyQualifiedResourceID: to.Ptr("uqsbtgae"),
// CustomerID: to.Ptr("nqxuzybu"),
// CustomerName: to.Ptr("mkpzynfqihnjfdbaqbqwyhd"),
// ContactEmail: to.Ptr("xquos"),
// ContactPhone: to.Ptr("vue"),
// ContactName: to.Ptr("wxyqjoyoscmvimgwhpitxky"),
// IsEntitled: to.Ptr(true),
// ReleaseVersion: to.Ptr[int32](20),
// CreateAsyncOperationID: to.Ptr("zjpvgirzxecwmnfyofqkikst"),
// DeleteAsyncOperationID: to.Ptr("ajtdyoyecybeaxzyztjkvvtx"),
// ClientTenantID: to.Ptr("fproidkpgvpdnac"),
// SynchWithAzureAttemptsCount: to.Ptr[int32](17),
// LastSyncWithAzureTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// IsEnterpriseManaged: to.Ptr(true),
// ShouldMigrate: to.Ptr(true),
// ResendSignupCode: to.Ptr(true),
// VerifySignupCode: to.Ptr(true),
// },
// AdditionalCustomerProperties: &armconnectedcache.AdditionalCustomerProperties{
// CustomerPropertiesOverviewCacheEfficiency: to.Ptr[float32](20),
// CustomerPropertiesOverviewAverageEgressMbps: to.Ptr[float32](8),
// CustomerPropertiesOverviewAverageMissMbps: to.Ptr[float32](19),
// CustomerPropertiesOverviewEgressMbpsMax: to.Ptr[float32](15),
// CustomerPropertiesOverviewEgressMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewMissMbpsMax: to.Ptr[float32](28),
// CustomerPropertiesOverviewMissMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewCacheNodesHealthyCount: to.Ptr[int32](24),
// CustomerPropertiesOverviewCacheNodesUnhealthyCount: to.Ptr[int32](15),
// SignupStatus: to.Ptr(true),
// SignupStatusCode: to.Ptr[int32](21),
// SignupStatusText: to.Ptr("dccv"),
// SignupPhaseStatusCode: to.Ptr[int32](4),
// SignupPhaseStatusText: to.Ptr("q"),
// PeeringDbLastUpdateDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerOrgName: to.Ptr("nshrwjhhggmdaqlpc"),
// CustomerEmail: to.Ptr("zdjgibsidydyzm"),
// CustomerTransitAsn: to.Ptr("habgklnxqzmozqpazoyejwiphezpi"),
// CustomerTransitState: to.Ptr(armconnectedcache.CustomerTransitState("voblixkxfejbmhxilb")),
// CustomerAsn: to.Ptr("hgrelgnrtdkleisnepfolu"),
// CustomerAsnEstimatedEgressPeekGbps: to.Ptr[float32](10),
// CustomerEntitlementSKUID: to.Ptr("b"),
// CustomerEntitlementSKUGUID: to.Ptr("rvzmdpxyflgqetvpwupnfaxsweiiz"),
// CustomerEntitlementSKUName: to.Ptr("waaqfijr"),
// CustomerEntitlementExpiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// OptionalProperty1: to.Ptr("qhmwxza"),
// OptionalProperty2: to.Ptr("l"),
// OptionalProperty3: to.Ptr("mblwwvbie"),
// OptionalProperty4: to.Ptr("vzuek"),
// OptionalProperty5: to.Ptr("fzjodscdfcdr"),
// },
// StatusCode: to.Ptr("jax"),
// StatusText: to.Ptr("vsqydgruhuwuyipsplylgiqmkcv"),
// StatusDetails: to.Ptr("wmtksbahlbxrzaksogdbozfi"),
// Status: to.Ptr("rhfjbcr"),
// Error: &armconnectedcache.ErrorDetail{
// Code: to.Ptr("dkvgvtftpsjsbhlnapvihefxneoggs"),
// Message: to.Ptr("okakgyfnmyob"),
// Details: []*armconnectedcache.ErrorDetail{
// },
// },
// },
// Tags: map[string]*string{
// "key3379": to.Ptr("dpyqeaqhcnutzezom"),
// },
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/MccRPTest1"),
// Name: to.Ptr("MccRPTest1"),
// Type: to.Ptr("Microsoft.ConnectedCache/enterpriseMccCustomers"),
// Location: to.Ptr("westus"),
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// },
// NextLink: to.Ptr("https://microsoft.com/ae"),
// },
// }
}
}
Output:
func (*EnterpriseMccCustomersClient) NewListBySubscriptionPager ¶
func (client *EnterpriseMccCustomersClient) NewListBySubscriptionPager(options *EnterpriseMccCustomersClientListBySubscriptionOptions) *runtime.Pager[EnterpriseMccCustomersClientListBySubscriptionResponse]
NewListBySubscriptionPager - This api gets information about all enterpriseMccCustomer resources under the given subscription
Generated from API version 2024-11-30-preview
- options - EnterpriseMccCustomersClientListBySubscriptionOptions contains the optional parameters for the EnterpriseMccCustomersClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: 2024-11-30-preview/EnterpriseMccCustomers_ListBySubscription_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewEnterpriseMccCustomersClient().NewListBySubscriptionPager(nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armconnectedcache.EnterpriseMccCustomersClientListBySubscriptionResponse{
// EnterpriseMccCustomerResourceListResult: armconnectedcache.EnterpriseMccCustomerResourceListResult{
// Value: []*armconnectedcache.EnterpriseMccCustomerResource{
// {
// Properties: &armconnectedcache.CustomerProperty{
// ProvisioningState: to.Ptr(armconnectedcache.ProvisioningStateSucceeded),
// Customer: &armconnectedcache.CustomerEntity{
// FullyQualifiedResourceID: to.Ptr("uqsbtgae"),
// CustomerID: to.Ptr("nqxuzybu"),
// CustomerName: to.Ptr("mkpzynfqihnjfdbaqbqwyhd"),
// ContactEmail: to.Ptr("xquos"),
// ContactPhone: to.Ptr("vue"),
// ContactName: to.Ptr("wxyqjoyoscmvimgwhpitxky"),
// IsEntitled: to.Ptr(true),
// ReleaseVersion: to.Ptr[int32](20),
// CreateAsyncOperationID: to.Ptr("zjpvgirzxecwmnfyofqkikst"),
// DeleteAsyncOperationID: to.Ptr("ajtdyoyecybeaxzyztjkvvtx"),
// ClientTenantID: to.Ptr("fproidkpgvpdnac"),
// SynchWithAzureAttemptsCount: to.Ptr[int32](17),
// LastSyncWithAzureTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// IsEnterpriseManaged: to.Ptr(true),
// ShouldMigrate: to.Ptr(true),
// ResendSignupCode: to.Ptr(true),
// VerifySignupCode: to.Ptr(true),
// },
// AdditionalCustomerProperties: &armconnectedcache.AdditionalCustomerProperties{
// CustomerPropertiesOverviewCacheEfficiency: to.Ptr[float32](20),
// CustomerPropertiesOverviewAverageEgressMbps: to.Ptr[float32](8),
// CustomerPropertiesOverviewAverageMissMbps: to.Ptr[float32](19),
// CustomerPropertiesOverviewEgressMbpsMax: to.Ptr[float32](15),
// CustomerPropertiesOverviewEgressMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewMissMbpsMax: to.Ptr[float32](28),
// CustomerPropertiesOverviewMissMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewCacheNodesHealthyCount: to.Ptr[int32](24),
// CustomerPropertiesOverviewCacheNodesUnhealthyCount: to.Ptr[int32](15),
// SignupStatus: to.Ptr(true),
// SignupStatusCode: to.Ptr[int32](21),
// SignupStatusText: to.Ptr("dccv"),
// SignupPhaseStatusCode: to.Ptr[int32](4),
// SignupPhaseStatusText: to.Ptr("q"),
// PeeringDbLastUpdateDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerOrgName: to.Ptr("nshrwjhhggmdaqlpc"),
// CustomerEmail: to.Ptr("zdjgibsidydyzm"),
// CustomerTransitAsn: to.Ptr("habgklnxqzmozqpazoyejwiphezpi"),
// CustomerTransitState: to.Ptr(armconnectedcache.CustomerTransitState("voblixkxfejbmhxilb")),
// CustomerAsn: to.Ptr("hgrelgnrtdkleisnepfolu"),
// CustomerAsnEstimatedEgressPeekGbps: to.Ptr[float32](10),
// CustomerEntitlementSKUID: to.Ptr("b"),
// CustomerEntitlementSKUGUID: to.Ptr("rvzmdpxyflgqetvpwupnfaxsweiiz"),
// CustomerEntitlementSKUName: to.Ptr("waaqfijr"),
// CustomerEntitlementExpiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// OptionalProperty1: to.Ptr("qhmwxza"),
// OptionalProperty2: to.Ptr("l"),
// OptionalProperty3: to.Ptr("mblwwvbie"),
// OptionalProperty4: to.Ptr("vzuek"),
// OptionalProperty5: to.Ptr("fzjodscdfcdr"),
// },
// StatusCode: to.Ptr("jax"),
// StatusText: to.Ptr("vsqydgruhuwuyipsplylgiqmkcv"),
// StatusDetails: to.Ptr("wmtksbahlbxrzaksogdbozfi"),
// Status: to.Ptr("rhfjbcr"),
// Error: &armconnectedcache.ErrorDetail{
// Code: to.Ptr("dkvgvtftpsjsbhlnapvihefxneoggs"),
// Message: to.Ptr("okakgyfnmyob"),
// Details: []*armconnectedcache.ErrorDetail{
// },
// },
// },
// Tags: map[string]*string{
// "key3379": to.Ptr("dpyqeaqhcnutzezom"),
// },
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/MccRPTest1"),
// Name: to.Ptr("MccRPTest1"),
// Type: to.Ptr("Microsoft.ConnectedCache/enterpriseMccCustomers"),
// Location: to.Ptr("westus"),
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// },
// NextLink: to.Ptr("https://microsoft.com/ae"),
// },
// }
}
}
Output:
func (*EnterpriseMccCustomersClient) Update ¶
func (client *EnterpriseMccCustomersClient) Update(ctx context.Context, resourceGroupName string, customerResourceName string, properties PatchResource, options *EnterpriseMccCustomersClientUpdateOptions) (EnterpriseMccCustomersClientUpdateResponse, error)
Update - This api updates an existing enterprise mcc customer resource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- properties - The resource properties to be updated.
- options - EnterpriseMccCustomersClientUpdateOptions contains the optional parameters for the EnterpriseMccCustomersClient.Update method.
Example ¶
Generated from example definition: 2024-11-30-preview/EnterpriseMccCustomers_Update_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewEnterpriseMccCustomersClient().Update(ctx, "rgConnectedCache", "MccRPTest1", armconnectedcache.PatchResource{
Tags: map[string]*string{
"key1878": to.Ptr("warz"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armconnectedcache.EnterpriseMccCustomersClientUpdateResponse{
// EnterpriseMccCustomerResource: &armconnectedcache.EnterpriseMccCustomerResource{
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/ispCustomers/MccRPTest2"),
// Name: to.Ptr("MCCTPTest2"),
// Type: to.Ptr("Microsoft.ConnectedCache/ispCustomers"),
// Location: to.Ptr("westus"),
// Properties: &armconnectedcache.CustomerProperty{
// ProvisioningState: to.Ptr(armconnectedcache.ProvisioningStateSucceeded),
// Customer: &armconnectedcache.CustomerEntity{
// FullyQualifiedResourceID: to.Ptr("uqsbtgae"),
// CustomerID: to.Ptr("nqxuzybu"),
// CustomerName: to.Ptr("mkpzynfqihnjfdbaqbqwyhd"),
// ContactEmail: to.Ptr("xquos"),
// ContactPhone: to.Ptr("vue"),
// ContactName: to.Ptr("wxyqjoyoscmvimgwhpitxky"),
// IsEntitled: to.Ptr(true),
// ReleaseVersion: to.Ptr[int32](20),
// CreateAsyncOperationID: to.Ptr("zjpvgirzxecwmnfyofqkikst"),
// DeleteAsyncOperationID: to.Ptr("ajtdyoyecybeaxzyztjkvvtx"),
// ClientTenantID: to.Ptr("fproidkpgvpdnac"),
// SynchWithAzureAttemptsCount: to.Ptr[int32](17),
// LastSyncWithAzureTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// IsEnterpriseManaged: to.Ptr(true),
// ShouldMigrate: to.Ptr(true),
// ResendSignupCode: to.Ptr(true),
// VerifySignupCode: to.Ptr(true),
// },
// AdditionalCustomerProperties: &armconnectedcache.AdditionalCustomerProperties{
// CustomerPropertiesOverviewCacheEfficiency: to.Ptr[float32](20),
// CustomerPropertiesOverviewAverageEgressMbps: to.Ptr[float32](8),
// CustomerPropertiesOverviewAverageMissMbps: to.Ptr[float32](19),
// CustomerPropertiesOverviewEgressMbpsMax: to.Ptr[float32](15),
// CustomerPropertiesOverviewEgressMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewMissMbpsMax: to.Ptr[float32](28),
// CustomerPropertiesOverviewMissMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewCacheNodesHealthyCount: to.Ptr[int32](24),
// CustomerPropertiesOverviewCacheNodesUnhealthyCount: to.Ptr[int32](15),
// SignupStatus: to.Ptr(true),
// SignupStatusCode: to.Ptr[int32](21),
// SignupStatusText: to.Ptr("dccv"),
// SignupPhaseStatusCode: to.Ptr[int32](4),
// SignupPhaseStatusText: to.Ptr("q"),
// PeeringDbLastUpdateDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerOrgName: to.Ptr("nshrwjhhggmdaqlpc"),
// CustomerEmail: to.Ptr("zdjgibsidydyzm"),
// CustomerTransitAsn: to.Ptr("habgklnxqzmozqpazoyejwiphezpi"),
// CustomerTransitState: to.Ptr(armconnectedcache.CustomerTransitState("voblixkxfejbmhxilb")),
// CustomerAsn: to.Ptr("hgrelgnrtdkleisnepfolu"),
// CustomerAsnEstimatedEgressPeekGbps: to.Ptr[float32](10),
// CustomerEntitlementSKUID: to.Ptr("b"),
// CustomerEntitlementSKUGUID: to.Ptr("rvzmdpxyflgqetvpwupnfaxsweiiz"),
// CustomerEntitlementSKUName: to.Ptr("waaqfijr"),
// CustomerEntitlementExpiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// OptionalProperty1: to.Ptr("qhmwxza"),
// OptionalProperty2: to.Ptr("l"),
// OptionalProperty3: to.Ptr("mblwwvbie"),
// OptionalProperty4: to.Ptr("vzuek"),
// OptionalProperty5: to.Ptr("fzjodscdfcdr"),
// },
// StatusCode: to.Ptr("jax"),
// StatusText: to.Ptr("vsqydgruhuwuyipsplylgiqmkcv"),
// StatusDetails: to.Ptr("wmtksbahlbxrzaksogdbozfi"),
// Status: to.Ptr("rhfjbcr"),
// },
// Tags: map[string]*string{
// "key3379": to.Ptr("dpyqeaqhcnutzezom"),
// },
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// }
}
Output:
type EnterpriseMccCustomersClientBeginCreateOrUpdateOptions ¶
type EnterpriseMccCustomersClientBeginCreateOrUpdateOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
EnterpriseMccCustomersClientBeginCreateOrUpdateOptions contains the optional parameters for the EnterpriseMccCustomersClient.BeginCreateOrUpdate method.
type EnterpriseMccCustomersClientBeginDeleteOptions ¶
type EnterpriseMccCustomersClientBeginDeleteOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
EnterpriseMccCustomersClientBeginDeleteOptions contains the optional parameters for the EnterpriseMccCustomersClient.BeginDelete method.
type EnterpriseMccCustomersClientCreateOrUpdateResponse ¶
type EnterpriseMccCustomersClientCreateOrUpdateResponse struct {
// Represents the high level Nodes needed to provision customer resources
EnterpriseMccCustomerResource
}
EnterpriseMccCustomersClientCreateOrUpdateResponse contains the response from method EnterpriseMccCustomersClient.BeginCreateOrUpdate.
type EnterpriseMccCustomersClientDeleteResponse ¶
type EnterpriseMccCustomersClientDeleteResponse struct {
}
EnterpriseMccCustomersClientDeleteResponse contains the response from method EnterpriseMccCustomersClient.BeginDelete.
type EnterpriseMccCustomersClientGetOptions ¶
type EnterpriseMccCustomersClientGetOptions struct {
}
EnterpriseMccCustomersClientGetOptions contains the optional parameters for the EnterpriseMccCustomersClient.Get method.
type EnterpriseMccCustomersClientGetResponse ¶
type EnterpriseMccCustomersClientGetResponse struct {
// Represents the high level Nodes needed to provision customer resources
EnterpriseMccCustomerResource
}
EnterpriseMccCustomersClientGetResponse contains the response from method EnterpriseMccCustomersClient.Get.
type EnterpriseMccCustomersClientListByResourceGroupOptions ¶
type EnterpriseMccCustomersClientListByResourceGroupOptions struct {
}
EnterpriseMccCustomersClientListByResourceGroupOptions contains the optional parameters for the EnterpriseMccCustomersClient.NewListByResourceGroupPager method.
type EnterpriseMccCustomersClientListByResourceGroupResponse ¶
type EnterpriseMccCustomersClientListByResourceGroupResponse struct {
// The response of a EnterpriseMccCustomerResource list operation.
EnterpriseMccCustomerResourceListResult
}
EnterpriseMccCustomersClientListByResourceGroupResponse contains the response from method EnterpriseMccCustomersClient.NewListByResourceGroupPager.
type EnterpriseMccCustomersClientListBySubscriptionOptions ¶
type EnterpriseMccCustomersClientListBySubscriptionOptions struct {
}
EnterpriseMccCustomersClientListBySubscriptionOptions contains the optional parameters for the EnterpriseMccCustomersClient.NewListBySubscriptionPager method.
type EnterpriseMccCustomersClientListBySubscriptionResponse ¶
type EnterpriseMccCustomersClientListBySubscriptionResponse struct {
// The response of a EnterpriseMccCustomerResource list operation.
EnterpriseMccCustomerResourceListResult
}
EnterpriseMccCustomersClientListBySubscriptionResponse contains the response from method EnterpriseMccCustomersClient.NewListBySubscriptionPager.
type EnterpriseMccCustomersClientUpdateOptions ¶
type EnterpriseMccCustomersClientUpdateOptions struct {
}
EnterpriseMccCustomersClientUpdateOptions contains the optional parameters for the EnterpriseMccCustomersClient.Update method.
type EnterpriseMccCustomersClientUpdateResponse ¶
type EnterpriseMccCustomersClientUpdateResponse struct {
// Represents the high level Nodes needed to provision customer resources
EnterpriseMccCustomerResource
}
EnterpriseMccCustomersClientUpdateResponse contains the response from method EnterpriseMccCustomersClient.Update.
type ErrorAdditionalInfo ¶
type ErrorAdditionalInfo struct {
// READ-ONLY; The additional info.
Info any
// READ-ONLY; The additional info type.
Type *string
}
ErrorAdditionalInfo - The resource management error additional info.
func (ErrorAdditionalInfo) MarshalJSON ¶
func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo.
func (*ErrorAdditionalInfo) UnmarshalJSON ¶
func (e *ErrorAdditionalInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorAdditionalInfo.
type ErrorDetail ¶
type ErrorDetail struct {
// READ-ONLY; The error additional info.
AdditionalInfo []*ErrorAdditionalInfo
// READ-ONLY; The error code.
Code *string
// READ-ONLY; The error details.
Details []*ErrorDetail
// READ-ONLY; The error message.
Message *string
// READ-ONLY; The error target.
Target *string
}
ErrorDetail - The error detail.
func (ErrorDetail) MarshalJSON ¶
func (e ErrorDetail) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorDetail.
func (*ErrorDetail) UnmarshalJSON ¶
func (e *ErrorDetail) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDetail.
type IspCacheNodeResource ¶
type IspCacheNodeResource struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// The resource-specific properties for this resource.
Properties *CacheNodeProperty
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
IspCacheNodeResource - Represents the high level Nodes needed to provision cache node resources
func (IspCacheNodeResource) MarshalJSON ¶
func (i IspCacheNodeResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IspCacheNodeResource.
func (*IspCacheNodeResource) UnmarshalJSON ¶
func (i *IspCacheNodeResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IspCacheNodeResource.
type IspCacheNodeResourceListResult ¶
type IspCacheNodeResourceListResult struct {
// REQUIRED; The IspCacheNodeResource items on this page
Value []*IspCacheNodeResource
// The link to the next page of items
NextLink *string
}
IspCacheNodeResourceListResult - The response of a IspCacheNodeResource list operation.
func (IspCacheNodeResourceListResult) MarshalJSON ¶
func (i IspCacheNodeResourceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IspCacheNodeResourceListResult.
func (*IspCacheNodeResourceListResult) UnmarshalJSON ¶
func (i *IspCacheNodeResourceListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IspCacheNodeResourceListResult.
type IspCacheNodesOperationsClient ¶
type IspCacheNodesOperationsClient struct {
// contains filtered or unexported fields
}
IspCacheNodesOperationsClient contains the methods for the IspCacheNodesOperations group. Don't use this type directly, use NewIspCacheNodesOperationsClient() instead.
func NewIspCacheNodesOperationsClient ¶
func NewIspCacheNodesOperationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IspCacheNodesOperationsClient, error)
NewIspCacheNodesOperationsClient creates a new instance of IspCacheNodesOperationsClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - Contains optional client configuration. Pass nil to accept the default values.
func (*IspCacheNodesOperationsClient) BeginCreateOrUpdate ¶
func (client *IspCacheNodesOperationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, customerResourceName string, cacheNodeResourceName string, resource IspCacheNodeResource, options *IspCacheNodesOperationsClientBeginCreateOrUpdateOptions) (*runtime.Poller[IspCacheNodesOperationsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - This api creates an ispCacheNode with the specified create parameters If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- cacheNodeResourceName - Name of the ConnectedCache resource
- resource - Resource create parameters.
- options - IspCacheNodesOperationsClientBeginCreateOrUpdateOptions contains the optional parameters for the IspCacheNodesOperationsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: 2024-11-30-preview/IspCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewIspCacheNodesOperationsClient().BeginCreateOrUpdate(ctx, "rgConnectedCache", "zpqzbmanlljgmkrthtydrtneavhlnlqkdmviq", "cabakm", armconnectedcache.IspCacheNodeResource{
Location: to.Ptr("westus"),
Properties: &armconnectedcache.CacheNodeProperty{
CacheNode: &armconnectedcache.CacheNodeEntity{
FullyQualifiedResourceID: to.Ptr("hskxkpbiqbrbjiwdzrxndru"),
CustomerName: to.Ptr("xwyqk"),
IPAddress: to.Ptr("voctagljcwqgcpnionqdcbjk"),
CustomerIndex: to.Ptr("qtoiglqaswivmkjhzogburcxtszmek"),
CacheNodeID: to.Ptr("xjzffjftwcgsehanoxsl"),
CacheNodeName: to.Ptr("mfjxb"),
CustomerAsn: to.Ptr[int32](4),
IsEnabled: to.Ptr(true),
MaxAllowableEgressInMbps: to.Ptr[int32](29),
IsEnterpriseManaged: to.Ptr(true),
CidrCSV: []*string{
to.Ptr("nlqlvrthafvvljuupcbcw"),
},
ShouldMigrate: to.Ptr(true),
CidrSelectionType: to.Ptr[int32](4),
},
AdditionalCacheNodeProperties: &armconnectedcache.AdditionalCacheNodeProperties{
DriveConfiguration: []*armconnectedcache.CacheNodeDriveConfiguration{
{
PhysicalPath: to.Ptr("/mcc"),
SizeInGb: to.Ptr[int32](500),
CacheNumber: to.Ptr[int32](1),
NginxMapping: to.Ptr("lijygenjq"),
},
},
BgpConfiguration: &armconnectedcache.BgpConfiguration{
AsnToIPAddressMapping: to.Ptr("pafcimhoog"),
},
CacheNodePropertiesDetailsIssuesList: []*string{
to.Ptr("ex"),
},
ProxyURLConfiguration: &armconnectedcache.ProxyURLConfiguration{
ProxyURL: to.Ptr("hplstyg"),
},
OptionalProperty1: to.Ptr("hvpmt"),
OptionalProperty2: to.Ptr("talanelmsgxvksrzoeeontqkjzbpv"),
OptionalProperty3: to.Ptr("bxkoxq"),
OptionalProperty4: to.Ptr("pqlkcekupusoc"),
OptionalProperty5: to.Ptr("nyvvmrjigqdufzjdvazdca"),
},
StatusCode: to.Ptr("1"),
StatusText: to.Ptr("Success"),
StatusDetails: to.Ptr("djruqvptzxak"),
Error: &armconnectedcache.ErrorDetail{},
},
Tags: map[string]*string{
"key4171": to.Ptr("qtjlszkawsdujzpgohsbw"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armconnectedcache.IspCacheNodesOperationsClientCreateOrUpdateResponse{
// IspCacheNodeResource: &armconnectedcache.IspCacheNodeResource{
// Location: to.Ptr("westus"),
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DOTest/providers/Microsoft.ConnectedCache/ispCustomers/MccRPTest1/ispCacheNodes/MCCCachenode1"),
// Name: to.Ptr("MccRPTest1"),
// Type: to.Ptr("Microsoft.ConnectedCache/ispCustomers/ispCacheNodes"),
// Properties: &armconnectedcache.CacheNodeProperty{
// ProvisioningState: to.Ptr(armconnectedcache.ProvisioningStateSucceeded),
// CacheNode: &armconnectedcache.CacheNodeEntity{
// FullyQualifiedResourceID: to.Ptr("hskxkpbiqbrbjiwdzrxndru"),
// CustomerID: to.Ptr("ceyfqoygknpmmjojlhuklqybfl"),
// CustomerName: to.Ptr("xwyqk"),
// IPAddress: to.Ptr("voctagljcwqgcpnionqdcbjk"),
// CustomerIndex: to.Ptr("qtoiglqaswivmkjhzogburcxtszmek"),
// CacheNodeID: to.Ptr("xjzffjftwcgsehanoxsl"),
// CacheNodeName: to.Ptr("mfjxb"),
// CustomerAsn: to.Ptr[int32](4),
// IsEnabled: to.Ptr(true),
// MaxAllowableEgressInMbps: to.Ptr[int32](29),
// MaxAllowableProbability: to.Ptr[float32](16),
// XCid: to.Ptr("kwnwgdbeflazz"),
// IsEnterpriseManaged: to.Ptr(true),
// DeleteAsyncOperationID: to.Ptr("oeyevqzlpbsimi"),
// ClientTenantID: to.Ptr("ds"),
// Category: to.Ptr("rixlfzbl"),
// ReleaseVersion: to.Ptr[int32](30),
// LastSyncWithAzureTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// SynchWithAzureAttemptsCount: to.Ptr[int32](11),
// ContainerConfigurations: to.Ptr("waygqqgfzvnvlbufilldsqavwlshzt"),
// CidrCSV: []*string{
// to.Ptr("nlqlvrthafvvljuupcbcw"),
// },
// CidrCSVLastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// BgpCidrCSVLastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// BgpLastReportedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// BgpReviewStateText: to.Ptr("xduneialocyri"),
// BgpReviewState: to.Ptr(armconnectedcache.BgpReviewStateEnumNotConfigured),
// BgpReviewFeedback: to.Ptr("us"),
// BgpNumberOfTimesUpdated: to.Ptr[int32](2),
// BgpNumberOfRecords: to.Ptr[int32](21),
// BgpCidrBlocksCount: to.Ptr[int32](5),
// BgpAddressSpace: to.Ptr[int32](6),
// ShouldMigrate: to.Ptr(true),
// BgpFileBytesTruncated: to.Ptr[int32](13),
// CidrSelectionType: to.Ptr[int32](4),
// IsFrozen: to.Ptr(true),
// ReviewState: to.Ptr[int32](19),
// ReviewStateText: to.Ptr("mrnragzmnscovixohmif"),
// ReviewFeedback: to.Ptr("wrcfimvx"),
// ConfigurationState: to.Ptr(armconnectedcache.ConfigurationStateConfigured),
// ConfigurationStateText: to.Ptr("arugukqjcxmkbgfambg"),
// AddressSpace: to.Ptr[int32](11),
// WorkerConnections: to.Ptr[int32](18),
// WorkerConnectionsLastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// ContainerResyncTrigger: to.Ptr[int32](13),
// ImageURI: to.Ptr("ezbwyfaainatxtlplyoailzxlhxy"),
// },
// AdditionalCacheNodeProperties: &armconnectedcache.AdditionalCacheNodeProperties{
// DriveConfiguration: []*armconnectedcache.CacheNodeDriveConfiguration{
// {
// PhysicalPath: to.Ptr("/mcc"),
// SizeInGb: to.Ptr[int32](500),
// CacheNumber: to.Ptr[int32](1),
// NginxMapping: to.Ptr("lijygenjq"),
// },
// },
// BgpConfiguration: &armconnectedcache.BgpConfiguration{
// AsnToIPAddressMapping: to.Ptr("pafcimhoog"),
// },
// CacheNodePropertiesDetailsIssuesList: []*string{
// to.Ptr("ex"),
// },
// AggregatedStatusDetails: to.Ptr("emougql"),
// AggregatedStatusText: to.Ptr("xcasvndgkob"),
// AggregatedStatusCode: to.Ptr[int32](22),
// ProductVersion: to.Ptr("oxhqgwlhgnuf"),
// IsProvisioned: to.Ptr(true),
// CacheNodeStateDetailedText: to.Ptr("ufvomikgfnmnj"),
// CacheNodeStateShortText: to.Ptr("orfpuvrevhrxsaasddazigglq"),
// CacheNodeState: to.Ptr[int32](9),
// ProxyURLConfiguration: &armconnectedcache.ProxyURLConfiguration{
// ProxyURL: to.Ptr("hplstyg"),
// },
// OptionalProperty1: to.Ptr("hvpmt"),
// OptionalProperty2: to.Ptr("talanelmsgxvksrzoeeontqkjzbpv"),
// OptionalProperty3: to.Ptr("bxkoxq"),
// OptionalProperty4: to.Ptr("pqlkcekupusoc"),
// OptionalProperty5: to.Ptr("nyvvmrjigqdufzjdvazdca"),
// },
// StatusCode: to.Ptr("1"),
// StatusText: to.Ptr("Success"),
// StatusDetails: to.Ptr("djruqvptzxak"),
// Status: to.Ptr("tnyrntqvazk"),
// },
// Tags: map[string]*string{
// "key4171": to.Ptr("qtjlszkawsdujzpgohsbw"),
// },
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// }
}
Output:
func (*IspCacheNodesOperationsClient) BeginDelete ¶
func (client *IspCacheNodesOperationsClient) BeginDelete(ctx context.Context, resourceGroupName string, customerResourceName string, cacheNodeResourceName string, options *IspCacheNodesOperationsClientBeginDeleteOptions) (*runtime.Poller[IspCacheNodesOperationsClientDeleteResponse], error)
BeginDelete - This api deletes an existing ispCacheNode resource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- cacheNodeResourceName - Name of the ConnectedCache resource
- options - IspCacheNodesOperationsClientBeginDeleteOptions contains the optional parameters for the IspCacheNodesOperationsClient.BeginDelete method.
Example ¶
Generated from example definition: 2024-11-30-preview/IspCacheNodesOperations_Delete_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewIspCacheNodesOperationsClient().BeginDelete(ctx, "rgConnectedCache", "lvpcosvbfxtpzscakewx", "wsiruvexelltpbouqxvsogqpxdizcwqwfowybncvjunlakjwcpgmqbdbgzjrsmxlkczxnsxfonhnqqa", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
Output:
func (*IspCacheNodesOperationsClient) Get ¶
func (client *IspCacheNodesOperationsClient) Get(ctx context.Context, resourceGroupName string, customerResourceName string, cacheNodeResourceName string, options *IspCacheNodesOperationsClientGetOptions) (IspCacheNodesOperationsClientGetResponse, error)
Get - This api gets ispCacheNode resource information If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- cacheNodeResourceName - Name of the ConnectedCache resource
- options - IspCacheNodesOperationsClientGetOptions contains the optional parameters for the IspCacheNodesOperationsClient.Get method.
Example ¶
Generated from example definition: 2024-11-30-preview/IspCacheNodesOperations_Get_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewIspCacheNodesOperationsClient().Get(ctx, "rgConnectedCache", "sgtqjsitdrskmgyrrkntszwrrjjkretscpjgaezraucvcwececlelcsorfunrnvxyxcsrg", "lbsziwmudcjnwnwy", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armconnectedcache.IspCacheNodesOperationsClientGetResponse{
// IspCacheNodeResource: &armconnectedcache.IspCacheNodeResource{
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/ispCustomers/MccRPTest1/ispCacheNodes/MCCCachenode1"),
// Name: to.Ptr("MccRPTest1"),
// Type: to.Ptr("Microsoft.ConnectedCache/ispCustomers/ispCacheNodes"),
// Location: to.Ptr("westus"),
// Properties: &armconnectedcache.CacheNodeProperty{
// ProvisioningState: to.Ptr(armconnectedcache.ProvisioningStateSucceeded),
// CacheNode: &armconnectedcache.CacheNodeEntity{
// FullyQualifiedResourceID: to.Ptr("hskxkpbiqbrbjiwdzrxndru"),
// CustomerID: to.Ptr("ceyfqoygknpmmjojlhuklqybfl"),
// CustomerName: to.Ptr("xwyqk"),
// IPAddress: to.Ptr("voctagljcwqgcpnionqdcbjk"),
// CustomerIndex: to.Ptr("qtoiglqaswivmkjhzogburcxtszmek"),
// CacheNodeID: to.Ptr("xjzffjftwcgsehanoxsl"),
// CacheNodeName: to.Ptr("mfjxb"),
// CustomerAsn: to.Ptr[int32](4),
// IsEnabled: to.Ptr(true),
// MaxAllowableEgressInMbps: to.Ptr[int32](29),
// MaxAllowableProbability: to.Ptr[float32](16),
// XCid: to.Ptr("kwnwgdbeflazz"),
// IsEnterpriseManaged: to.Ptr(true),
// DeleteAsyncOperationID: to.Ptr("oeyevqzlpbsimi"),
// ClientTenantID: to.Ptr("ds"),
// Category: to.Ptr("rixlfzbl"),
// ReleaseVersion: to.Ptr[int32](30),
// LastSyncWithAzureTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// SynchWithAzureAttemptsCount: to.Ptr[int32](11),
// ContainerConfigurations: to.Ptr("waygqqgfzvnvlbufilldsqavwlshzt"),
// CidrCSV: []*string{
// to.Ptr("nlqlvrthafvvljuupcbcw"),
// },
// CidrCSVLastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// BgpCidrCSVLastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// BgpLastReportedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// BgpReviewStateText: to.Ptr("xduneialocyri"),
// BgpReviewState: to.Ptr(armconnectedcache.BgpReviewStateEnumNotConfigured),
// BgpReviewFeedback: to.Ptr("us"),
// BgpNumberOfTimesUpdated: to.Ptr[int32](2),
// BgpNumberOfRecords: to.Ptr[int32](21),
// BgpCidrBlocksCount: to.Ptr[int32](5),
// BgpAddressSpace: to.Ptr[int32](6),
// ShouldMigrate: to.Ptr(true),
// BgpFileBytesTruncated: to.Ptr[int32](13),
// CidrSelectionType: to.Ptr[int32](4),
// IsFrozen: to.Ptr(true),
// ReviewState: to.Ptr[int32](19),
// ReviewStateText: to.Ptr("mrnragzmnscovixohmif"),
// ReviewFeedback: to.Ptr("wrcfimvx"),
// ConfigurationState: to.Ptr(armconnectedcache.ConfigurationStateConfigured),
// ConfigurationStateText: to.Ptr("arugukqjcxmkbgfambg"),
// AddressSpace: to.Ptr[int32](11),
// WorkerConnections: to.Ptr[int32](18),
// WorkerConnectionsLastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// ContainerResyncTrigger: to.Ptr[int32](13),
// ImageURI: to.Ptr("ezbwyfaainatxtlplyoailzxlhxy"),
// },
// AdditionalCacheNodeProperties: &armconnectedcache.AdditionalCacheNodeProperties{
// DriveConfiguration: []*armconnectedcache.CacheNodeDriveConfiguration{
// {
// PhysicalPath: to.Ptr("/mcc"),
// SizeInGb: to.Ptr[int32](500),
// CacheNumber: to.Ptr[int32](1),
// NginxMapping: to.Ptr("lijygenjq"),
// },
// },
// BgpConfiguration: &armconnectedcache.BgpConfiguration{
// AsnToIPAddressMapping: to.Ptr("pafcimhoog"),
// },
// CacheNodePropertiesDetailsIssuesList: []*string{
// to.Ptr("ex"),
// },
// AggregatedStatusDetails: to.Ptr("emougql"),
// AggregatedStatusText: to.Ptr("xcasvndgkob"),
// AggregatedStatusCode: to.Ptr[int32](22),
// ProductVersion: to.Ptr("oxhqgwlhgnuf"),
// IsProvisioned: to.Ptr(true),
// CacheNodeStateDetailedText: to.Ptr("ufvomikgfnmnj"),
// CacheNodeStateShortText: to.Ptr("orfpuvrevhrxsaasddazigglq"),
// CacheNodeState: to.Ptr[int32](9),
// ProxyURLConfiguration: &armconnectedcache.ProxyURLConfiguration{
// ProxyURL: to.Ptr("hplstyg"),
// },
// OptionalProperty1: to.Ptr("hvpmt"),
// OptionalProperty2: to.Ptr("talanelmsgxvksrzoeeontqkjzbpv"),
// OptionalProperty3: to.Ptr("bxkoxq"),
// OptionalProperty4: to.Ptr("pqlkcekupusoc"),
// OptionalProperty5: to.Ptr("nyvvmrjigqdufzjdvazdca"),
// },
// StatusCode: to.Ptr("1"),
// StatusText: to.Ptr("Success"),
// StatusDetails: to.Ptr("djruqvptzxak"),
// Status: to.Ptr("tnyrntqvazk"),
// Error: &armconnectedcache.ErrorDetail{
// Code: to.Ptr("dkvgvtftpsjsbhlnapvihefxneoggs"),
// Message: to.Ptr("okakgyfnmyob"),
// Details: []*armconnectedcache.ErrorDetail{
// },
// },
// },
// Tags: map[string]*string{
// "key4171": to.Ptr("qtjlszkawsdujzpgohsbw"),
// },
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// }
}
Output:
func (*IspCacheNodesOperationsClient) GetBgpCidrs ¶
func (client *IspCacheNodesOperationsClient) GetBgpCidrs(ctx context.Context, resourceGroupName string, customerResourceName string, cacheNodeResourceName string, options *IspCacheNodesOperationsClientGetBgpCidrsOptions) (IspCacheNodesOperationsClientGetBgpCidrsResponse, error)
GetBgpCidrs - This api gets ispCacheNode resource information If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- cacheNodeResourceName - Name of the ConnectedCache resource
- options - IspCacheNodesOperationsClientGetBgpCidrsOptions contains the optional parameters for the IspCacheNodesOperationsClient.GetBgpCidrs method.
Example ¶
Generated from example definition: 2024-11-30-preview/IspCacheNodesOperations_GetBgpCidrs_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewIspCacheNodesOperationsClient().GetBgpCidrs(ctx, "rgConnectedCache", "MccRPTest1", "MCCCachenode1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armconnectedcache.IspCacheNodesOperationsClientGetBgpCidrsResponse{
// MccCacheNodeBgpCidrDetails: &armconnectedcache.MccCacheNodeBgpCidrDetails{
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/ispCustomers/MccRPTest1/ispCacheNodes/MCCCachenode1"),
// Type: to.Ptr("Microsoft.ConnectedCache/ispCustomers/ispCacheNodes"),
// Location: to.Ptr("westus"),
// Properties: &armconnectedcache.BgpCidrsConfiguration{
// BgpCidrs: []*string{
// to.Ptr("10.1.0.1/23"),
// to.Ptr("10.1.0.1/32"),
// },
// },
// Tags: map[string]*string{
// "key5911": to.Ptr("qllqoxckxvnyhdegqubvqtfediery"),
// },
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// }
}
Output:
func (*IspCacheNodesOperationsClient) GetCacheNodeAutoUpdateHistory ¶ added in v0.2.0
func (client *IspCacheNodesOperationsClient) GetCacheNodeAutoUpdateHistory(ctx context.Context, resourceGroupName string, customerResourceName string, cacheNodeResourceName string, options *IspCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryOptions) (IspCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryResponse, error)
GetCacheNodeAutoUpdateHistory - This api gets ispCacheNode resource auto update histrory information If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- cacheNodeResourceName - Name of the ConnectedCache resource
- options - IspCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryOptions contains the optional parameters for the IspCacheNodesOperationsClient.GetCacheNodeAutoUpdateHistory method.
Example ¶
Generated from example definition: 2024-11-30-preview/IspCacheNodesOperations_GetCacheNodeAutoUpdateHistory_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewIspCacheNodesOperationsClient().GetCacheNodeAutoUpdateHistory(ctx, "rgConnectedCache", "MccRPTest1", "MCCCachenode1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armconnectedcache.IspCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryResponse{
// MccCacheNodeAutoUpdateHistory: &armconnectedcache.MccCacheNodeAutoUpdateHistory{
// Properties: &armconnectedcache.MccCacheNodeAutoUpdateHistoryProperties{
// CustomerID: to.Ptr("fqyulypmqacwoifqnddnkcexbgm"),
// CacheNodeID: to.Ptr("elwtomk"),
// AutoUpdateHistory: []*armconnectedcache.MccCacheNodeAutoUpdateInfo{
// {
// ImageURIBeforeUpdate: to.Ptr("ne"),
// ImageURITargeted: to.Ptr("zqgjxlqoucwyjf"),
// ImageURITerminal: to.Ptr("akng"),
// AutoUpdateRingType: to.Ptr[int32](16),
// MovedToTerminalStateDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-08T07:01:45.657Z"); return t}()),
// RuleRequestedWeek: to.Ptr[int32](1),
// RuleRequestedDay: to.Ptr[int32](9),
// CreatedDateTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-08T07:01:45.657Z"); return t}()),
// UpdatedRegistryDateTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-08T07:01:45.657Z"); return t}()),
// PlanChangeLogText: to.Ptr("uhfsokrwx"),
// AutoUpdateLastAppliedStatus: to.Ptr[int32](24),
// AutoUpdateLastAppliedStatusText: to.Ptr("cwoy"),
// AutoUpdateLastAppliedStatusDetailedText: to.Ptr("oicfonhqlnrc"),
// PlanID: to.Ptr[int64](17),
// TimeToGoLiveDateTime: to.Ptr("wqhjexgtkqzu"),
// RuleRequestedMinute: to.Ptr("ewoqhdmofybbpf"),
// RuleRequestedHour: to.Ptr("degiarxknlfqfgwz"),
// },
// },
// },
// Tags: map[string]*string{
// "key5753": to.Ptr("ubrjiectme"),
// },
// Location: to.Ptr("westus"),
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/ispCustomers/MccRPTest1/ispCacheNodes/MCCCachenode1"),
// Name: to.Ptr("cgy"),
// Type: to.Ptr("kqbnkmxgllkdxfnsogmmdogjtotj"),
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// }
}
Output:
func (*IspCacheNodesOperationsClient) GetCacheNodeInstallDetails ¶
func (client *IspCacheNodesOperationsClient) GetCacheNodeInstallDetails(ctx context.Context, resourceGroupName string, customerResourceName string, cacheNodeResourceName string, options *IspCacheNodesOperationsClientGetCacheNodeInstallDetailsOptions) (IspCacheNodesOperationsClientGetCacheNodeInstallDetailsResponse, error)
GetCacheNodeInstallDetails - This api gets secrets of the ispCacheNode resource install details If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- cacheNodeResourceName - Name of the ConnectedCache resource
- options - IspCacheNodesOperationsClientGetCacheNodeInstallDetailsOptions contains the optional parameters for the IspCacheNodesOperationsClient.GetCacheNodeInstallDetails method.
Example ¶
Generated from example definition: 2024-11-30-preview/IspCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewIspCacheNodesOperationsClient().GetCacheNodeInstallDetails(ctx, "rgConnectedCache", "MccRPTest1", "MCCCachenode1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armconnectedcache.IspCacheNodesOperationsClientGetCacheNodeInstallDetailsResponse{
// MccCacheNodeInstallDetails: &armconnectedcache.MccCacheNodeInstallDetails{
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/ispCustomers/MccRPTest1/ispCacheNodes/MCCCachenode1"),
// Type: to.Ptr("Microsoft.ConnectedCache/ispCustomers/ispCacheNodes"),
// Location: to.Ptr("westus"),
// Properties: &armconnectedcache.CacheNodeInstallProperties{
// CustomerID: to.Ptr("eqklliuswn"),
// CacheNodeID: to.Ptr("zirahqqohbaju"),
// PrimaryAccountKey: to.Ptr("mzfvziehrsbxidhj"),
// SecondaryAccountKey: to.Ptr("dq"),
// RegistrationKey: to.Ptr("tnwkmorctwsgajewcoutombm"),
// },
// Tags: map[string]*string{
// "key5811": to.Ptr("betoafcoprgfcuscoew"),
// },
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// }
}
Output:
func (*IspCacheNodesOperationsClient) GetCacheNodeMccIssueDetailsHistory ¶ added in v0.2.0
func (client *IspCacheNodesOperationsClient) GetCacheNodeMccIssueDetailsHistory(ctx context.Context, resourceGroupName string, customerResourceName string, cacheNodeResourceName string, options *IspCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryOptions) (IspCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryResponse, error)
GetCacheNodeMccIssueDetailsHistory - This api gets ispCacheNode resource issues details histrory information If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- cacheNodeResourceName - Name of the ConnectedCache resource
- options - IspCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryOptions contains the optional parameters for the IspCacheNodesOperationsClient.GetCacheNodeMccIssueDetailsHistory method.
Example ¶
Generated from example definition: 2024-11-30-preview/IspCacheNodesOperations_GetCacheNodeMccIssueDetailsHistory_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewIspCacheNodesOperationsClient().GetCacheNodeMccIssueDetailsHistory(ctx, "rgConnectedCache", "MccRPTest1", "MCCCachenode1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armconnectedcache.IspCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryResponse{
// MccCacheNodeIssueHistory: &armconnectedcache.MccCacheNodeIssueHistory{
// Properties: &armconnectedcache.MccCacheNodeIssueHistoryProperties{
// CustomerID: to.Ptr("xqsblxpzcdxwwlzejepoyqrhbrpqgz"),
// CacheNodeID: to.Ptr("enw"),
// MccIssueHistory: []*armconnectedcache.MccIssue{
// {
// MccIssueType: to.Ptr("uznqingg"),
// ToastString: to.Ptr("tkaajhrpptywiwfjnh"),
// DetailString: to.Ptr("rziwfs"),
// HelpLink: to.Ptr("fd"),
// IssueStartDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-08T07:01:40.167Z"); return t}()),
// IssueEndDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-08T07:01:40.167Z"); return t}()),
// },
// },
// },
// Tags: map[string]*string{
// "key587": to.Ptr("tcgetdmzjjwtbvghsskfzzrmnrexgx"),
// },
// Location: to.Ptr("msgrhbbqoannzbfuplaxnl"),
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/ispCustomers/MccRPTest1/ispCacheNodes/MCCCachenode1"),
// Name: to.Ptr("fizavvfblaoosm"),
// Type: to.Ptr("bkkjnjpkvvlnrcfurjsfdspsnoozu"),
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// }
}
Output:
func (*IspCacheNodesOperationsClient) NewListByIspCustomerResourcePager ¶
func (client *IspCacheNodesOperationsClient) NewListByIspCustomerResourcePager(resourceGroupName string, customerResourceName string, options *IspCacheNodesOperationsClientListByIspCustomerResourceOptions) *runtime.Pager[IspCacheNodesOperationsClientListByIspCustomerResourceResponse]
NewListByIspCustomerResourcePager - This api retrieves information about all ispCacheNode resources under the given subscription and resource group
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- options - IspCacheNodesOperationsClientListByIspCustomerResourceOptions contains the optional parameters for the IspCacheNodesOperationsClient.NewListByIspCustomerResourcePager method.
Example ¶
Generated from example definition: 2024-11-30-preview/IspCacheNodesOperations_ListByIspCustomerResource_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewIspCacheNodesOperationsClient().NewListByIspCustomerResourcePager("rgConnectedCache", "MccRPTest1", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armconnectedcache.IspCacheNodesOperationsClientListByIspCustomerResourceResponse{
// IspCacheNodeResourceListResult: armconnectedcache.IspCacheNodeResourceListResult{
// Value: []*armconnectedcache.IspCacheNodeResource{
// {
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/ispCustomers/MccRPTest1/ispCacheNodes/MCCCachenode1"),
// Name: to.Ptr("MccRPTest1"),
// Type: to.Ptr("Microsoft.ConnectedCache/ispCustomers/ispCacheNodes"),
// Location: to.Ptr("westus"),
// Properties: &armconnectedcache.CacheNodeProperty{
// ProvisioningState: to.Ptr(armconnectedcache.ProvisioningStateSucceeded),
// CacheNode: &armconnectedcache.CacheNodeEntity{
// FullyQualifiedResourceID: to.Ptr("hskxkpbiqbrbjiwdzrxndru"),
// CustomerID: to.Ptr("ceyfqoygknpmmjojlhuklqybfl"),
// CustomerName: to.Ptr("xwyqk"),
// IPAddress: to.Ptr("voctagljcwqgcpnionqdcbjk"),
// CustomerIndex: to.Ptr("qtoiglqaswivmkjhzogburcxtszmek"),
// CacheNodeID: to.Ptr("xjzffjftwcgsehanoxsl"),
// CacheNodeName: to.Ptr("mfjxb"),
// CustomerAsn: to.Ptr[int32](4),
// IsEnabled: to.Ptr(true),
// MaxAllowableEgressInMbps: to.Ptr[int32](29),
// MaxAllowableProbability: to.Ptr[float32](16),
// XCid: to.Ptr("kwnwgdbeflazz"),
// IsEnterpriseManaged: to.Ptr(true),
// DeleteAsyncOperationID: to.Ptr("oeyevqzlpbsimi"),
// ClientTenantID: to.Ptr("ds"),
// Category: to.Ptr("rixlfzbl"),
// ReleaseVersion: to.Ptr[int32](30),
// LastSyncWithAzureTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// SynchWithAzureAttemptsCount: to.Ptr[int32](11),
// ContainerConfigurations: to.Ptr("waygqqgfzvnvlbufilldsqavwlshzt"),
// CidrCSV: []*string{
// to.Ptr("nlqlvrthafvvljuupcbcw"),
// },
// CidrCSVLastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// BgpCidrCSVLastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// BgpLastReportedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// BgpReviewStateText: to.Ptr("xduneialocyri"),
// BgpReviewState: to.Ptr(armconnectedcache.BgpReviewStateEnumNotConfigured),
// BgpReviewFeedback: to.Ptr("us"),
// BgpNumberOfTimesUpdated: to.Ptr[int32](2),
// BgpNumberOfRecords: to.Ptr[int32](21),
// BgpCidrBlocksCount: to.Ptr[int32](5),
// BgpAddressSpace: to.Ptr[int32](6),
// ShouldMigrate: to.Ptr(true),
// BgpFileBytesTruncated: to.Ptr[int32](13),
// CidrSelectionType: to.Ptr[int32](4),
// IsFrozen: to.Ptr(true),
// ReviewState: to.Ptr[int32](19),
// ReviewStateText: to.Ptr("mrnragzmnscovixohmif"),
// ReviewFeedback: to.Ptr("wrcfimvx"),
// ConfigurationState: to.Ptr(armconnectedcache.ConfigurationStateConfigured),
// ConfigurationStateText: to.Ptr("arugukqjcxmkbgfambg"),
// AddressSpace: to.Ptr[int32](11),
// WorkerConnections: to.Ptr[int32](18),
// WorkerConnectionsLastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// ContainerResyncTrigger: to.Ptr[int32](13),
// ImageURI: to.Ptr("ezbwyfaainatxtlplyoailzxlhxy"),
// },
// AdditionalCacheNodeProperties: &armconnectedcache.AdditionalCacheNodeProperties{
// DriveConfiguration: []*armconnectedcache.CacheNodeDriveConfiguration{
// {
// PhysicalPath: to.Ptr("/mcc"),
// SizeInGb: to.Ptr[int32](500),
// CacheNumber: to.Ptr[int32](1),
// NginxMapping: to.Ptr("lijygenjq"),
// },
// },
// BgpConfiguration: &armconnectedcache.BgpConfiguration{
// AsnToIPAddressMapping: to.Ptr("pafcimhoog"),
// },
// CacheNodePropertiesDetailsIssuesList: []*string{
// to.Ptr("ex"),
// },
// AggregatedStatusDetails: to.Ptr("emougql"),
// AggregatedStatusText: to.Ptr("xcasvndgkob"),
// AggregatedStatusCode: to.Ptr[int32](22),
// ProductVersion: to.Ptr("oxhqgwlhgnuf"),
// IsProvisioned: to.Ptr(true),
// CacheNodeStateDetailedText: to.Ptr("ufvomikgfnmnj"),
// CacheNodeStateShortText: to.Ptr("orfpuvrevhrxsaasddazigglq"),
// CacheNodeState: to.Ptr[int32](9),
// ProxyURLConfiguration: &armconnectedcache.ProxyURLConfiguration{
// ProxyURL: to.Ptr("hplstyg"),
// },
// OptionalProperty1: to.Ptr("hvpmt"),
// OptionalProperty2: to.Ptr("talanelmsgxvksrzoeeontqkjzbpv"),
// OptionalProperty3: to.Ptr("bxkoxq"),
// OptionalProperty4: to.Ptr("pqlkcekupusoc"),
// OptionalProperty5: to.Ptr("nyvvmrjigqdufzjdvazdca"),
// },
// StatusCode: to.Ptr("1"),
// StatusText: to.Ptr("Success"),
// StatusDetails: to.Ptr("djruqvptzxak"),
// Status: to.Ptr("tnyrntqvazk"),
// Error: &armconnectedcache.ErrorDetail{
// Code: to.Ptr("dkvgvtftpsjsbhlnapvihefxneoggs"),
// Message: to.Ptr("okakgyfnmyob"),
// Details: []*armconnectedcache.ErrorDetail{
// },
// },
// },
// Tags: map[string]*string{
// "key4171": to.Ptr("qtjlszkawsdujzpgohsbw"),
// },
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// },
// NextLink: to.Ptr("https://microsoft.com/a"),
// },
// }
}
}
Output:
func (*IspCacheNodesOperationsClient) Update ¶
func (client *IspCacheNodesOperationsClient) Update(ctx context.Context, resourceGroupName string, customerResourceName string, cacheNodeResourceName string, properties PatchResource, options *IspCacheNodesOperationsClientUpdateOptions) (IspCacheNodesOperationsClientUpdateResponse, error)
Update - This api updates an existing ispCacheNode resource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- cacheNodeResourceName - Name of the ConnectedCache resource
- properties - The resource properties to be updated.
- options - IspCacheNodesOperationsClientUpdateOptions contains the optional parameters for the IspCacheNodesOperationsClient.Update method.
Example ¶
Generated from example definition: 2024-11-30-preview/IspCacheNodesOperations_Update_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewIspCacheNodesOperationsClient().Update(ctx, "rgConnectedCache", "MccRPTest1", "MCCCachenode1", armconnectedcache.PatchResource{
Tags: map[string]*string{
"key1653": to.Ptr("nzjczrhclhkndesgy"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armconnectedcache.IspCacheNodesOperationsClientUpdateResponse{
// IspCacheNodeResource: &armconnectedcache.IspCacheNodeResource{
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/ispCustomers/MccRPTest1/ispCacheNodes/MCCCachenode1"),
// Name: to.Ptr("MccRPTest1"),
// Type: to.Ptr("Microsoft.ConnectedCache/ispCustomers/ispCacheNodes"),
// Location: to.Ptr("westus"),
// Properties: &armconnectedcache.CacheNodeProperty{
// ProvisioningState: to.Ptr(armconnectedcache.ProvisioningStateSucceeded),
// CacheNode: &armconnectedcache.CacheNodeEntity{
// FullyQualifiedResourceID: to.Ptr("hskxkpbiqbrbjiwdzrxndru"),
// CustomerID: to.Ptr("ceyfqoygknpmmjojlhuklqybfl"),
// CustomerName: to.Ptr("xwyqk"),
// IPAddress: to.Ptr("voctagljcwqgcpnionqdcbjk"),
// CustomerIndex: to.Ptr("qtoiglqaswivmkjhzogburcxtszmek"),
// CacheNodeID: to.Ptr("xjzffjftwcgsehanoxsl"),
// CacheNodeName: to.Ptr("mfjxb"),
// CustomerAsn: to.Ptr[int32](4),
// IsEnabled: to.Ptr(true),
// MaxAllowableEgressInMbps: to.Ptr[int32](29),
// MaxAllowableProbability: to.Ptr[float32](16),
// XCid: to.Ptr("kwnwgdbeflazz"),
// IsEnterpriseManaged: to.Ptr(true),
// DeleteAsyncOperationID: to.Ptr("oeyevqzlpbsimi"),
// ClientTenantID: to.Ptr("ds"),
// Category: to.Ptr("rixlfzbl"),
// ReleaseVersion: to.Ptr[int32](30),
// LastSyncWithAzureTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// SynchWithAzureAttemptsCount: to.Ptr[int32](11),
// ContainerConfigurations: to.Ptr("waygqqgfzvnvlbufilldsqavwlshzt"),
// CidrCSV: []*string{
// to.Ptr("127.0.0.1/20"),
// },
// CidrCSVLastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// BgpCidrCSVLastUpdateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// BgpLastReportedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// BgpReviewStateText: to.Ptr("xduneialocyri"),
// BgpReviewState: to.Ptr(armconnectedcache.BgpReviewStateEnumNotConfigured),
// BgpReviewFeedback: to.Ptr("us"),
// BgpNumberOfTimesUpdated: to.Ptr[int32](2),
// BgpNumberOfRecords: to.Ptr[int32](21),
// BgpCidrBlocksCount: to.Ptr[int32](5),
// BgpAddressSpace: to.Ptr[int32](6),
// ShouldMigrate: to.Ptr(true),
// BgpFileBytesTruncated: to.Ptr[int32](13),
// CidrSelectionType: to.Ptr[int32](4),
// IsFrozen: to.Ptr(true),
// ReviewState: to.Ptr[int32](19),
// ReviewStateText: to.Ptr("mrnragzmnscovixohmif"),
// ReviewFeedback: to.Ptr("wrcfimvx"),
// ConfigurationState: to.Ptr(armconnectedcache.ConfigurationStateConfigured),
// ConfigurationStateText: to.Ptr("arugukqjcxmkbgfambg"),
// AddressSpace: to.Ptr[int32](11),
// WorkerConnections: to.Ptr[int32](18),
// WorkerConnectionsLastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// ContainerResyncTrigger: to.Ptr[int32](13),
// ImageURI: to.Ptr("ezbwyfaainatxtlplyoailzxlhxy"),
// },
// AdditionalCacheNodeProperties: &armconnectedcache.AdditionalCacheNodeProperties{
// DriveConfiguration: []*armconnectedcache.CacheNodeDriveConfiguration{
// {
// PhysicalPath: to.Ptr("/mcc"),
// SizeInGb: to.Ptr[int32](500),
// CacheNumber: to.Ptr[int32](1),
// NginxMapping: to.Ptr("lijygenjq"),
// },
// },
// BgpConfiguration: &armconnectedcache.BgpConfiguration{
// AsnToIPAddressMapping: to.Ptr("pafcimhoog"),
// },
// CacheNodePropertiesDetailsIssuesList: []*string{
// to.Ptr("ex"),
// },
// AggregatedStatusDetails: to.Ptr("emougql"),
// AggregatedStatusText: to.Ptr("xcasvndgkob"),
// AggregatedStatusCode: to.Ptr[int32](22),
// ProductVersion: to.Ptr("oxhqgwlhgnuf"),
// IsProvisioned: to.Ptr(true),
// CacheNodeStateDetailedText: to.Ptr("ufvomikgfnmnj"),
// CacheNodeStateShortText: to.Ptr("orfpuvrevhrxsaasddazigglq"),
// CacheNodeState: to.Ptr[int32](9),
// ProxyURLConfiguration: &armconnectedcache.ProxyURLConfiguration{
// ProxyURL: to.Ptr("hplstyg"),
// },
// OptionalProperty1: to.Ptr("hvpmt"),
// OptionalProperty2: to.Ptr("talanelmsgxvksrzoeeontqkjzbpv"),
// OptionalProperty3: to.Ptr("bxkoxq"),
// OptionalProperty4: to.Ptr("pqlkcekupusoc"),
// OptionalProperty5: to.Ptr("nyvvmrjigqdufzjdvazdca"),
// },
// StatusCode: to.Ptr("1"),
// StatusText: to.Ptr("Success"),
// StatusDetails: to.Ptr("djruqvptzxak"),
// Status: to.Ptr("tnyrntqvazk"),
// Error: &armconnectedcache.ErrorDetail{
// Code: to.Ptr("dkvgvtftpsjsbhlnapvihefxneoggs"),
// Message: to.Ptr("okakgyfnmyob"),
// Details: []*armconnectedcache.ErrorDetail{
// },
// },
// },
// Tags: map[string]*string{
// "key4171": to.Ptr("qtjlszkawsdujzpgohsbw"),
// },
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// }
}
Output:
type IspCacheNodesOperationsClientBeginCreateOrUpdateOptions ¶
type IspCacheNodesOperationsClientBeginCreateOrUpdateOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
IspCacheNodesOperationsClientBeginCreateOrUpdateOptions contains the optional parameters for the IspCacheNodesOperationsClient.BeginCreateOrUpdate method.
type IspCacheNodesOperationsClientBeginDeleteOptions ¶
type IspCacheNodesOperationsClientBeginDeleteOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
IspCacheNodesOperationsClientBeginDeleteOptions contains the optional parameters for the IspCacheNodesOperationsClient.BeginDelete method.
type IspCacheNodesOperationsClientCreateOrUpdateResponse ¶
type IspCacheNodesOperationsClientCreateOrUpdateResponse struct {
// Represents the high level Nodes needed to provision cache node resources
IspCacheNodeResource
}
IspCacheNodesOperationsClientCreateOrUpdateResponse contains the response from method IspCacheNodesOperationsClient.BeginCreateOrUpdate.
type IspCacheNodesOperationsClientDeleteResponse ¶
type IspCacheNodesOperationsClientDeleteResponse struct {
}
IspCacheNodesOperationsClientDeleteResponse contains the response from method IspCacheNodesOperationsClient.BeginDelete.
type IspCacheNodesOperationsClientGetBgpCidrsOptions ¶
type IspCacheNodesOperationsClientGetBgpCidrsOptions struct {
}
IspCacheNodesOperationsClientGetBgpCidrsOptions contains the optional parameters for the IspCacheNodesOperationsClient.GetBgpCidrs method.
type IspCacheNodesOperationsClientGetBgpCidrsResponse ¶
type IspCacheNodesOperationsClientGetBgpCidrsResponse struct {
// Represents all Cidr details of the Bgp request for a specific cache node resource
MccCacheNodeBgpCidrDetails
}
IspCacheNodesOperationsClientGetBgpCidrsResponse contains the response from method IspCacheNodesOperationsClient.GetBgpCidrs.
type IspCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryOptions ¶ added in v0.2.0
type IspCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryOptions struct {
}
IspCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryOptions contains the optional parameters for the IspCacheNodesOperationsClient.GetCacheNodeAutoUpdateHistory method.
type IspCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryResponse ¶ added in v0.2.0
type IspCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryResponse struct {
// Mcc cache node resource auto update history.
MccCacheNodeAutoUpdateHistory
}
IspCacheNodesOperationsClientGetCacheNodeAutoUpdateHistoryResponse contains the response from method IspCacheNodesOperationsClient.GetCacheNodeAutoUpdateHistory.
type IspCacheNodesOperationsClientGetCacheNodeInstallDetailsOptions ¶
type IspCacheNodesOperationsClientGetCacheNodeInstallDetailsOptions struct {
}
IspCacheNodesOperationsClientGetCacheNodeInstallDetailsOptions contains the optional parameters for the IspCacheNodesOperationsClient.GetCacheNodeInstallDetails method.
type IspCacheNodesOperationsClientGetCacheNodeInstallDetailsResponse ¶
type IspCacheNodesOperationsClientGetCacheNodeInstallDetailsResponse struct {
// Mcc cache node resource all install details.
MccCacheNodeInstallDetails
}
IspCacheNodesOperationsClientGetCacheNodeInstallDetailsResponse contains the response from method IspCacheNodesOperationsClient.GetCacheNodeInstallDetails.
type IspCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryOptions ¶ added in v0.2.0
type IspCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryOptions struct {
}
IspCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryOptions contains the optional parameters for the IspCacheNodesOperationsClient.GetCacheNodeMccIssueDetailsHistory method.
type IspCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryResponse ¶ added in v0.2.0
type IspCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryResponse struct {
// Mcc cache node resource issue history.
MccCacheNodeIssueHistory
}
IspCacheNodesOperationsClientGetCacheNodeMccIssueDetailsHistoryResponse contains the response from method IspCacheNodesOperationsClient.GetCacheNodeMccIssueDetailsHistory.
type IspCacheNodesOperationsClientGetOptions ¶
type IspCacheNodesOperationsClientGetOptions struct {
}
IspCacheNodesOperationsClientGetOptions contains the optional parameters for the IspCacheNodesOperationsClient.Get method.
type IspCacheNodesOperationsClientGetResponse ¶
type IspCacheNodesOperationsClientGetResponse struct {
// Represents the high level Nodes needed to provision cache node resources
IspCacheNodeResource
}
IspCacheNodesOperationsClientGetResponse contains the response from method IspCacheNodesOperationsClient.Get.
type IspCacheNodesOperationsClientListByIspCustomerResourceOptions ¶
type IspCacheNodesOperationsClientListByIspCustomerResourceOptions struct {
}
IspCacheNodesOperationsClientListByIspCustomerResourceOptions contains the optional parameters for the IspCacheNodesOperationsClient.NewListByIspCustomerResourcePager method.
type IspCacheNodesOperationsClientListByIspCustomerResourceResponse ¶
type IspCacheNodesOperationsClientListByIspCustomerResourceResponse struct {
// The response of a IspCacheNodeResource list operation.
IspCacheNodeResourceListResult
}
IspCacheNodesOperationsClientListByIspCustomerResourceResponse contains the response from method IspCacheNodesOperationsClient.NewListByIspCustomerResourcePager.
type IspCacheNodesOperationsClientUpdateOptions ¶
type IspCacheNodesOperationsClientUpdateOptions struct {
}
IspCacheNodesOperationsClientUpdateOptions contains the optional parameters for the IspCacheNodesOperationsClient.Update method.
type IspCacheNodesOperationsClientUpdateResponse ¶
type IspCacheNodesOperationsClientUpdateResponse struct {
// Represents the high level Nodes needed to provision cache node resources
IspCacheNodeResource
}
IspCacheNodesOperationsClientUpdateResponse contains the response from method IspCacheNodesOperationsClient.Update.
type IspCustomerResource ¶
type IspCustomerResource struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// The resource-specific properties for this resource.
Properties *CustomerProperty
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
IspCustomerResource - Represents the high level Nodes needed to provision isp customer resources
func (IspCustomerResource) MarshalJSON ¶
func (i IspCustomerResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IspCustomerResource.
func (*IspCustomerResource) UnmarshalJSON ¶
func (i *IspCustomerResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IspCustomerResource.
type IspCustomerResourceListResult ¶
type IspCustomerResourceListResult struct {
// REQUIRED; The IspCustomerResource items on this page
Value []*IspCustomerResource
// The link to the next page of items
NextLink *string
}
IspCustomerResourceListResult - The response of a IspCustomerResource list operation.
func (IspCustomerResourceListResult) MarshalJSON ¶
func (i IspCustomerResourceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IspCustomerResourceListResult.
func (*IspCustomerResourceListResult) UnmarshalJSON ¶
func (i *IspCustomerResourceListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IspCustomerResourceListResult.
type IspCustomersClient ¶
type IspCustomersClient struct {
// contains filtered or unexported fields
}
IspCustomersClient contains the methods for the IspCustomers group. Don't use this type directly, use NewIspCustomersClient() instead.
func NewIspCustomersClient ¶
func NewIspCustomersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IspCustomersClient, error)
NewIspCustomersClient creates a new instance of IspCustomersClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - Contains optional client configuration. Pass nil to accept the default values.
func (*IspCustomersClient) BeginCreateOrUpdate ¶
func (client *IspCustomersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, customerResourceName string, resource IspCustomerResource, options *IspCustomersClientBeginCreateOrUpdateOptions) (*runtime.Poller[IspCustomersClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - This api creates an ispCustomer with the specified create parameters If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- resource - Resource create parameters.
- options - IspCustomersClientBeginCreateOrUpdateOptions contains the optional parameters for the IspCustomersClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: 2024-11-30-preview/IspCustomers_CreateOrUpdate_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
"time"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewIspCustomersClient().BeginCreateOrUpdate(ctx, "rgConnectedCache", "MccRPTest2", armconnectedcache.IspCustomerResource{
Location: to.Ptr("westus"),
Properties: &armconnectedcache.CustomerProperty{
Customer: &armconnectedcache.CustomerEntity{
FullyQualifiedResourceID: to.Ptr("uqsbtgae"),
CustomerName: to.Ptr("mkpzynfqihnjfdbaqbqwyhd"),
ContactEmail: to.Ptr("xquos"),
ContactPhone: to.Ptr("vue"),
ContactName: to.Ptr("wxyqjoyoscmvimgwhpitxky"),
IsEntitled: to.Ptr(true),
ReleaseVersion: to.Ptr[int32](20),
ClientTenantID: to.Ptr("fproidkpgvpdnac"),
IsEnterpriseManaged: to.Ptr(true),
ShouldMigrate: to.Ptr(true),
ResendSignupCode: to.Ptr(true),
VerifySignupCode: to.Ptr(true),
VerifySignupPhrase: to.Ptr("tprjvttkgmrqlsyicnidhm"),
},
AdditionalCustomerProperties: &armconnectedcache.AdditionalCustomerProperties{
CustomerEmail: to.Ptr("zdjgibsidydyzm"),
CustomerTransitAsn: to.Ptr("habgklnxqzmozqpazoyejwiphezpi"),
CustomerTransitState: to.Ptr(armconnectedcache.CustomerTransitState("voblixkxfejbmhxilb")),
CustomerAsn: to.Ptr("hgrelgnrtdkleisnepfolu"),
CustomerEntitlementSKUID: to.Ptr("b"),
CustomerEntitlementSKUGUID: to.Ptr("rvzmdpxyflgqetvpwupnfaxsweiiz"),
CustomerEntitlementSKUName: to.Ptr("waaqfijr"),
CustomerEntitlementExpiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t }()),
OptionalProperty1: to.Ptr("qhmwxza"),
OptionalProperty2: to.Ptr("l"),
OptionalProperty3: to.Ptr("mblwwvbie"),
OptionalProperty4: to.Ptr("vzuek"),
OptionalProperty5: to.Ptr("fzjodscdfcdr"),
},
Error: &armconnectedcache.ErrorDetail{},
},
Tags: map[string]*string{
"key1878": to.Ptr("warz"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armconnectedcache.IspCustomersClientCreateOrUpdateResponse{
// IspCustomerResource: &armconnectedcache.IspCustomerResource{
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/ispCustomers/MccRPTest2"),
// Name: to.Ptr("MCCTPTest2"),
// Type: to.Ptr("Microsoft.ConnectedCache/ispCustomers"),
// Location: to.Ptr("westus"),
// Properties: &armconnectedcache.CustomerProperty{
// ProvisioningState: to.Ptr(armconnectedcache.ProvisioningStateSucceeded),
// Customer: &armconnectedcache.CustomerEntity{
// FullyQualifiedResourceID: to.Ptr("uqsbtgae"),
// CustomerID: to.Ptr("nqxuzybu"),
// CustomerName: to.Ptr("mkpzynfqihnjfdbaqbqwyhd"),
// ContactEmail: to.Ptr("xquos"),
// ContactPhone: to.Ptr("vue"),
// ContactName: to.Ptr("wxyqjoyoscmvimgwhpitxky"),
// IsEntitled: to.Ptr(true),
// ReleaseVersion: to.Ptr[int32](20),
// CreateAsyncOperationID: to.Ptr("zjpvgirzxecwmnfyofqkikst"),
// DeleteAsyncOperationID: to.Ptr("ajtdyoyecybeaxzyztjkvvtx"),
// ClientTenantID: to.Ptr("fproidkpgvpdnac"),
// SynchWithAzureAttemptsCount: to.Ptr[int32](17),
// LastSyncWithAzureTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// IsEnterpriseManaged: to.Ptr(true),
// ShouldMigrate: to.Ptr(true),
// ResendSignupCode: to.Ptr(true),
// VerifySignupCode: to.Ptr(true),
// },
// AdditionalCustomerProperties: &armconnectedcache.AdditionalCustomerProperties{
// CustomerPropertiesOverviewCacheEfficiency: to.Ptr[float32](20),
// CustomerPropertiesOverviewAverageEgressMbps: to.Ptr[float32](8),
// CustomerPropertiesOverviewAverageMissMbps: to.Ptr[float32](19),
// CustomerPropertiesOverviewEgressMbpsMax: to.Ptr[float32](15),
// CustomerPropertiesOverviewEgressMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewMissMbpsMax: to.Ptr[float32](28),
// CustomerPropertiesOverviewMissMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewCacheNodesHealthyCount: to.Ptr[int32](24),
// CustomerPropertiesOverviewCacheNodesUnhealthyCount: to.Ptr[int32](15),
// SignupStatus: to.Ptr(true),
// SignupStatusCode: to.Ptr[int32](21),
// SignupStatusText: to.Ptr("dccv"),
// SignupPhaseStatusCode: to.Ptr[int32](4),
// SignupPhaseStatusText: to.Ptr("q"),
// PeeringDbLastUpdateDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerOrgName: to.Ptr("nshrwjhhggmdaqlpc"),
// CustomerEmail: to.Ptr("zdjgibsidydyzm"),
// CustomerTransitAsn: to.Ptr("habgklnxqzmozqpazoyejwiphezpi"),
// CustomerTransitState: to.Ptr(armconnectedcache.CustomerTransitState("voblixkxfejbmhxilb")),
// CustomerAsn: to.Ptr("hgrelgnrtdkleisnepfolu"),
// CustomerAsnEstimatedEgressPeekGbps: to.Ptr[float32](10),
// CustomerEntitlementSKUID: to.Ptr("b"),
// CustomerEntitlementSKUGUID: to.Ptr("rvzmdpxyflgqetvpwupnfaxsweiiz"),
// CustomerEntitlementSKUName: to.Ptr("waaqfijr"),
// CustomerEntitlementExpiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// OptionalProperty1: to.Ptr("qhmwxza"),
// OptionalProperty2: to.Ptr("l"),
// OptionalProperty3: to.Ptr("mblwwvbie"),
// OptionalProperty4: to.Ptr("vzuek"),
// OptionalProperty5: to.Ptr("fzjodscdfcdr"),
// },
// StatusCode: to.Ptr("jax"),
// StatusText: to.Ptr("vsqydgruhuwuyipsplylgiqmkcv"),
// StatusDetails: to.Ptr("wmtksbahlbxrzaksogdbozfi"),
// Status: to.Ptr("rhfjbcr"),
// Error: &armconnectedcache.ErrorDetail{
// Code: to.Ptr("dkvgvtftpsjsbhlnapvihefxneoggs"),
// Message: to.Ptr("okakgyfnmyob"),
// Details: []*armconnectedcache.ErrorDetail{
// },
// },
// },
// Tags: map[string]*string{
// "key1878": to.Ptr("warz"),
// },
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// }
}
Output:
func (*IspCustomersClient) BeginDelete ¶
func (client *IspCustomersClient) BeginDelete(ctx context.Context, resourceGroupName string, customerResourceName string, options *IspCustomersClientBeginDeleteOptions) (*runtime.Poller[IspCustomersClientDeleteResponse], error)
BeginDelete - This api deletes an existing ispCustomer resource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- options - IspCustomersClientBeginDeleteOptions contains the optional parameters for the IspCustomersClient.BeginDelete method.
Example ¶
Generated from example definition: 2024-11-30-preview/IspCustomers_Delete_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewIspCustomersClient().BeginDelete(ctx, "rgConnectedCache", "hdontfoythjsaeyjhrakckgimgchxwzttbcnvntpvdsgeumxpgnjurptd", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
Output:
func (*IspCustomersClient) Get ¶
func (client *IspCustomersClient) Get(ctx context.Context, resourceGroupName string, customerResourceName string, options *IspCustomersClientGetOptions) (IspCustomersClientGetResponse, error)
Get - Gets the ispCustomer resource information using this get call If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- options - IspCustomersClientGetOptions contains the optional parameters for the IspCustomersClient.Get method.
Example ¶
Generated from example definition: 2024-11-30-preview/IspCustomers_Get_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewIspCustomersClient().Get(ctx, "rgConnectedCache", "cmcjfueweicolcjkwmsuvcj", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armconnectedcache.IspCustomersClientGetResponse{
// IspCustomerResource: &armconnectedcache.IspCustomerResource{
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/ispCustomers/MccRPTest2"),
// Name: to.Ptr("MCCTPTest2"),
// Type: to.Ptr("Microsoft.ConnectedCache/ispCustomers"),
// Location: to.Ptr("westus"),
// Properties: &armconnectedcache.CustomerProperty{
// ProvisioningState: to.Ptr(armconnectedcache.ProvisioningStateSucceeded),
// Customer: &armconnectedcache.CustomerEntity{
// FullyQualifiedResourceID: to.Ptr("uqsbtgae"),
// CustomerID: to.Ptr("nqxuzybu"),
// CustomerName: to.Ptr("mkpzynfqihnjfdbaqbqwyhd"),
// ContactEmail: to.Ptr("xquos"),
// ContactPhone: to.Ptr("vue"),
// ContactName: to.Ptr("wxyqjoyoscmvimgwhpitxky"),
// IsEntitled: to.Ptr(true),
// ReleaseVersion: to.Ptr[int32](20),
// CreateAsyncOperationID: to.Ptr("zjpvgirzxecwmnfyofqkikst"),
// DeleteAsyncOperationID: to.Ptr("ajtdyoyecybeaxzyztjkvvtx"),
// ClientTenantID: to.Ptr("fproidkpgvpdnac"),
// SynchWithAzureAttemptsCount: to.Ptr[int32](17),
// LastSyncWithAzureTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// IsEnterpriseManaged: to.Ptr(true),
// ShouldMigrate: to.Ptr(true),
// VerifySignupCode: to.Ptr(true),
// },
// AdditionalCustomerProperties: &armconnectedcache.AdditionalCustomerProperties{
// CustomerPropertiesOverviewCacheEfficiency: to.Ptr[float32](20),
// CustomerPropertiesOverviewAverageEgressMbps: to.Ptr[float32](8),
// CustomerPropertiesOverviewAverageMissMbps: to.Ptr[float32](19),
// CustomerPropertiesOverviewEgressMbpsMax: to.Ptr[float32](15),
// CustomerPropertiesOverviewEgressMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewMissMbpsMax: to.Ptr[float32](28),
// CustomerPropertiesOverviewMissMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewCacheNodesHealthyCount: to.Ptr[int32](24),
// CustomerPropertiesOverviewCacheNodesUnhealthyCount: to.Ptr[int32](15),
// SignupStatus: to.Ptr(true),
// SignupStatusCode: to.Ptr[int32](21),
// SignupStatusText: to.Ptr("dccv"),
// SignupPhaseStatusCode: to.Ptr[int32](4),
// SignupPhaseStatusText: to.Ptr("q"),
// PeeringDbLastUpdateDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerOrgName: to.Ptr("nshrwjhhggmdaqlpc"),
// CustomerEmail: to.Ptr("zdjgibsidydyzm"),
// CustomerTransitAsn: to.Ptr("habgklnxqzmozqpazoyejwiphezpi"),
// CustomerTransitState: to.Ptr(armconnectedcache.CustomerTransitState("voblixkxfejbmhxilb")),
// CustomerAsn: to.Ptr("hgrelgnrtdkleisnepfolu"),
// CustomerAsnEstimatedEgressPeekGbps: to.Ptr[float32](10),
// CustomerEntitlementSKUID: to.Ptr("b"),
// CustomerEntitlementSKUGUID: to.Ptr("rvzmdpxyflgqetvpwupnfaxsweiiz"),
// CustomerEntitlementSKUName: to.Ptr("waaqfijr"),
// CustomerEntitlementExpiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// OptionalProperty1: to.Ptr("qhmwxza"),
// OptionalProperty2: to.Ptr("l"),
// OptionalProperty3: to.Ptr("mblwwvbie"),
// OptionalProperty4: to.Ptr("vzuek"),
// OptionalProperty5: to.Ptr("fzjodscdfcdr"),
// },
// StatusCode: to.Ptr("jax"),
// StatusText: to.Ptr("vsqydgruhuwuyipsplylgiqmkcv"),
// StatusDetails: to.Ptr("wmtksbahlbxrzaksogdbozfi"),
// Status: to.Ptr("rhfjbcr"),
// Error: &armconnectedcache.ErrorDetail{
// Code: to.Ptr("dkvgvtftpsjsbhlnapvihefxneoggs"),
// Message: to.Ptr("okakgyfnmyob"),
// Details: []*armconnectedcache.ErrorDetail{
// },
// },
// },
// Tags: map[string]*string{
// "key1878": to.Ptr("warz"),
// },
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// }
}
Output:
func (*IspCustomersClient) NewListByResourceGroupPager ¶
func (client *IspCustomersClient) NewListByResourceGroupPager(resourceGroupName string, options *IspCustomersClientListByResourceGroupOptions) *runtime.Pager[IspCustomersClientListByResourceGroupResponse]
NewListByResourceGroupPager - This api gets the information about all ispCustomer resources under the given subscription and resource group
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- options - IspCustomersClientListByResourceGroupOptions contains the optional parameters for the IspCustomersClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: 2024-11-30-preview/IspCustomers_ListByResourceGroup_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewIspCustomersClient().NewListByResourceGroupPager("rgConnectedCache", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armconnectedcache.IspCustomersClientListByResourceGroupResponse{
// IspCustomerResourceListResult: armconnectedcache.IspCustomerResourceListResult{
// Value: []*armconnectedcache.IspCustomerResource{
// {
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/ispCustomers/MccRPTest2"),
// Name: to.Ptr("MCCTPTest2"),
// Type: to.Ptr("Microsoft.ConnectedCache/ispCustomers"),
// Location: to.Ptr("westus"),
// Properties: &armconnectedcache.CustomerProperty{
// ProvisioningState: to.Ptr(armconnectedcache.ProvisioningStateSucceeded),
// Customer: &armconnectedcache.CustomerEntity{
// FullyQualifiedResourceID: to.Ptr("uqsbtgae"),
// CustomerID: to.Ptr("nqxuzybu"),
// CustomerName: to.Ptr("mkpzynfqihnjfdbaqbqwyhd"),
// ContactEmail: to.Ptr("xquos"),
// ContactPhone: to.Ptr("vue"),
// ContactName: to.Ptr("wxyqjoyoscmvimgwhpitxky"),
// IsEntitled: to.Ptr(true),
// ReleaseVersion: to.Ptr[int32](20),
// CreateAsyncOperationID: to.Ptr("zjpvgirzxecwmnfyofqkikst"),
// DeleteAsyncOperationID: to.Ptr("ajtdyoyecybeaxzyztjkvvtx"),
// ClientTenantID: to.Ptr("fproidkpgvpdnac"),
// SynchWithAzureAttemptsCount: to.Ptr[int32](17),
// LastSyncWithAzureTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// IsEnterpriseManaged: to.Ptr(true),
// ShouldMigrate: to.Ptr(true),
// ResendSignupCode: to.Ptr(true),
// VerifySignupCode: to.Ptr(true),
// },
// AdditionalCustomerProperties: &armconnectedcache.AdditionalCustomerProperties{
// CustomerPropertiesOverviewCacheEfficiency: to.Ptr[float32](20),
// CustomerPropertiesOverviewAverageEgressMbps: to.Ptr[float32](8),
// CustomerPropertiesOverviewAverageMissMbps: to.Ptr[float32](19),
// CustomerPropertiesOverviewEgressMbpsMax: to.Ptr[float32](15),
// CustomerPropertiesOverviewEgressMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewMissMbpsMax: to.Ptr[float32](28),
// CustomerPropertiesOverviewMissMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewCacheNodesHealthyCount: to.Ptr[int32](24),
// CustomerPropertiesOverviewCacheNodesUnhealthyCount: to.Ptr[int32](15),
// SignupStatus: to.Ptr(true),
// SignupStatusCode: to.Ptr[int32](21),
// SignupStatusText: to.Ptr("dccv"),
// SignupPhaseStatusCode: to.Ptr[int32](4),
// SignupPhaseStatusText: to.Ptr("q"),
// PeeringDbLastUpdateDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerOrgName: to.Ptr("nshrwjhhggmdaqlpc"),
// CustomerEmail: to.Ptr("zdjgibsidydyzm"),
// CustomerTransitAsn: to.Ptr("habgklnxqzmozqpazoyejwiphezpi"),
// CustomerTransitState: to.Ptr(armconnectedcache.CustomerTransitState("voblixkxfejbmhxilb")),
// CustomerAsn: to.Ptr("hgrelgnrtdkleisnepfolu"),
// CustomerAsnEstimatedEgressPeekGbps: to.Ptr[float32](10),
// CustomerEntitlementSKUID: to.Ptr("b"),
// CustomerEntitlementSKUGUID: to.Ptr("rvzmdpxyflgqetvpwupnfaxsweiiz"),
// CustomerEntitlementSKUName: to.Ptr("waaqfijr"),
// CustomerEntitlementExpiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// OptionalProperty1: to.Ptr("qhmwxza"),
// OptionalProperty2: to.Ptr("l"),
// OptionalProperty3: to.Ptr("mblwwvbie"),
// OptionalProperty4: to.Ptr("vzuek"),
// OptionalProperty5: to.Ptr("fzjodscdfcdr"),
// },
// StatusCode: to.Ptr("jax"),
// StatusText: to.Ptr("vsqydgruhuwuyipsplylgiqmkcv"),
// StatusDetails: to.Ptr("wmtksbahlbxrzaksogdbozfi"),
// Status: to.Ptr("rhfjbcr"),
// Error: &armconnectedcache.ErrorDetail{
// Code: to.Ptr("dkvgvtftpsjsbhlnapvihefxneoggs"),
// Message: to.Ptr("okakgyfnmyob"),
// Details: []*armconnectedcache.ErrorDetail{
// },
// },
// },
// Tags: map[string]*string{
// "key1878": to.Ptr("warz"),
// },
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// {
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DoTest/providers/Microsoft.ConnectedCache/ispCustomers/MccRPTest1"),
// Name: to.Ptr("MCCTPTest1"),
// Type: to.Ptr("Microsoft.ConnectedCache/ispCustomers"),
// Location: to.Ptr("westus"),
// Properties: &armconnectedcache.CustomerProperty{
// ProvisioningState: to.Ptr(armconnectedcache.ProvisioningStateSucceeded),
// Customer: &armconnectedcache.CustomerEntity{
// FullyQualifiedResourceID: to.Ptr("uqsbtgae"),
// CustomerID: to.Ptr("nqxuzybu"),
// CustomerName: to.Ptr("mkpzynfqihnjfdbaqbqwyhd"),
// ContactEmail: to.Ptr("xquos"),
// ContactPhone: to.Ptr("vue"),
// ContactName: to.Ptr("wxyqjoyoscmvimgwhpitxky"),
// IsEntitled: to.Ptr(true),
// ReleaseVersion: to.Ptr[int32](20),
// CreateAsyncOperationID: to.Ptr("zjpvgirzxecwmnfyofqkikst"),
// DeleteAsyncOperationID: to.Ptr("ajtdyoyecybeaxzyztjkvvtx"),
// ClientTenantID: to.Ptr("fproidkpgvpdnac"),
// SynchWithAzureAttemptsCount: to.Ptr[int32](17),
// LastSyncWithAzureTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// IsEnterpriseManaged: to.Ptr(true),
// ShouldMigrate: to.Ptr(true),
// ResendSignupCode: to.Ptr(true),
// VerifySignupCode: to.Ptr(true),
// },
// AdditionalCustomerProperties: &armconnectedcache.AdditionalCustomerProperties{
// CustomerPropertiesOverviewCacheEfficiency: to.Ptr[float32](20),
// CustomerPropertiesOverviewAverageEgressMbps: to.Ptr[float32](8),
// CustomerPropertiesOverviewAverageMissMbps: to.Ptr[float32](19),
// CustomerPropertiesOverviewEgressMbpsMax: to.Ptr[float32](15),
// CustomerPropertiesOverviewEgressMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewMissMbpsMax: to.Ptr[float32](28),
// CustomerPropertiesOverviewMissMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewCacheNodesHealthyCount: to.Ptr[int32](24),
// CustomerPropertiesOverviewCacheNodesUnhealthyCount: to.Ptr[int32](15),
// SignupStatus: to.Ptr(true),
// SignupStatusCode: to.Ptr[int32](21),
// SignupStatusText: to.Ptr("dccv"),
// SignupPhaseStatusCode: to.Ptr[int32](4),
// SignupPhaseStatusText: to.Ptr("q"),
// PeeringDbLastUpdateDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerOrgName: to.Ptr("nshrwjhhggmdaqlpc"),
// CustomerEmail: to.Ptr("zdjgibsidydyzm"),
// CustomerTransitAsn: to.Ptr("habgklnxqzmozqpazoyejwiphezpi"),
// CustomerTransitState: to.Ptr(armconnectedcache.CustomerTransitState("voblixkxfejbmhxilb")),
// CustomerAsn: to.Ptr("hgrelgnrtdkleisnepfolu"),
// CustomerAsnEstimatedEgressPeekGbps: to.Ptr[float32](10),
// CustomerEntitlementSKUID: to.Ptr("b"),
// CustomerEntitlementSKUGUID: to.Ptr("rvzmdpxyflgqetvpwupnfaxsweiiz"),
// CustomerEntitlementSKUName: to.Ptr("waaqfijr"),
// CustomerEntitlementExpiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// OptionalProperty1: to.Ptr("qhmwxza"),
// OptionalProperty2: to.Ptr("l"),
// OptionalProperty3: to.Ptr("mblwwvbie"),
// OptionalProperty4: to.Ptr("vzuek"),
// OptionalProperty5: to.Ptr("fzjodscdfcdr"),
// },
// StatusCode: to.Ptr("oytrfgfhk"),
// StatusText: to.Ptr("pqitblihwfrq"),
// StatusDetails: to.Ptr("kvxqjbldcwqgslerajc"),
// Status: to.Ptr("stwi"),
// Error: &armconnectedcache.ErrorDetail{
// Code: to.Ptr("dkvgvtftpsjsbhlnapvihefxneoggs"),
// Message: to.Ptr("okakgyfnmyob"),
// Details: []*armconnectedcache.ErrorDetail{
// },
// },
// },
// Tags: map[string]*string{
// "key2096": to.Ptr("uzoqqgqnnaiagdqilrjiezogx"),
// },
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// },
// NextLink: to.Ptr("https://microsoft.com/ao"),
// },
// }
}
}
Output:
func (*IspCustomersClient) NewListBySubscriptionPager ¶
func (client *IspCustomersClient) NewListBySubscriptionPager(options *IspCustomersClientListBySubscriptionOptions) *runtime.Pager[IspCustomersClientListBySubscriptionResponse]
NewListBySubscriptionPager - This api gets information about all ispCustomer resources under the given subscription
Generated from API version 2024-11-30-preview
- options - IspCustomersClientListBySubscriptionOptions contains the optional parameters for the IspCustomersClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: 2024-11-30-preview/IspCustomers_ListBySubscription_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewIspCustomersClient().NewListBySubscriptionPager(nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armconnectedcache.IspCustomersClientListBySubscriptionResponse{
// IspCustomerResourceListResult: armconnectedcache.IspCustomerResourceListResult{
// Value: []*armconnectedcache.IspCustomerResource{
// {
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/ispCustomers/MccRPTest2"),
// Name: to.Ptr("MCCTPTest2"),
// Type: to.Ptr("Microsoft.ConnectedCache/ispCustomers"),
// Location: to.Ptr("westus"),
// Properties: &armconnectedcache.CustomerProperty{
// ProvisioningState: to.Ptr(armconnectedcache.ProvisioningStateSucceeded),
// Customer: &armconnectedcache.CustomerEntity{
// FullyQualifiedResourceID: to.Ptr("uqsbtgae"),
// CustomerID: to.Ptr("nqxuzybu"),
// CustomerName: to.Ptr("mkpzynfqihnjfdbaqbqwyhd"),
// ContactEmail: to.Ptr("xquos"),
// ContactPhone: to.Ptr("vue"),
// ContactName: to.Ptr("wxyqjoyoscmvimgwhpitxky"),
// IsEntitled: to.Ptr(true),
// ReleaseVersion: to.Ptr[int32](20),
// CreateAsyncOperationID: to.Ptr("zjpvgirzxecwmnfyofqkikst"),
// DeleteAsyncOperationID: to.Ptr("ajtdyoyecybeaxzyztjkvvtx"),
// ClientTenantID: to.Ptr("fproidkpgvpdnac"),
// SynchWithAzureAttemptsCount: to.Ptr[int32](17),
// LastSyncWithAzureTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// IsEnterpriseManaged: to.Ptr(true),
// ShouldMigrate: to.Ptr(true),
// ResendSignupCode: to.Ptr(true),
// VerifySignupCode: to.Ptr(true),
// },
// AdditionalCustomerProperties: &armconnectedcache.AdditionalCustomerProperties{
// CustomerPropertiesOverviewCacheEfficiency: to.Ptr[float32](20),
// CustomerPropertiesOverviewAverageEgressMbps: to.Ptr[float32](8),
// CustomerPropertiesOverviewAverageMissMbps: to.Ptr[float32](19),
// CustomerPropertiesOverviewEgressMbpsMax: to.Ptr[float32](15),
// CustomerPropertiesOverviewEgressMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewMissMbpsMax: to.Ptr[float32](28),
// CustomerPropertiesOverviewMissMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewCacheNodesHealthyCount: to.Ptr[int32](24),
// CustomerPropertiesOverviewCacheNodesUnhealthyCount: to.Ptr[int32](15),
// SignupStatus: to.Ptr(true),
// SignupStatusCode: to.Ptr[int32](21),
// SignupStatusText: to.Ptr("dccv"),
// SignupPhaseStatusCode: to.Ptr[int32](4),
// SignupPhaseStatusText: to.Ptr("q"),
// PeeringDbLastUpdateDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerOrgName: to.Ptr("nshrwjhhggmdaqlpc"),
// CustomerEmail: to.Ptr("zdjgibsidydyzm"),
// CustomerTransitAsn: to.Ptr("habgklnxqzmozqpazoyejwiphezpi"),
// CustomerTransitState: to.Ptr(armconnectedcache.CustomerTransitState("voblixkxfejbmhxilb")),
// CustomerAsn: to.Ptr("hgrelgnrtdkleisnepfolu"),
// CustomerAsnEstimatedEgressPeekGbps: to.Ptr[float32](10),
// CustomerEntitlementSKUID: to.Ptr("b"),
// CustomerEntitlementSKUGUID: to.Ptr("rvzmdpxyflgqetvpwupnfaxsweiiz"),
// CustomerEntitlementSKUName: to.Ptr("waaqfijr"),
// CustomerEntitlementExpiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// OptionalProperty1: to.Ptr("qhmwxza"),
// OptionalProperty2: to.Ptr("l"),
// OptionalProperty3: to.Ptr("mblwwvbie"),
// OptionalProperty4: to.Ptr("vzuek"),
// OptionalProperty5: to.Ptr("fzjodscdfcdr"),
// },
// StatusCode: to.Ptr("jax"),
// StatusText: to.Ptr("vsqydgruhuwuyipsplylgiqmkcv"),
// StatusDetails: to.Ptr("wmtksbahlbxrzaksogdbozfi"),
// Status: to.Ptr("rhfjbcr"),
// Error: &armconnectedcache.ErrorDetail{
// Code: to.Ptr("dkvgvtftpsjsbhlnapvihefxneoggs"),
// Message: to.Ptr("okakgyfnmyob"),
// Details: []*armconnectedcache.ErrorDetail{
// },
// },
// },
// Tags: map[string]*string{
// "key1878": to.Ptr("warz"),
// },
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// {
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/DoTest/providers/Microsoft.ConnectedCache/ispCustomers/MccRPTest1"),
// Name: to.Ptr("MCCTPTest1"),
// Type: to.Ptr("Microsoft.ConnectedCache/ispCustomers"),
// Location: to.Ptr("westus"),
// Properties: &armconnectedcache.CustomerProperty{
// ProvisioningState: to.Ptr(armconnectedcache.ProvisioningStateSucceeded),
// Customer: &armconnectedcache.CustomerEntity{
// FullyQualifiedResourceID: to.Ptr("uqsbtgae"),
// CustomerID: to.Ptr("nqxuzybu"),
// CustomerName: to.Ptr("mkpzynfqihnjfdbaqbqwyhd"),
// ContactEmail: to.Ptr("xquos"),
// ContactPhone: to.Ptr("vue"),
// ContactName: to.Ptr("wxyqjoyoscmvimgwhpitxky"),
// IsEntitled: to.Ptr(true),
// ReleaseVersion: to.Ptr[int32](20),
// CreateAsyncOperationID: to.Ptr("zjpvgirzxecwmnfyofqkikst"),
// DeleteAsyncOperationID: to.Ptr("ajtdyoyecybeaxzyztjkvvtx"),
// ClientTenantID: to.Ptr("fproidkpgvpdnac"),
// SynchWithAzureAttemptsCount: to.Ptr[int32](17),
// LastSyncWithAzureTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// IsEnterpriseManaged: to.Ptr(true),
// ShouldMigrate: to.Ptr(true),
// ResendSignupCode: to.Ptr(true),
// VerifySignupCode: to.Ptr(true),
// },
// AdditionalCustomerProperties: &armconnectedcache.AdditionalCustomerProperties{
// CustomerPropertiesOverviewCacheEfficiency: to.Ptr[float32](20),
// CustomerPropertiesOverviewAverageEgressMbps: to.Ptr[float32](8),
// CustomerPropertiesOverviewAverageMissMbps: to.Ptr[float32](19),
// CustomerPropertiesOverviewEgressMbpsMax: to.Ptr[float32](15),
// CustomerPropertiesOverviewEgressMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewMissMbpsMax: to.Ptr[float32](28),
// CustomerPropertiesOverviewMissMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewCacheNodesHealthyCount: to.Ptr[int32](24),
// CustomerPropertiesOverviewCacheNodesUnhealthyCount: to.Ptr[int32](15),
// SignupStatus: to.Ptr(true),
// SignupStatusCode: to.Ptr[int32](21),
// SignupStatusText: to.Ptr("dccv"),
// SignupPhaseStatusCode: to.Ptr[int32](4),
// SignupPhaseStatusText: to.Ptr("q"),
// PeeringDbLastUpdateDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerOrgName: to.Ptr("nshrwjhhggmdaqlpc"),
// CustomerEmail: to.Ptr("zdjgibsidydyzm"),
// CustomerTransitAsn: to.Ptr("habgklnxqzmozqpazoyejwiphezpi"),
// CustomerTransitState: to.Ptr(armconnectedcache.CustomerTransitState("voblixkxfejbmhxilb")),
// CustomerAsn: to.Ptr("hgrelgnrtdkleisnepfolu"),
// CustomerAsnEstimatedEgressPeekGbps: to.Ptr[float32](10),
// CustomerEntitlementSKUID: to.Ptr("b"),
// CustomerEntitlementSKUGUID: to.Ptr("rvzmdpxyflgqetvpwupnfaxsweiiz"),
// CustomerEntitlementSKUName: to.Ptr("waaqfijr"),
// CustomerEntitlementExpiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// OptionalProperty1: to.Ptr("qhmwxza"),
// OptionalProperty2: to.Ptr("l"),
// OptionalProperty3: to.Ptr("mblwwvbie"),
// OptionalProperty4: to.Ptr("vzuek"),
// OptionalProperty5: to.Ptr("fzjodscdfcdr"),
// },
// StatusCode: to.Ptr("oytrfgfhk"),
// StatusText: to.Ptr("pqitblihwfrq"),
// StatusDetails: to.Ptr("kvxqjbldcwqgslerajc"),
// Status: to.Ptr("stwi"),
// Error: &armconnectedcache.ErrorDetail{
// Code: to.Ptr("dkvgvtftpsjsbhlnapvihefxneoggs"),
// Message: to.Ptr("okakgyfnmyob"),
// Details: []*armconnectedcache.ErrorDetail{
// },
// },
// },
// Tags: map[string]*string{
// "key2096": to.Ptr("uzoqqgqnnaiagdqilrjiezogx"),
// },
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// },
// NextLink: to.Ptr("https://microsoft.com/ao"),
// },
// }
}
}
Output:
func (*IspCustomersClient) Update ¶
func (client *IspCustomersClient) Update(ctx context.Context, resourceGroupName string, customerResourceName string, properties PatchResource, options *IspCustomersClientUpdateOptions) (IspCustomersClientUpdateResponse, error)
Update - This api updates an existing ispCustomer resource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-11-30-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- customerResourceName - Name of the Customer resource
- properties - The resource properties to be updated.
- options - IspCustomersClientUpdateOptions contains the optional parameters for the IspCustomersClient.Update method.
Example ¶
Generated from example definition: 2024-11-30-preview/IspCustomers_Update_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("12345678-1234-1234-1234-123456789098", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewIspCustomersClient().Update(ctx, "rgConnectedCache", "MccRPTest2", armconnectedcache.PatchResource{
Tags: map[string]*string{
"key1653": to.Ptr("nzjczrhclhkndesgy"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armconnectedcache.IspCustomersClientUpdateResponse{
// IspCustomerResource: &armconnectedcache.IspCustomerResource{
// ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rgConnectedCache/providers/Microsoft.ConnectedCache/ispCustomers/MccRPTest2"),
// Name: to.Ptr("MCCTPTest2"),
// Type: to.Ptr("Microsoft.ConnectedCache/ispCustomers"),
// Location: to.Ptr("westus"),
// Properties: &armconnectedcache.CustomerProperty{
// ProvisioningState: to.Ptr(armconnectedcache.ProvisioningStateSucceeded),
// Customer: &armconnectedcache.CustomerEntity{
// FullyQualifiedResourceID: to.Ptr("uqsbtgae"),
// CustomerID: to.Ptr("nqxuzybu"),
// CustomerName: to.Ptr("mkpzynfqihnjfdbaqbqwyhd"),
// ContactEmail: to.Ptr("xquos"),
// ContactPhone: to.Ptr("vue"),
// ContactName: to.Ptr("wxyqjoyoscmvimgwhpitxky"),
// IsEntitled: to.Ptr(true),
// ReleaseVersion: to.Ptr[int32](20),
// CreateAsyncOperationID: to.Ptr("zjpvgirzxecwmnfyofqkikst"),
// DeleteAsyncOperationID: to.Ptr("ajtdyoyecybeaxzyztjkvvtx"),
// ClientTenantID: to.Ptr("fproidkpgvpdnac"),
// SynchWithAzureAttemptsCount: to.Ptr[int32](17),
// LastSyncWithAzureTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.777Z"); return t}()),
// IsEnterpriseManaged: to.Ptr(true),
// ShouldMigrate: to.Ptr(true),
// ResendSignupCode: to.Ptr(true),
// VerifySignupCode: to.Ptr(true),
// },
// AdditionalCustomerProperties: &armconnectedcache.AdditionalCustomerProperties{
// CustomerPropertiesOverviewCacheEfficiency: to.Ptr[float32](20),
// CustomerPropertiesOverviewAverageEgressMbps: to.Ptr[float32](8),
// CustomerPropertiesOverviewAverageMissMbps: to.Ptr[float32](19),
// CustomerPropertiesOverviewEgressMbpsMax: to.Ptr[float32](15),
// CustomerPropertiesOverviewEgressMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewMissMbpsMax: to.Ptr[float32](28),
// CustomerPropertiesOverviewMissMbpsMaxDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerPropertiesOverviewCacheNodesHealthyCount: to.Ptr[int32](24),
// CustomerPropertiesOverviewCacheNodesUnhealthyCount: to.Ptr[int32](15),
// SignupStatus: to.Ptr(true),
// SignupStatusCode: to.Ptr[int32](21),
// SignupStatusText: to.Ptr("dccv"),
// SignupPhaseStatusCode: to.Ptr[int32](4),
// SignupPhaseStatusText: to.Ptr("q"),
// PeeringDbLastUpdateDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// CustomerOrgName: to.Ptr("nshrwjhhggmdaqlpc"),
// CustomerEmail: to.Ptr("zdjgibsidydyzm"),
// CustomerTransitAsn: to.Ptr("habgklnxqzmozqpazoyejwiphezpi"),
// CustomerTransitState: to.Ptr(armconnectedcache.CustomerTransitState("voblixkxfejbmhxilb")),
// CustomerAsn: to.Ptr("hgrelgnrtdkleisnepfolu"),
// CustomerAsnEstimatedEgressPeekGbps: to.Ptr[float32](10),
// CustomerEntitlementSKUID: to.Ptr("b"),
// CustomerEntitlementSKUGUID: to.Ptr("rvzmdpxyflgqetvpwupnfaxsweiiz"),
// CustomerEntitlementSKUName: to.Ptr("waaqfijr"),
// CustomerEntitlementExpiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.773Z"); return t}()),
// OptionalProperty1: to.Ptr("qhmwxza"),
// OptionalProperty2: to.Ptr("l"),
// OptionalProperty3: to.Ptr("mblwwvbie"),
// OptionalProperty4: to.Ptr("vzuek"),
// OptionalProperty5: to.Ptr("fzjodscdfcdr"),
// },
// StatusCode: to.Ptr("jax"),
// StatusText: to.Ptr("vsqydgruhuwuyipsplylgiqmkcv"),
// StatusDetails: to.Ptr("wmtksbahlbxrzaksogdbozfi"),
// Status: to.Ptr("rhfjbcr"),
// },
// Tags: map[string]*string{
// "key1878": to.Ptr("warz"),
// },
// SystemData: &armconnectedcache.SystemData{
// CreatedBy: to.Ptr("gambtqj"),
// CreatedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// LastModifiedBy: to.Ptr("qomgaceiessgnuogz"),
// LastModifiedByType: to.Ptr(armconnectedcache.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T00:54:04.771Z"); return t}()),
// },
// },
// }
}
Output:
type IspCustomersClientBeginCreateOrUpdateOptions ¶
type IspCustomersClientBeginCreateOrUpdateOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
IspCustomersClientBeginCreateOrUpdateOptions contains the optional parameters for the IspCustomersClient.BeginCreateOrUpdate method.
type IspCustomersClientBeginDeleteOptions ¶
type IspCustomersClientBeginDeleteOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
IspCustomersClientBeginDeleteOptions contains the optional parameters for the IspCustomersClient.BeginDelete method.
type IspCustomersClientCreateOrUpdateResponse ¶
type IspCustomersClientCreateOrUpdateResponse struct {
// Represents the high level Nodes needed to provision isp customer resources
IspCustomerResource
}
IspCustomersClientCreateOrUpdateResponse contains the response from method IspCustomersClient.BeginCreateOrUpdate.
type IspCustomersClientDeleteResponse ¶
type IspCustomersClientDeleteResponse struct {
}
IspCustomersClientDeleteResponse contains the response from method IspCustomersClient.BeginDelete.
type IspCustomersClientGetOptions ¶
type IspCustomersClientGetOptions struct {
}
IspCustomersClientGetOptions contains the optional parameters for the IspCustomersClient.Get method.
type IspCustomersClientGetResponse ¶
type IspCustomersClientGetResponse struct {
// Represents the high level Nodes needed to provision isp customer resources
IspCustomerResource
}
IspCustomersClientGetResponse contains the response from method IspCustomersClient.Get.
type IspCustomersClientListByResourceGroupOptions ¶
type IspCustomersClientListByResourceGroupOptions struct {
}
IspCustomersClientListByResourceGroupOptions contains the optional parameters for the IspCustomersClient.NewListByResourceGroupPager method.
type IspCustomersClientListByResourceGroupResponse ¶
type IspCustomersClientListByResourceGroupResponse struct {
// The response of a IspCustomerResource list operation.
IspCustomerResourceListResult
}
IspCustomersClientListByResourceGroupResponse contains the response from method IspCustomersClient.NewListByResourceGroupPager.
type IspCustomersClientListBySubscriptionOptions ¶
type IspCustomersClientListBySubscriptionOptions struct {
}
IspCustomersClientListBySubscriptionOptions contains the optional parameters for the IspCustomersClient.NewListBySubscriptionPager method.
type IspCustomersClientListBySubscriptionResponse ¶
type IspCustomersClientListBySubscriptionResponse struct {
// The response of a IspCustomerResource list operation.
IspCustomerResourceListResult
}
IspCustomersClientListBySubscriptionResponse contains the response from method IspCustomersClient.NewListBySubscriptionPager.
type IspCustomersClientUpdateOptions ¶
type IspCustomersClientUpdateOptions struct {
}
IspCustomersClientUpdateOptions contains the optional parameters for the IspCustomersClient.Update method.
type IspCustomersClientUpdateResponse ¶
type IspCustomersClientUpdateResponse struct {
// Represents the high level Nodes needed to provision isp customer resources
IspCustomerResource
}
IspCustomersClientUpdateResponse contains the response from method IspCustomersClient.Update.
type MccCacheNodeAutoUpdateHistory ¶ added in v0.2.0
type MccCacheNodeAutoUpdateHistory struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// Mcc cache node resource auto update history properties.
Properties *MccCacheNodeAutoUpdateHistoryProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
MccCacheNodeAutoUpdateHistory - Mcc cache node resource auto update history.
func (MccCacheNodeAutoUpdateHistory) MarshalJSON ¶ added in v0.2.0
func (m MccCacheNodeAutoUpdateHistory) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MccCacheNodeAutoUpdateHistory.
func (*MccCacheNodeAutoUpdateHistory) UnmarshalJSON ¶ added in v0.2.0
func (m *MccCacheNodeAutoUpdateHistory) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MccCacheNodeAutoUpdateHistory.
type MccCacheNodeAutoUpdateHistoryProperties ¶ added in v0.2.0
type MccCacheNodeAutoUpdateHistoryProperties struct {
// Cache node resource auto update history information.
AutoUpdateHistory []*MccCacheNodeAutoUpdateInfo
// READ-ONLY; Mcc cache node resource Id.
CacheNodeID *string
// READ-ONLY; Mcc customer resource Id.
CustomerID *string
}
MccCacheNodeAutoUpdateHistoryProperties - Mcc cache node resource auto update history properties.
func (MccCacheNodeAutoUpdateHistoryProperties) MarshalJSON ¶ added in v0.2.0
func (m MccCacheNodeAutoUpdateHistoryProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MccCacheNodeAutoUpdateHistoryProperties.
func (*MccCacheNodeAutoUpdateHistoryProperties) UnmarshalJSON ¶ added in v0.2.0
func (m *MccCacheNodeAutoUpdateHistoryProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MccCacheNodeAutoUpdateHistoryProperties.
type MccCacheNodeAutoUpdateInfo ¶ added in v0.2.0
type MccCacheNodeAutoUpdateInfo struct {
// READ-ONLY; Auto update last applied status.
AutoUpdateLastAppliedStatus *int32
// READ-ONLY; Auto update last applied detailed status text.
AutoUpdateLastAppliedStatusDetailedText *string
// READ-ONLY; Auto update last applied status text.
AutoUpdateLastAppliedStatusText *string
// READ-ONLY; Auto update Ring Type.
AutoUpdateRingType *int32
// READ-ONLY; Auto update entity created datetime.
CreatedDateTimeUTC *time.Time
// READ-ONLY; Auto update image uri before update.
ImageURIBeforeUpdate *string
// READ-ONLY; Auto update image uri targetted to update.
ImageURITargeted *string
// READ-ONLY; Auto update image uri at Terminal.
ImageURITerminal *string
// READ-ONLY; Auto update image uri after update.
MovedToTerminalStateDateTime *time.Time
// READ-ONLY; This text describing the purpose of the plan of auto update.
PlanChangeLogText *string
// READ-ONLY; Auto update planId.
PlanID *int64
// READ-ONLY; Auto update image uri after update.
RuleRequestedDay *int32
// READ-ONLY; Auto update rule requested hour.
RuleRequestedHour *string
// READ-ONLY; Auto update rule requested minute.
RuleRequestedMinute *string
// READ-ONLY; Auto update image uri before update.
RuleRequestedWeek *int32
// READ-ONLY; Auto update time to go live date time.
TimeToGoLiveDateTime *string
// READ-ONLY; Auto update entity last updated datetime.
UpdatedRegistryDateTimeUTC *time.Time
}
MccCacheNodeAutoUpdateInfo - Mcc cache node resource auto update properties.
func (MccCacheNodeAutoUpdateInfo) MarshalJSON ¶ added in v0.2.0
func (m MccCacheNodeAutoUpdateInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MccCacheNodeAutoUpdateInfo.
func (*MccCacheNodeAutoUpdateInfo) UnmarshalJSON ¶ added in v0.2.0
func (m *MccCacheNodeAutoUpdateInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MccCacheNodeAutoUpdateInfo.
type MccCacheNodeBgpCidrDetails ¶
type MccCacheNodeBgpCidrDetails struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// Mcc cache node resource Bgp Cidr properties.
Properties *BgpCidrsConfiguration
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
MccCacheNodeBgpCidrDetails - Represents all Cidr details of the Bgp request for a specific cache node resource
func (MccCacheNodeBgpCidrDetails) MarshalJSON ¶
func (m MccCacheNodeBgpCidrDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MccCacheNodeBgpCidrDetails.
func (*MccCacheNodeBgpCidrDetails) UnmarshalJSON ¶
func (m *MccCacheNodeBgpCidrDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MccCacheNodeBgpCidrDetails.
type MccCacheNodeInstallDetails ¶
type MccCacheNodeInstallDetails struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// Mcc cache node resource install script details.
Properties *CacheNodeInstallProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
MccCacheNodeInstallDetails - Mcc cache node resource all install details.
func (MccCacheNodeInstallDetails) MarshalJSON ¶
func (m MccCacheNodeInstallDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MccCacheNodeInstallDetails.
func (*MccCacheNodeInstallDetails) UnmarshalJSON ¶
func (m *MccCacheNodeInstallDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MccCacheNodeInstallDetails.
type MccCacheNodeIssueHistory ¶ added in v0.2.0
type MccCacheNodeIssueHistory struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// Mcc cache node resource issue history properties.
Properties *MccCacheNodeIssueHistoryProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
MccCacheNodeIssueHistory - Mcc cache node resource issue history.
func (MccCacheNodeIssueHistory) MarshalJSON ¶ added in v0.2.0
func (m MccCacheNodeIssueHistory) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MccCacheNodeIssueHistory.
func (*MccCacheNodeIssueHistory) UnmarshalJSON ¶ added in v0.2.0
func (m *MccCacheNodeIssueHistory) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MccCacheNodeIssueHistory.
type MccCacheNodeIssueHistoryProperties ¶ added in v0.2.0
type MccCacheNodeIssueHistoryProperties struct {
// Cache node resource issue details history.
MccIssueHistory []*MccIssue
// READ-ONLY; Mcc cache node resource Id.
CacheNodeID *string
// READ-ONLY; Mcc customer resource Id.
CustomerID *string
}
MccCacheNodeIssueHistoryProperties - Mcc cache node resource issue history properties.
func (MccCacheNodeIssueHistoryProperties) MarshalJSON ¶ added in v0.2.0
func (m MccCacheNodeIssueHistoryProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MccCacheNodeIssueHistoryProperties.
func (*MccCacheNodeIssueHistoryProperties) UnmarshalJSON ¶ added in v0.2.0
func (m *MccCacheNodeIssueHistoryProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MccCacheNodeIssueHistoryProperties.
type MccCacheNodeTLSCertificate ¶ added in v0.2.0
type MccCacheNodeTLSCertificate struct {
// READ-ONLY; Mcc cache node Tls certificate status.
ActionRequired *string
// READ-ONLY; Mcc cache node Tls certificate file name.
CertificateFileName *string
// READ-ONLY; Mcc cache node Tls certificate expiry date.
ExpiryDate *time.Time
// READ-ONLY; Mcc cache node Tls certificate not before date.
NotBeforeDate *time.Time
// READ-ONLY; Mcc cache node Tls certificate subject name.
Subject *string
// READ-ONLY; Mcc cache node Tls certificate subject alternate name.
SubjectAltName *string
// READ-ONLY; Mcc cache node Tls certificate thumbprint.
Thumbprint *string
}
MccCacheNodeTLSCertificate - Mcc cache node resource Tls certificate details.
func (MccCacheNodeTLSCertificate) MarshalJSON ¶ added in v0.2.0
func (m MccCacheNodeTLSCertificate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MccCacheNodeTLSCertificate.
func (*MccCacheNodeTLSCertificate) UnmarshalJSON ¶ added in v0.2.0
func (m *MccCacheNodeTLSCertificate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MccCacheNodeTLSCertificate.
type MccCacheNodeTLSCertificateHistory ¶ added in v0.2.0
type MccCacheNodeTLSCertificateHistory struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// Mcc cache node resource Tls certificate details.
Properties *MccCacheNodeTLSCertificateProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
MccCacheNodeTLSCertificateHistory - Mcc cache node resource Tls certificate history details.
func (MccCacheNodeTLSCertificateHistory) MarshalJSON ¶ added in v0.2.0
func (m MccCacheNodeTLSCertificateHistory) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MccCacheNodeTLSCertificateHistory.
func (*MccCacheNodeTLSCertificateHistory) UnmarshalJSON ¶ added in v0.2.0
func (m *MccCacheNodeTLSCertificateHistory) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MccCacheNodeTLSCertificateHistory.
type MccCacheNodeTLSCertificateProperties ¶ added in v0.2.0
type MccCacheNodeTLSCertificateProperties struct {
// Cache node resource tls certificate history details.
TLSCertificateHistory []*MccCacheNodeTLSCertificate
// READ-ONLY; Mcc cache node resource Id.
CacheNodeID *string
// READ-ONLY; Mcc customer resource Id.
CustomerID *string
}
MccCacheNodeTLSCertificateProperties - Mcc cache node resource auto update properties.
func (MccCacheNodeTLSCertificateProperties) MarshalJSON ¶ added in v0.2.0
func (m MccCacheNodeTLSCertificateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MccCacheNodeTLSCertificateProperties.
func (*MccCacheNodeTLSCertificateProperties) UnmarshalJSON ¶ added in v0.2.0
func (m *MccCacheNodeTLSCertificateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MccCacheNodeTLSCertificateProperties.
type MccIssue ¶ added in v0.2.0
type MccIssue struct {
// READ-ONLY; Mcc cache node issue detail string.
DetailString *string
// READ-ONLY; Mcc cache node issue related help link.
HelpLink *string
// READ-ONLY; Mcc cache node issue end date.
IssueEndDate *time.Time
// READ-ONLY; Mcc cache node issue start date.
IssueStartDate *time.Time
// READ-ONLY; Mcc cache node issue type.
MccIssueType *string
// READ-ONLY; Mcc cache node issues toastString.
ToastString *string
}
MccIssue - Mcc cache node resource issue properties.
func (MccIssue) MarshalJSON ¶ added in v0.2.0
MarshalJSON implements the json.Marshaller interface for type MccIssue.
func (*MccIssue) UnmarshalJSON ¶ added in v0.2.0
UnmarshalJSON implements the json.Unmarshaller interface for type MccIssue.
type Operation ¶
type Operation struct {
// Localized display information for this particular operation.
Display *OperationDisplay
// READ-ONLY; Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
ActionType *ActionType
// READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure
// Resource Manager/control-plane operations.
IsDataAction *bool
// READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write",
// "Microsoft.Compute/virtualMachines/capture/action"
Name *string
// READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
// value is "user,system"
Origin *Origin
}
Operation - REST API Operation
Details of a REST API operation, returned from the Resource Provider Operations API
func (Operation) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Operation.
func (*Operation) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Operation.
type OperationDisplay ¶
type OperationDisplay struct {
// READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views.
Description *string
// READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual
// Machine", "Restart Virtual Machine".
Operation *string
// READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft
// Compute".
Provider *string
// READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job
// Schedule Collections".
Resource *string
}
OperationDisplay - Localized display information for an operation.
func (OperationDisplay) MarshalJSON ¶
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
func (*OperationDisplay) UnmarshalJSON ¶
func (o *OperationDisplay) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
type OperationListResult ¶
type OperationListResult struct {
// REQUIRED; The Operation items on this page
Value []*Operation
// The link to the next page of items
NextLink *string
}
OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
func (*OperationListResult) UnmarshalJSON ¶
func (o *OperationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - Contains optional client configuration. Pass nil to accept the default values.
func (*OperationsClient) NewListPager ¶
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - List the operations for the provider
Generated from API version 2024-11-30-preview
- options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example ¶
Generated from example definition: 2024-11-30-preview/Operations_List_MaximumSet_Gen.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedcache/armconnectedcache"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armconnectedcache.NewClientFactory("<subscriptionID>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewOperationsClient().NewListPager(nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armconnectedcache.OperationsClientListResponse{
// OperationListResult: armconnectedcache.OperationListResult{
// Value: []*armconnectedcache.Operation{
// {
// Name: to.Ptr("operationName"),
// Display: &armconnectedcache.OperationDisplay{
// Provider: to.Ptr("providerName"),
// Resource: to.Ptr("resourceName"),
// Operation: to.Ptr("operationName"),
// Description: to.Ptr("zkcugoxocugvzcsedehxwbxiuvrb"),
// },
// IsDataAction: to.Ptr(true),
// Origin: to.Ptr(armconnectedcache.OriginUser),
// ActionType: to.Ptr(armconnectedcache.ActionTypeInternal),
// },
// },
// NextLink: to.Ptr("https://microsoft.com/a"),
// },
// }
}
}
Output:
type OperationsClientListOptions ¶
type OperationsClientListOptions struct {
}
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
type OperationsClientListResponse ¶
type OperationsClientListResponse struct {
// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.
OperationListResult
}
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
type Origin ¶
type Origin string
Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
const ( // OriginSystem - Indicates the operation is initiated by a system. OriginSystem Origin = "system" // OriginUser - Indicates the operation is initiated by a user. OriginUser Origin = "user" // OriginUserSystem - Indicates the operation is initiated by a user or system. OriginUserSystem Origin = "user,system" )
func PossibleOriginValues ¶
func PossibleOriginValues() []Origin
PossibleOriginValues returns the possible values for the Origin const type.
type OsType ¶
type OsType string
OsType - Operating System of the cache node
func PossibleOsTypeValues ¶
func PossibleOsTypeValues() []OsType
PossibleOsTypeValues returns the possible values for the OsType const type.
type PatchResource ¶
PatchResource - Mcc PATCH operation properties.
func (PatchResource) MarshalJSON ¶
func (p PatchResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PatchResource.
func (*PatchResource) UnmarshalJSON ¶
func (p *PatchResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PatchResource.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState - provisioning state of the resource
const ( // ProvisioningStateAccepted - Accepted state of the provisioning state during the Async Operations ProvisioningStateAccepted ProvisioningState = "Accepted" // ProvisioningStateCanceled - Resource creation was canceled. ProvisioningStateCanceled ProvisioningState = "Canceled" // ProvisioningStateDeleting - Deleting state of the provisioning state ProvisioningStateDeleting ProvisioningState = "Deleting" // ProvisioningStateFailed - Resource creation failed. ProvisioningStateFailed ProvisioningState = "Failed" // ProvisioningStateSucceeded - Resource has been created. ProvisioningStateSucceeded ProvisioningState = "Succeeded" // ProvisioningStateUnknown - unknown state of the provisioning state ProvisioningStateUnknown ProvisioningState = "Unknown" // ProvisioningStateUpgrading - Upgrading state of the provisioning state ProvisioningStateUpgrading ProvisioningState = "Upgrading" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type ProxyRequired ¶
type ProxyRequired string
ProxyRequired - Proxy details enum
const ( // ProxyRequiredNone - Proxy is not required in setup ProxyRequiredNone ProxyRequired = "None" // ProxyRequiredRequired - proxy is required in setup ProxyRequiredRequired ProxyRequired = "Required" )
func PossibleProxyRequiredValues ¶
func PossibleProxyRequiredValues() []ProxyRequired
PossibleProxyRequiredValues returns the possible values for the ProxyRequired const type.
type ProxyURLConfiguration ¶
type ProxyURLConfiguration struct {
// Host Proxy Address configuration along with port number. This can be a proxy or ip address. ex: xx.xx.xx.xxxx:80 or host
// name http://exampleproxy.com:80
ProxyURL *string
}
ProxyURLConfiguration - ProxyUrl configuration of cache node
func (ProxyURLConfiguration) MarshalJSON ¶
func (p ProxyURLConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProxyURLConfiguration.
func (*ProxyURLConfiguration) UnmarshalJSON ¶
func (p *ProxyURLConfiguration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProxyURLConfiguration.
type SystemData ¶
type SystemData struct {
// The timestamp of resource creation (UTC).
CreatedAt *time.Time
// The identity that created the resource.
CreatedBy *string
// The type of identity that created the resource.
CreatedByType *CreatedByType
// The timestamp of resource last modification (UTC)
LastModifiedAt *time.Time
// The identity that last modified the resource.
LastModifiedBy *string
// The type of identity that last modified the resource.
LastModifiedByType *CreatedByType
}
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.