Documentation ¶
Index ¶
- type ClientFactory
- func (c *ClientFactory) NewOperationResultsClient() *OperationResultsClient
- func (c *ClientFactory) NewOperationsClient() *OperationsClient
- func (c *ClientFactory) NewPrivateEndpointConnectionsAdtAPIClient() *PrivateEndpointConnectionsAdtAPIClient
- func (c *ClientFactory) NewPrivateEndpointConnectionsCompClient() *PrivateEndpointConnectionsCompClient
- func (c *ClientFactory) NewPrivateEndpointConnectionsForEDMClient() *PrivateEndpointConnectionsForEDMClient
- func (c *ClientFactory) NewPrivateEndpointConnectionsForMIPPolicySyncClient() *PrivateEndpointConnectionsForMIPPolicySyncClient
- func (c *ClientFactory) NewPrivateEndpointConnectionsForSCCPowershellClient() *PrivateEndpointConnectionsForSCCPowershellClient
- func (c *ClientFactory) NewPrivateEndpointConnectionsSecClient() *PrivateEndpointConnectionsSecClient
- func (c *ClientFactory) NewPrivateLinkResourcesAdtAPIClient() *PrivateLinkResourcesAdtAPIClient
- func (c *ClientFactory) NewPrivateLinkResourcesClient() *PrivateLinkResourcesClient
- func (c *ClientFactory) NewPrivateLinkResourcesCompClient() *PrivateLinkResourcesCompClient
- func (c *ClientFactory) NewPrivateLinkResourcesForMIPPolicySyncClient() *PrivateLinkResourcesForMIPPolicySyncClient
- func (c *ClientFactory) NewPrivateLinkResourcesForSCCPowershellClient() *PrivateLinkResourcesForSCCPowershellClient
- func (c *ClientFactory) NewPrivateLinkResourcesSecClient() *PrivateLinkResourcesSecClient
- func (c *ClientFactory) NewPrivateLinkServicesForEDMUploadClient() *PrivateLinkServicesForEDMUploadClient
- func (c *ClientFactory) NewPrivateLinkServicesForM365ComplianceCenterClient() *PrivateLinkServicesForM365ComplianceCenterClient
- func (c *ClientFactory) NewPrivateLinkServicesForM365SecurityCenterClient() *PrivateLinkServicesForM365SecurityCenterClient
- func (c *ClientFactory) NewPrivateLinkServicesForMIPPolicySyncClient() *PrivateLinkServicesForMIPPolicySyncClient
- func (c *ClientFactory) NewPrivateLinkServicesForO365ManagementActivityAPIClient() *PrivateLinkServicesForO365ManagementActivityAPIClient
- func (c *ClientFactory) NewPrivateLinkServicesForSCCPowershellClient() *PrivateLinkServicesForSCCPowershellClient
- func (c *ClientFactory) NewServicesClient() *ServicesClient
- type CreatedByType
- type ErrorDetails
- type ErrorDetailsInternal
- type Kind
- type ManagedServiceIdentityType
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationResultStatus
- type OperationResultsClient
- type OperationResultsClientGetOptions
- type OperationResultsClientGetResponse
- type OperationResultsDescription
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type PrivateEndpoint
- type PrivateEndpointConnection
- type PrivateEndpointConnectionListResult
- type PrivateEndpointConnectionProperties
- type PrivateEndpointConnectionProvisioningState
- type PrivateEndpointConnectionsAdtAPIClient
- func (client *PrivateEndpointConnectionsAdtAPIClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[PrivateEndpointConnectionsAdtAPIClientCreateOrUpdateResponse], ...)
- func (client *PrivateEndpointConnectionsAdtAPIClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[PrivateEndpointConnectionsAdtAPIClientDeleteResponse], error)
- func (client *PrivateEndpointConnectionsAdtAPIClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateEndpointConnectionsAdtAPIClientGetResponse, error)
- func (client *PrivateEndpointConnectionsAdtAPIClient) NewListByServicePager(resourceGroupName string, resourceName string, ...) *runtime.Pager[PrivateEndpointConnectionsAdtAPIClientListByServiceResponse]
- type PrivateEndpointConnectionsAdtAPIClientBeginCreateOrUpdateOptions
- type PrivateEndpointConnectionsAdtAPIClientBeginDeleteOptions
- type PrivateEndpointConnectionsAdtAPIClientCreateOrUpdateResponse
- type PrivateEndpointConnectionsAdtAPIClientDeleteResponse
- type PrivateEndpointConnectionsAdtAPIClientGetOptions
- type PrivateEndpointConnectionsAdtAPIClientGetResponse
- type PrivateEndpointConnectionsAdtAPIClientListByServiceOptions
- type PrivateEndpointConnectionsAdtAPIClientListByServiceResponse
- type PrivateEndpointConnectionsCompClient
- func (client *PrivateEndpointConnectionsCompClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[PrivateEndpointConnectionsCompClientCreateOrUpdateResponse], ...)
- func (client *PrivateEndpointConnectionsCompClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[PrivateEndpointConnectionsCompClientDeleteResponse], error)
- func (client *PrivateEndpointConnectionsCompClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateEndpointConnectionsCompClientGetResponse, error)
- func (client *PrivateEndpointConnectionsCompClient) NewListByServicePager(resourceGroupName string, resourceName string, ...) *runtime.Pager[PrivateEndpointConnectionsCompClientListByServiceResponse]
- type PrivateEndpointConnectionsCompClientBeginCreateOrUpdateOptions
- type PrivateEndpointConnectionsCompClientBeginDeleteOptions
- type PrivateEndpointConnectionsCompClientCreateOrUpdateResponse
- type PrivateEndpointConnectionsCompClientDeleteResponse
- type PrivateEndpointConnectionsCompClientGetOptions
- type PrivateEndpointConnectionsCompClientGetResponse
- type PrivateEndpointConnectionsCompClientListByServiceOptions
- type PrivateEndpointConnectionsCompClientListByServiceResponse
- type PrivateEndpointConnectionsForEDMClient
- func (client *PrivateEndpointConnectionsForEDMClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[PrivateEndpointConnectionsForEDMClientCreateOrUpdateResponse], ...)
- func (client *PrivateEndpointConnectionsForEDMClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[PrivateEndpointConnectionsForEDMClientDeleteResponse], error)
- func (client *PrivateEndpointConnectionsForEDMClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateEndpointConnectionsForEDMClientGetResponse, error)
- func (client *PrivateEndpointConnectionsForEDMClient) NewListByServicePager(resourceGroupName string, resourceName string, ...) *runtime.Pager[PrivateEndpointConnectionsForEDMClientListByServiceResponse]
- type PrivateEndpointConnectionsForEDMClientBeginCreateOrUpdateOptions
- type PrivateEndpointConnectionsForEDMClientBeginDeleteOptions
- type PrivateEndpointConnectionsForEDMClientCreateOrUpdateResponse
- type PrivateEndpointConnectionsForEDMClientDeleteResponse
- type PrivateEndpointConnectionsForEDMClientGetOptions
- type PrivateEndpointConnectionsForEDMClientGetResponse
- type PrivateEndpointConnectionsForEDMClientListByServiceOptions
- type PrivateEndpointConnectionsForEDMClientListByServiceResponse
- type PrivateEndpointConnectionsForMIPPolicySyncClient
- func (client *PrivateEndpointConnectionsForMIPPolicySyncClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (...)
- func (client *PrivateEndpointConnectionsForMIPPolicySyncClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, ...) (...)
- func (client *PrivateEndpointConnectionsForMIPPolicySyncClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateEndpointConnectionsForMIPPolicySyncClientGetResponse, error)
- func (client *PrivateEndpointConnectionsForMIPPolicySyncClient) NewListByServicePager(resourceGroupName string, resourceName string, ...) ...
- type PrivateEndpointConnectionsForMIPPolicySyncClientBeginCreateOrUpdateOptions
- type PrivateEndpointConnectionsForMIPPolicySyncClientBeginDeleteOptions
- type PrivateEndpointConnectionsForMIPPolicySyncClientCreateOrUpdateResponse
- type PrivateEndpointConnectionsForMIPPolicySyncClientDeleteResponse
- type PrivateEndpointConnectionsForMIPPolicySyncClientGetOptions
- type PrivateEndpointConnectionsForMIPPolicySyncClientGetResponse
- type PrivateEndpointConnectionsForMIPPolicySyncClientListByServiceOptions
- type PrivateEndpointConnectionsForMIPPolicySyncClientListByServiceResponse
- type PrivateEndpointConnectionsForSCCPowershellClient
- func (client *PrivateEndpointConnectionsForSCCPowershellClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (...)
- func (client *PrivateEndpointConnectionsForSCCPowershellClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, ...) (...)
- func (client *PrivateEndpointConnectionsForSCCPowershellClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateEndpointConnectionsForSCCPowershellClientGetResponse, error)
- func (client *PrivateEndpointConnectionsForSCCPowershellClient) NewListByServicePager(resourceGroupName string, resourceName string, ...) ...
- type PrivateEndpointConnectionsForSCCPowershellClientBeginCreateOrUpdateOptions
- type PrivateEndpointConnectionsForSCCPowershellClientBeginDeleteOptions
- type PrivateEndpointConnectionsForSCCPowershellClientCreateOrUpdateResponse
- type PrivateEndpointConnectionsForSCCPowershellClientDeleteResponse
- type PrivateEndpointConnectionsForSCCPowershellClientGetOptions
- type PrivateEndpointConnectionsForSCCPowershellClientGetResponse
- type PrivateEndpointConnectionsForSCCPowershellClientListByServiceOptions
- type PrivateEndpointConnectionsForSCCPowershellClientListByServiceResponse
- type PrivateEndpointConnectionsSecClient
- func (client *PrivateEndpointConnectionsSecClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[PrivateEndpointConnectionsSecClientCreateOrUpdateResponse], ...)
- func (client *PrivateEndpointConnectionsSecClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[PrivateEndpointConnectionsSecClientDeleteResponse], error)
- func (client *PrivateEndpointConnectionsSecClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateEndpointConnectionsSecClientGetResponse, error)
- func (client *PrivateEndpointConnectionsSecClient) NewListByServicePager(resourceGroupName string, resourceName string, ...) *runtime.Pager[PrivateEndpointConnectionsSecClientListByServiceResponse]
- type PrivateEndpointConnectionsSecClientBeginCreateOrUpdateOptions
- type PrivateEndpointConnectionsSecClientBeginDeleteOptions
- type PrivateEndpointConnectionsSecClientCreateOrUpdateResponse
- type PrivateEndpointConnectionsSecClientDeleteResponse
- type PrivateEndpointConnectionsSecClientGetOptions
- type PrivateEndpointConnectionsSecClientGetResponse
- type PrivateEndpointConnectionsSecClientListByServiceOptions
- type PrivateEndpointConnectionsSecClientListByServiceResponse
- type PrivateEndpointServiceConnectionStatus
- type PrivateLinkResource
- type PrivateLinkResourceListResult
- type PrivateLinkResourceProperties
- type PrivateLinkResourcesAdtAPIClient
- func (client *PrivateLinkResourcesAdtAPIClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateLinkResourcesAdtAPIClientGetResponse, error)
- func (client *PrivateLinkResourcesAdtAPIClient) ListByService(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateLinkResourcesAdtAPIClientListByServiceResponse, error)
- type PrivateLinkResourcesAdtAPIClientGetOptions
- type PrivateLinkResourcesAdtAPIClientGetResponse
- type PrivateLinkResourcesAdtAPIClientListByServiceOptions
- type PrivateLinkResourcesAdtAPIClientListByServiceResponse
- type PrivateLinkResourcesClient
- func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateLinkResourcesClientGetResponse, error)
- func (client *PrivateLinkResourcesClient) ListByService(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateLinkResourcesClientListByServiceResponse, error)
- type PrivateLinkResourcesClientGetOptions
- type PrivateLinkResourcesClientGetResponse
- type PrivateLinkResourcesClientListByServiceOptions
- type PrivateLinkResourcesClientListByServiceResponse
- type PrivateLinkResourcesCompClient
- func (client *PrivateLinkResourcesCompClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateLinkResourcesCompClientGetResponse, error)
- func (client *PrivateLinkResourcesCompClient) ListByService(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateLinkResourcesCompClientListByServiceResponse, error)
- type PrivateLinkResourcesCompClientGetOptions
- type PrivateLinkResourcesCompClientGetResponse
- type PrivateLinkResourcesCompClientListByServiceOptions
- type PrivateLinkResourcesCompClientListByServiceResponse
- type PrivateLinkResourcesForMIPPolicySyncClient
- func (client *PrivateLinkResourcesForMIPPolicySyncClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateLinkResourcesForMIPPolicySyncClientGetResponse, error)
- func (client *PrivateLinkResourcesForMIPPolicySyncClient) ListByService(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateLinkResourcesForMIPPolicySyncClientListByServiceResponse, error)
- type PrivateLinkResourcesForMIPPolicySyncClientGetOptions
- type PrivateLinkResourcesForMIPPolicySyncClientGetResponse
- type PrivateLinkResourcesForMIPPolicySyncClientListByServiceOptions
- type PrivateLinkResourcesForMIPPolicySyncClientListByServiceResponse
- type PrivateLinkResourcesForSCCPowershellClient
- func (client *PrivateLinkResourcesForSCCPowershellClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateLinkResourcesForSCCPowershellClientGetResponse, error)
- func (client *PrivateLinkResourcesForSCCPowershellClient) ListByService(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateLinkResourcesForSCCPowershellClientListByServiceResponse, error)
- type PrivateLinkResourcesForSCCPowershellClientGetOptions
- type PrivateLinkResourcesForSCCPowershellClientGetResponse
- type PrivateLinkResourcesForSCCPowershellClientListByServiceOptions
- type PrivateLinkResourcesForSCCPowershellClientListByServiceResponse
- type PrivateLinkResourcesSecClient
- func (client *PrivateLinkResourcesSecClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateLinkResourcesSecClientGetResponse, error)
- func (client *PrivateLinkResourcesSecClient) ListByService(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateLinkResourcesSecClientListByServiceResponse, error)
- type PrivateLinkResourcesSecClientGetOptions
- type PrivateLinkResourcesSecClientGetResponse
- type PrivateLinkResourcesSecClientListByServiceOptions
- type PrivateLinkResourcesSecClientListByServiceResponse
- type PrivateLinkServiceConnectionState
- type PrivateLinkServicesForEDMUploadClient
- func (client *PrivateLinkServicesForEDMUploadClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[PrivateLinkServicesForEDMUploadClientCreateOrUpdateResponse], ...)
- func (client *PrivateLinkServicesForEDMUploadClient) BeginUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[PrivateLinkServicesForEDMUploadClientUpdateResponse], error)
- func (client *PrivateLinkServicesForEDMUploadClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateLinkServicesForEDMUploadClientGetResponse, error)
- func (client *PrivateLinkServicesForEDMUploadClient) NewListByResourceGroupPager(resourceGroupName string, ...) ...
- func (client *PrivateLinkServicesForEDMUploadClient) NewListPager(options *PrivateLinkServicesForEDMUploadClientListOptions) *runtime.Pager[PrivateLinkServicesForEDMUploadClientListResponse]
- type PrivateLinkServicesForEDMUploadClientBeginCreateOrUpdateOptions
- type PrivateLinkServicesForEDMUploadClientBeginUpdateOptions
- type PrivateLinkServicesForEDMUploadClientCreateOrUpdateResponse
- type PrivateLinkServicesForEDMUploadClientGetOptions
- type PrivateLinkServicesForEDMUploadClientGetResponse
- type PrivateLinkServicesForEDMUploadClientListByResourceGroupOptions
- type PrivateLinkServicesForEDMUploadClientListByResourceGroupResponse
- type PrivateLinkServicesForEDMUploadClientListOptions
- type PrivateLinkServicesForEDMUploadClientListResponse
- type PrivateLinkServicesForEDMUploadClientUpdateResponse
- type PrivateLinkServicesForEDMUploadDescription
- type PrivateLinkServicesForEDMUploadDescriptionListResult
- type PrivateLinkServicesForM365ComplianceCenterClient
- func (client *PrivateLinkServicesForM365ComplianceCenterClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (...)
- func (client *PrivateLinkServicesForM365ComplianceCenterClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, ...) (...)
- func (client *PrivateLinkServicesForM365ComplianceCenterClient) BeginUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (...)
- func (client *PrivateLinkServicesForM365ComplianceCenterClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateLinkServicesForM365ComplianceCenterClientGetResponse, error)
- func (client *PrivateLinkServicesForM365ComplianceCenterClient) NewListByResourceGroupPager(resourceGroupName string, ...) ...
- func (client *PrivateLinkServicesForM365ComplianceCenterClient) NewListPager(options *PrivateLinkServicesForM365ComplianceCenterClientListOptions) *runtime.Pager[PrivateLinkServicesForM365ComplianceCenterClientListResponse]
- type PrivateLinkServicesForM365ComplianceCenterClientBeginCreateOrUpdateOptions
- type PrivateLinkServicesForM365ComplianceCenterClientBeginDeleteOptions
- type PrivateLinkServicesForM365ComplianceCenterClientBeginUpdateOptions
- type PrivateLinkServicesForM365ComplianceCenterClientCreateOrUpdateResponse
- type PrivateLinkServicesForM365ComplianceCenterClientDeleteResponse
- type PrivateLinkServicesForM365ComplianceCenterClientGetOptions
- type PrivateLinkServicesForM365ComplianceCenterClientGetResponse
- type PrivateLinkServicesForM365ComplianceCenterClientListByResourceGroupOptions
- type PrivateLinkServicesForM365ComplianceCenterClientListByResourceGroupResponse
- type PrivateLinkServicesForM365ComplianceCenterClientListOptions
- type PrivateLinkServicesForM365ComplianceCenterClientListResponse
- type PrivateLinkServicesForM365ComplianceCenterClientUpdateResponse
- type PrivateLinkServicesForM365ComplianceCenterDescription
- type PrivateLinkServicesForM365ComplianceCenterDescriptionListResult
- type PrivateLinkServicesForM365SecurityCenterClient
- func (client *PrivateLinkServicesForM365SecurityCenterClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (...)
- func (client *PrivateLinkServicesForM365SecurityCenterClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[PrivateLinkServicesForM365SecurityCenterClientDeleteResponse], ...)
- func (client *PrivateLinkServicesForM365SecurityCenterClient) BeginUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[PrivateLinkServicesForM365SecurityCenterClientUpdateResponse], ...)
- func (client *PrivateLinkServicesForM365SecurityCenterClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateLinkServicesForM365SecurityCenterClientGetResponse, error)
- func (client *PrivateLinkServicesForM365SecurityCenterClient) NewListByResourceGroupPager(resourceGroupName string, ...) ...
- func (client *PrivateLinkServicesForM365SecurityCenterClient) NewListPager(options *PrivateLinkServicesForM365SecurityCenterClientListOptions) *runtime.Pager[PrivateLinkServicesForM365SecurityCenterClientListResponse]
- type PrivateLinkServicesForM365SecurityCenterClientBeginCreateOrUpdateOptions
- type PrivateLinkServicesForM365SecurityCenterClientBeginDeleteOptions
- type PrivateLinkServicesForM365SecurityCenterClientBeginUpdateOptions
- type PrivateLinkServicesForM365SecurityCenterClientCreateOrUpdateResponse
- type PrivateLinkServicesForM365SecurityCenterClientDeleteResponse
- type PrivateLinkServicesForM365SecurityCenterClientGetOptions
- type PrivateLinkServicesForM365SecurityCenterClientGetResponse
- type PrivateLinkServicesForM365SecurityCenterClientListByResourceGroupOptions
- type PrivateLinkServicesForM365SecurityCenterClientListByResourceGroupResponse
- type PrivateLinkServicesForM365SecurityCenterClientListOptions
- type PrivateLinkServicesForM365SecurityCenterClientListResponse
- type PrivateLinkServicesForM365SecurityCenterClientUpdateResponse
- type PrivateLinkServicesForM365SecurityCenterDescription
- type PrivateLinkServicesForM365SecurityCenterDescriptionListResult
- type PrivateLinkServicesForMIPPolicySyncClient
- func (client *PrivateLinkServicesForMIPPolicySyncClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (...)
- func (client *PrivateLinkServicesForMIPPolicySyncClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[PrivateLinkServicesForMIPPolicySyncClientDeleteResponse], ...)
- func (client *PrivateLinkServicesForMIPPolicySyncClient) BeginUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[PrivateLinkServicesForMIPPolicySyncClientUpdateResponse], ...)
- func (client *PrivateLinkServicesForMIPPolicySyncClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateLinkServicesForMIPPolicySyncClientGetResponse, error)
- func (client *PrivateLinkServicesForMIPPolicySyncClient) NewListByResourceGroupPager(resourceGroupName string, ...) ...
- func (client *PrivateLinkServicesForMIPPolicySyncClient) NewListPager(options *PrivateLinkServicesForMIPPolicySyncClientListOptions) *runtime.Pager[PrivateLinkServicesForMIPPolicySyncClientListResponse]
- type PrivateLinkServicesForMIPPolicySyncClientBeginCreateOrUpdateOptions
- type PrivateLinkServicesForMIPPolicySyncClientBeginDeleteOptions
- type PrivateLinkServicesForMIPPolicySyncClientBeginUpdateOptions
- type PrivateLinkServicesForMIPPolicySyncClientCreateOrUpdateResponse
- type PrivateLinkServicesForMIPPolicySyncClientDeleteResponse
- type PrivateLinkServicesForMIPPolicySyncClientGetOptions
- type PrivateLinkServicesForMIPPolicySyncClientGetResponse
- type PrivateLinkServicesForMIPPolicySyncClientListByResourceGroupOptions
- type PrivateLinkServicesForMIPPolicySyncClientListByResourceGroupResponse
- type PrivateLinkServicesForMIPPolicySyncClientListOptions
- type PrivateLinkServicesForMIPPolicySyncClientListResponse
- type PrivateLinkServicesForMIPPolicySyncClientUpdateResponse
- type PrivateLinkServicesForMIPPolicySyncDescription
- type PrivateLinkServicesForMIPPolicySyncDescriptionListResult
- type PrivateLinkServicesForO365ManagementActivityAPIClient
- func (client *PrivateLinkServicesForO365ManagementActivityAPIClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (...)
- func (client *PrivateLinkServicesForO365ManagementActivityAPIClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, ...) (...)
- func (client *PrivateLinkServicesForO365ManagementActivityAPIClient) BeginUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (...)
- func (client *PrivateLinkServicesForO365ManagementActivityAPIClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateLinkServicesForO365ManagementActivityAPIClientGetResponse, error)
- func (client *PrivateLinkServicesForO365ManagementActivityAPIClient) NewListByResourceGroupPager(resourceGroupName string, ...) ...
- func (client *PrivateLinkServicesForO365ManagementActivityAPIClient) NewListPager(options *PrivateLinkServicesForO365ManagementActivityAPIClientListOptions) ...
- type PrivateLinkServicesForO365ManagementActivityAPIClientBeginCreateOrUpdateOptions
- type PrivateLinkServicesForO365ManagementActivityAPIClientBeginDeleteOptions
- type PrivateLinkServicesForO365ManagementActivityAPIClientBeginUpdateOptions
- type PrivateLinkServicesForO365ManagementActivityAPIClientCreateOrUpdateResponse
- type PrivateLinkServicesForO365ManagementActivityAPIClientDeleteResponse
- type PrivateLinkServicesForO365ManagementActivityAPIClientGetOptions
- type PrivateLinkServicesForO365ManagementActivityAPIClientGetResponse
- type PrivateLinkServicesForO365ManagementActivityAPIClientListByResourceGroupOptions
- type PrivateLinkServicesForO365ManagementActivityAPIClientListByResourceGroupResponse
- type PrivateLinkServicesForO365ManagementActivityAPIClientListOptions
- type PrivateLinkServicesForO365ManagementActivityAPIClientListResponse
- type PrivateLinkServicesForO365ManagementActivityAPIClientUpdateResponse
- type PrivateLinkServicesForO365ManagementActivityAPIDescription
- type PrivateLinkServicesForO365ManagementActivityAPIDescriptionListResult
- type PrivateLinkServicesForSCCPowershellClient
- func (client *PrivateLinkServicesForSCCPowershellClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (...)
- func (client *PrivateLinkServicesForSCCPowershellClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[PrivateLinkServicesForSCCPowershellClientDeleteResponse], ...)
- func (client *PrivateLinkServicesForSCCPowershellClient) BeginUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[PrivateLinkServicesForSCCPowershellClientUpdateResponse], ...)
- func (client *PrivateLinkServicesForSCCPowershellClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateLinkServicesForSCCPowershellClientGetResponse, error)
- func (client *PrivateLinkServicesForSCCPowershellClient) NewListByResourceGroupPager(resourceGroupName string, ...) ...
- func (client *PrivateLinkServicesForSCCPowershellClient) NewListPager(options *PrivateLinkServicesForSCCPowershellClientListOptions) *runtime.Pager[PrivateLinkServicesForSCCPowershellClientListResponse]
- type PrivateLinkServicesForSCCPowershellClientBeginCreateOrUpdateOptions
- type PrivateLinkServicesForSCCPowershellClientBeginDeleteOptions
- type PrivateLinkServicesForSCCPowershellClientBeginUpdateOptions
- type PrivateLinkServicesForSCCPowershellClientCreateOrUpdateResponse
- type PrivateLinkServicesForSCCPowershellClientDeleteResponse
- type PrivateLinkServicesForSCCPowershellClientGetOptions
- type PrivateLinkServicesForSCCPowershellClientGetResponse
- type PrivateLinkServicesForSCCPowershellClientListByResourceGroupOptions
- type PrivateLinkServicesForSCCPowershellClientListByResourceGroupResponse
- type PrivateLinkServicesForSCCPowershellClientListOptions
- type PrivateLinkServicesForSCCPowershellClientListResponse
- type PrivateLinkServicesForSCCPowershellClientUpdateResponse
- type PrivateLinkServicesForSCCPowershellDescription
- type PrivateLinkServicesForSCCPowershellDescriptionListResult
- type ProvisioningState
- type PublicNetworkAccess
- type Resource
- type ServiceAccessPolicyEntry
- type ServiceAuthenticationConfigurationInfo
- type ServiceCorsConfigurationInfo
- type ServiceCosmosDbConfigurationInfo
- type ServiceExportConfigurationInfo
- type ServicesClient
- type ServicesClientBeginDeleteOptions
- type ServicesClientDeleteResponse
- type ServicesPatchDescription
- type ServicesProperties
- type ServicesPropertiesUpdateParameters
- type ServicesResource
- type ServicesResourceIdentity
- type SystemData
Examples ¶
- OperationResultsClient.Get
- OperationsClient.NewListPager (ListComplianceCenterOperations)
- OperationsClient.NewListPager (ListEdmUploadOperations)
- OperationsClient.NewListPager (ListManagementApiOperations)
- OperationsClient.NewListPager (ListMipPolicySyncOperations)
- OperationsClient.NewListPager (ListOperations)
- OperationsClient.NewListPager (ListSccPowershellOperations)
- OperationsClient.NewListPager (ListSecurityCenterOperations)
- PrivateEndpointConnectionsAdtAPIClient.BeginCreateOrUpdate
- PrivateEndpointConnectionsAdtAPIClient.BeginDelete
- PrivateEndpointConnectionsAdtAPIClient.Get
- PrivateEndpointConnectionsAdtAPIClient.NewListByServicePager
- PrivateEndpointConnectionsCompClient.BeginCreateOrUpdate
- PrivateEndpointConnectionsCompClient.BeginDelete
- PrivateEndpointConnectionsCompClient.Get
- PrivateEndpointConnectionsCompClient.NewListByServicePager
- PrivateEndpointConnectionsForEDMClient.BeginCreateOrUpdate
- PrivateEndpointConnectionsForEDMClient.BeginDelete
- PrivateEndpointConnectionsForEDMClient.Get
- PrivateEndpointConnectionsForEDMClient.NewListByServicePager
- PrivateEndpointConnectionsForMIPPolicySyncClient.BeginCreateOrUpdate
- PrivateEndpointConnectionsForMIPPolicySyncClient.BeginDelete
- PrivateEndpointConnectionsForMIPPolicySyncClient.Get
- PrivateEndpointConnectionsForMIPPolicySyncClient.NewListByServicePager
- PrivateEndpointConnectionsForSCCPowershellClient.BeginCreateOrUpdate
- PrivateEndpointConnectionsForSCCPowershellClient.BeginDelete
- PrivateEndpointConnectionsForSCCPowershellClient.Get
- PrivateEndpointConnectionsForSCCPowershellClient.NewListByServicePager
- PrivateEndpointConnectionsSecClient.BeginCreateOrUpdate
- PrivateEndpointConnectionsSecClient.BeginDelete
- PrivateEndpointConnectionsSecClient.Get
- PrivateEndpointConnectionsSecClient.NewListByServicePager
- PrivateLinkResourcesAdtAPIClient.Get
- PrivateLinkResourcesAdtAPIClient.ListByService
- PrivateLinkResourcesClient.Get
- PrivateLinkResourcesClient.ListByService
- PrivateLinkResourcesCompClient.Get
- PrivateLinkResourcesCompClient.ListByService
- PrivateLinkResourcesForMIPPolicySyncClient.Get
- PrivateLinkResourcesForMIPPolicySyncClient.ListByService
- PrivateLinkResourcesForSCCPowershellClient.Get
- PrivateLinkResourcesForSCCPowershellClient.ListByService
- PrivateLinkResourcesSecClient.Get
- PrivateLinkResourcesSecClient.ListByService
- PrivateLinkServicesForEDMUploadClient.BeginCreateOrUpdate (CreateOrUpdateAServiceWithAllParameters)
- PrivateLinkServicesForEDMUploadClient.BeginCreateOrUpdate (CreateOrUpdateAServiceWithMinimumParameters)
- PrivateLinkServicesForEDMUploadClient.BeginUpdate
- PrivateLinkServicesForEDMUploadClient.Get
- PrivateLinkServicesForEDMUploadClient.NewListByResourceGroupPager
- PrivateLinkServicesForEDMUploadClient.NewListPager
- PrivateLinkServicesForM365ComplianceCenterClient.BeginCreateOrUpdate (CreateOrUpdateAServiceWithAllParameters)
- PrivateLinkServicesForM365ComplianceCenterClient.BeginCreateOrUpdate (CreateOrUpdateAServiceWithMinimumParameters)
- PrivateLinkServicesForM365ComplianceCenterClient.BeginDelete
- PrivateLinkServicesForM365ComplianceCenterClient.BeginUpdate
- PrivateLinkServicesForM365ComplianceCenterClient.Get
- PrivateLinkServicesForM365ComplianceCenterClient.NewListByResourceGroupPager
- PrivateLinkServicesForM365ComplianceCenterClient.NewListPager
- PrivateLinkServicesForM365SecurityCenterClient.BeginCreateOrUpdate (CreateOrUpdateAServiceWithAllParameters)
- PrivateLinkServicesForM365SecurityCenterClient.BeginCreateOrUpdate (CreateOrUpdateAServiceWithMinimumParameters)
- PrivateLinkServicesForM365SecurityCenterClient.BeginDelete
- PrivateLinkServicesForM365SecurityCenterClient.BeginUpdate
- PrivateLinkServicesForM365SecurityCenterClient.Get
- PrivateLinkServicesForM365SecurityCenterClient.NewListByResourceGroupPager
- PrivateLinkServicesForM365SecurityCenterClient.NewListPager
- PrivateLinkServicesForMIPPolicySyncClient.BeginCreateOrUpdate (CreateOrUpdateAServiceWithAllParameters)
- PrivateLinkServicesForMIPPolicySyncClient.BeginCreateOrUpdate (CreateOrUpdateAServiceWithMinimumParameters)
- PrivateLinkServicesForMIPPolicySyncClient.BeginDelete
- PrivateLinkServicesForMIPPolicySyncClient.BeginUpdate
- PrivateLinkServicesForMIPPolicySyncClient.Get
- PrivateLinkServicesForMIPPolicySyncClient.NewListByResourceGroupPager
- PrivateLinkServicesForMIPPolicySyncClient.NewListPager
- PrivateLinkServicesForO365ManagementActivityAPIClient.BeginCreateOrUpdate (CreateOrUpdateAServiceWithAllParameters)
- PrivateLinkServicesForO365ManagementActivityAPIClient.BeginCreateOrUpdate (CreateOrUpdateAServiceWithMinimumParameters)
- PrivateLinkServicesForO365ManagementActivityAPIClient.BeginDelete
- PrivateLinkServicesForO365ManagementActivityAPIClient.BeginUpdate
- PrivateLinkServicesForO365ManagementActivityAPIClient.Get
- PrivateLinkServicesForO365ManagementActivityAPIClient.NewListByResourceGroupPager
- PrivateLinkServicesForO365ManagementActivityAPIClient.NewListPager
- PrivateLinkServicesForSCCPowershellClient.BeginCreateOrUpdate (CreateOrUpdateAServiceWithAllParameters)
- PrivateLinkServicesForSCCPowershellClient.BeginCreateOrUpdate (CreateOrUpdateAServiceWithMinimumParameters)
- PrivateLinkServicesForSCCPowershellClient.BeginDelete
- PrivateLinkServicesForSCCPowershellClient.BeginUpdate
- PrivateLinkServicesForSCCPowershellClient.Get
- PrivateLinkServicesForSCCPowershellClient.NewListByResourceGroupPager
- PrivateLinkServicesForSCCPowershellClient.NewListPager
- ServicesClient.BeginDelete
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 subscription identifier.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewOperationResultsClient ¶
func (c *ClientFactory) NewOperationResultsClient() *OperationResultsClient
NewOperationResultsClient creates a new instance of OperationResultsClient.
func (*ClientFactory) NewOperationsClient ¶
func (c *ClientFactory) NewOperationsClient() *OperationsClient
NewOperationsClient creates a new instance of OperationsClient.
func (*ClientFactory) NewPrivateEndpointConnectionsAdtAPIClient ¶
func (c *ClientFactory) NewPrivateEndpointConnectionsAdtAPIClient() *PrivateEndpointConnectionsAdtAPIClient
NewPrivateEndpointConnectionsAdtAPIClient creates a new instance of PrivateEndpointConnectionsAdtAPIClient.
func (*ClientFactory) NewPrivateEndpointConnectionsCompClient ¶
func (c *ClientFactory) NewPrivateEndpointConnectionsCompClient() *PrivateEndpointConnectionsCompClient
NewPrivateEndpointConnectionsCompClient creates a new instance of PrivateEndpointConnectionsCompClient.
func (*ClientFactory) NewPrivateEndpointConnectionsForEDMClient ¶
func (c *ClientFactory) NewPrivateEndpointConnectionsForEDMClient() *PrivateEndpointConnectionsForEDMClient
NewPrivateEndpointConnectionsForEDMClient creates a new instance of PrivateEndpointConnectionsForEDMClient.
func (*ClientFactory) NewPrivateEndpointConnectionsForMIPPolicySyncClient ¶
func (c *ClientFactory) NewPrivateEndpointConnectionsForMIPPolicySyncClient() *PrivateEndpointConnectionsForMIPPolicySyncClient
NewPrivateEndpointConnectionsForMIPPolicySyncClient creates a new instance of PrivateEndpointConnectionsForMIPPolicySyncClient.
func (*ClientFactory) NewPrivateEndpointConnectionsForSCCPowershellClient ¶
func (c *ClientFactory) NewPrivateEndpointConnectionsForSCCPowershellClient() *PrivateEndpointConnectionsForSCCPowershellClient
NewPrivateEndpointConnectionsForSCCPowershellClient creates a new instance of PrivateEndpointConnectionsForSCCPowershellClient.
func (*ClientFactory) NewPrivateEndpointConnectionsSecClient ¶
func (c *ClientFactory) NewPrivateEndpointConnectionsSecClient() *PrivateEndpointConnectionsSecClient
NewPrivateEndpointConnectionsSecClient creates a new instance of PrivateEndpointConnectionsSecClient.
func (*ClientFactory) NewPrivateLinkResourcesAdtAPIClient ¶
func (c *ClientFactory) NewPrivateLinkResourcesAdtAPIClient() *PrivateLinkResourcesAdtAPIClient
NewPrivateLinkResourcesAdtAPIClient creates a new instance of PrivateLinkResourcesAdtAPIClient.
func (*ClientFactory) NewPrivateLinkResourcesClient ¶
func (c *ClientFactory) NewPrivateLinkResourcesClient() *PrivateLinkResourcesClient
NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient.
func (*ClientFactory) NewPrivateLinkResourcesCompClient ¶
func (c *ClientFactory) NewPrivateLinkResourcesCompClient() *PrivateLinkResourcesCompClient
NewPrivateLinkResourcesCompClient creates a new instance of PrivateLinkResourcesCompClient.
func (*ClientFactory) NewPrivateLinkResourcesForMIPPolicySyncClient ¶
func (c *ClientFactory) NewPrivateLinkResourcesForMIPPolicySyncClient() *PrivateLinkResourcesForMIPPolicySyncClient
NewPrivateLinkResourcesForMIPPolicySyncClient creates a new instance of PrivateLinkResourcesForMIPPolicySyncClient.
func (*ClientFactory) NewPrivateLinkResourcesForSCCPowershellClient ¶
func (c *ClientFactory) NewPrivateLinkResourcesForSCCPowershellClient() *PrivateLinkResourcesForSCCPowershellClient
NewPrivateLinkResourcesForSCCPowershellClient creates a new instance of PrivateLinkResourcesForSCCPowershellClient.
func (*ClientFactory) NewPrivateLinkResourcesSecClient ¶
func (c *ClientFactory) NewPrivateLinkResourcesSecClient() *PrivateLinkResourcesSecClient
NewPrivateLinkResourcesSecClient creates a new instance of PrivateLinkResourcesSecClient.
func (*ClientFactory) NewPrivateLinkServicesForEDMUploadClient ¶
func (c *ClientFactory) NewPrivateLinkServicesForEDMUploadClient() *PrivateLinkServicesForEDMUploadClient
NewPrivateLinkServicesForEDMUploadClient creates a new instance of PrivateLinkServicesForEDMUploadClient.
func (*ClientFactory) NewPrivateLinkServicesForM365ComplianceCenterClient ¶
func (c *ClientFactory) NewPrivateLinkServicesForM365ComplianceCenterClient() *PrivateLinkServicesForM365ComplianceCenterClient
NewPrivateLinkServicesForM365ComplianceCenterClient creates a new instance of PrivateLinkServicesForM365ComplianceCenterClient.
func (*ClientFactory) NewPrivateLinkServicesForM365SecurityCenterClient ¶
func (c *ClientFactory) NewPrivateLinkServicesForM365SecurityCenterClient() *PrivateLinkServicesForM365SecurityCenterClient
NewPrivateLinkServicesForM365SecurityCenterClient creates a new instance of PrivateLinkServicesForM365SecurityCenterClient.
func (*ClientFactory) NewPrivateLinkServicesForMIPPolicySyncClient ¶
func (c *ClientFactory) NewPrivateLinkServicesForMIPPolicySyncClient() *PrivateLinkServicesForMIPPolicySyncClient
NewPrivateLinkServicesForMIPPolicySyncClient creates a new instance of PrivateLinkServicesForMIPPolicySyncClient.
func (*ClientFactory) NewPrivateLinkServicesForO365ManagementActivityAPIClient ¶
func (c *ClientFactory) NewPrivateLinkServicesForO365ManagementActivityAPIClient() *PrivateLinkServicesForO365ManagementActivityAPIClient
NewPrivateLinkServicesForO365ManagementActivityAPIClient creates a new instance of PrivateLinkServicesForO365ManagementActivityAPIClient.
func (*ClientFactory) NewPrivateLinkServicesForSCCPowershellClient ¶
func (c *ClientFactory) NewPrivateLinkServicesForSCCPowershellClient() *PrivateLinkServicesForSCCPowershellClient
NewPrivateLinkServicesForSCCPowershellClient creates a new instance of PrivateLinkServicesForSCCPowershellClient.
func (*ClientFactory) NewServicesClient ¶
func (c *ClientFactory) NewServicesClient() *ServicesClient
NewServicesClient creates a new instance of ServicesClient.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The type of identity that created the resource.
const ( CreatedByTypeApplication CreatedByType = "Application" CreatedByTypeKey CreatedByType = "Key" CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type ErrorDetails ¶
type ErrorDetails struct { // Object containing error details. Error *ErrorDetailsInternal }
ErrorDetails - Error details.
func (ErrorDetails) MarshalJSON ¶
func (e ErrorDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorDetails.
func (*ErrorDetails) UnmarshalJSON ¶
func (e *ErrorDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDetails.
type ErrorDetailsInternal ¶
type ErrorDetailsInternal struct { // READ-ONLY; The error code. Code *string // READ-ONLY; The error message. Message *string // READ-ONLY; The target of the particular error. Target *string }
ErrorDetailsInternal - Error details.
func (ErrorDetailsInternal) MarshalJSON ¶
func (e ErrorDetailsInternal) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorDetailsInternal.
func (*ErrorDetailsInternal) UnmarshalJSON ¶
func (e *ErrorDetailsInternal) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDetailsInternal.
type Kind ¶
type Kind string
Kind - The kind of the service.
func PossibleKindValues ¶
func PossibleKindValues() []Kind
PossibleKindValues returns the possible values for the Kind const type.
type ManagedServiceIdentityType ¶
type ManagedServiceIdentityType string
ManagedServiceIdentityType - Type of identity being specified, currently SystemAssigned and None are allowed.
const ( ManagedServiceIdentityTypeNone ManagedServiceIdentityType = "None" ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = "SystemAssigned" )
func PossibleManagedServiceIdentityTypeValues ¶
func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType
PossibleManagedServiceIdentityTypeValues returns the possible values for the ManagedServiceIdentityType const type.
type Operation ¶
type Operation struct { // READ-ONLY; The information displayed about the operation. Display *OperationDisplay // READ-ONLY; Indicates whether the operation is a data action IsDataAction *bool // READ-ONLY; Operation name: {provider}/{resource}/{read | write | action | delete} Name *string // READ-ONLY; Default value is 'user,system'. Origin *string }
Operation - Service REST API operation.
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; Friendly description for the operation, Description *string // READ-ONLY; Name of the operation Operation *string // READ-ONLY; Service provider: Microsoft.M365SecurityAndCompliance Provider *string // READ-ONLY; Resource Type: Services Resource *string }
OperationDisplay - The object that represents the 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 { // READ-ONLY; The link used to get the next page of service description objects. NextLink *string // READ-ONLY; A list of service operations supported by the Microsoft.M365SecurityAndCompliance resource provider. Value []*Operation }
OperationListResult - A list of service operations. It contains a list of operations and a 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 OperationResultStatus ¶
type OperationResultStatus string
OperationResultStatus - The status of the operation being performed.
const ( OperationResultStatusCanceled OperationResultStatus = "Canceled" OperationResultStatusFailed OperationResultStatus = "Failed" OperationResultStatusRequested OperationResultStatus = "Requested" OperationResultStatusRunning OperationResultStatus = "Running" OperationResultStatusSucceeded OperationResultStatus = "Succeeded" )
func PossibleOperationResultStatusValues ¶
func PossibleOperationResultStatusValues() []OperationResultStatus
PossibleOperationResultStatusValues returns the possible values for the OperationResultStatus const type.
type OperationResultsClient ¶
type OperationResultsClient struct {
// contains filtered or unexported fields
}
OperationResultsClient contains the methods for the OperationResults group. Don't use this type directly, use NewOperationResultsClient() instead.
func NewOperationResultsClient ¶
func NewOperationResultsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationResultsClient, error)
NewOperationResultsClient creates a new instance of OperationResultsClient with the specified values.
- subscriptionID - The subscription identifier.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*OperationResultsClient) Get ¶
func (client *OperationResultsClient) Get(ctx context.Context, locationName string, operationResultID string, options *OperationResultsClientGetOptions) (OperationResultsClientGetResponse, error)
Get - Get the operation result for a long running operation. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- locationName - The location of the operation.
- operationResultID - The ID of the operation result to get.
- options - OperationResultsClientGetOptions contains the optional parameters for the OperationResultsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/OperationResultsGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewOperationResultsClient().Get(ctx, "westus", "exampleid", 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.OperationResultsDescription = armm365securityandcompliance.OperationResultsDescription{ // Name: to.Ptr("servicename"), // ID: to.Ptr("/subscriptions/subid/providers/Microsoft.M365SecurityAndCompliance/locations/westus/operationresults/exampleid"), // Properties: map[string]any{ // }, // StartTime: to.Ptr("2020-01-11T06:03:30.2716301Z"), // Status: to.Ptr(armm365securityandcompliance.OperationResultStatusRequested), // } }
Output:
type OperationResultsClientGetOptions ¶
type OperationResultsClientGetOptions struct { }
OperationResultsClientGetOptions contains the optional parameters for the OperationResultsClient.Get method.
type OperationResultsClientGetResponse ¶
type OperationResultsClientGetResponse struct { // The properties indicating the operation result of an operation on a service. OperationResultsDescription }
OperationResultsClientGetResponse contains the response from method OperationResultsClient.Get.
type OperationResultsDescription ¶
type OperationResultsDescription struct { // Additional properties of the operation result. Properties any // READ-ONLY; The ID of the operation returned. ID *string // READ-ONLY; The name of the operation result. Name *string // READ-ONLY; The time that the operation was started. StartTime *string // READ-ONLY; The status of the operation being performed. Status *OperationResultStatus }
OperationResultsDescription - The properties indicating the operation result of an operation on a service.
func (OperationResultsDescription) MarshalJSON ¶
func (o OperationResultsDescription) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationResultsDescription.
func (*OperationResultsDescription) UnmarshalJSON ¶
func (o *OperationResultsDescription) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationResultsDescription.
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 - pass nil to accept the default values.
func (*OperationsClient) NewListPager ¶
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - Lists all of the available M365SecurityAndCompliance REST API operations.
Generated from API version 2021-03-25-preview
- options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example (ListComplianceCenterOperations) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ComplianceCenterOperationsList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", 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.OperationListResult = armm365securityandcompliance.OperationListResult{ // Value: []*armm365securityandcompliance.Operation{ // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/read"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/write"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/delete"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/privateEndpointConnections/read"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/privateEndpointConnections/write"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/privateEndpointConnections/delete"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/privateLinkResources/read"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }}, // } } }
Output:
Example (ListEdmUploadOperations) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/EdmUploadOperationsList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", 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.OperationListResult = armm365securityandcompliance.OperationListResult{ // Value: []*armm365securityandcompliance.Operation{ // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/read"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/write"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/delete"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/privateEndpointConnections/read"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/privateEndpointConnections/write"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/privateEndpointConnections/delete"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/privateLinkResources/read"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }}, // } } }
Output:
Example (ListManagementApiOperations) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ManagementAPIOperationsList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", 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.OperationListResult = armm365securityandcompliance.OperationListResult{ // Value: []*armm365securityandcompliance.Operation{ // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/read"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/write"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/delete"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/privateEndpointConnections/read"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/privateEndpointConnections/write"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/privateEndpointConnections/delete"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/privateLinkResources/read"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }}, // } } }
Output:
Example (ListMipPolicySyncOperations) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/MIPPolicySyncOperationsList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", 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.OperationListResult = armm365securityandcompliance.OperationListResult{ // Value: []*armm365securityandcompliance.Operation{ // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/read"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/write"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/delete"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/privateEndpointConnections/read"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/privateEndpointConnections/write"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/privateEndpointConnections/delete"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/privateLinkResources/read"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }}, // } } }
Output:
Example (ListOperations) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/OperationsList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", 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.OperationListResult = armm365securityandcompliance.OperationListResult{ // Value: []*armm365securityandcompliance.Operation{ // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/locations/operationresults/read"), // Display: &armm365securityandcompliance.OperationDisplay{ // Description: to.Ptr("Get the status of an asynchronous operation"), // Operation: to.Ptr("read"), // Provider: to.Ptr("Microsoft.M365SecurityAndCompliance"), // Resource: to.Ptr("operationresults"), // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/Operations/read"), // Display: &armm365securityandcompliance.OperationDisplay{ // Description: to.Ptr("Get the list of operations supported by this Resource Provider."), // Operation: to.Ptr("read"), // Provider: to.Ptr("Microsoft.M365SecurityAndCompliance"), // Resource: to.Ptr("operations"), // }, // Origin: to.Ptr("user,system"), // }}, // } } }
Output:
Example (ListSccPowershellOperations) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SCCPowershellOperationsList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", 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.OperationListResult = armm365securityandcompliance.OperationListResult{ // Value: []*armm365securityandcompliance.Operation{ // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/read"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/write"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/delete"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/privateEndpointConnections/read"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/privateEndpointConnections/write"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/privateEndpointConnections/delete"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/privateLinkResources/read"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }}, // } } }
Output:
Example (ListSecurityCenterOperations) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SecurityCenterOperationsList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", 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.OperationListResult = armm365securityandcompliance.OperationListResult{ // Value: []*armm365securityandcompliance.Operation{ // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/read"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/write"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/delete"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/privateEndpointConnections/read"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/privateEndpointConnections/write"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/privateEndpointConnections/delete"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/privateLinkResources/read"), // Display: &armm365securityandcompliance.OperationDisplay{ // }, // Origin: to.Ptr("user,system"), // }}, // } } }
Output:
type OperationsClientListOptions ¶
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
type OperationsClientListResponse ¶
type OperationsClientListResponse struct { // A list of service operations. It contains a list of operations and a URL link to get the next set of results. OperationListResult }
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
type PrivateEndpoint ¶
type PrivateEndpoint struct { // READ-ONLY; The ARM identifier for Private Endpoint ID *string }
PrivateEndpoint - The Private Endpoint resource.
func (PrivateEndpoint) MarshalJSON ¶
func (p PrivateEndpoint) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpoint.
func (*PrivateEndpoint) UnmarshalJSON ¶
func (p *PrivateEndpoint) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpoint.
type PrivateEndpointConnection ¶
type PrivateEndpointConnection struct { // Resource properties. Properties *PrivateEndpointConnectionProperties // 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; Required property for system data SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
PrivateEndpointConnection - The Private Endpoint Connection resource.
func (PrivateEndpointConnection) MarshalJSON ¶
func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnection.
func (*PrivateEndpointConnection) UnmarshalJSON ¶
func (p *PrivateEndpointConnection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnection.
type PrivateEndpointConnectionListResult ¶
type PrivateEndpointConnectionListResult struct { // Array of private endpoint connections Value []*PrivateEndpointConnection // READ-ONLY; The URL to get the next set of results. NextLink *string }
PrivateEndpointConnectionListResult - List of private endpoint connection associated with the specified storage account
func (PrivateEndpointConnectionListResult) MarshalJSON ¶
func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult.
func (*PrivateEndpointConnectionListResult) UnmarshalJSON ¶
func (p *PrivateEndpointConnectionListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionListResult.
type PrivateEndpointConnectionProperties ¶
type PrivateEndpointConnectionProperties struct { // REQUIRED; A collection of information about the state of the connection between service consumer and provider. PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState // The resource of private end point. PrivateEndpoint *PrivateEndpoint // READ-ONLY; The provisioning state of the private endpoint connection resource. ProvisioningState *PrivateEndpointConnectionProvisioningState }
PrivateEndpointConnectionProperties - Properties of the PrivateEndpointConnectProperties.
func (PrivateEndpointConnectionProperties) MarshalJSON ¶
func (p PrivateEndpointConnectionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionProperties.
func (*PrivateEndpointConnectionProperties) UnmarshalJSON ¶
func (p *PrivateEndpointConnectionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionProperties.
type PrivateEndpointConnectionProvisioningState ¶
type PrivateEndpointConnectionProvisioningState string
PrivateEndpointConnectionProvisioningState - The current provisioning state.
const ( PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" )
func PossiblePrivateEndpointConnectionProvisioningStateValues ¶
func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState
PossiblePrivateEndpointConnectionProvisioningStateValues returns the possible values for the PrivateEndpointConnectionProvisioningState const type.
type PrivateEndpointConnectionsAdtAPIClient ¶
type PrivateEndpointConnectionsAdtAPIClient struct {
// contains filtered or unexported fields
}
PrivateEndpointConnectionsAdtAPIClient contains the methods for the PrivateEndpointConnectionsAdtAPI group. Don't use this type directly, use NewPrivateEndpointConnectionsAdtAPIClient() instead.
func NewPrivateEndpointConnectionsAdtAPIClient ¶
func NewPrivateEndpointConnectionsAdtAPIClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsAdtAPIClient, error)
NewPrivateEndpointConnectionsAdtAPIClient creates a new instance of PrivateEndpointConnectionsAdtAPIClient with the specified values.
- subscriptionID - The subscription identifier.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateEndpointConnectionsAdtAPIClient) BeginCreateOrUpdate ¶
func (client *PrivateEndpointConnectionsAdtAPIClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, properties PrivateEndpointConnection, options *PrivateEndpointConnectionsAdtAPIClientBeginCreateOrUpdateOptions) (*runtime.Poller[PrivateEndpointConnectionsAdtAPIClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Update the state of the specified private endpoint connection associated with the service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource
- properties - The private endpoint connection properties.
- options - PrivateEndpointConnectionsAdtAPIClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsAdtAPIClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ManagementAPIServiceCreatePrivateEndpointConnection.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateEndpointConnectionsAdtAPIClient().BeginCreateOrUpdate(ctx, "rgname", "service1", "myConnection", armm365securityandcompliance.PrivateEndpointConnection{ Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ Description: to.Ptr("Auto-Approved"), Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), }, }, }, 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.PrivateEndpointConnection = armm365securityandcompliance.PrivateEndpointConnection{ // Name: to.Ptr("myConnection"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/service1/privateEndpointConnections/myConnection"), // Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ // PrivateEndpoint: &armm365securityandcompliance.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/peexample01"), // }, // PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-Approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.PrivateEndpointConnectionProvisioningStateSucceeded), // }, // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // } }
Output:
func (*PrivateEndpointConnectionsAdtAPIClient) BeginDelete ¶
func (client *PrivateEndpointConnectionsAdtAPIClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsAdtAPIClientBeginDeleteOptions) (*runtime.Poller[PrivateEndpointConnectionsAdtAPIClientDeleteResponse], error)
BeginDelete - Deletes a private endpoint connection. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource
- options - PrivateEndpointConnectionsAdtAPIClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsAdtAPIClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ManagementAPIServiceDeletePrivateEndpointConnection.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateEndpointConnectionsAdtAPIClient().BeginDelete(ctx, "rgname", "service1", "myConnection", 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 (*PrivateEndpointConnectionsAdtAPIClient) Get ¶
func (client *PrivateEndpointConnectionsAdtAPIClient) Get(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsAdtAPIClientGetOptions) (PrivateEndpointConnectionsAdtAPIClientGetResponse, error)
Get - Gets the specified private endpoint connection associated with the service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource
- options - PrivateEndpointConnectionsAdtAPIClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsAdtAPIClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ManagementAPIServiceGetPrivateEndpointConnection.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateEndpointConnectionsAdtAPIClient().Get(ctx, "rgname", "service1", "myConnection", 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.PrivateEndpointConnection = armm365securityandcompliance.PrivateEndpointConnection{ // Name: to.Ptr("myConnection"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/service1/privateEndpointConnections/myConnection"), // Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ // PrivateEndpoint: &armm365securityandcompliance.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/peexample01"), // }, // PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-Approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), // }, // }, // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // } }
Output:
func (*PrivateEndpointConnectionsAdtAPIClient) NewListByServicePager ¶
func (client *PrivateEndpointConnectionsAdtAPIClient) NewListByServicePager(resourceGroupName string, resourceName string, options *PrivateEndpointConnectionsAdtAPIClientListByServiceOptions) *runtime.Pager[PrivateEndpointConnectionsAdtAPIClientListByServiceResponse]
NewListByServicePager - Lists all private endpoint connections for a service.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateEndpointConnectionsAdtAPIClientListByServiceOptions contains the optional parameters for the PrivateEndpointConnectionsAdtAPIClient.NewListByServicePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ManagementAPIServiceListPrivateEndpointConnections.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPrivateEndpointConnectionsAdtAPIClient().NewListByServicePager("rgname", "service1", 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.PrivateEndpointConnectionListResult = armm365securityandcompliance.PrivateEndpointConnectionListResult{ // Value: []*armm365securityandcompliance.PrivateEndpointConnection{ // { // Name: to.Ptr("myConnection"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/service1/privateEndpointConnections/myConnection"), // Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ // PrivateEndpoint: &armm365securityandcompliance.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/peexample01"), // }, // PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-Approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), // }, // }, // }}, // } } }
Output:
type PrivateEndpointConnectionsAdtAPIClientBeginCreateOrUpdateOptions ¶
type PrivateEndpointConnectionsAdtAPIClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateEndpointConnectionsAdtAPIClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsAdtAPIClient.BeginCreateOrUpdate method.
type PrivateEndpointConnectionsAdtAPIClientBeginDeleteOptions ¶
type PrivateEndpointConnectionsAdtAPIClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateEndpointConnectionsAdtAPIClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsAdtAPIClient.BeginDelete method.
type PrivateEndpointConnectionsAdtAPIClientCreateOrUpdateResponse ¶
type PrivateEndpointConnectionsAdtAPIClientCreateOrUpdateResponse struct { // The Private Endpoint Connection resource. PrivateEndpointConnection }
PrivateEndpointConnectionsAdtAPIClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionsAdtAPIClient.BeginCreateOrUpdate.
type PrivateEndpointConnectionsAdtAPIClientDeleteResponse ¶
type PrivateEndpointConnectionsAdtAPIClientDeleteResponse struct { }
PrivateEndpointConnectionsAdtAPIClientDeleteResponse contains the response from method PrivateEndpointConnectionsAdtAPIClient.BeginDelete.
type PrivateEndpointConnectionsAdtAPIClientGetOptions ¶
type PrivateEndpointConnectionsAdtAPIClientGetOptions struct { }
PrivateEndpointConnectionsAdtAPIClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsAdtAPIClient.Get method.
type PrivateEndpointConnectionsAdtAPIClientGetResponse ¶
type PrivateEndpointConnectionsAdtAPIClientGetResponse struct { // The Private Endpoint Connection resource. PrivateEndpointConnection }
PrivateEndpointConnectionsAdtAPIClientGetResponse contains the response from method PrivateEndpointConnectionsAdtAPIClient.Get.
type PrivateEndpointConnectionsAdtAPIClientListByServiceOptions ¶
type PrivateEndpointConnectionsAdtAPIClientListByServiceOptions struct { }
PrivateEndpointConnectionsAdtAPIClientListByServiceOptions contains the optional parameters for the PrivateEndpointConnectionsAdtAPIClient.NewListByServicePager method.
type PrivateEndpointConnectionsAdtAPIClientListByServiceResponse ¶
type PrivateEndpointConnectionsAdtAPIClientListByServiceResponse struct { // List of private endpoint connection associated with the specified storage account PrivateEndpointConnectionListResult }
PrivateEndpointConnectionsAdtAPIClientListByServiceResponse contains the response from method PrivateEndpointConnectionsAdtAPIClient.NewListByServicePager.
type PrivateEndpointConnectionsCompClient ¶
type PrivateEndpointConnectionsCompClient struct {
// contains filtered or unexported fields
}
PrivateEndpointConnectionsCompClient contains the methods for the PrivateEndpointConnectionsComp group. Don't use this type directly, use NewPrivateEndpointConnectionsCompClient() instead.
func NewPrivateEndpointConnectionsCompClient ¶
func NewPrivateEndpointConnectionsCompClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsCompClient, error)
NewPrivateEndpointConnectionsCompClient creates a new instance of PrivateEndpointConnectionsCompClient with the specified values.
- subscriptionID - The subscription identifier.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateEndpointConnectionsCompClient) BeginCreateOrUpdate ¶
func (client *PrivateEndpointConnectionsCompClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, properties PrivateEndpointConnection, options *PrivateEndpointConnectionsCompClientBeginCreateOrUpdateOptions) (*runtime.Poller[PrivateEndpointConnectionsCompClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Update the state of the specified private endpoint connection associated with the service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource
- properties - The private endpoint connection properties.
- options - PrivateEndpointConnectionsCompClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsCompClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ComplianceCenterServiceCreatePrivateEndpointConnection.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateEndpointConnectionsCompClient().BeginCreateOrUpdate(ctx, "rgname", "service1", "myConnection", armm365securityandcompliance.PrivateEndpointConnection{ Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ Description: to.Ptr("Auto-Approved"), Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), }, }, }, 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.PrivateEndpointConnection = armm365securityandcompliance.PrivateEndpointConnection{ // Name: to.Ptr("myConnection"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/service1/privateEndpointConnections/myConnection"), // Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ // PrivateEndpoint: &armm365securityandcompliance.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/peexample01"), // }, // PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-Approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.PrivateEndpointConnectionProvisioningStateSucceeded), // }, // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // } }
Output:
func (*PrivateEndpointConnectionsCompClient) BeginDelete ¶
func (client *PrivateEndpointConnectionsCompClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsCompClientBeginDeleteOptions) (*runtime.Poller[PrivateEndpointConnectionsCompClientDeleteResponse], error)
BeginDelete - Deletes a private endpoint connection. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource
- options - PrivateEndpointConnectionsCompClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsCompClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ComplianceCenterServiceDeletePrivateEndpointConnection.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateEndpointConnectionsCompClient().BeginDelete(ctx, "rgname", "service1", "myConnection", 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 (*PrivateEndpointConnectionsCompClient) Get ¶
func (client *PrivateEndpointConnectionsCompClient) Get(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsCompClientGetOptions) (PrivateEndpointConnectionsCompClientGetResponse, error)
Get - Gets the specified private endpoint connection associated with the service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource
- options - PrivateEndpointConnectionsCompClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsCompClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ComplianceCenterServiceGetPrivateEndpointConnection.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateEndpointConnectionsCompClient().Get(ctx, "rgname", "service1", "myConnection", 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.PrivateEndpointConnection = armm365securityandcompliance.PrivateEndpointConnection{ // Name: to.Ptr("myConnection"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/service1/privateEndpointConnections/myConnection"), // Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ // PrivateEndpoint: &armm365securityandcompliance.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/peexample01"), // }, // PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-Approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), // }, // }, // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // } }
Output:
func (*PrivateEndpointConnectionsCompClient) NewListByServicePager ¶
func (client *PrivateEndpointConnectionsCompClient) NewListByServicePager(resourceGroupName string, resourceName string, options *PrivateEndpointConnectionsCompClientListByServiceOptions) *runtime.Pager[PrivateEndpointConnectionsCompClientListByServiceResponse]
NewListByServicePager - Lists all private endpoint connections for a service.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateEndpointConnectionsCompClientListByServiceOptions contains the optional parameters for the PrivateEndpointConnectionsCompClient.NewListByServicePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ComplianceCenterServiceListPrivateEndpointConnections.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPrivateEndpointConnectionsCompClient().NewListByServicePager("rgname", "service1", 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.PrivateEndpointConnectionListResult = armm365securityandcompliance.PrivateEndpointConnectionListResult{ // Value: []*armm365securityandcompliance.PrivateEndpointConnection{ // { // Name: to.Ptr("myConnection"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/service1/privateEndpointConnections/myConnection"), // Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ // PrivateEndpoint: &armm365securityandcompliance.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/peexample01"), // }, // PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-Approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), // }, // }, // }}, // } } }
Output:
type PrivateEndpointConnectionsCompClientBeginCreateOrUpdateOptions ¶
type PrivateEndpointConnectionsCompClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateEndpointConnectionsCompClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsCompClient.BeginCreateOrUpdate method.
type PrivateEndpointConnectionsCompClientBeginDeleteOptions ¶
type PrivateEndpointConnectionsCompClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateEndpointConnectionsCompClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsCompClient.BeginDelete method.
type PrivateEndpointConnectionsCompClientCreateOrUpdateResponse ¶
type PrivateEndpointConnectionsCompClientCreateOrUpdateResponse struct { // The Private Endpoint Connection resource. PrivateEndpointConnection }
PrivateEndpointConnectionsCompClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionsCompClient.BeginCreateOrUpdate.
type PrivateEndpointConnectionsCompClientDeleteResponse ¶
type PrivateEndpointConnectionsCompClientDeleteResponse struct { }
PrivateEndpointConnectionsCompClientDeleteResponse contains the response from method PrivateEndpointConnectionsCompClient.BeginDelete.
type PrivateEndpointConnectionsCompClientGetOptions ¶
type PrivateEndpointConnectionsCompClientGetOptions struct { }
PrivateEndpointConnectionsCompClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsCompClient.Get method.
type PrivateEndpointConnectionsCompClientGetResponse ¶
type PrivateEndpointConnectionsCompClientGetResponse struct { // The Private Endpoint Connection resource. PrivateEndpointConnection }
PrivateEndpointConnectionsCompClientGetResponse contains the response from method PrivateEndpointConnectionsCompClient.Get.
type PrivateEndpointConnectionsCompClientListByServiceOptions ¶
type PrivateEndpointConnectionsCompClientListByServiceOptions struct { }
PrivateEndpointConnectionsCompClientListByServiceOptions contains the optional parameters for the PrivateEndpointConnectionsCompClient.NewListByServicePager method.
type PrivateEndpointConnectionsCompClientListByServiceResponse ¶
type PrivateEndpointConnectionsCompClientListByServiceResponse struct { // List of private endpoint connection associated with the specified storage account PrivateEndpointConnectionListResult }
PrivateEndpointConnectionsCompClientListByServiceResponse contains the response from method PrivateEndpointConnectionsCompClient.NewListByServicePager.
type PrivateEndpointConnectionsForEDMClient ¶
type PrivateEndpointConnectionsForEDMClient struct {
// contains filtered or unexported fields
}
PrivateEndpointConnectionsForEDMClient contains the methods for the PrivateEndpointConnectionsForEDM group. Don't use this type directly, use NewPrivateEndpointConnectionsForEDMClient() instead.
func NewPrivateEndpointConnectionsForEDMClient ¶
func NewPrivateEndpointConnectionsForEDMClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsForEDMClient, error)
NewPrivateEndpointConnectionsForEDMClient creates a new instance of PrivateEndpointConnectionsForEDMClient with the specified values.
- subscriptionID - The subscription identifier.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateEndpointConnectionsForEDMClient) BeginCreateOrUpdate ¶
func (client *PrivateEndpointConnectionsForEDMClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, properties PrivateEndpointConnection, options *PrivateEndpointConnectionsForEDMClientBeginCreateOrUpdateOptions) (*runtime.Poller[PrivateEndpointConnectionsForEDMClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Update the state of the specified private endpoint connection associated with the service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource
- properties - The private endpoint connection properties.
- options - PrivateEndpointConnectionsForEDMClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsForEDMClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/EdmUploadServiceCreatePrivateEndpointConnection.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateEndpointConnectionsForEDMClient().BeginCreateOrUpdate(ctx, "rgname", "service1", "myConnection", armm365securityandcompliance.PrivateEndpointConnection{ Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ Description: to.Ptr("Auto-Approved"), Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), }, }, }, 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.PrivateEndpointConnection = armm365securityandcompliance.PrivateEndpointConnection{ // Name: to.Ptr("myConnection"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/service1/privateEndpointConnections/myConnection"), // Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ // PrivateEndpoint: &armm365securityandcompliance.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/peexample01"), // }, // PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-Approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.PrivateEndpointConnectionProvisioningStateSucceeded), // }, // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // } }
Output:
func (*PrivateEndpointConnectionsForEDMClient) BeginDelete ¶
func (client *PrivateEndpointConnectionsForEDMClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsForEDMClientBeginDeleteOptions) (*runtime.Poller[PrivateEndpointConnectionsForEDMClientDeleteResponse], error)
BeginDelete - Deletes a private endpoint connection. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource
- options - PrivateEndpointConnectionsForEDMClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsForEDMClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/EdmUploadServiceDeletePrivateEndpointConnection.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateEndpointConnectionsForEDMClient().BeginDelete(ctx, "rgname", "service1", "myConnection", 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 (*PrivateEndpointConnectionsForEDMClient) Get ¶
func (client *PrivateEndpointConnectionsForEDMClient) Get(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsForEDMClientGetOptions) (PrivateEndpointConnectionsForEDMClientGetResponse, error)
Get - Gets the specified private endpoint connection associated with the service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource
- options - PrivateEndpointConnectionsForEDMClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsForEDMClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/EdmUploadServiceGetPrivateEndpointConnection.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateEndpointConnectionsForEDMClient().Get(ctx, "rgname", "service1", "myConnection", 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.PrivateEndpointConnection = armm365securityandcompliance.PrivateEndpointConnection{ // Name: to.Ptr("myConnection"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/service1/privateEndpointConnections/myConnection"), // Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ // PrivateEndpoint: &armm365securityandcompliance.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/peexample01"), // }, // PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-Approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), // }, // }, // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // } }
Output:
func (*PrivateEndpointConnectionsForEDMClient) NewListByServicePager ¶
func (client *PrivateEndpointConnectionsForEDMClient) NewListByServicePager(resourceGroupName string, resourceName string, options *PrivateEndpointConnectionsForEDMClientListByServiceOptions) *runtime.Pager[PrivateEndpointConnectionsForEDMClientListByServiceResponse]
NewListByServicePager - Lists all private endpoint connections for a service.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateEndpointConnectionsForEDMClientListByServiceOptions contains the optional parameters for the PrivateEndpointConnectionsForEDMClient.NewListByServicePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/EdmUploadServiceListPrivateEndpointConnections.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPrivateEndpointConnectionsForEDMClient().NewListByServicePager("rgname", "service1", 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.PrivateEndpointConnectionListResult = armm365securityandcompliance.PrivateEndpointConnectionListResult{ // Value: []*armm365securityandcompliance.PrivateEndpointConnection{ // { // Name: to.Ptr("myConnection"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/service1/privateEndpointConnections/myConnection"), // Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ // PrivateEndpoint: &armm365securityandcompliance.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/peexample01"), // }, // PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-Approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), // }, // }, // }}, // } } }
Output:
type PrivateEndpointConnectionsForEDMClientBeginCreateOrUpdateOptions ¶
type PrivateEndpointConnectionsForEDMClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateEndpointConnectionsForEDMClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsForEDMClient.BeginCreateOrUpdate method.
type PrivateEndpointConnectionsForEDMClientBeginDeleteOptions ¶
type PrivateEndpointConnectionsForEDMClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateEndpointConnectionsForEDMClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsForEDMClient.BeginDelete method.
type PrivateEndpointConnectionsForEDMClientCreateOrUpdateResponse ¶
type PrivateEndpointConnectionsForEDMClientCreateOrUpdateResponse struct { // The Private Endpoint Connection resource. PrivateEndpointConnection }
PrivateEndpointConnectionsForEDMClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionsForEDMClient.BeginCreateOrUpdate.
type PrivateEndpointConnectionsForEDMClientDeleteResponse ¶
type PrivateEndpointConnectionsForEDMClientDeleteResponse struct { }
PrivateEndpointConnectionsForEDMClientDeleteResponse contains the response from method PrivateEndpointConnectionsForEDMClient.BeginDelete.
type PrivateEndpointConnectionsForEDMClientGetOptions ¶
type PrivateEndpointConnectionsForEDMClientGetOptions struct { }
PrivateEndpointConnectionsForEDMClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsForEDMClient.Get method.
type PrivateEndpointConnectionsForEDMClientGetResponse ¶
type PrivateEndpointConnectionsForEDMClientGetResponse struct { // The Private Endpoint Connection resource. PrivateEndpointConnection }
PrivateEndpointConnectionsForEDMClientGetResponse contains the response from method PrivateEndpointConnectionsForEDMClient.Get.
type PrivateEndpointConnectionsForEDMClientListByServiceOptions ¶
type PrivateEndpointConnectionsForEDMClientListByServiceOptions struct { }
PrivateEndpointConnectionsForEDMClientListByServiceOptions contains the optional parameters for the PrivateEndpointConnectionsForEDMClient.NewListByServicePager method.
type PrivateEndpointConnectionsForEDMClientListByServiceResponse ¶
type PrivateEndpointConnectionsForEDMClientListByServiceResponse struct { // List of private endpoint connection associated with the specified storage account PrivateEndpointConnectionListResult }
PrivateEndpointConnectionsForEDMClientListByServiceResponse contains the response from method PrivateEndpointConnectionsForEDMClient.NewListByServicePager.
type PrivateEndpointConnectionsForMIPPolicySyncClient ¶
type PrivateEndpointConnectionsForMIPPolicySyncClient struct {
// contains filtered or unexported fields
}
PrivateEndpointConnectionsForMIPPolicySyncClient contains the methods for the PrivateEndpointConnectionsForMIPPolicySync group. Don't use this type directly, use NewPrivateEndpointConnectionsForMIPPolicySyncClient() instead.
func NewPrivateEndpointConnectionsForMIPPolicySyncClient ¶
func NewPrivateEndpointConnectionsForMIPPolicySyncClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsForMIPPolicySyncClient, error)
NewPrivateEndpointConnectionsForMIPPolicySyncClient creates a new instance of PrivateEndpointConnectionsForMIPPolicySyncClient with the specified values.
- subscriptionID - The subscription identifier.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateEndpointConnectionsForMIPPolicySyncClient) BeginCreateOrUpdate ¶
func (client *PrivateEndpointConnectionsForMIPPolicySyncClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, properties PrivateEndpointConnection, options *PrivateEndpointConnectionsForMIPPolicySyncClientBeginCreateOrUpdateOptions) (*runtime.Poller[PrivateEndpointConnectionsForMIPPolicySyncClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Update the state of the specified private endpoint connection associated with the service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource
- properties - The private endpoint connection properties.
- options - PrivateEndpointConnectionsForMIPPolicySyncClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsForMIPPolicySyncClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/MIPPolicySyncServiceCreatePrivateEndpointConnection.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateEndpointConnectionsForMIPPolicySyncClient().BeginCreateOrUpdate(ctx, "rgname", "service1", "myConnection", armm365securityandcompliance.PrivateEndpointConnection{ Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ Description: to.Ptr("Auto-Approved"), Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), }, }, }, 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.PrivateEndpointConnection = armm365securityandcompliance.PrivateEndpointConnection{ // Name: to.Ptr("myConnection"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/service1/privateEndpointConnections/myConnection"), // Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ // PrivateEndpoint: &armm365securityandcompliance.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/peexample01"), // }, // PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-Approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.PrivateEndpointConnectionProvisioningStateSucceeded), // }, // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("fangsu"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("fangsu"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // } }
Output:
func (*PrivateEndpointConnectionsForMIPPolicySyncClient) BeginDelete ¶
func (client *PrivateEndpointConnectionsForMIPPolicySyncClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsForMIPPolicySyncClientBeginDeleteOptions) (*runtime.Poller[PrivateEndpointConnectionsForMIPPolicySyncClientDeleteResponse], error)
BeginDelete - Deletes a private endpoint connection. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource
- options - PrivateEndpointConnectionsForMIPPolicySyncClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsForMIPPolicySyncClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/MIPPolicySyncServiceDeletePrivateEndpointConnection.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateEndpointConnectionsForMIPPolicySyncClient().BeginDelete(ctx, "rgname", "service1", "myConnection", 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 (*PrivateEndpointConnectionsForMIPPolicySyncClient) Get ¶
func (client *PrivateEndpointConnectionsForMIPPolicySyncClient) Get(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsForMIPPolicySyncClientGetOptions) (PrivateEndpointConnectionsForMIPPolicySyncClientGetResponse, error)
Get - Gets the specified private endpoint connection associated with the service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource
- options - PrivateEndpointConnectionsForMIPPolicySyncClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsForMIPPolicySyncClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/MIPPolicySyncServiceGetPrivateEndpointConnection.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateEndpointConnectionsForMIPPolicySyncClient().Get(ctx, "rgname", "service1", "myConnection", 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.PrivateEndpointConnection = armm365securityandcompliance.PrivateEndpointConnection{ // Name: to.Ptr("myConnection"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/service1/privateEndpointConnections/myConnection"), // Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ // PrivateEndpoint: &armm365securityandcompliance.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/peexample01"), // }, // PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-Approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), // }, // }, // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("fangsu"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("fangsu"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // } }
Output:
func (*PrivateEndpointConnectionsForMIPPolicySyncClient) NewListByServicePager ¶
func (client *PrivateEndpointConnectionsForMIPPolicySyncClient) NewListByServicePager(resourceGroupName string, resourceName string, options *PrivateEndpointConnectionsForMIPPolicySyncClientListByServiceOptions) *runtime.Pager[PrivateEndpointConnectionsForMIPPolicySyncClientListByServiceResponse]
NewListByServicePager - Lists all private endpoint connections for a service.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateEndpointConnectionsForMIPPolicySyncClientListByServiceOptions contains the optional parameters for the PrivateEndpointConnectionsForMIPPolicySyncClient.NewListByServicePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/MIPPolicySyncServiceListPrivateEndpointConnections.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPrivateEndpointConnectionsForMIPPolicySyncClient().NewListByServicePager("rgname", "service1", 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.PrivateEndpointConnectionListResult = armm365securityandcompliance.PrivateEndpointConnectionListResult{ // Value: []*armm365securityandcompliance.PrivateEndpointConnection{ // { // Name: to.Ptr("myConnection"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/service1/privateEndpointConnections/myConnection"), // Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ // PrivateEndpoint: &armm365securityandcompliance.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/peexample01"), // }, // PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-Approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), // }, // }, // }}, // } } }
Output:
type PrivateEndpointConnectionsForMIPPolicySyncClientBeginCreateOrUpdateOptions ¶
type PrivateEndpointConnectionsForMIPPolicySyncClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateEndpointConnectionsForMIPPolicySyncClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsForMIPPolicySyncClient.BeginCreateOrUpdate method.
type PrivateEndpointConnectionsForMIPPolicySyncClientBeginDeleteOptions ¶
type PrivateEndpointConnectionsForMIPPolicySyncClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateEndpointConnectionsForMIPPolicySyncClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsForMIPPolicySyncClient.BeginDelete method.
type PrivateEndpointConnectionsForMIPPolicySyncClientCreateOrUpdateResponse ¶
type PrivateEndpointConnectionsForMIPPolicySyncClientCreateOrUpdateResponse struct { // The Private Endpoint Connection resource. PrivateEndpointConnection }
PrivateEndpointConnectionsForMIPPolicySyncClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionsForMIPPolicySyncClient.BeginCreateOrUpdate.
type PrivateEndpointConnectionsForMIPPolicySyncClientDeleteResponse ¶
type PrivateEndpointConnectionsForMIPPolicySyncClientDeleteResponse struct { }
PrivateEndpointConnectionsForMIPPolicySyncClientDeleteResponse contains the response from method PrivateEndpointConnectionsForMIPPolicySyncClient.BeginDelete.
type PrivateEndpointConnectionsForMIPPolicySyncClientGetOptions ¶
type PrivateEndpointConnectionsForMIPPolicySyncClientGetOptions struct { }
PrivateEndpointConnectionsForMIPPolicySyncClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsForMIPPolicySyncClient.Get method.
type PrivateEndpointConnectionsForMIPPolicySyncClientGetResponse ¶
type PrivateEndpointConnectionsForMIPPolicySyncClientGetResponse struct { // The Private Endpoint Connection resource. PrivateEndpointConnection }
PrivateEndpointConnectionsForMIPPolicySyncClientGetResponse contains the response from method PrivateEndpointConnectionsForMIPPolicySyncClient.Get.
type PrivateEndpointConnectionsForMIPPolicySyncClientListByServiceOptions ¶
type PrivateEndpointConnectionsForMIPPolicySyncClientListByServiceOptions struct { }
PrivateEndpointConnectionsForMIPPolicySyncClientListByServiceOptions contains the optional parameters for the PrivateEndpointConnectionsForMIPPolicySyncClient.NewListByServicePager method.
type PrivateEndpointConnectionsForMIPPolicySyncClientListByServiceResponse ¶
type PrivateEndpointConnectionsForMIPPolicySyncClientListByServiceResponse struct { // List of private endpoint connection associated with the specified storage account PrivateEndpointConnectionListResult }
PrivateEndpointConnectionsForMIPPolicySyncClientListByServiceResponse contains the response from method PrivateEndpointConnectionsForMIPPolicySyncClient.NewListByServicePager.
type PrivateEndpointConnectionsForSCCPowershellClient ¶
type PrivateEndpointConnectionsForSCCPowershellClient struct {
// contains filtered or unexported fields
}
PrivateEndpointConnectionsForSCCPowershellClient contains the methods for the PrivateEndpointConnectionsForSCCPowershell group. Don't use this type directly, use NewPrivateEndpointConnectionsForSCCPowershellClient() instead.
func NewPrivateEndpointConnectionsForSCCPowershellClient ¶
func NewPrivateEndpointConnectionsForSCCPowershellClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsForSCCPowershellClient, error)
NewPrivateEndpointConnectionsForSCCPowershellClient creates a new instance of PrivateEndpointConnectionsForSCCPowershellClient with the specified values.
- subscriptionID - The subscription identifier.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateEndpointConnectionsForSCCPowershellClient) BeginCreateOrUpdate ¶
func (client *PrivateEndpointConnectionsForSCCPowershellClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, properties PrivateEndpointConnection, options *PrivateEndpointConnectionsForSCCPowershellClientBeginCreateOrUpdateOptions) (*runtime.Poller[PrivateEndpointConnectionsForSCCPowershellClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Update the state of the specified private endpoint connection associated with the service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource
- properties - The private endpoint connection properties.
- options - PrivateEndpointConnectionsForSCCPowershellClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsForSCCPowershellClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SCCPowershellServiceCreatePrivateEndpointConnection.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateEndpointConnectionsForSCCPowershellClient().BeginCreateOrUpdate(ctx, "rgname", "service1", "myConnection", armm365securityandcompliance.PrivateEndpointConnection{ Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ Description: to.Ptr("Auto-Approved"), Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), }, }, }, 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.PrivateEndpointConnection = armm365securityandcompliance.PrivateEndpointConnection{ // Name: to.Ptr("myConnection"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/service1/privateEndpointConnections/myConnection"), // Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ // PrivateEndpoint: &armm365securityandcompliance.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/peexample01"), // }, // PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-Approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.PrivateEndpointConnectionProvisioningStateSucceeded), // }, // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // } }
Output:
func (*PrivateEndpointConnectionsForSCCPowershellClient) BeginDelete ¶
func (client *PrivateEndpointConnectionsForSCCPowershellClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsForSCCPowershellClientBeginDeleteOptions) (*runtime.Poller[PrivateEndpointConnectionsForSCCPowershellClientDeleteResponse], error)
BeginDelete - Deletes a private endpoint connection. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource
- options - PrivateEndpointConnectionsForSCCPowershellClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsForSCCPowershellClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SCCPowershellServiceDeletePrivateEndpointConnection.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateEndpointConnectionsForSCCPowershellClient().BeginDelete(ctx, "rgname", "service1", "myConnection", 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 (*PrivateEndpointConnectionsForSCCPowershellClient) Get ¶
func (client *PrivateEndpointConnectionsForSCCPowershellClient) Get(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsForSCCPowershellClientGetOptions) (PrivateEndpointConnectionsForSCCPowershellClientGetResponse, error)
Get - Gets the specified private endpoint connection associated with the service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource
- options - PrivateEndpointConnectionsForSCCPowershellClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsForSCCPowershellClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SCCPowershellServiceGetPrivateEndpointConnection.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateEndpointConnectionsForSCCPowershellClient().Get(ctx, "rgname", "service1", "myConnection", 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.PrivateEndpointConnection = armm365securityandcompliance.PrivateEndpointConnection{ // Name: to.Ptr("myConnection"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/service1/privateEndpointConnections/myConnection"), // Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ // PrivateEndpoint: &armm365securityandcompliance.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/peexample01"), // }, // PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-Approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), // }, // }, // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // } }
Output:
func (*PrivateEndpointConnectionsForSCCPowershellClient) NewListByServicePager ¶
func (client *PrivateEndpointConnectionsForSCCPowershellClient) NewListByServicePager(resourceGroupName string, resourceName string, options *PrivateEndpointConnectionsForSCCPowershellClientListByServiceOptions) *runtime.Pager[PrivateEndpointConnectionsForSCCPowershellClientListByServiceResponse]
NewListByServicePager - Lists all private endpoint connections for a service.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateEndpointConnectionsForSCCPowershellClientListByServiceOptions contains the optional parameters for the PrivateEndpointConnectionsForSCCPowershellClient.NewListByServicePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SCCPowershellServiceListPrivateEndpointConnections.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPrivateEndpointConnectionsForSCCPowershellClient().NewListByServicePager("rgname", "service1", 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.PrivateEndpointConnectionListResult = armm365securityandcompliance.PrivateEndpointConnectionListResult{ // Value: []*armm365securityandcompliance.PrivateEndpointConnection{ // { // Name: to.Ptr("myConnection"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/service1/privateEndpointConnections/myConnection"), // Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ // PrivateEndpoint: &armm365securityandcompliance.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/peexample01"), // }, // PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-Approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), // }, // }, // }}, // } } }
Output:
type PrivateEndpointConnectionsForSCCPowershellClientBeginCreateOrUpdateOptions ¶
type PrivateEndpointConnectionsForSCCPowershellClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateEndpointConnectionsForSCCPowershellClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsForSCCPowershellClient.BeginCreateOrUpdate method.
type PrivateEndpointConnectionsForSCCPowershellClientBeginDeleteOptions ¶
type PrivateEndpointConnectionsForSCCPowershellClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateEndpointConnectionsForSCCPowershellClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsForSCCPowershellClient.BeginDelete method.
type PrivateEndpointConnectionsForSCCPowershellClientCreateOrUpdateResponse ¶
type PrivateEndpointConnectionsForSCCPowershellClientCreateOrUpdateResponse struct { // The Private Endpoint Connection resource. PrivateEndpointConnection }
PrivateEndpointConnectionsForSCCPowershellClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionsForSCCPowershellClient.BeginCreateOrUpdate.
type PrivateEndpointConnectionsForSCCPowershellClientDeleteResponse ¶
type PrivateEndpointConnectionsForSCCPowershellClientDeleteResponse struct { }
PrivateEndpointConnectionsForSCCPowershellClientDeleteResponse contains the response from method PrivateEndpointConnectionsForSCCPowershellClient.BeginDelete.
type PrivateEndpointConnectionsForSCCPowershellClientGetOptions ¶
type PrivateEndpointConnectionsForSCCPowershellClientGetOptions struct { }
PrivateEndpointConnectionsForSCCPowershellClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsForSCCPowershellClient.Get method.
type PrivateEndpointConnectionsForSCCPowershellClientGetResponse ¶
type PrivateEndpointConnectionsForSCCPowershellClientGetResponse struct { // The Private Endpoint Connection resource. PrivateEndpointConnection }
PrivateEndpointConnectionsForSCCPowershellClientGetResponse contains the response from method PrivateEndpointConnectionsForSCCPowershellClient.Get.
type PrivateEndpointConnectionsForSCCPowershellClientListByServiceOptions ¶
type PrivateEndpointConnectionsForSCCPowershellClientListByServiceOptions struct { }
PrivateEndpointConnectionsForSCCPowershellClientListByServiceOptions contains the optional parameters for the PrivateEndpointConnectionsForSCCPowershellClient.NewListByServicePager method.
type PrivateEndpointConnectionsForSCCPowershellClientListByServiceResponse ¶
type PrivateEndpointConnectionsForSCCPowershellClientListByServiceResponse struct { // List of private endpoint connection associated with the specified storage account PrivateEndpointConnectionListResult }
PrivateEndpointConnectionsForSCCPowershellClientListByServiceResponse contains the response from method PrivateEndpointConnectionsForSCCPowershellClient.NewListByServicePager.
type PrivateEndpointConnectionsSecClient ¶
type PrivateEndpointConnectionsSecClient struct {
// contains filtered or unexported fields
}
PrivateEndpointConnectionsSecClient contains the methods for the PrivateEndpointConnectionsSec group. Don't use this type directly, use NewPrivateEndpointConnectionsSecClient() instead.
func NewPrivateEndpointConnectionsSecClient ¶
func NewPrivateEndpointConnectionsSecClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsSecClient, error)
NewPrivateEndpointConnectionsSecClient creates a new instance of PrivateEndpointConnectionsSecClient with the specified values.
- subscriptionID - The subscription identifier.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateEndpointConnectionsSecClient) BeginCreateOrUpdate ¶
func (client *PrivateEndpointConnectionsSecClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, properties PrivateEndpointConnection, options *PrivateEndpointConnectionsSecClientBeginCreateOrUpdateOptions) (*runtime.Poller[PrivateEndpointConnectionsSecClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Update the state of the specified private endpoint connection associated with the service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource
- properties - The private endpoint connection properties.
- options - PrivateEndpointConnectionsSecClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsSecClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SecurityCenterServiceCreatePrivateEndpointConnection.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateEndpointConnectionsSecClient().BeginCreateOrUpdate(ctx, "rgname", "service1", "myConnection", armm365securityandcompliance.PrivateEndpointConnection{ Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ Description: to.Ptr("Auto-Approved"), Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), }, }, }, 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.PrivateEndpointConnection = armm365securityandcompliance.PrivateEndpointConnection{ // Name: to.Ptr("myConnection"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/service1/privateEndpointConnections/myConnection"), // Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ // PrivateEndpoint: &armm365securityandcompliance.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/peexample01"), // }, // PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-Approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.PrivateEndpointConnectionProvisioningStateSucceeded), // }, // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // } }
Output:
func (*PrivateEndpointConnectionsSecClient) BeginDelete ¶
func (client *PrivateEndpointConnectionsSecClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsSecClientBeginDeleteOptions) (*runtime.Poller[PrivateEndpointConnectionsSecClientDeleteResponse], error)
BeginDelete - Deletes a private endpoint connection. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource
- options - PrivateEndpointConnectionsSecClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsSecClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SecurityCenterServiceDeletePrivateEndpointConnection.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateEndpointConnectionsSecClient().BeginDelete(ctx, "rgname", "service1", "myConnection", 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 (*PrivateEndpointConnectionsSecClient) Get ¶
func (client *PrivateEndpointConnectionsSecClient) Get(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsSecClientGetOptions) (PrivateEndpointConnectionsSecClientGetResponse, error)
Get - Gets the specified private endpoint connection associated with the service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource
- options - PrivateEndpointConnectionsSecClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsSecClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SecurityCenterServiceGetPrivateEndpointConnection.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateEndpointConnectionsSecClient().Get(ctx, "rgname", "service1", "myConnection", 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.PrivateEndpointConnection = armm365securityandcompliance.PrivateEndpointConnection{ // Name: to.Ptr("myConnection"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/service1/privateEndpointConnections/myConnection"), // Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ // PrivateEndpoint: &armm365securityandcompliance.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/peexample01"), // }, // PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-Approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), // }, // }, // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // } }
Output:
func (*PrivateEndpointConnectionsSecClient) NewListByServicePager ¶
func (client *PrivateEndpointConnectionsSecClient) NewListByServicePager(resourceGroupName string, resourceName string, options *PrivateEndpointConnectionsSecClientListByServiceOptions) *runtime.Pager[PrivateEndpointConnectionsSecClientListByServiceResponse]
NewListByServicePager - Lists all private endpoint connections for a service.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateEndpointConnectionsSecClientListByServiceOptions contains the optional parameters for the PrivateEndpointConnectionsSecClient.NewListByServicePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SecurityCenterServiceListPrivateEndpointConnections.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPrivateEndpointConnectionsSecClient().NewListByServicePager("rgname", "service1", 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.PrivateEndpointConnectionListResult = armm365securityandcompliance.PrivateEndpointConnectionListResult{ // Value: []*armm365securityandcompliance.PrivateEndpointConnection{ // { // Name: to.Ptr("myConnection"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/privateEndpointConnections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/service1/privateEndpointConnections/myConnection"), // Properties: &armm365securityandcompliance.PrivateEndpointConnectionProperties{ // PrivateEndpoint: &armm365securityandcompliance.PrivateEndpoint{ // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/peexample01"), // }, // PrivateLinkServiceConnectionState: &armm365securityandcompliance.PrivateLinkServiceConnectionState{ // Description: to.Ptr("Auto-Approved"), // ActionsRequired: to.Ptr("None"), // Status: to.Ptr(armm365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved), // }, // }, // }}, // } } }
Output:
type PrivateEndpointConnectionsSecClientBeginCreateOrUpdateOptions ¶
type PrivateEndpointConnectionsSecClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateEndpointConnectionsSecClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsSecClient.BeginCreateOrUpdate method.
type PrivateEndpointConnectionsSecClientBeginDeleteOptions ¶
type PrivateEndpointConnectionsSecClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateEndpointConnectionsSecClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsSecClient.BeginDelete method.
type PrivateEndpointConnectionsSecClientCreateOrUpdateResponse ¶
type PrivateEndpointConnectionsSecClientCreateOrUpdateResponse struct { // The Private Endpoint Connection resource. PrivateEndpointConnection }
PrivateEndpointConnectionsSecClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionsSecClient.BeginCreateOrUpdate.
type PrivateEndpointConnectionsSecClientDeleteResponse ¶
type PrivateEndpointConnectionsSecClientDeleteResponse struct { }
PrivateEndpointConnectionsSecClientDeleteResponse contains the response from method PrivateEndpointConnectionsSecClient.BeginDelete.
type PrivateEndpointConnectionsSecClientGetOptions ¶
type PrivateEndpointConnectionsSecClientGetOptions struct { }
PrivateEndpointConnectionsSecClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsSecClient.Get method.
type PrivateEndpointConnectionsSecClientGetResponse ¶
type PrivateEndpointConnectionsSecClientGetResponse struct { // The Private Endpoint Connection resource. PrivateEndpointConnection }
PrivateEndpointConnectionsSecClientGetResponse contains the response from method PrivateEndpointConnectionsSecClient.Get.
type PrivateEndpointConnectionsSecClientListByServiceOptions ¶
type PrivateEndpointConnectionsSecClientListByServiceOptions struct { }
PrivateEndpointConnectionsSecClientListByServiceOptions contains the optional parameters for the PrivateEndpointConnectionsSecClient.NewListByServicePager method.
type PrivateEndpointConnectionsSecClientListByServiceResponse ¶
type PrivateEndpointConnectionsSecClientListByServiceResponse struct { // List of private endpoint connection associated with the specified storage account PrivateEndpointConnectionListResult }
PrivateEndpointConnectionsSecClientListByServiceResponse contains the response from method PrivateEndpointConnectionsSecClient.NewListByServicePager.
type PrivateEndpointServiceConnectionStatus ¶
type PrivateEndpointServiceConnectionStatus string
PrivateEndpointServiceConnectionStatus - The private endpoint connection status.
const ( PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved" PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending" PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected" )
func PossiblePrivateEndpointServiceConnectionStatusValues ¶
func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus
PossiblePrivateEndpointServiceConnectionStatusValues returns the possible values for the PrivateEndpointServiceConnectionStatus const type.
type PrivateLinkResource ¶
type PrivateLinkResource struct { // Resource properties. Properties *PrivateLinkResourceProperties // 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; Required property for system data SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
PrivateLinkResource - A private link resource
func (PrivateLinkResource) MarshalJSON ¶
func (p PrivateLinkResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource.
func (*PrivateLinkResource) UnmarshalJSON ¶
func (p *PrivateLinkResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResource.
type PrivateLinkResourceListResult ¶
type PrivateLinkResourceListResult struct { // Array of private link resources Value []*PrivateLinkResource // READ-ONLY; The URL to get the next set of results. NextLink *string }
PrivateLinkResourceListResult - A list of private link resources
func (PrivateLinkResourceListResult) MarshalJSON ¶
func (p PrivateLinkResourceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceListResult.
func (*PrivateLinkResourceListResult) UnmarshalJSON ¶
func (p *PrivateLinkResourceListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceListResult.
type PrivateLinkResourceProperties ¶
type PrivateLinkResourceProperties struct { // The private link resource Private link DNS zone name. RequiredZoneNames []*string // READ-ONLY; The private link resource group id. GroupID *string // READ-ONLY; The private link resource required member names. RequiredMembers []*string }
PrivateLinkResourceProperties - Properties of a private link resource.
func (PrivateLinkResourceProperties) MarshalJSON ¶
func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties.
func (*PrivateLinkResourceProperties) UnmarshalJSON ¶
func (p *PrivateLinkResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceProperties.
type PrivateLinkResourcesAdtAPIClient ¶
type PrivateLinkResourcesAdtAPIClient struct {
// contains filtered or unexported fields
}
PrivateLinkResourcesAdtAPIClient contains the methods for the PrivateLinkResourcesAdtAPI group. Don't use this type directly, use NewPrivateLinkResourcesAdtAPIClient() instead.
func NewPrivateLinkResourcesAdtAPIClient ¶
func NewPrivateLinkResourcesAdtAPIClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesAdtAPIClient, error)
NewPrivateLinkResourcesAdtAPIClient creates a new instance of PrivateLinkResourcesAdtAPIClient with the specified values.
- subscriptionID - The subscription identifier.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateLinkResourcesAdtAPIClient) Get ¶
func (client *PrivateLinkResourcesAdtAPIClient) Get(ctx context.Context, resourceGroupName string, resourceName string, groupName string, options *PrivateLinkResourcesAdtAPIClientGetOptions) (PrivateLinkResourcesAdtAPIClientGetResponse, error)
Get - Gets a private link resource that need to be created for a service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- groupName - The name of the private link resource group.
- options - PrivateLinkResourcesAdtAPIClientGetOptions contains the optional parameters for the PrivateLinkResourcesAdtAPIClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ManagementAPIPrivateLinkResourceGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateLinkResourcesAdtAPIClient().Get(ctx, "rgname", "service1", "fhir", 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.PrivateLinkResource = armm365securityandcompliance.PrivateLinkResource{ // Name: to.Ptr("fhir"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/privateLinkResources"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/service1/privateLinkResources/fhir"), // Properties: &armm365securityandcompliance.PrivateLinkResourceProperties{ // GroupID: to.Ptr("fhir"), // RequiredMembers: []*string{ // to.Ptr("fhir")}, // RequiredZoneNames: []*string{ // to.Ptr("privatelink.security.microsoft.com")}, // }, // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // } }
Output:
func (*PrivateLinkResourcesAdtAPIClient) ListByService ¶
func (client *PrivateLinkResourcesAdtAPIClient) ListByService(ctx context.Context, resourceGroupName string, resourceName string, options *PrivateLinkResourcesAdtAPIClientListByServiceOptions) (PrivateLinkResourcesAdtAPIClientListByServiceResponse, error)
ListByService - Gets the private link resources that need to be created for a service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateLinkResourcesAdtAPIClientListByServiceOptions contains the optional parameters for the PrivateLinkResourcesAdtAPIClient.ListByService method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ManagementAPIPrivateLinkResourcesListByService.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateLinkResourcesAdtAPIClient().ListByService(ctx, "rgname", "service1", 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.PrivateLinkResourceListResult = armm365securityandcompliance.PrivateLinkResourceListResult{ // Value: []*armm365securityandcompliance.PrivateLinkResource{ // { // Name: to.Ptr("fhir"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/privateLinkResources"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/service1/privateLinkResources/fhir"), // Properties: &armm365securityandcompliance.PrivateLinkResourceProperties{ // GroupID: to.Ptr("fhir"), // RequiredMembers: []*string{ // to.Ptr("fhir")}, // RequiredZoneNames: []*string{ // to.Ptr("privatelink.compliance.microsoft.com")}, // }, // }}, // } }
Output:
type PrivateLinkResourcesAdtAPIClientGetOptions ¶
type PrivateLinkResourcesAdtAPIClientGetOptions struct { }
PrivateLinkResourcesAdtAPIClientGetOptions contains the optional parameters for the PrivateLinkResourcesAdtAPIClient.Get method.
type PrivateLinkResourcesAdtAPIClientGetResponse ¶
type PrivateLinkResourcesAdtAPIClientGetResponse struct { // A private link resource PrivateLinkResource }
PrivateLinkResourcesAdtAPIClientGetResponse contains the response from method PrivateLinkResourcesAdtAPIClient.Get.
type PrivateLinkResourcesAdtAPIClientListByServiceOptions ¶
type PrivateLinkResourcesAdtAPIClientListByServiceOptions struct { }
PrivateLinkResourcesAdtAPIClientListByServiceOptions contains the optional parameters for the PrivateLinkResourcesAdtAPIClient.ListByService method.
type PrivateLinkResourcesAdtAPIClientListByServiceResponse ¶
type PrivateLinkResourcesAdtAPIClientListByServiceResponse struct { // A list of private link resources PrivateLinkResourceListResult }
PrivateLinkResourcesAdtAPIClientListByServiceResponse contains the response from method PrivateLinkResourcesAdtAPIClient.ListByService.
type PrivateLinkResourcesClient ¶
type PrivateLinkResourcesClient struct {
// contains filtered or unexported fields
}
PrivateLinkResourcesClient contains the methods for the PrivateLinkResources group. Don't use this type directly, use NewPrivateLinkResourcesClient() instead.
func NewPrivateLinkResourcesClient ¶
func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesClient, error)
NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient with the specified values.
- subscriptionID - The subscription identifier.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateLinkResourcesClient) Get ¶
func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, resourceName string, groupName string, options *PrivateLinkResourcesClientGetOptions) (PrivateLinkResourcesClientGetResponse, error)
Get - Gets a private link resource that need to be created for a service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- groupName - The name of the private link resource group.
- options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/EdmUploadPrivateLinkResourceGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateLinkResourcesClient().Get(ctx, "rgname", "service1", "fhir", 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.PrivateLinkResource = armm365securityandcompliance.PrivateLinkResource{ // Name: to.Ptr("fhir"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/privateLinkResources"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/service1/privateLinkResources/fhir"), // Properties: &armm365securityandcompliance.PrivateLinkResourceProperties{ // GroupID: to.Ptr("fhir"), // RequiredMembers: []*string{ // to.Ptr("fhir")}, // RequiredZoneNames: []*string{ // to.Ptr("privatelink.security.microsoft.com")}, // }, // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // } }
Output:
func (*PrivateLinkResourcesClient) ListByService ¶
func (client *PrivateLinkResourcesClient) ListByService(ctx context.Context, resourceGroupName string, resourceName string, options *PrivateLinkResourcesClientListByServiceOptions) (PrivateLinkResourcesClientListByServiceResponse, error)
ListByService - Gets the private link resources that need to be created for a service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateLinkResourcesClientListByServiceOptions contains the optional parameters for the PrivateLinkResourcesClient.ListByService method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/EdmUploadPrivateLinkResourcesListByService.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateLinkResourcesClient().ListByService(ctx, "rgname", "service1", 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.PrivateLinkResourceListResult = armm365securityandcompliance.PrivateLinkResourceListResult{ // Value: []*armm365securityandcompliance.PrivateLinkResource{ // { // Name: to.Ptr("fhir"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/privateLinkResources"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/service1/privateLinkResources/fhir"), // Properties: &armm365securityandcompliance.PrivateLinkResourceProperties{ // GroupID: to.Ptr("fhir"), // RequiredMembers: []*string{ // to.Ptr("fhir")}, // RequiredZoneNames: []*string{ // to.Ptr("privatelink.compliance.microsoft.com")}, // }, // }}, // } }
Output:
type PrivateLinkResourcesClientGetOptions ¶
type PrivateLinkResourcesClientGetOptions struct { }
PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method.
type PrivateLinkResourcesClientGetResponse ¶
type PrivateLinkResourcesClientGetResponse struct { // A private link resource PrivateLinkResource }
PrivateLinkResourcesClientGetResponse contains the response from method PrivateLinkResourcesClient.Get.
type PrivateLinkResourcesClientListByServiceOptions ¶
type PrivateLinkResourcesClientListByServiceOptions struct { }
PrivateLinkResourcesClientListByServiceOptions contains the optional parameters for the PrivateLinkResourcesClient.ListByService method.
type PrivateLinkResourcesClientListByServiceResponse ¶
type PrivateLinkResourcesClientListByServiceResponse struct { // A list of private link resources PrivateLinkResourceListResult }
PrivateLinkResourcesClientListByServiceResponse contains the response from method PrivateLinkResourcesClient.ListByService.
type PrivateLinkResourcesCompClient ¶
type PrivateLinkResourcesCompClient struct {
// contains filtered or unexported fields
}
PrivateLinkResourcesCompClient contains the methods for the PrivateLinkResourcesComp group. Don't use this type directly, use NewPrivateLinkResourcesCompClient() instead.
func NewPrivateLinkResourcesCompClient ¶
func NewPrivateLinkResourcesCompClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesCompClient, error)
NewPrivateLinkResourcesCompClient creates a new instance of PrivateLinkResourcesCompClient with the specified values.
- subscriptionID - The subscription identifier.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateLinkResourcesCompClient) Get ¶
func (client *PrivateLinkResourcesCompClient) Get(ctx context.Context, resourceGroupName string, resourceName string, groupName string, options *PrivateLinkResourcesCompClientGetOptions) (PrivateLinkResourcesCompClientGetResponse, error)
Get - Gets a private link resource that need to be created for a service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- groupName - The name of the private link resource group.
- options - PrivateLinkResourcesCompClientGetOptions contains the optional parameters for the PrivateLinkResourcesCompClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ComplianceCenterPrivateLinkResourceGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateLinkResourcesCompClient().Get(ctx, "rgname", "service1", "fhir", 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.PrivateLinkResource = armm365securityandcompliance.PrivateLinkResource{ // Name: to.Ptr("fhir"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/privateLinkResources"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/service1/privateLinkResources/fhir"), // Properties: &armm365securityandcompliance.PrivateLinkResourceProperties{ // GroupID: to.Ptr("fhir"), // RequiredMembers: []*string{ // to.Ptr("fhir")}, // RequiredZoneNames: []*string{ // to.Ptr("privatelink.security.microsoft.com")}, // }, // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // } }
Output:
func (*PrivateLinkResourcesCompClient) ListByService ¶
func (client *PrivateLinkResourcesCompClient) ListByService(ctx context.Context, resourceGroupName string, resourceName string, options *PrivateLinkResourcesCompClientListByServiceOptions) (PrivateLinkResourcesCompClientListByServiceResponse, error)
ListByService - Gets the private link resources that need to be created for a service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateLinkResourcesCompClientListByServiceOptions contains the optional parameters for the PrivateLinkResourcesCompClient.ListByService method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ComplianceCenterPrivateLinkResourcesListByService.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateLinkResourcesCompClient().ListByService(ctx, "rgname", "service1", 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.PrivateLinkResourceListResult = armm365securityandcompliance.PrivateLinkResourceListResult{ // Value: []*armm365securityandcompliance.PrivateLinkResource{ // { // Name: to.Ptr("fhir"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/privateLinkResources"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/service1/privateLinkResources/fhir"), // Properties: &armm365securityandcompliance.PrivateLinkResourceProperties{ // GroupID: to.Ptr("fhir"), // RequiredMembers: []*string{ // to.Ptr("fhir")}, // RequiredZoneNames: []*string{ // to.Ptr("privatelink.compliance.microsoft.com")}, // }, // }}, // } }
Output:
type PrivateLinkResourcesCompClientGetOptions ¶
type PrivateLinkResourcesCompClientGetOptions struct { }
PrivateLinkResourcesCompClientGetOptions contains the optional parameters for the PrivateLinkResourcesCompClient.Get method.
type PrivateLinkResourcesCompClientGetResponse ¶
type PrivateLinkResourcesCompClientGetResponse struct { // A private link resource PrivateLinkResource }
PrivateLinkResourcesCompClientGetResponse contains the response from method PrivateLinkResourcesCompClient.Get.
type PrivateLinkResourcesCompClientListByServiceOptions ¶
type PrivateLinkResourcesCompClientListByServiceOptions struct { }
PrivateLinkResourcesCompClientListByServiceOptions contains the optional parameters for the PrivateLinkResourcesCompClient.ListByService method.
type PrivateLinkResourcesCompClientListByServiceResponse ¶
type PrivateLinkResourcesCompClientListByServiceResponse struct { // A list of private link resources PrivateLinkResourceListResult }
PrivateLinkResourcesCompClientListByServiceResponse contains the response from method PrivateLinkResourcesCompClient.ListByService.
type PrivateLinkResourcesForMIPPolicySyncClient ¶
type PrivateLinkResourcesForMIPPolicySyncClient struct {
// contains filtered or unexported fields
}
PrivateLinkResourcesForMIPPolicySyncClient contains the methods for the PrivateLinkResourcesForMIPPolicySync group. Don't use this type directly, use NewPrivateLinkResourcesForMIPPolicySyncClient() instead.
func NewPrivateLinkResourcesForMIPPolicySyncClient ¶
func NewPrivateLinkResourcesForMIPPolicySyncClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesForMIPPolicySyncClient, error)
NewPrivateLinkResourcesForMIPPolicySyncClient creates a new instance of PrivateLinkResourcesForMIPPolicySyncClient with the specified values.
- subscriptionID - The subscription identifier.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateLinkResourcesForMIPPolicySyncClient) Get ¶
func (client *PrivateLinkResourcesForMIPPolicySyncClient) Get(ctx context.Context, resourceGroupName string, resourceName string, groupName string, options *PrivateLinkResourcesForMIPPolicySyncClientGetOptions) (PrivateLinkResourcesForMIPPolicySyncClientGetResponse, error)
Get - Gets a private link resource that need to be created for a service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- groupName - The name of the private link resource group.
- options - PrivateLinkResourcesForMIPPolicySyncClientGetOptions contains the optional parameters for the PrivateLinkResourcesForMIPPolicySyncClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/MIPPolicySyncPrivateLinkResourceGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateLinkResourcesForMIPPolicySyncClient().Get(ctx, "rgname", "service1", "fhir", 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.PrivateLinkResource = armm365securityandcompliance.PrivateLinkResource{ // Name: to.Ptr("fhir"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/privateLinkResources"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/service1/privateLinkResources/fhir"), // Properties: &armm365securityandcompliance.PrivateLinkResourceProperties{ // GroupID: to.Ptr("fhir"), // RequiredMembers: []*string{ // to.Ptr("fhir")}, // RequiredZoneNames: []*string{ // to.Ptr("privatelink.security.microsoft.com")}, // }, // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("fangsu"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("fangsu"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // } }
Output:
func (*PrivateLinkResourcesForMIPPolicySyncClient) ListByService ¶
func (client *PrivateLinkResourcesForMIPPolicySyncClient) ListByService(ctx context.Context, resourceGroupName string, resourceName string, options *PrivateLinkResourcesForMIPPolicySyncClientListByServiceOptions) (PrivateLinkResourcesForMIPPolicySyncClientListByServiceResponse, error)
ListByService - Gets the private link resources that need to be created for a service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateLinkResourcesForMIPPolicySyncClientListByServiceOptions contains the optional parameters for the PrivateLinkResourcesForMIPPolicySyncClient.ListByService method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/MIPPolicySyncPrivateLinkResourcesListByService.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateLinkResourcesForMIPPolicySyncClient().ListByService(ctx, "rgname", "service1", 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.PrivateLinkResourceListResult = armm365securityandcompliance.PrivateLinkResourceListResult{ // Value: []*armm365securityandcompliance.PrivateLinkResource{ // { // Name: to.Ptr("fhir"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/privateLinkResources"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/service1/privateLinkResources/fhir"), // Properties: &armm365securityandcompliance.PrivateLinkResourceProperties{ // GroupID: to.Ptr("fhir"), // RequiredMembers: []*string{ // to.Ptr("fhir")}, // RequiredZoneNames: []*string{ // to.Ptr("privatelink.compliance.microsoft.com")}, // }, // }}, // } }
Output:
type PrivateLinkResourcesForMIPPolicySyncClientGetOptions ¶
type PrivateLinkResourcesForMIPPolicySyncClientGetOptions struct { }
PrivateLinkResourcesForMIPPolicySyncClientGetOptions contains the optional parameters for the PrivateLinkResourcesForMIPPolicySyncClient.Get method.
type PrivateLinkResourcesForMIPPolicySyncClientGetResponse ¶
type PrivateLinkResourcesForMIPPolicySyncClientGetResponse struct { // A private link resource PrivateLinkResource }
PrivateLinkResourcesForMIPPolicySyncClientGetResponse contains the response from method PrivateLinkResourcesForMIPPolicySyncClient.Get.
type PrivateLinkResourcesForMIPPolicySyncClientListByServiceOptions ¶
type PrivateLinkResourcesForMIPPolicySyncClientListByServiceOptions struct { }
PrivateLinkResourcesForMIPPolicySyncClientListByServiceOptions contains the optional parameters for the PrivateLinkResourcesForMIPPolicySyncClient.ListByService method.
type PrivateLinkResourcesForMIPPolicySyncClientListByServiceResponse ¶
type PrivateLinkResourcesForMIPPolicySyncClientListByServiceResponse struct { // A list of private link resources PrivateLinkResourceListResult }
PrivateLinkResourcesForMIPPolicySyncClientListByServiceResponse contains the response from method PrivateLinkResourcesForMIPPolicySyncClient.ListByService.
type PrivateLinkResourcesForSCCPowershellClient ¶
type PrivateLinkResourcesForSCCPowershellClient struct {
// contains filtered or unexported fields
}
PrivateLinkResourcesForSCCPowershellClient contains the methods for the PrivateLinkResourcesForSCCPowershell group. Don't use this type directly, use NewPrivateLinkResourcesForSCCPowershellClient() instead.
func NewPrivateLinkResourcesForSCCPowershellClient ¶
func NewPrivateLinkResourcesForSCCPowershellClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesForSCCPowershellClient, error)
NewPrivateLinkResourcesForSCCPowershellClient creates a new instance of PrivateLinkResourcesForSCCPowershellClient with the specified values.
- subscriptionID - The subscription identifier.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateLinkResourcesForSCCPowershellClient) Get ¶
func (client *PrivateLinkResourcesForSCCPowershellClient) Get(ctx context.Context, resourceGroupName string, resourceName string, groupName string, options *PrivateLinkResourcesForSCCPowershellClientGetOptions) (PrivateLinkResourcesForSCCPowershellClientGetResponse, error)
Get - Gets a private link resource that need to be created for a service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- groupName - The name of the private link resource group.
- options - PrivateLinkResourcesForSCCPowershellClientGetOptions contains the optional parameters for the PrivateLinkResourcesForSCCPowershellClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SCCPowershellPrivateLinkResourceGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateLinkResourcesForSCCPowershellClient().Get(ctx, "rgname", "service1", "fhir", 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.PrivateLinkResource = armm365securityandcompliance.PrivateLinkResource{ // Name: to.Ptr("fhir"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/privateLinkResources"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/service1/privateLinkResources/fhir"), // Properties: &armm365securityandcompliance.PrivateLinkResourceProperties{ // GroupID: to.Ptr("fhir"), // RequiredMembers: []*string{ // to.Ptr("fhir")}, // RequiredZoneNames: []*string{ // to.Ptr("privatelink.security.microsoft.com")}, // }, // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // } }
Output:
func (*PrivateLinkResourcesForSCCPowershellClient) ListByService ¶
func (client *PrivateLinkResourcesForSCCPowershellClient) ListByService(ctx context.Context, resourceGroupName string, resourceName string, options *PrivateLinkResourcesForSCCPowershellClientListByServiceOptions) (PrivateLinkResourcesForSCCPowershellClientListByServiceResponse, error)
ListByService - Gets the private link resources that need to be created for a service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateLinkResourcesForSCCPowershellClientListByServiceOptions contains the optional parameters for the PrivateLinkResourcesForSCCPowershellClient.ListByService method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SCCPowershellPrivateLinkResourcesListByService.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateLinkResourcesForSCCPowershellClient().ListByService(ctx, "rgname", "service1", 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.PrivateLinkResourceListResult = armm365securityandcompliance.PrivateLinkResourceListResult{ // Value: []*armm365securityandcompliance.PrivateLinkResource{ // { // Name: to.Ptr("fhir"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/privateLinkResources"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/service1/privateLinkResources/fhir"), // Properties: &armm365securityandcompliance.PrivateLinkResourceProperties{ // GroupID: to.Ptr("fhir"), // RequiredMembers: []*string{ // to.Ptr("fhir")}, // RequiredZoneNames: []*string{ // to.Ptr("privatelink.compliance.microsoft.com")}, // }, // }}, // } }
Output:
type PrivateLinkResourcesForSCCPowershellClientGetOptions ¶
type PrivateLinkResourcesForSCCPowershellClientGetOptions struct { }
PrivateLinkResourcesForSCCPowershellClientGetOptions contains the optional parameters for the PrivateLinkResourcesForSCCPowershellClient.Get method.
type PrivateLinkResourcesForSCCPowershellClientGetResponse ¶
type PrivateLinkResourcesForSCCPowershellClientGetResponse struct { // A private link resource PrivateLinkResource }
PrivateLinkResourcesForSCCPowershellClientGetResponse contains the response from method PrivateLinkResourcesForSCCPowershellClient.Get.
type PrivateLinkResourcesForSCCPowershellClientListByServiceOptions ¶
type PrivateLinkResourcesForSCCPowershellClientListByServiceOptions struct { }
PrivateLinkResourcesForSCCPowershellClientListByServiceOptions contains the optional parameters for the PrivateLinkResourcesForSCCPowershellClient.ListByService method.
type PrivateLinkResourcesForSCCPowershellClientListByServiceResponse ¶
type PrivateLinkResourcesForSCCPowershellClientListByServiceResponse struct { // A list of private link resources PrivateLinkResourceListResult }
PrivateLinkResourcesForSCCPowershellClientListByServiceResponse contains the response from method PrivateLinkResourcesForSCCPowershellClient.ListByService.
type PrivateLinkResourcesSecClient ¶
type PrivateLinkResourcesSecClient struct {
// contains filtered or unexported fields
}
PrivateLinkResourcesSecClient contains the methods for the PrivateLinkResourcesSec group. Don't use this type directly, use NewPrivateLinkResourcesSecClient() instead.
func NewPrivateLinkResourcesSecClient ¶
func NewPrivateLinkResourcesSecClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesSecClient, error)
NewPrivateLinkResourcesSecClient creates a new instance of PrivateLinkResourcesSecClient with the specified values.
- subscriptionID - The subscription identifier.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateLinkResourcesSecClient) Get ¶
func (client *PrivateLinkResourcesSecClient) Get(ctx context.Context, resourceGroupName string, resourceName string, groupName string, options *PrivateLinkResourcesSecClientGetOptions) (PrivateLinkResourcesSecClientGetResponse, error)
Get - Gets a private link resource that need to be created for a service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- groupName - The name of the private link resource group.
- options - PrivateLinkResourcesSecClientGetOptions contains the optional parameters for the PrivateLinkResourcesSecClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SecurityCenterPrivateLinkResourceGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateLinkResourcesSecClient().Get(ctx, "rgname", "service1", "fhir", 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.PrivateLinkResource = armm365securityandcompliance.PrivateLinkResource{ // Name: to.Ptr("fhir"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/privateLinkResources"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/service1/privateLinkResources/fhir"), // Properties: &armm365securityandcompliance.PrivateLinkResourceProperties{ // GroupID: to.Ptr("fhir"), // RequiredMembers: []*string{ // to.Ptr("fhir")}, // RequiredZoneNames: []*string{ // to.Ptr("privatelink.security.microsoft.com")}, // }, // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // } }
Output:
func (*PrivateLinkResourcesSecClient) ListByService ¶
func (client *PrivateLinkResourcesSecClient) ListByService(ctx context.Context, resourceGroupName string, resourceName string, options *PrivateLinkResourcesSecClientListByServiceOptions) (PrivateLinkResourcesSecClientListByServiceResponse, error)
ListByService - Gets the private link resources that need to be created for a service. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateLinkResourcesSecClientListByServiceOptions contains the optional parameters for the PrivateLinkResourcesSecClient.ListByService method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SecurityCenterPrivateLinkResourcesListByService.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateLinkResourcesSecClient().ListByService(ctx, "rgname", "service1", 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.PrivateLinkResourceListResult = armm365securityandcompliance.PrivateLinkResourceListResult{ // Value: []*armm365securityandcompliance.PrivateLinkResource{ // { // Name: to.Ptr("fhir"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/privateLinkResources"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/service1/privateLinkResources/fhir"), // Properties: &armm365securityandcompliance.PrivateLinkResourceProperties{ // GroupID: to.Ptr("fhir"), // RequiredMembers: []*string{ // to.Ptr("fhir")}, // RequiredZoneNames: []*string{ // to.Ptr("privatelink.compliance.microsoft.com")}, // }, // }}, // } }
Output:
type PrivateLinkResourcesSecClientGetOptions ¶
type PrivateLinkResourcesSecClientGetOptions struct { }
PrivateLinkResourcesSecClientGetOptions contains the optional parameters for the PrivateLinkResourcesSecClient.Get method.
type PrivateLinkResourcesSecClientGetResponse ¶
type PrivateLinkResourcesSecClientGetResponse struct { // A private link resource PrivateLinkResource }
PrivateLinkResourcesSecClientGetResponse contains the response from method PrivateLinkResourcesSecClient.Get.
type PrivateLinkResourcesSecClientListByServiceOptions ¶
type PrivateLinkResourcesSecClientListByServiceOptions struct { }
PrivateLinkResourcesSecClientListByServiceOptions contains the optional parameters for the PrivateLinkResourcesSecClient.ListByService method.
type PrivateLinkResourcesSecClientListByServiceResponse ¶
type PrivateLinkResourcesSecClientListByServiceResponse struct { // A list of private link resources PrivateLinkResourceListResult }
PrivateLinkResourcesSecClientListByServiceResponse contains the response from method PrivateLinkResourcesSecClient.ListByService.
type PrivateLinkServiceConnectionState ¶
type PrivateLinkServiceConnectionState struct { // A message indicating if changes on the service provider require any updates on the consumer. ActionsRequired *string // The reason for approval/rejection of the connection. Description *string // Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Status *PrivateEndpointServiceConnectionStatus }
PrivateLinkServiceConnectionState - A collection of information about the state of the connection between service consumer and provider.
func (PrivateLinkServiceConnectionState) MarshalJSON ¶
func (p PrivateLinkServiceConnectionState) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkServiceConnectionState.
func (*PrivateLinkServiceConnectionState) UnmarshalJSON ¶
func (p *PrivateLinkServiceConnectionState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServiceConnectionState.
type PrivateLinkServicesForEDMUploadClient ¶
type PrivateLinkServicesForEDMUploadClient struct {
// contains filtered or unexported fields
}
PrivateLinkServicesForEDMUploadClient contains the methods for the PrivateLinkServicesForEDMUpload group. Don't use this type directly, use NewPrivateLinkServicesForEDMUploadClient() instead.
func NewPrivateLinkServicesForEDMUploadClient ¶
func NewPrivateLinkServicesForEDMUploadClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkServicesForEDMUploadClient, error)
NewPrivateLinkServicesForEDMUploadClient creates a new instance of PrivateLinkServicesForEDMUploadClient with the specified values.
- subscriptionID - The subscription identifier.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateLinkServicesForEDMUploadClient) BeginCreateOrUpdate ¶
func (client *PrivateLinkServicesForEDMUploadClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, privateLinkServicesForEDMUploadDescription PrivateLinkServicesForEDMUploadDescription, options *PrivateLinkServicesForEDMUploadClientBeginCreateOrUpdateOptions) (*runtime.Poller[PrivateLinkServicesForEDMUploadClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update the metadata of a privateLinkServicesForEDMUpload instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateLinkServicesForEDMUploadDescription - The service instance metadata.
- options - PrivateLinkServicesForEDMUploadClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateLinkServicesForEDMUploadClient.BeginCreateOrUpdate method.
Example (CreateOrUpdateAServiceWithAllParameters) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/EdmUploadServiceCreate.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForEDMUploadClient().BeginCreateOrUpdate(ctx, "rg1", "service1", armm365securityandcompliance.PrivateLinkServicesForEDMUploadDescription{ Identity: &armm365securityandcompliance.ServicesResourceIdentity{ Type: to.Ptr(armm365securityandcompliance.ManagedServiceIdentityTypeSystemAssigned), }, Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), Location: to.Ptr("westus2"), Tags: map[string]*string{}, Properties: &armm365securityandcompliance.ServicesProperties{ AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ { ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), }, { ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), }}, AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ Audience: to.Ptr("https://azurehealthcareapis.com"), Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), SmartProxyEnabled: to.Ptr(true), }, CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ AllowCredentials: to.Ptr(false), Headers: []*string{ to.Ptr("*")}, MaxAge: to.Ptr[int64](1440), Methods: []*string{ to.Ptr("DELETE"), to.Ptr("GET"), to.Ptr("OPTIONS"), to.Ptr("PATCH"), to.Ptr("POST"), to.Ptr("PUT")}, Origins: []*string{ to.Ptr("*")}, }, CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), OfferThroughput: to.Ptr[int64](1000), }, ExportConfiguration: &armm365securityandcompliance.ServiceExportConfigurationInfo{ StorageAccountName: to.Ptr("existingStorageAccount"), }, PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{}, PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), }, }, 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.PrivateLinkServicesForEDMUploadDescription = armm365securityandcompliance.PrivateLinkServicesForEDMUploadDescription{ // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/service1"), // Identity: &armm365securityandcompliance.ServicesResourceIdentity{ // Type: to.Ptr(armm365securityandcompliance.ManagedServiceIdentityTypeSystemAssigned), // PrincipalID: to.Ptr("03fe6ae0-952c-4e4b-954b-cc0364dd252e"), // TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d8cd011db47"), // }, // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US 2"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // ExportConfiguration: &armm365securityandcompliance.ServiceExportConfigurationInfo{ // StorageAccountName: to.Ptr("existingStorageAccount"), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
Example (CreateOrUpdateAServiceWithMinimumParameters) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/EdmUploadServiceCreateMinimum.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForEDMUploadClient().BeginCreateOrUpdate(ctx, "rg1", "service2", armm365securityandcompliance.PrivateLinkServicesForEDMUploadDescription{ Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), Location: to.Ptr("westus2"), Tags: map[string]*string{}, Properties: &armm365securityandcompliance.ServicesProperties{ AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ { ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), }}, }, }, 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.PrivateLinkServicesForEDMUploadDescription = armm365securityandcompliance.PrivateLinkServicesForEDMUploadDescription{ // Name: to.Ptr("service2"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/service2"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("westus2"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(false), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // }, // Methods: []*string{ // }, // Origins: []*string{ // }, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
func (*PrivateLinkServicesForEDMUploadClient) BeginUpdate ¶
func (client *PrivateLinkServicesForEDMUploadClient) BeginUpdate(ctx context.Context, resourceGroupName string, resourceName string, servicePatchDescription ServicesPatchDescription, options *PrivateLinkServicesForEDMUploadClientBeginUpdateOptions) (*runtime.Poller[PrivateLinkServicesForEDMUploadClientUpdateResponse], error)
BeginUpdate - Update the metadata of a privateLinkServicesForEDMUpload instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- servicePatchDescription - The service instance metadata and security metadata.
- options - PrivateLinkServicesForEDMUploadClientBeginUpdateOptions contains the optional parameters for the PrivateLinkServicesForEDMUploadClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/EdmUploadServicePatch.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForEDMUploadClient().BeginUpdate(ctx, "rg1", "service1", armm365securityandcompliance.ServicesPatchDescription{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, 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.PrivateLinkServicesForEDMUploadDescription = armm365securityandcompliance.PrivateLinkServicesForEDMUploadDescription{ // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/service1"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // "tag1": to.Ptr("value1"), // "tag2": to.Ptr("value2"), // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
func (*PrivateLinkServicesForEDMUploadClient) Get ¶
func (client *PrivateLinkServicesForEDMUploadClient) Get(ctx context.Context, resourceGroupName string, resourceName string, options *PrivateLinkServicesForEDMUploadClientGetOptions) (PrivateLinkServicesForEDMUploadClientGetResponse, error)
Get - Get the metadata of a privateLinkServicesForEDMUpload resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateLinkServicesForEDMUploadClientGetOptions contains the optional parameters for the PrivateLinkServicesForEDMUploadClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/EdmUploadServiceGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateLinkServicesForEDMUploadClient().Get(ctx, "rg1", "service1", 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.PrivateLinkServicesForEDMUploadDescription = armm365securityandcompliance.PrivateLinkServicesForEDMUploadDescription{ // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/service1"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
func (*PrivateLinkServicesForEDMUploadClient) NewListByResourceGroupPager ¶
func (client *PrivateLinkServicesForEDMUploadClient) NewListByResourceGroupPager(resourceGroupName string, options *PrivateLinkServicesForEDMUploadClientListByResourceGroupOptions) *runtime.Pager[PrivateLinkServicesForEDMUploadClientListByResourceGroupResponse]
NewListByResourceGroupPager - Get all the service instances in a resource group.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- options - PrivateLinkServicesForEDMUploadClientListByResourceGroupOptions contains the optional parameters for the PrivateLinkServicesForEDMUploadClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/EdmUploadServiceListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPrivateLinkServicesForEDMUploadClient().NewListByResourceGroupPager("rgname", 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.PrivateLinkServicesForEDMUploadDescriptionListResult = armm365securityandcompliance.PrivateLinkServicesForEDMUploadDescriptionListResult{ // Value: []*armm365securityandcompliance.PrivateLinkServicesForEDMUploadDescription{ // { // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/dddb8dcb-effb-4290-bb47-ce1e8440c729"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // }}, // } } }
Output:
func (*PrivateLinkServicesForEDMUploadClient) NewListPager ¶
func (client *PrivateLinkServicesForEDMUploadClient) NewListPager(options *PrivateLinkServicesForEDMUploadClientListOptions) *runtime.Pager[PrivateLinkServicesForEDMUploadClientListResponse]
NewListPager - Get all the privateLinkServicesForEDMUpload instances in a subscription.
Generated from API version 2021-03-25-preview
- options - PrivateLinkServicesForEDMUploadClientListOptions contains the optional parameters for the PrivateLinkServicesForEDMUploadClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/EdmUploadServiceList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPrivateLinkServicesForEDMUploadClient().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.PrivateLinkServicesForEDMUploadDescriptionListResult = armm365securityandcompliance.PrivateLinkServicesForEDMUploadDescriptionListResult{ // Value: []*armm365securityandcompliance.PrivateLinkServicesForEDMUploadDescription{ // { // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload"), // Etag: to.Ptr("etag"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/service1"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US"), // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // }}, // } } }
Output:
type PrivateLinkServicesForEDMUploadClientBeginCreateOrUpdateOptions ¶
type PrivateLinkServicesForEDMUploadClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesForEDMUploadClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateLinkServicesForEDMUploadClient.BeginCreateOrUpdate method.
type PrivateLinkServicesForEDMUploadClientBeginUpdateOptions ¶
type PrivateLinkServicesForEDMUploadClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesForEDMUploadClientBeginUpdateOptions contains the optional parameters for the PrivateLinkServicesForEDMUploadClient.BeginUpdate method.
type PrivateLinkServicesForEDMUploadClientCreateOrUpdateResponse ¶
type PrivateLinkServicesForEDMUploadClientCreateOrUpdateResponse struct { // The description of the service. PrivateLinkServicesForEDMUploadDescription }
PrivateLinkServicesForEDMUploadClientCreateOrUpdateResponse contains the response from method PrivateLinkServicesForEDMUploadClient.BeginCreateOrUpdate.
type PrivateLinkServicesForEDMUploadClientGetOptions ¶
type PrivateLinkServicesForEDMUploadClientGetOptions struct { }
PrivateLinkServicesForEDMUploadClientGetOptions contains the optional parameters for the PrivateLinkServicesForEDMUploadClient.Get method.
type PrivateLinkServicesForEDMUploadClientGetResponse ¶
type PrivateLinkServicesForEDMUploadClientGetResponse struct { // The description of the service. PrivateLinkServicesForEDMUploadDescription }
PrivateLinkServicesForEDMUploadClientGetResponse contains the response from method PrivateLinkServicesForEDMUploadClient.Get.
type PrivateLinkServicesForEDMUploadClientListByResourceGroupOptions ¶
type PrivateLinkServicesForEDMUploadClientListByResourceGroupOptions struct { }
PrivateLinkServicesForEDMUploadClientListByResourceGroupOptions contains the optional parameters for the PrivateLinkServicesForEDMUploadClient.NewListByResourceGroupPager method.
type PrivateLinkServicesForEDMUploadClientListByResourceGroupResponse ¶
type PrivateLinkServicesForEDMUploadClientListByResourceGroupResponse struct { // A list of service description objects with a next link. PrivateLinkServicesForEDMUploadDescriptionListResult }
PrivateLinkServicesForEDMUploadClientListByResourceGroupResponse contains the response from method PrivateLinkServicesForEDMUploadClient.NewListByResourceGroupPager.
type PrivateLinkServicesForEDMUploadClientListOptions ¶
type PrivateLinkServicesForEDMUploadClientListOptions struct { }
PrivateLinkServicesForEDMUploadClientListOptions contains the optional parameters for the PrivateLinkServicesForEDMUploadClient.NewListPager method.
type PrivateLinkServicesForEDMUploadClientListResponse ¶
type PrivateLinkServicesForEDMUploadClientListResponse struct { // A list of service description objects with a next link. PrivateLinkServicesForEDMUploadDescriptionListResult }
PrivateLinkServicesForEDMUploadClientListResponse contains the response from method PrivateLinkServicesForEDMUploadClient.NewListPager.
type PrivateLinkServicesForEDMUploadClientUpdateResponse ¶
type PrivateLinkServicesForEDMUploadClientUpdateResponse struct { // The description of the service. PrivateLinkServicesForEDMUploadDescription }
PrivateLinkServicesForEDMUploadClientUpdateResponse contains the response from method PrivateLinkServicesForEDMUploadClient.BeginUpdate.
type PrivateLinkServicesForEDMUploadDescription ¶
type PrivateLinkServicesForEDMUploadDescription struct { // REQUIRED; The kind of the service. Kind *Kind // REQUIRED; The resource location. Location *string // An etag associated with the resource, used for optimistic concurrency when editing it. Etag *string // Setting indicating whether the service has a managed identity associated with it. Identity *ServicesResourceIdentity // The common properties of a service. Properties *ServicesProperties // The resource tags. Tags map[string]*string // READ-ONLY; The resource identifier. ID *string // READ-ONLY; The resource name. Name *string // READ-ONLY; Required property for system data SystemData *SystemData // READ-ONLY; The resource type. Type *string }
PrivateLinkServicesForEDMUploadDescription - The description of the service.
func (PrivateLinkServicesForEDMUploadDescription) MarshalJSON ¶
func (p PrivateLinkServicesForEDMUploadDescription) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkServicesForEDMUploadDescription.
func (*PrivateLinkServicesForEDMUploadDescription) UnmarshalJSON ¶
func (p *PrivateLinkServicesForEDMUploadDescription) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServicesForEDMUploadDescription.
type PrivateLinkServicesForEDMUploadDescriptionListResult ¶
type PrivateLinkServicesForEDMUploadDescriptionListResult struct { // A list of service description objects. Value []*PrivateLinkServicesForEDMUploadDescription // READ-ONLY; The link used to get the next page of service description objects. NextLink *string }
PrivateLinkServicesForEDMUploadDescriptionListResult - A list of service description objects with a next link.
func (PrivateLinkServicesForEDMUploadDescriptionListResult) MarshalJSON ¶
func (p PrivateLinkServicesForEDMUploadDescriptionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkServicesForEDMUploadDescriptionListResult.
func (*PrivateLinkServicesForEDMUploadDescriptionListResult) UnmarshalJSON ¶
func (p *PrivateLinkServicesForEDMUploadDescriptionListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServicesForEDMUploadDescriptionListResult.
type PrivateLinkServicesForM365ComplianceCenterClient ¶
type PrivateLinkServicesForM365ComplianceCenterClient struct {
// contains filtered or unexported fields
}
PrivateLinkServicesForM365ComplianceCenterClient contains the methods for the PrivateLinkServicesForM365ComplianceCenter group. Don't use this type directly, use NewPrivateLinkServicesForM365ComplianceCenterClient() instead.
func NewPrivateLinkServicesForM365ComplianceCenterClient ¶
func NewPrivateLinkServicesForM365ComplianceCenterClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkServicesForM365ComplianceCenterClient, error)
NewPrivateLinkServicesForM365ComplianceCenterClient creates a new instance of PrivateLinkServicesForM365ComplianceCenterClient with the specified values.
- subscriptionID - The subscription identifier.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateLinkServicesForM365ComplianceCenterClient) BeginCreateOrUpdate ¶
func (client *PrivateLinkServicesForM365ComplianceCenterClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, privateLinkServicesForM365ComplianceCenterDescription PrivateLinkServicesForM365ComplianceCenterDescription, options *PrivateLinkServicesForM365ComplianceCenterClientBeginCreateOrUpdateOptions) (*runtime.Poller[PrivateLinkServicesForM365ComplianceCenterClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update the metadata of a privateLinkServicesForM365ComplianceCenter instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateLinkServicesForM365ComplianceCenterDescription - The service instance metadata.
- options - PrivateLinkServicesForM365ComplianceCenterClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateLinkServicesForM365ComplianceCenterClient.BeginCreateOrUpdate method.
Example (CreateOrUpdateAServiceWithAllParameters) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ComplianceCenterServiceCreate.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForM365ComplianceCenterClient().BeginCreateOrUpdate(ctx, "rg1", "service1", armm365securityandcompliance.PrivateLinkServicesForM365ComplianceCenterDescription{ Identity: &armm365securityandcompliance.ServicesResourceIdentity{ Type: to.Ptr(armm365securityandcompliance.ManagedServiceIdentityTypeSystemAssigned), }, Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), Location: to.Ptr("westus2"), Tags: map[string]*string{}, Properties: &armm365securityandcompliance.ServicesProperties{ AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ { ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), }, { ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), }}, AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ Audience: to.Ptr("https://azurehealthcareapis.com"), Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), SmartProxyEnabled: to.Ptr(true), }, CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ AllowCredentials: to.Ptr(false), Headers: []*string{ to.Ptr("*")}, MaxAge: to.Ptr[int64](1440), Methods: []*string{ to.Ptr("DELETE"), to.Ptr("GET"), to.Ptr("OPTIONS"), to.Ptr("PATCH"), to.Ptr("POST"), to.Ptr("PUT")}, Origins: []*string{ to.Ptr("*")}, }, CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), OfferThroughput: to.Ptr[int64](1000), }, ExportConfiguration: &armm365securityandcompliance.ServiceExportConfigurationInfo{ StorageAccountName: to.Ptr("existingStorageAccount"), }, PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{}, PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), }, }, 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.PrivateLinkServicesForM365ComplianceCenterDescription = armm365securityandcompliance.PrivateLinkServicesForM365ComplianceCenterDescription{ // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/service1"), // Identity: &armm365securityandcompliance.ServicesResourceIdentity{ // Type: to.Ptr(armm365securityandcompliance.ManagedServiceIdentityTypeSystemAssigned), // PrincipalID: to.Ptr("03fe6ae0-952c-4e4b-954b-cc0364dd252e"), // TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d8cd011db47"), // }, // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US 2"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // ExportConfiguration: &armm365securityandcompliance.ServiceExportConfigurationInfo{ // StorageAccountName: to.Ptr("existingStorageAccount"), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
Example (CreateOrUpdateAServiceWithMinimumParameters) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ComplianceCenterServiceCreateMinimum.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForM365ComplianceCenterClient().BeginCreateOrUpdate(ctx, "rg1", "service2", armm365securityandcompliance.PrivateLinkServicesForM365ComplianceCenterDescription{ Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), Location: to.Ptr("westus2"), Tags: map[string]*string{}, Properties: &armm365securityandcompliance.ServicesProperties{ AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ { ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), }}, }, }, 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.PrivateLinkServicesForM365ComplianceCenterDescription = armm365securityandcompliance.PrivateLinkServicesForM365ComplianceCenterDescription{ // Name: to.Ptr("service2"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/service2"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("westus2"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(false), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // }, // Methods: []*string{ // }, // Origins: []*string{ // }, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
func (*PrivateLinkServicesForM365ComplianceCenterClient) BeginDelete ¶
func (client *PrivateLinkServicesForM365ComplianceCenterClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, options *PrivateLinkServicesForM365ComplianceCenterClientBeginDeleteOptions) (*runtime.Poller[PrivateLinkServicesForM365ComplianceCenterClientDeleteResponse], error)
BeginDelete - Delete a service instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateLinkServicesForM365ComplianceCenterClientBeginDeleteOptions contains the optional parameters for the PrivateLinkServicesForM365ComplianceCenterClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ComplianceCenterServiceDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForM365ComplianceCenterClient().BeginDelete(ctx, "rg1", "service1", 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 (*PrivateLinkServicesForM365ComplianceCenterClient) BeginUpdate ¶
func (client *PrivateLinkServicesForM365ComplianceCenterClient) BeginUpdate(ctx context.Context, resourceGroupName string, resourceName string, servicePatchDescription ServicesPatchDescription, options *PrivateLinkServicesForM365ComplianceCenterClientBeginUpdateOptions) (*runtime.Poller[PrivateLinkServicesForM365ComplianceCenterClientUpdateResponse], error)
BeginUpdate - Update the metadata of a privateLinkServicesForM365ComplianceCenter instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- servicePatchDescription - The service instance metadata and security metadata.
- options - PrivateLinkServicesForM365ComplianceCenterClientBeginUpdateOptions contains the optional parameters for the PrivateLinkServicesForM365ComplianceCenterClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ComplianceCenterServicePatch.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForM365ComplianceCenterClient().BeginUpdate(ctx, "rg1", "service1", armm365securityandcompliance.ServicesPatchDescription{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, 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.PrivateLinkServicesForM365ComplianceCenterDescription = armm365securityandcompliance.PrivateLinkServicesForM365ComplianceCenterDescription{ // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/service1"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // "tag1": to.Ptr("value1"), // "tag2": to.Ptr("value2"), // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
func (*PrivateLinkServicesForM365ComplianceCenterClient) Get ¶
func (client *PrivateLinkServicesForM365ComplianceCenterClient) Get(ctx context.Context, resourceGroupName string, resourceName string, options *PrivateLinkServicesForM365ComplianceCenterClientGetOptions) (PrivateLinkServicesForM365ComplianceCenterClientGetResponse, error)
Get - Get the metadata of a privateLinkServicesForM365ComplianceCenter resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateLinkServicesForM365ComplianceCenterClientGetOptions contains the optional parameters for the PrivateLinkServicesForM365ComplianceCenterClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ComplianceCenterServiceGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateLinkServicesForM365ComplianceCenterClient().Get(ctx, "rg1", "service1", 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.PrivateLinkServicesForM365ComplianceCenterDescription = armm365securityandcompliance.PrivateLinkServicesForM365ComplianceCenterDescription{ // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/service1"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
func (*PrivateLinkServicesForM365ComplianceCenterClient) NewListByResourceGroupPager ¶
func (client *PrivateLinkServicesForM365ComplianceCenterClient) NewListByResourceGroupPager(resourceGroupName string, options *PrivateLinkServicesForM365ComplianceCenterClientListByResourceGroupOptions) *runtime.Pager[PrivateLinkServicesForM365ComplianceCenterClientListByResourceGroupResponse]
NewListByResourceGroupPager - Get all the service instances in a resource group.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- options - PrivateLinkServicesForM365ComplianceCenterClientListByResourceGroupOptions contains the optional parameters for the PrivateLinkServicesForM365ComplianceCenterClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ComplianceCenterServiceListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPrivateLinkServicesForM365ComplianceCenterClient().NewListByResourceGroupPager("rgname", 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.PrivateLinkServicesForM365ComplianceCenterDescriptionListResult = armm365securityandcompliance.PrivateLinkServicesForM365ComplianceCenterDescriptionListResult{ // Value: []*armm365securityandcompliance.PrivateLinkServicesForM365ComplianceCenterDescription{ // { // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/dddb8dcb-effb-4290-bb47-ce1e8440c729"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // }}, // } } }
Output:
func (*PrivateLinkServicesForM365ComplianceCenterClient) NewListPager ¶
func (client *PrivateLinkServicesForM365ComplianceCenterClient) NewListPager(options *PrivateLinkServicesForM365ComplianceCenterClientListOptions) *runtime.Pager[PrivateLinkServicesForM365ComplianceCenterClientListResponse]
NewListPager - Get all the privateLinkServicesForM365ComplianceCenter instances in a subscription.
Generated from API version 2021-03-25-preview
- options - PrivateLinkServicesForM365ComplianceCenterClientListOptions contains the optional parameters for the PrivateLinkServicesForM365ComplianceCenterClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ComplianceCenterServiceList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPrivateLinkServicesForM365ComplianceCenterClient().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.PrivateLinkServicesForM365ComplianceCenterDescriptionListResult = armm365securityandcompliance.PrivateLinkServicesForM365ComplianceCenterDescriptionListResult{ // Value: []*armm365securityandcompliance.PrivateLinkServicesForM365ComplianceCenterDescription{ // { // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter"), // Etag: to.Ptr("etag"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/service1"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US"), // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // }}, // } } }
Output:
type PrivateLinkServicesForM365ComplianceCenterClientBeginCreateOrUpdateOptions ¶
type PrivateLinkServicesForM365ComplianceCenterClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesForM365ComplianceCenterClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateLinkServicesForM365ComplianceCenterClient.BeginCreateOrUpdate method.
type PrivateLinkServicesForM365ComplianceCenterClientBeginDeleteOptions ¶
type PrivateLinkServicesForM365ComplianceCenterClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesForM365ComplianceCenterClientBeginDeleteOptions contains the optional parameters for the PrivateLinkServicesForM365ComplianceCenterClient.BeginDelete method.
type PrivateLinkServicesForM365ComplianceCenterClientBeginUpdateOptions ¶
type PrivateLinkServicesForM365ComplianceCenterClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesForM365ComplianceCenterClientBeginUpdateOptions contains the optional parameters for the PrivateLinkServicesForM365ComplianceCenterClient.BeginUpdate method.
type PrivateLinkServicesForM365ComplianceCenterClientCreateOrUpdateResponse ¶
type PrivateLinkServicesForM365ComplianceCenterClientCreateOrUpdateResponse struct { // The description of the service. PrivateLinkServicesForM365ComplianceCenterDescription }
PrivateLinkServicesForM365ComplianceCenterClientCreateOrUpdateResponse contains the response from method PrivateLinkServicesForM365ComplianceCenterClient.BeginCreateOrUpdate.
type PrivateLinkServicesForM365ComplianceCenterClientDeleteResponse ¶
type PrivateLinkServicesForM365ComplianceCenterClientDeleteResponse struct { }
PrivateLinkServicesForM365ComplianceCenterClientDeleteResponse contains the response from method PrivateLinkServicesForM365ComplianceCenterClient.BeginDelete.
type PrivateLinkServicesForM365ComplianceCenterClientGetOptions ¶
type PrivateLinkServicesForM365ComplianceCenterClientGetOptions struct { }
PrivateLinkServicesForM365ComplianceCenterClientGetOptions contains the optional parameters for the PrivateLinkServicesForM365ComplianceCenterClient.Get method.
type PrivateLinkServicesForM365ComplianceCenterClientGetResponse ¶
type PrivateLinkServicesForM365ComplianceCenterClientGetResponse struct { // The description of the service. PrivateLinkServicesForM365ComplianceCenterDescription }
PrivateLinkServicesForM365ComplianceCenterClientGetResponse contains the response from method PrivateLinkServicesForM365ComplianceCenterClient.Get.
type PrivateLinkServicesForM365ComplianceCenterClientListByResourceGroupOptions ¶
type PrivateLinkServicesForM365ComplianceCenterClientListByResourceGroupOptions struct { }
PrivateLinkServicesForM365ComplianceCenterClientListByResourceGroupOptions contains the optional parameters for the PrivateLinkServicesForM365ComplianceCenterClient.NewListByResourceGroupPager method.
type PrivateLinkServicesForM365ComplianceCenterClientListByResourceGroupResponse ¶
type PrivateLinkServicesForM365ComplianceCenterClientListByResourceGroupResponse struct { // A list of service description objects with a next link. PrivateLinkServicesForM365ComplianceCenterDescriptionListResult }
PrivateLinkServicesForM365ComplianceCenterClientListByResourceGroupResponse contains the response from method PrivateLinkServicesForM365ComplianceCenterClient.NewListByResourceGroupPager.
type PrivateLinkServicesForM365ComplianceCenterClientListOptions ¶
type PrivateLinkServicesForM365ComplianceCenterClientListOptions struct { }
PrivateLinkServicesForM365ComplianceCenterClientListOptions contains the optional parameters for the PrivateLinkServicesForM365ComplianceCenterClient.NewListPager method.
type PrivateLinkServicesForM365ComplianceCenterClientListResponse ¶
type PrivateLinkServicesForM365ComplianceCenterClientListResponse struct { // A list of service description objects with a next link. PrivateLinkServicesForM365ComplianceCenterDescriptionListResult }
PrivateLinkServicesForM365ComplianceCenterClientListResponse contains the response from method PrivateLinkServicesForM365ComplianceCenterClient.NewListPager.
type PrivateLinkServicesForM365ComplianceCenterClientUpdateResponse ¶
type PrivateLinkServicesForM365ComplianceCenterClientUpdateResponse struct { // The description of the service. PrivateLinkServicesForM365ComplianceCenterDescription }
PrivateLinkServicesForM365ComplianceCenterClientUpdateResponse contains the response from method PrivateLinkServicesForM365ComplianceCenterClient.BeginUpdate.
type PrivateLinkServicesForM365ComplianceCenterDescription ¶
type PrivateLinkServicesForM365ComplianceCenterDescription struct { // REQUIRED; The kind of the service. Kind *Kind // REQUIRED; The resource location. Location *string // An etag associated with the resource, used for optimistic concurrency when editing it. Etag *string // Setting indicating whether the service has a managed identity associated with it. Identity *ServicesResourceIdentity // The common properties of a service. Properties *ServicesProperties // The resource tags. Tags map[string]*string // READ-ONLY; The resource identifier. ID *string // READ-ONLY; The resource name. Name *string // READ-ONLY; Required property for system data SystemData *SystemData // READ-ONLY; The resource type. Type *string }
PrivateLinkServicesForM365ComplianceCenterDescription - The description of the service.
func (PrivateLinkServicesForM365ComplianceCenterDescription) MarshalJSON ¶
func (p PrivateLinkServicesForM365ComplianceCenterDescription) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkServicesForM365ComplianceCenterDescription.
func (*PrivateLinkServicesForM365ComplianceCenterDescription) UnmarshalJSON ¶
func (p *PrivateLinkServicesForM365ComplianceCenterDescription) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServicesForM365ComplianceCenterDescription.
type PrivateLinkServicesForM365ComplianceCenterDescriptionListResult ¶
type PrivateLinkServicesForM365ComplianceCenterDescriptionListResult struct { // A list of service description objects. Value []*PrivateLinkServicesForM365ComplianceCenterDescription // READ-ONLY; The link used to get the next page of service description objects. NextLink *string }
PrivateLinkServicesForM365ComplianceCenterDescriptionListResult - A list of service description objects with a next link.
func (PrivateLinkServicesForM365ComplianceCenterDescriptionListResult) MarshalJSON ¶
func (p PrivateLinkServicesForM365ComplianceCenterDescriptionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkServicesForM365ComplianceCenterDescriptionListResult.
func (*PrivateLinkServicesForM365ComplianceCenterDescriptionListResult) UnmarshalJSON ¶
func (p *PrivateLinkServicesForM365ComplianceCenterDescriptionListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServicesForM365ComplianceCenterDescriptionListResult.
type PrivateLinkServicesForM365SecurityCenterClient ¶
type PrivateLinkServicesForM365SecurityCenterClient struct {
// contains filtered or unexported fields
}
PrivateLinkServicesForM365SecurityCenterClient contains the methods for the PrivateLinkServicesForM365SecurityCenter group. Don't use this type directly, use NewPrivateLinkServicesForM365SecurityCenterClient() instead.
func NewPrivateLinkServicesForM365SecurityCenterClient ¶
func NewPrivateLinkServicesForM365SecurityCenterClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkServicesForM365SecurityCenterClient, error)
NewPrivateLinkServicesForM365SecurityCenterClient creates a new instance of PrivateLinkServicesForM365SecurityCenterClient with the specified values.
- subscriptionID - The subscription identifier.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateLinkServicesForM365SecurityCenterClient) BeginCreateOrUpdate ¶
func (client *PrivateLinkServicesForM365SecurityCenterClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, privateLinkServicesForM365SecurityCenterDescription PrivateLinkServicesForM365SecurityCenterDescription, options *PrivateLinkServicesForM365SecurityCenterClientBeginCreateOrUpdateOptions) (*runtime.Poller[PrivateLinkServicesForM365SecurityCenterClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update the metadata of a privateLinkServicesForM365SecurityCenter instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateLinkServicesForM365SecurityCenterDescription - The service instance metadata.
- options - PrivateLinkServicesForM365SecurityCenterClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateLinkServicesForM365SecurityCenterClient.BeginCreateOrUpdate method.
Example (CreateOrUpdateAServiceWithAllParameters) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SecurityCenterServiceCreate.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForM365SecurityCenterClient().BeginCreateOrUpdate(ctx, "rg1", "service1", armm365securityandcompliance.PrivateLinkServicesForM365SecurityCenterDescription{ Identity: &armm365securityandcompliance.ServicesResourceIdentity{ Type: to.Ptr(armm365securityandcompliance.ManagedServiceIdentityTypeSystemAssigned), }, Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), Location: to.Ptr("westus2"), Tags: map[string]*string{}, Properties: &armm365securityandcompliance.ServicesProperties{ AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ { ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), }, { ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), }}, AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ Audience: to.Ptr("https://azurehealthcareapis.com"), Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), SmartProxyEnabled: to.Ptr(true), }, CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ AllowCredentials: to.Ptr(false), Headers: []*string{ to.Ptr("*")}, MaxAge: to.Ptr[int64](1440), Methods: []*string{ to.Ptr("DELETE"), to.Ptr("GET"), to.Ptr("OPTIONS"), to.Ptr("PATCH"), to.Ptr("POST"), to.Ptr("PUT")}, Origins: []*string{ to.Ptr("*")}, }, CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), OfferThroughput: to.Ptr[int64](1000), }, ExportConfiguration: &armm365securityandcompliance.ServiceExportConfigurationInfo{ StorageAccountName: to.Ptr("existingStorageAccount"), }, PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{}, PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), }, }, 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.PrivateLinkServicesForM365SecurityCenterDescription = armm365securityandcompliance.PrivateLinkServicesForM365SecurityCenterDescription{ // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/service1"), // Identity: &armm365securityandcompliance.ServicesResourceIdentity{ // Type: to.Ptr(armm365securityandcompliance.ManagedServiceIdentityTypeSystemAssigned), // PrincipalID: to.Ptr("03fe6ae0-952c-4e4b-954b-cc0364dd252e"), // TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d8cd011db47"), // }, // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US 2"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // ExportConfiguration: &armm365securityandcompliance.ServiceExportConfigurationInfo{ // StorageAccountName: to.Ptr("existingStorageAccount"), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
Example (CreateOrUpdateAServiceWithMinimumParameters) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SecurityCenterServiceCreateMinimum.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForM365SecurityCenterClient().BeginCreateOrUpdate(ctx, "rg1", "service2", armm365securityandcompliance.PrivateLinkServicesForM365SecurityCenterDescription{ Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), Location: to.Ptr("westus2"), Tags: map[string]*string{}, Properties: &armm365securityandcompliance.ServicesProperties{ AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ { ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), }}, }, }, 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.PrivateLinkServicesForM365SecurityCenterDescription = armm365securityandcompliance.PrivateLinkServicesForM365SecurityCenterDescription{ // Name: to.Ptr("service2"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/service2"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("westus2"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(false), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // }, // Methods: []*string{ // }, // Origins: []*string{ // }, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
func (*PrivateLinkServicesForM365SecurityCenterClient) BeginDelete ¶
func (client *PrivateLinkServicesForM365SecurityCenterClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, options *PrivateLinkServicesForM365SecurityCenterClientBeginDeleteOptions) (*runtime.Poller[PrivateLinkServicesForM365SecurityCenterClientDeleteResponse], error)
BeginDelete - Delete a service instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateLinkServicesForM365SecurityCenterClientBeginDeleteOptions contains the optional parameters for the PrivateLinkServicesForM365SecurityCenterClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SecurityCenterServiceDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForM365SecurityCenterClient().BeginDelete(ctx, "rg1", "service1", 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 (*PrivateLinkServicesForM365SecurityCenterClient) BeginUpdate ¶
func (client *PrivateLinkServicesForM365SecurityCenterClient) BeginUpdate(ctx context.Context, resourceGroupName string, resourceName string, servicePatchDescription ServicesPatchDescription, options *PrivateLinkServicesForM365SecurityCenterClientBeginUpdateOptions) (*runtime.Poller[PrivateLinkServicesForM365SecurityCenterClientUpdateResponse], error)
BeginUpdate - Update the metadata of a privateLinkServicesForM365SecurityCenter instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- servicePatchDescription - The service instance metadata and security metadata.
- options - PrivateLinkServicesForM365SecurityCenterClientBeginUpdateOptions contains the optional parameters for the PrivateLinkServicesForM365SecurityCenterClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SecurityCenterServicePatch.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForM365SecurityCenterClient().BeginUpdate(ctx, "rg1", "service1", armm365securityandcompliance.ServicesPatchDescription{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, 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.PrivateLinkServicesForM365SecurityCenterDescription = armm365securityandcompliance.PrivateLinkServicesForM365SecurityCenterDescription{ // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/service1"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // "tag1": to.Ptr("value1"), // "tag2": to.Ptr("value2"), // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
func (*PrivateLinkServicesForM365SecurityCenterClient) Get ¶
func (client *PrivateLinkServicesForM365SecurityCenterClient) Get(ctx context.Context, resourceGroupName string, resourceName string, options *PrivateLinkServicesForM365SecurityCenterClientGetOptions) (PrivateLinkServicesForM365SecurityCenterClientGetResponse, error)
Get - Get the metadata of a privateLinkServicesForM365SecurityCenter resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateLinkServicesForM365SecurityCenterClientGetOptions contains the optional parameters for the PrivateLinkServicesForM365SecurityCenterClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SecurityCenterServiceGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateLinkServicesForM365SecurityCenterClient().Get(ctx, "rg1", "service1", 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.PrivateLinkServicesForM365SecurityCenterDescription = armm365securityandcompliance.PrivateLinkServicesForM365SecurityCenterDescription{ // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/service1"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
func (*PrivateLinkServicesForM365SecurityCenterClient) NewListByResourceGroupPager ¶
func (client *PrivateLinkServicesForM365SecurityCenterClient) NewListByResourceGroupPager(resourceGroupName string, options *PrivateLinkServicesForM365SecurityCenterClientListByResourceGroupOptions) *runtime.Pager[PrivateLinkServicesForM365SecurityCenterClientListByResourceGroupResponse]
NewListByResourceGroupPager - Get all the service instances in a resource group.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- options - PrivateLinkServicesForM365SecurityCenterClientListByResourceGroupOptions contains the optional parameters for the PrivateLinkServicesForM365SecurityCenterClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SecurityCenterServiceListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPrivateLinkServicesForM365SecurityCenterClient().NewListByResourceGroupPager("rgname", 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.PrivateLinkServicesForM365SecurityCenterDescriptionListResult = armm365securityandcompliance.PrivateLinkServicesForM365SecurityCenterDescriptionListResult{ // Value: []*armm365securityandcompliance.PrivateLinkServicesForM365SecurityCenterDescription{ // { // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/dddb8dcb-effb-4290-bb47-ce1e8440c729"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // }}, // } } }
Output:
func (*PrivateLinkServicesForM365SecurityCenterClient) NewListPager ¶
func (client *PrivateLinkServicesForM365SecurityCenterClient) NewListPager(options *PrivateLinkServicesForM365SecurityCenterClientListOptions) *runtime.Pager[PrivateLinkServicesForM365SecurityCenterClientListResponse]
NewListPager - Get all the privateLinkServicesForM365SecurityCenter instances in a subscription.
Generated from API version 2021-03-25-preview
- options - PrivateLinkServicesForM365SecurityCenterClientListOptions contains the optional parameters for the PrivateLinkServicesForM365SecurityCenterClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SecurityCenterServiceList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPrivateLinkServicesForM365SecurityCenterClient().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.PrivateLinkServicesForM365SecurityCenterDescriptionListResult = armm365securityandcompliance.PrivateLinkServicesForM365SecurityCenterDescriptionListResult{ // Value: []*armm365securityandcompliance.PrivateLinkServicesForM365SecurityCenterDescription{ // { // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter"), // Etag: to.Ptr("etag"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/service1"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US"), // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // }}, // } } }
Output:
type PrivateLinkServicesForM365SecurityCenterClientBeginCreateOrUpdateOptions ¶
type PrivateLinkServicesForM365SecurityCenterClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesForM365SecurityCenterClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateLinkServicesForM365SecurityCenterClient.BeginCreateOrUpdate method.
type PrivateLinkServicesForM365SecurityCenterClientBeginDeleteOptions ¶
type PrivateLinkServicesForM365SecurityCenterClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesForM365SecurityCenterClientBeginDeleteOptions contains the optional parameters for the PrivateLinkServicesForM365SecurityCenterClient.BeginDelete method.
type PrivateLinkServicesForM365SecurityCenterClientBeginUpdateOptions ¶
type PrivateLinkServicesForM365SecurityCenterClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesForM365SecurityCenterClientBeginUpdateOptions contains the optional parameters for the PrivateLinkServicesForM365SecurityCenterClient.BeginUpdate method.
type PrivateLinkServicesForM365SecurityCenterClientCreateOrUpdateResponse ¶
type PrivateLinkServicesForM365SecurityCenterClientCreateOrUpdateResponse struct { // The description of the service. PrivateLinkServicesForM365SecurityCenterDescription }
PrivateLinkServicesForM365SecurityCenterClientCreateOrUpdateResponse contains the response from method PrivateLinkServicesForM365SecurityCenterClient.BeginCreateOrUpdate.
type PrivateLinkServicesForM365SecurityCenterClientDeleteResponse ¶
type PrivateLinkServicesForM365SecurityCenterClientDeleteResponse struct { }
PrivateLinkServicesForM365SecurityCenterClientDeleteResponse contains the response from method PrivateLinkServicesForM365SecurityCenterClient.BeginDelete.
type PrivateLinkServicesForM365SecurityCenterClientGetOptions ¶
type PrivateLinkServicesForM365SecurityCenterClientGetOptions struct { }
PrivateLinkServicesForM365SecurityCenterClientGetOptions contains the optional parameters for the PrivateLinkServicesForM365SecurityCenterClient.Get method.
type PrivateLinkServicesForM365SecurityCenterClientGetResponse ¶
type PrivateLinkServicesForM365SecurityCenterClientGetResponse struct { // The description of the service. PrivateLinkServicesForM365SecurityCenterDescription }
PrivateLinkServicesForM365SecurityCenterClientGetResponse contains the response from method PrivateLinkServicesForM365SecurityCenterClient.Get.
type PrivateLinkServicesForM365SecurityCenterClientListByResourceGroupOptions ¶
type PrivateLinkServicesForM365SecurityCenterClientListByResourceGroupOptions struct { }
PrivateLinkServicesForM365SecurityCenterClientListByResourceGroupOptions contains the optional parameters for the PrivateLinkServicesForM365SecurityCenterClient.NewListByResourceGroupPager method.
type PrivateLinkServicesForM365SecurityCenterClientListByResourceGroupResponse ¶
type PrivateLinkServicesForM365SecurityCenterClientListByResourceGroupResponse struct { // A list of service description objects with a next link. PrivateLinkServicesForM365SecurityCenterDescriptionListResult }
PrivateLinkServicesForM365SecurityCenterClientListByResourceGroupResponse contains the response from method PrivateLinkServicesForM365SecurityCenterClient.NewListByResourceGroupPager.
type PrivateLinkServicesForM365SecurityCenterClientListOptions ¶
type PrivateLinkServicesForM365SecurityCenterClientListOptions struct { }
PrivateLinkServicesForM365SecurityCenterClientListOptions contains the optional parameters for the PrivateLinkServicesForM365SecurityCenterClient.NewListPager method.
type PrivateLinkServicesForM365SecurityCenterClientListResponse ¶
type PrivateLinkServicesForM365SecurityCenterClientListResponse struct { // A list of service description objects with a next link. PrivateLinkServicesForM365SecurityCenterDescriptionListResult }
PrivateLinkServicesForM365SecurityCenterClientListResponse contains the response from method PrivateLinkServicesForM365SecurityCenterClient.NewListPager.
type PrivateLinkServicesForM365SecurityCenterClientUpdateResponse ¶
type PrivateLinkServicesForM365SecurityCenterClientUpdateResponse struct { // The description of the service. PrivateLinkServicesForM365SecurityCenterDescription }
PrivateLinkServicesForM365SecurityCenterClientUpdateResponse contains the response from method PrivateLinkServicesForM365SecurityCenterClient.BeginUpdate.
type PrivateLinkServicesForM365SecurityCenterDescription ¶
type PrivateLinkServicesForM365SecurityCenterDescription struct { // REQUIRED; The kind of the service. Kind *Kind // REQUIRED; The resource location. Location *string // An etag associated with the resource, used for optimistic concurrency when editing it. Etag *string // Setting indicating whether the service has a managed identity associated with it. Identity *ServicesResourceIdentity // The common properties of a service. Properties *ServicesProperties // The resource tags. Tags map[string]*string // READ-ONLY; The resource identifier. ID *string // READ-ONLY; The resource name. Name *string // READ-ONLY; Required property for system data SystemData *SystemData // READ-ONLY; The resource type. Type *string }
PrivateLinkServicesForM365SecurityCenterDescription - The description of the service.
func (PrivateLinkServicesForM365SecurityCenterDescription) MarshalJSON ¶
func (p PrivateLinkServicesForM365SecurityCenterDescription) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkServicesForM365SecurityCenterDescription.
func (*PrivateLinkServicesForM365SecurityCenterDescription) UnmarshalJSON ¶
func (p *PrivateLinkServicesForM365SecurityCenterDescription) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServicesForM365SecurityCenterDescription.
type PrivateLinkServicesForM365SecurityCenterDescriptionListResult ¶
type PrivateLinkServicesForM365SecurityCenterDescriptionListResult struct { // A list of service description objects. Value []*PrivateLinkServicesForM365SecurityCenterDescription // READ-ONLY; The link used to get the next page of service description objects. NextLink *string }
PrivateLinkServicesForM365SecurityCenterDescriptionListResult - A list of service description objects with a next link.
func (PrivateLinkServicesForM365SecurityCenterDescriptionListResult) MarshalJSON ¶
func (p PrivateLinkServicesForM365SecurityCenterDescriptionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkServicesForM365SecurityCenterDescriptionListResult.
func (*PrivateLinkServicesForM365SecurityCenterDescriptionListResult) UnmarshalJSON ¶
func (p *PrivateLinkServicesForM365SecurityCenterDescriptionListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServicesForM365SecurityCenterDescriptionListResult.
type PrivateLinkServicesForMIPPolicySyncClient ¶
type PrivateLinkServicesForMIPPolicySyncClient struct {
// contains filtered or unexported fields
}
PrivateLinkServicesForMIPPolicySyncClient contains the methods for the PrivateLinkServicesForMIPPolicySync group. Don't use this type directly, use NewPrivateLinkServicesForMIPPolicySyncClient() instead.
func NewPrivateLinkServicesForMIPPolicySyncClient ¶
func NewPrivateLinkServicesForMIPPolicySyncClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkServicesForMIPPolicySyncClient, error)
NewPrivateLinkServicesForMIPPolicySyncClient creates a new instance of PrivateLinkServicesForMIPPolicySyncClient with the specified values.
- subscriptionID - The subscription identifier.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateLinkServicesForMIPPolicySyncClient) BeginCreateOrUpdate ¶
func (client *PrivateLinkServicesForMIPPolicySyncClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, privateLinkServicesForMIPPolicySyncDescription PrivateLinkServicesForMIPPolicySyncDescription, options *PrivateLinkServicesForMIPPolicySyncClientBeginCreateOrUpdateOptions) (*runtime.Poller[PrivateLinkServicesForMIPPolicySyncClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update the metadata of a privateLinkServicesForMIPPolicySync instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateLinkServicesForMIPPolicySyncDescription - The service instance metadata.
- options - PrivateLinkServicesForMIPPolicySyncClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateLinkServicesForMIPPolicySyncClient.BeginCreateOrUpdate method.
Example (CreateOrUpdateAServiceWithAllParameters) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/MIPPolicySyncServiceCreate.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForMIPPolicySyncClient().BeginCreateOrUpdate(ctx, "rg1", "service1", armm365securityandcompliance.PrivateLinkServicesForMIPPolicySyncDescription{ Identity: &armm365securityandcompliance.ServicesResourceIdentity{ Type: to.Ptr(armm365securityandcompliance.ManagedServiceIdentityTypeSystemAssigned), }, Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), Location: to.Ptr("westus2"), Tags: map[string]*string{}, Properties: &armm365securityandcompliance.ServicesProperties{ AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ { ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), }, { ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), }}, AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ Audience: to.Ptr("https://azurehealthcareapis.com"), Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), SmartProxyEnabled: to.Ptr(true), }, CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ AllowCredentials: to.Ptr(false), Headers: []*string{ to.Ptr("*")}, MaxAge: to.Ptr[int64](1440), Methods: []*string{ to.Ptr("DELETE"), to.Ptr("GET"), to.Ptr("OPTIONS"), to.Ptr("PATCH"), to.Ptr("POST"), to.Ptr("PUT")}, Origins: []*string{ to.Ptr("*")}, }, CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), OfferThroughput: to.Ptr[int64](1000), }, ExportConfiguration: &armm365securityandcompliance.ServiceExportConfigurationInfo{ StorageAccountName: to.Ptr("existingStorageAccount"), }, PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{}, PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), }, }, 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.PrivateLinkServicesForMIPPolicySyncDescription = armm365securityandcompliance.PrivateLinkServicesForMIPPolicySyncDescription{ // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/service1"), // Identity: &armm365securityandcompliance.ServicesResourceIdentity{ // Type: to.Ptr(armm365securityandcompliance.ManagedServiceIdentityTypeSystemAssigned), // PrincipalID: to.Ptr("03fe6ae0-952c-4e4b-954b-cc0364dd252e"), // TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d8cd011db47"), // }, // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US 2"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("fangsu"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("fangsu"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // ExportConfiguration: &armm365securityandcompliance.ServiceExportConfigurationInfo{ // StorageAccountName: to.Ptr("existingStorageAccount"), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
Example (CreateOrUpdateAServiceWithMinimumParameters) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/MIPPolicySyncServiceCreateMinimum.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForMIPPolicySyncClient().BeginCreateOrUpdate(ctx, "rg1", "service2", armm365securityandcompliance.PrivateLinkServicesForMIPPolicySyncDescription{ Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), Location: to.Ptr("westus2"), Tags: map[string]*string{}, Properties: &armm365securityandcompliance.ServicesProperties{ AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ { ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), }}, }, }, 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.PrivateLinkServicesForMIPPolicySyncDescription = armm365securityandcompliance.PrivateLinkServicesForMIPPolicySyncDescription{ // Name: to.Ptr("service2"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/service2"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("westus2"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("fangsu"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("fangsu"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(false), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // }, // Methods: []*string{ // }, // Origins: []*string{ // }, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
func (*PrivateLinkServicesForMIPPolicySyncClient) BeginDelete ¶
func (client *PrivateLinkServicesForMIPPolicySyncClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, options *PrivateLinkServicesForMIPPolicySyncClientBeginDeleteOptions) (*runtime.Poller[PrivateLinkServicesForMIPPolicySyncClientDeleteResponse], error)
BeginDelete - Delete a service instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateLinkServicesForMIPPolicySyncClientBeginDeleteOptions contains the optional parameters for the PrivateLinkServicesForMIPPolicySyncClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/MIPPolicySyncServiceDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForMIPPolicySyncClient().BeginDelete(ctx, "rg1", "service1", 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 (*PrivateLinkServicesForMIPPolicySyncClient) BeginUpdate ¶
func (client *PrivateLinkServicesForMIPPolicySyncClient) BeginUpdate(ctx context.Context, resourceGroupName string, resourceName string, servicePatchDescription ServicesPatchDescription, options *PrivateLinkServicesForMIPPolicySyncClientBeginUpdateOptions) (*runtime.Poller[PrivateLinkServicesForMIPPolicySyncClientUpdateResponse], error)
BeginUpdate - Update the metadata of a privateLinkServicesForMIPPolicySync instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- servicePatchDescription - The service instance metadata and security metadata.
- options - PrivateLinkServicesForMIPPolicySyncClientBeginUpdateOptions contains the optional parameters for the PrivateLinkServicesForMIPPolicySyncClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/MIPPolicySyncServicePatch.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForMIPPolicySyncClient().BeginUpdate(ctx, "rg1", "service1", armm365securityandcompliance.ServicesPatchDescription{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, 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.PrivateLinkServicesForMIPPolicySyncDescription = armm365securityandcompliance.PrivateLinkServicesForMIPPolicySyncDescription{ // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/service1"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("fangsu"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("fangsu"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // "tag1": to.Ptr("value1"), // "tag2": to.Ptr("value2"), // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
func (*PrivateLinkServicesForMIPPolicySyncClient) Get ¶
func (client *PrivateLinkServicesForMIPPolicySyncClient) Get(ctx context.Context, resourceGroupName string, resourceName string, options *PrivateLinkServicesForMIPPolicySyncClientGetOptions) (PrivateLinkServicesForMIPPolicySyncClientGetResponse, error)
Get - Get the metadata of a privateLinkServicesForMIPPolicySync resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateLinkServicesForMIPPolicySyncClientGetOptions contains the optional parameters for the PrivateLinkServicesForMIPPolicySyncClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/MIPPolicySyncServiceGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateLinkServicesForMIPPolicySyncClient().Get(ctx, "rg1", "service1", 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.PrivateLinkServicesForMIPPolicySyncDescription = armm365securityandcompliance.PrivateLinkServicesForMIPPolicySyncDescription{ // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/service1"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("fangsu"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("fangsu"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
func (*PrivateLinkServicesForMIPPolicySyncClient) NewListByResourceGroupPager ¶
func (client *PrivateLinkServicesForMIPPolicySyncClient) NewListByResourceGroupPager(resourceGroupName string, options *PrivateLinkServicesForMIPPolicySyncClientListByResourceGroupOptions) *runtime.Pager[PrivateLinkServicesForMIPPolicySyncClientListByResourceGroupResponse]
NewListByResourceGroupPager - Get all the service instances in a resource group.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- options - PrivateLinkServicesForMIPPolicySyncClientListByResourceGroupOptions contains the optional parameters for the PrivateLinkServicesForMIPPolicySyncClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/MIPPolicySyncServiceListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPrivateLinkServicesForMIPPolicySyncClient().NewListByResourceGroupPager("rgname", 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.PrivateLinkServicesForMIPPolicySyncDescriptionListResult = armm365securityandcompliance.PrivateLinkServicesForMIPPolicySyncDescriptionListResult{ // Value: []*armm365securityandcompliance.PrivateLinkServicesForMIPPolicySyncDescription{ // { // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/dddb8dcb-effb-4290-bb47-ce1e8440c729"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // }}, // } } }
Output:
func (*PrivateLinkServicesForMIPPolicySyncClient) NewListPager ¶
func (client *PrivateLinkServicesForMIPPolicySyncClient) NewListPager(options *PrivateLinkServicesForMIPPolicySyncClientListOptions) *runtime.Pager[PrivateLinkServicesForMIPPolicySyncClientListResponse]
NewListPager - Get all the privateLinkServicesForMIPPolicySync instances in a subscription.
Generated from API version 2021-03-25-preview
- options - PrivateLinkServicesForMIPPolicySyncClientListOptions contains the optional parameters for the PrivateLinkServicesForMIPPolicySyncClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/MIPPolicySyncServiceList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPrivateLinkServicesForMIPPolicySyncClient().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.PrivateLinkServicesForMIPPolicySyncDescriptionListResult = armm365securityandcompliance.PrivateLinkServicesForMIPPolicySyncDescriptionListResult{ // Value: []*armm365securityandcompliance.PrivateLinkServicesForMIPPolicySyncDescription{ // { // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync"), // Etag: to.Ptr("etag"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/service1"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US"), // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // }}, // } } }
Output:
type PrivateLinkServicesForMIPPolicySyncClientBeginCreateOrUpdateOptions ¶
type PrivateLinkServicesForMIPPolicySyncClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesForMIPPolicySyncClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateLinkServicesForMIPPolicySyncClient.BeginCreateOrUpdate method.
type PrivateLinkServicesForMIPPolicySyncClientBeginDeleteOptions ¶
type PrivateLinkServicesForMIPPolicySyncClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesForMIPPolicySyncClientBeginDeleteOptions contains the optional parameters for the PrivateLinkServicesForMIPPolicySyncClient.BeginDelete method.
type PrivateLinkServicesForMIPPolicySyncClientBeginUpdateOptions ¶
type PrivateLinkServicesForMIPPolicySyncClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesForMIPPolicySyncClientBeginUpdateOptions contains the optional parameters for the PrivateLinkServicesForMIPPolicySyncClient.BeginUpdate method.
type PrivateLinkServicesForMIPPolicySyncClientCreateOrUpdateResponse ¶
type PrivateLinkServicesForMIPPolicySyncClientCreateOrUpdateResponse struct { // The description of the service. PrivateLinkServicesForMIPPolicySyncDescription }
PrivateLinkServicesForMIPPolicySyncClientCreateOrUpdateResponse contains the response from method PrivateLinkServicesForMIPPolicySyncClient.BeginCreateOrUpdate.
type PrivateLinkServicesForMIPPolicySyncClientDeleteResponse ¶
type PrivateLinkServicesForMIPPolicySyncClientDeleteResponse struct { }
PrivateLinkServicesForMIPPolicySyncClientDeleteResponse contains the response from method PrivateLinkServicesForMIPPolicySyncClient.BeginDelete.
type PrivateLinkServicesForMIPPolicySyncClientGetOptions ¶
type PrivateLinkServicesForMIPPolicySyncClientGetOptions struct { }
PrivateLinkServicesForMIPPolicySyncClientGetOptions contains the optional parameters for the PrivateLinkServicesForMIPPolicySyncClient.Get method.
type PrivateLinkServicesForMIPPolicySyncClientGetResponse ¶
type PrivateLinkServicesForMIPPolicySyncClientGetResponse struct { // The description of the service. PrivateLinkServicesForMIPPolicySyncDescription }
PrivateLinkServicesForMIPPolicySyncClientGetResponse contains the response from method PrivateLinkServicesForMIPPolicySyncClient.Get.
type PrivateLinkServicesForMIPPolicySyncClientListByResourceGroupOptions ¶
type PrivateLinkServicesForMIPPolicySyncClientListByResourceGroupOptions struct { }
PrivateLinkServicesForMIPPolicySyncClientListByResourceGroupOptions contains the optional parameters for the PrivateLinkServicesForMIPPolicySyncClient.NewListByResourceGroupPager method.
type PrivateLinkServicesForMIPPolicySyncClientListByResourceGroupResponse ¶
type PrivateLinkServicesForMIPPolicySyncClientListByResourceGroupResponse struct { // A list of service description objects with a next link. PrivateLinkServicesForMIPPolicySyncDescriptionListResult }
PrivateLinkServicesForMIPPolicySyncClientListByResourceGroupResponse contains the response from method PrivateLinkServicesForMIPPolicySyncClient.NewListByResourceGroupPager.
type PrivateLinkServicesForMIPPolicySyncClientListOptions ¶
type PrivateLinkServicesForMIPPolicySyncClientListOptions struct { }
PrivateLinkServicesForMIPPolicySyncClientListOptions contains the optional parameters for the PrivateLinkServicesForMIPPolicySyncClient.NewListPager method.
type PrivateLinkServicesForMIPPolicySyncClientListResponse ¶
type PrivateLinkServicesForMIPPolicySyncClientListResponse struct { // A list of service description objects with a next link. PrivateLinkServicesForMIPPolicySyncDescriptionListResult }
PrivateLinkServicesForMIPPolicySyncClientListResponse contains the response from method PrivateLinkServicesForMIPPolicySyncClient.NewListPager.
type PrivateLinkServicesForMIPPolicySyncClientUpdateResponse ¶
type PrivateLinkServicesForMIPPolicySyncClientUpdateResponse struct { // The description of the service. PrivateLinkServicesForMIPPolicySyncDescription }
PrivateLinkServicesForMIPPolicySyncClientUpdateResponse contains the response from method PrivateLinkServicesForMIPPolicySyncClient.BeginUpdate.
type PrivateLinkServicesForMIPPolicySyncDescription ¶
type PrivateLinkServicesForMIPPolicySyncDescription struct { // REQUIRED; The kind of the service. Kind *Kind // REQUIRED; The resource location. Location *string // An etag associated with the resource, used for optimistic concurrency when editing it. Etag *string // Setting indicating whether the service has a managed identity associated with it. Identity *ServicesResourceIdentity // The common properties of a service. Properties *ServicesProperties // The resource tags. Tags map[string]*string // READ-ONLY; The resource identifier. ID *string // READ-ONLY; The resource name. Name *string // READ-ONLY; Required property for system data SystemData *SystemData // READ-ONLY; The resource type. Type *string }
PrivateLinkServicesForMIPPolicySyncDescription - The description of the service.
func (PrivateLinkServicesForMIPPolicySyncDescription) MarshalJSON ¶
func (p PrivateLinkServicesForMIPPolicySyncDescription) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkServicesForMIPPolicySyncDescription.
func (*PrivateLinkServicesForMIPPolicySyncDescription) UnmarshalJSON ¶
func (p *PrivateLinkServicesForMIPPolicySyncDescription) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServicesForMIPPolicySyncDescription.
type PrivateLinkServicesForMIPPolicySyncDescriptionListResult ¶
type PrivateLinkServicesForMIPPolicySyncDescriptionListResult struct { // A list of service description objects. Value []*PrivateLinkServicesForMIPPolicySyncDescription // READ-ONLY; The link used to get the next page of service description objects. NextLink *string }
PrivateLinkServicesForMIPPolicySyncDescriptionListResult - A list of service description objects with a next link.
func (PrivateLinkServicesForMIPPolicySyncDescriptionListResult) MarshalJSON ¶
func (p PrivateLinkServicesForMIPPolicySyncDescriptionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkServicesForMIPPolicySyncDescriptionListResult.
func (*PrivateLinkServicesForMIPPolicySyncDescriptionListResult) UnmarshalJSON ¶
func (p *PrivateLinkServicesForMIPPolicySyncDescriptionListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServicesForMIPPolicySyncDescriptionListResult.
type PrivateLinkServicesForO365ManagementActivityAPIClient ¶
type PrivateLinkServicesForO365ManagementActivityAPIClient struct {
// contains filtered or unexported fields
}
PrivateLinkServicesForO365ManagementActivityAPIClient contains the methods for the PrivateLinkServicesForO365ManagementActivityAPI group. Don't use this type directly, use NewPrivateLinkServicesForO365ManagementActivityAPIClient() instead.
func NewPrivateLinkServicesForO365ManagementActivityAPIClient ¶
func NewPrivateLinkServicesForO365ManagementActivityAPIClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkServicesForO365ManagementActivityAPIClient, error)
NewPrivateLinkServicesForO365ManagementActivityAPIClient creates a new instance of PrivateLinkServicesForO365ManagementActivityAPIClient with the specified values.
- subscriptionID - The subscription identifier.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateLinkServicesForO365ManagementActivityAPIClient) BeginCreateOrUpdate ¶
func (client *PrivateLinkServicesForO365ManagementActivityAPIClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, privateLinkServicesForO365ManagementActivityAPIDescription PrivateLinkServicesForO365ManagementActivityAPIDescription, options *PrivateLinkServicesForO365ManagementActivityAPIClientBeginCreateOrUpdateOptions) (*runtime.Poller[PrivateLinkServicesForO365ManagementActivityAPIClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update the metadata of a privateLinkServicesForO365ManagementActivityAPI instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateLinkServicesForO365ManagementActivityAPIDescription - The service instance metadata.
- options - PrivateLinkServicesForO365ManagementActivityAPIClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateLinkServicesForO365ManagementActivityAPIClient.BeginCreateOrUpdate method.
Example (CreateOrUpdateAServiceWithAllParameters) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ManagementAPIServiceCreate.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForO365ManagementActivityAPIClient().BeginCreateOrUpdate(ctx, "rg1", "service1", armm365securityandcompliance.PrivateLinkServicesForO365ManagementActivityAPIDescription{ Identity: &armm365securityandcompliance.ServicesResourceIdentity{ Type: to.Ptr(armm365securityandcompliance.ManagedServiceIdentityTypeSystemAssigned), }, Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), Location: to.Ptr("westus2"), Tags: map[string]*string{}, Properties: &armm365securityandcompliance.ServicesProperties{ AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ { ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), }, { ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), }}, AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ Audience: to.Ptr("https://azurehealthcareapis.com"), Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), SmartProxyEnabled: to.Ptr(true), }, CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ AllowCredentials: to.Ptr(false), Headers: []*string{ to.Ptr("*")}, MaxAge: to.Ptr[int64](1440), Methods: []*string{ to.Ptr("DELETE"), to.Ptr("GET"), to.Ptr("OPTIONS"), to.Ptr("PATCH"), to.Ptr("POST"), to.Ptr("PUT")}, Origins: []*string{ to.Ptr("*")}, }, CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), OfferThroughput: to.Ptr[int64](1000), }, ExportConfiguration: &armm365securityandcompliance.ServiceExportConfigurationInfo{ StorageAccountName: to.Ptr("existingStorageAccount"), }, PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{}, PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), }, }, 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.PrivateLinkServicesForO365ManagementActivityAPIDescription = armm365securityandcompliance.PrivateLinkServicesForO365ManagementActivityAPIDescription{ // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/service1"), // Identity: &armm365securityandcompliance.ServicesResourceIdentity{ // Type: to.Ptr(armm365securityandcompliance.ManagedServiceIdentityTypeSystemAssigned), // PrincipalID: to.Ptr("03fe6ae0-952c-4e4b-954b-cc0364dd252e"), // TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d8cd011db47"), // }, // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US 2"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // ExportConfiguration: &armm365securityandcompliance.ServiceExportConfigurationInfo{ // StorageAccountName: to.Ptr("existingStorageAccount"), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
Example (CreateOrUpdateAServiceWithMinimumParameters) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ManagementAPIServiceCreateMinimum.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForO365ManagementActivityAPIClient().BeginCreateOrUpdate(ctx, "rg1", "service2", armm365securityandcompliance.PrivateLinkServicesForO365ManagementActivityAPIDescription{ Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), Location: to.Ptr("westus2"), Tags: map[string]*string{}, Properties: &armm365securityandcompliance.ServicesProperties{ AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ { ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), }}, }, }, 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.PrivateLinkServicesForO365ManagementActivityAPIDescription = armm365securityandcompliance.PrivateLinkServicesForO365ManagementActivityAPIDescription{ // Name: to.Ptr("service2"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/service2"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("westus2"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(false), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // }, // Methods: []*string{ // }, // Origins: []*string{ // }, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
func (*PrivateLinkServicesForO365ManagementActivityAPIClient) BeginDelete ¶
func (client *PrivateLinkServicesForO365ManagementActivityAPIClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, options *PrivateLinkServicesForO365ManagementActivityAPIClientBeginDeleteOptions) (*runtime.Poller[PrivateLinkServicesForO365ManagementActivityAPIClientDeleteResponse], error)
BeginDelete - Delete a service instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateLinkServicesForO365ManagementActivityAPIClientBeginDeleteOptions contains the optional parameters for the PrivateLinkServicesForO365ManagementActivityAPIClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ManagementAPIServiceDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForO365ManagementActivityAPIClient().BeginDelete(ctx, "rg1", "service1", 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 (*PrivateLinkServicesForO365ManagementActivityAPIClient) BeginUpdate ¶
func (client *PrivateLinkServicesForO365ManagementActivityAPIClient) BeginUpdate(ctx context.Context, resourceGroupName string, resourceName string, servicePatchDescription ServicesPatchDescription, options *PrivateLinkServicesForO365ManagementActivityAPIClientBeginUpdateOptions) (*runtime.Poller[PrivateLinkServicesForO365ManagementActivityAPIClientUpdateResponse], error)
BeginUpdate - Update the metadata of a privateLinkServicesForO365ManagementActivityAPI instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- servicePatchDescription - The service instance metadata and security metadata.
- options - PrivateLinkServicesForO365ManagementActivityAPIClientBeginUpdateOptions contains the optional parameters for the PrivateLinkServicesForO365ManagementActivityAPIClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ManagementAPIServicePatch.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForO365ManagementActivityAPIClient().BeginUpdate(ctx, "rg1", "service1", armm365securityandcompliance.ServicesPatchDescription{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, 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.PrivateLinkServicesForO365ManagementActivityAPIDescription = armm365securityandcompliance.PrivateLinkServicesForO365ManagementActivityAPIDescription{ // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/service1"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // "tag1": to.Ptr("value1"), // "tag2": to.Ptr("value2"), // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
func (*PrivateLinkServicesForO365ManagementActivityAPIClient) Get ¶
func (client *PrivateLinkServicesForO365ManagementActivityAPIClient) Get(ctx context.Context, resourceGroupName string, resourceName string, options *PrivateLinkServicesForO365ManagementActivityAPIClientGetOptions) (PrivateLinkServicesForO365ManagementActivityAPIClientGetResponse, error)
Get - Get the metadata of a privateLinkServicesForO365ManagementActivityAPI resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateLinkServicesForO365ManagementActivityAPIClientGetOptions contains the optional parameters for the PrivateLinkServicesForO365ManagementActivityAPIClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ManagementAPIServiceGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateLinkServicesForO365ManagementActivityAPIClient().Get(ctx, "rg1", "service1", 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.PrivateLinkServicesForO365ManagementActivityAPIDescription = armm365securityandcompliance.PrivateLinkServicesForO365ManagementActivityAPIDescription{ // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/service1"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
func (*PrivateLinkServicesForO365ManagementActivityAPIClient) NewListByResourceGroupPager ¶
func (client *PrivateLinkServicesForO365ManagementActivityAPIClient) NewListByResourceGroupPager(resourceGroupName string, options *PrivateLinkServicesForO365ManagementActivityAPIClientListByResourceGroupOptions) *runtime.Pager[PrivateLinkServicesForO365ManagementActivityAPIClientListByResourceGroupResponse]
NewListByResourceGroupPager - Get all the service instances in a resource group.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- options - PrivateLinkServicesForO365ManagementActivityAPIClientListByResourceGroupOptions contains the optional parameters for the PrivateLinkServicesForO365ManagementActivityAPIClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ManagementAPIServiceListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPrivateLinkServicesForO365ManagementActivityAPIClient().NewListByResourceGroupPager("rgname", 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.PrivateLinkServicesForO365ManagementActivityAPIDescriptionListResult = armm365securityandcompliance.PrivateLinkServicesForO365ManagementActivityAPIDescriptionListResult{ // Value: []*armm365securityandcompliance.PrivateLinkServicesForO365ManagementActivityAPIDescription{ // { // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/dddb8dcb-effb-4290-bb47-ce1e8440c729"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // }}, // } } }
Output:
func (*PrivateLinkServicesForO365ManagementActivityAPIClient) NewListPager ¶
func (client *PrivateLinkServicesForO365ManagementActivityAPIClient) NewListPager(options *PrivateLinkServicesForO365ManagementActivityAPIClientListOptions) *runtime.Pager[PrivateLinkServicesForO365ManagementActivityAPIClientListResponse]
NewListPager - Get all the privateLinkServicesForO365ManagementActivityAPI instances in a subscription.
Generated from API version 2021-03-25-preview
- options - PrivateLinkServicesForO365ManagementActivityAPIClientListOptions contains the optional parameters for the PrivateLinkServicesForO365ManagementActivityAPIClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/ManagementAPIServiceList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPrivateLinkServicesForO365ManagementActivityAPIClient().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.PrivateLinkServicesForO365ManagementActivityAPIDescriptionListResult = armm365securityandcompliance.PrivateLinkServicesForO365ManagementActivityAPIDescriptionListResult{ // Value: []*armm365securityandcompliance.PrivateLinkServicesForO365ManagementActivityAPIDescription{ // { // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI"), // Etag: to.Ptr("etag"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/service1"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US"), // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // }}, // } } }
Output:
type PrivateLinkServicesForO365ManagementActivityAPIClientBeginCreateOrUpdateOptions ¶
type PrivateLinkServicesForO365ManagementActivityAPIClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesForO365ManagementActivityAPIClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateLinkServicesForO365ManagementActivityAPIClient.BeginCreateOrUpdate method.
type PrivateLinkServicesForO365ManagementActivityAPIClientBeginDeleteOptions ¶
type PrivateLinkServicesForO365ManagementActivityAPIClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesForO365ManagementActivityAPIClientBeginDeleteOptions contains the optional parameters for the PrivateLinkServicesForO365ManagementActivityAPIClient.BeginDelete method.
type PrivateLinkServicesForO365ManagementActivityAPIClientBeginUpdateOptions ¶
type PrivateLinkServicesForO365ManagementActivityAPIClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesForO365ManagementActivityAPIClientBeginUpdateOptions contains the optional parameters for the PrivateLinkServicesForO365ManagementActivityAPIClient.BeginUpdate method.
type PrivateLinkServicesForO365ManagementActivityAPIClientCreateOrUpdateResponse ¶
type PrivateLinkServicesForO365ManagementActivityAPIClientCreateOrUpdateResponse struct { // The description of the service. PrivateLinkServicesForO365ManagementActivityAPIDescription }
PrivateLinkServicesForO365ManagementActivityAPIClientCreateOrUpdateResponse contains the response from method PrivateLinkServicesForO365ManagementActivityAPIClient.BeginCreateOrUpdate.
type PrivateLinkServicesForO365ManagementActivityAPIClientDeleteResponse ¶
type PrivateLinkServicesForO365ManagementActivityAPIClientDeleteResponse struct { }
PrivateLinkServicesForO365ManagementActivityAPIClientDeleteResponse contains the response from method PrivateLinkServicesForO365ManagementActivityAPIClient.BeginDelete.
type PrivateLinkServicesForO365ManagementActivityAPIClientGetOptions ¶
type PrivateLinkServicesForO365ManagementActivityAPIClientGetOptions struct { }
PrivateLinkServicesForO365ManagementActivityAPIClientGetOptions contains the optional parameters for the PrivateLinkServicesForO365ManagementActivityAPIClient.Get method.
type PrivateLinkServicesForO365ManagementActivityAPIClientGetResponse ¶
type PrivateLinkServicesForO365ManagementActivityAPIClientGetResponse struct { // The description of the service. PrivateLinkServicesForO365ManagementActivityAPIDescription }
PrivateLinkServicesForO365ManagementActivityAPIClientGetResponse contains the response from method PrivateLinkServicesForO365ManagementActivityAPIClient.Get.
type PrivateLinkServicesForO365ManagementActivityAPIClientListByResourceGroupOptions ¶
type PrivateLinkServicesForO365ManagementActivityAPIClientListByResourceGroupOptions struct { }
PrivateLinkServicesForO365ManagementActivityAPIClientListByResourceGroupOptions contains the optional parameters for the PrivateLinkServicesForO365ManagementActivityAPIClient.NewListByResourceGroupPager method.
type PrivateLinkServicesForO365ManagementActivityAPIClientListByResourceGroupResponse ¶
type PrivateLinkServicesForO365ManagementActivityAPIClientListByResourceGroupResponse struct { // A list of service description objects with a next link. PrivateLinkServicesForO365ManagementActivityAPIDescriptionListResult }
PrivateLinkServicesForO365ManagementActivityAPIClientListByResourceGroupResponse contains the response from method PrivateLinkServicesForO365ManagementActivityAPIClient.NewListByResourceGroupPager.
type PrivateLinkServicesForO365ManagementActivityAPIClientListOptions ¶
type PrivateLinkServicesForO365ManagementActivityAPIClientListOptions struct { }
PrivateLinkServicesForO365ManagementActivityAPIClientListOptions contains the optional parameters for the PrivateLinkServicesForO365ManagementActivityAPIClient.NewListPager method.
type PrivateLinkServicesForO365ManagementActivityAPIClientListResponse ¶
type PrivateLinkServicesForO365ManagementActivityAPIClientListResponse struct { // A list of service description objects with a next link. PrivateLinkServicesForO365ManagementActivityAPIDescriptionListResult }
PrivateLinkServicesForO365ManagementActivityAPIClientListResponse contains the response from method PrivateLinkServicesForO365ManagementActivityAPIClient.NewListPager.
type PrivateLinkServicesForO365ManagementActivityAPIClientUpdateResponse ¶
type PrivateLinkServicesForO365ManagementActivityAPIClientUpdateResponse struct { // The description of the service. PrivateLinkServicesForO365ManagementActivityAPIDescription }
PrivateLinkServicesForO365ManagementActivityAPIClientUpdateResponse contains the response from method PrivateLinkServicesForO365ManagementActivityAPIClient.BeginUpdate.
type PrivateLinkServicesForO365ManagementActivityAPIDescription ¶
type PrivateLinkServicesForO365ManagementActivityAPIDescription struct { // REQUIRED; The kind of the service. Kind *Kind // REQUIRED; The resource location. Location *string // An etag associated with the resource, used for optimistic concurrency when editing it. Etag *string // Setting indicating whether the service has a managed identity associated with it. Identity *ServicesResourceIdentity // The common properties of a service. Properties *ServicesProperties // The resource tags. Tags map[string]*string // READ-ONLY; The resource identifier. ID *string // READ-ONLY; The resource name. Name *string // READ-ONLY; Required property for system data SystemData *SystemData // READ-ONLY; The resource type. Type *string }
PrivateLinkServicesForO365ManagementActivityAPIDescription - The description of the service.
func (PrivateLinkServicesForO365ManagementActivityAPIDescription) MarshalJSON ¶
func (p PrivateLinkServicesForO365ManagementActivityAPIDescription) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkServicesForO365ManagementActivityAPIDescription.
func (*PrivateLinkServicesForO365ManagementActivityAPIDescription) UnmarshalJSON ¶
func (p *PrivateLinkServicesForO365ManagementActivityAPIDescription) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServicesForO365ManagementActivityAPIDescription.
type PrivateLinkServicesForO365ManagementActivityAPIDescriptionListResult ¶
type PrivateLinkServicesForO365ManagementActivityAPIDescriptionListResult struct { // A list of service description objects. Value []*PrivateLinkServicesForO365ManagementActivityAPIDescription // READ-ONLY; The link used to get the next page of service description objects. NextLink *string }
PrivateLinkServicesForO365ManagementActivityAPIDescriptionListResult - A list of service description objects with a next link.
func (PrivateLinkServicesForO365ManagementActivityAPIDescriptionListResult) MarshalJSON ¶
func (p PrivateLinkServicesForO365ManagementActivityAPIDescriptionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkServicesForO365ManagementActivityAPIDescriptionListResult.
func (*PrivateLinkServicesForO365ManagementActivityAPIDescriptionListResult) UnmarshalJSON ¶
func (p *PrivateLinkServicesForO365ManagementActivityAPIDescriptionListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServicesForO365ManagementActivityAPIDescriptionListResult.
type PrivateLinkServicesForSCCPowershellClient ¶
type PrivateLinkServicesForSCCPowershellClient struct {
// contains filtered or unexported fields
}
PrivateLinkServicesForSCCPowershellClient contains the methods for the PrivateLinkServicesForSCCPowershell group. Don't use this type directly, use NewPrivateLinkServicesForSCCPowershellClient() instead.
func NewPrivateLinkServicesForSCCPowershellClient ¶
func NewPrivateLinkServicesForSCCPowershellClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkServicesForSCCPowershellClient, error)
NewPrivateLinkServicesForSCCPowershellClient creates a new instance of PrivateLinkServicesForSCCPowershellClient with the specified values.
- subscriptionID - The subscription identifier.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateLinkServicesForSCCPowershellClient) BeginCreateOrUpdate ¶
func (client *PrivateLinkServicesForSCCPowershellClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, privateLinkServicesForSCCPowershellDescription PrivateLinkServicesForSCCPowershellDescription, options *PrivateLinkServicesForSCCPowershellClientBeginCreateOrUpdateOptions) (*runtime.Poller[PrivateLinkServicesForSCCPowershellClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update the metadata of a privateLinkServicesForSCCPowershell instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- privateLinkServicesForSCCPowershellDescription - The service instance metadata.
- options - PrivateLinkServicesForSCCPowershellClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateLinkServicesForSCCPowershellClient.BeginCreateOrUpdate method.
Example (CreateOrUpdateAServiceWithAllParameters) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SCCPowershellServiceCreate.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForSCCPowershellClient().BeginCreateOrUpdate(ctx, "rg1", "service1", armm365securityandcompliance.PrivateLinkServicesForSCCPowershellDescription{ Identity: &armm365securityandcompliance.ServicesResourceIdentity{ Type: to.Ptr(armm365securityandcompliance.ManagedServiceIdentityTypeSystemAssigned), }, Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), Location: to.Ptr("westus2"), Tags: map[string]*string{}, Properties: &armm365securityandcompliance.ServicesProperties{ AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ { ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), }, { ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), }}, AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ Audience: to.Ptr("https://azurehealthcareapis.com"), Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), SmartProxyEnabled: to.Ptr(true), }, CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ AllowCredentials: to.Ptr(false), Headers: []*string{ to.Ptr("*")}, MaxAge: to.Ptr[int64](1440), Methods: []*string{ to.Ptr("DELETE"), to.Ptr("GET"), to.Ptr("OPTIONS"), to.Ptr("PATCH"), to.Ptr("POST"), to.Ptr("PUT")}, Origins: []*string{ to.Ptr("*")}, }, CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), OfferThroughput: to.Ptr[int64](1000), }, ExportConfiguration: &armm365securityandcompliance.ServiceExportConfigurationInfo{ StorageAccountName: to.Ptr("existingStorageAccount"), }, PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{}, PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), }, }, 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.PrivateLinkServicesForSCCPowershellDescription = armm365securityandcompliance.PrivateLinkServicesForSCCPowershellDescription{ // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/service1"), // Identity: &armm365securityandcompliance.ServicesResourceIdentity{ // Type: to.Ptr(armm365securityandcompliance.ManagedServiceIdentityTypeSystemAssigned), // PrincipalID: to.Ptr("03fe6ae0-952c-4e4b-954b-cc0364dd252e"), // TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d8cd011db47"), // }, // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US 2"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // ExportConfiguration: &armm365securityandcompliance.ServiceExportConfigurationInfo{ // StorageAccountName: to.Ptr("existingStorageAccount"), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
Example (CreateOrUpdateAServiceWithMinimumParameters) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SCCPowershellServiceCreateMinimum.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForSCCPowershellClient().BeginCreateOrUpdate(ctx, "rg1", "service2", armm365securityandcompliance.PrivateLinkServicesForSCCPowershellDescription{ Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), Location: to.Ptr("westus2"), Tags: map[string]*string{}, Properties: &armm365securityandcompliance.ServicesProperties{ AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ { ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), }}, }, }, 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.PrivateLinkServicesForSCCPowershellDescription = armm365securityandcompliance.PrivateLinkServicesForSCCPowershellDescription{ // Name: to.Ptr("service2"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/service2"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("westus2"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(false), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // }, // Methods: []*string{ // }, // Origins: []*string{ // }, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
func (*PrivateLinkServicesForSCCPowershellClient) BeginDelete ¶
func (client *PrivateLinkServicesForSCCPowershellClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, options *PrivateLinkServicesForSCCPowershellClientBeginDeleteOptions) (*runtime.Poller[PrivateLinkServicesForSCCPowershellClientDeleteResponse], error)
BeginDelete - Delete a service instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateLinkServicesForSCCPowershellClientBeginDeleteOptions contains the optional parameters for the PrivateLinkServicesForSCCPowershellClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SCCPowershellServiceDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForSCCPowershellClient().BeginDelete(ctx, "rg1", "service1", 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 (*PrivateLinkServicesForSCCPowershellClient) BeginUpdate ¶
func (client *PrivateLinkServicesForSCCPowershellClient) BeginUpdate(ctx context.Context, resourceGroupName string, resourceName string, servicePatchDescription ServicesPatchDescription, options *PrivateLinkServicesForSCCPowershellClientBeginUpdateOptions) (*runtime.Poller[PrivateLinkServicesForSCCPowershellClientUpdateResponse], error)
BeginUpdate - Update the metadata of a privateLinkServicesForSCCPowershell instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- servicePatchDescription - The service instance metadata and security metadata.
- options - PrivateLinkServicesForSCCPowershellClientBeginUpdateOptions contains the optional parameters for the PrivateLinkServicesForSCCPowershellClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SCCPowershellServicePatch.json
package main import ( "context" "log" "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/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPrivateLinkServicesForSCCPowershellClient().BeginUpdate(ctx, "rg1", "service1", armm365securityandcompliance.ServicesPatchDescription{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, 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.PrivateLinkServicesForSCCPowershellDescription = armm365securityandcompliance.PrivateLinkServicesForSCCPowershellDescription{ // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/service1"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // "tag1": to.Ptr("value1"), // "tag2": to.Ptr("value2"), // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
func (*PrivateLinkServicesForSCCPowershellClient) Get ¶
func (client *PrivateLinkServicesForSCCPowershellClient) Get(ctx context.Context, resourceGroupName string, resourceName string, options *PrivateLinkServicesForSCCPowershellClientGetOptions) (PrivateLinkServicesForSCCPowershellClientGetResponse, error)
Get - Get the metadata of a privateLinkServicesForSCCPowershell resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - PrivateLinkServicesForSCCPowershellClientGetOptions contains the optional parameters for the PrivateLinkServicesForSCCPowershellClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SCCPowershellServiceGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateLinkServicesForSCCPowershellClient().Get(ctx, "rg1", "service1", 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.PrivateLinkServicesForSCCPowershellDescription = armm365securityandcompliance.PrivateLinkServicesForSCCPowershellDescription{ // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/service1"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US"), // SystemData: &armm365securityandcompliance.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // CreatedBy: to.Ptr("sove"), // CreatedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-24T13:30:28.958Z"); return t}()), // LastModifiedBy: to.Ptr("sove"), // LastModifiedByType: to.Ptr(armm365securityandcompliance.CreatedByTypeUser), // }, // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // } }
Output:
func (*PrivateLinkServicesForSCCPowershellClient) NewListByResourceGroupPager ¶
func (client *PrivateLinkServicesForSCCPowershellClient) NewListByResourceGroupPager(resourceGroupName string, options *PrivateLinkServicesForSCCPowershellClientListByResourceGroupOptions) *runtime.Pager[PrivateLinkServicesForSCCPowershellClientListByResourceGroupResponse]
NewListByResourceGroupPager - Get all the service instances in a resource group.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- options - PrivateLinkServicesForSCCPowershellClientListByResourceGroupOptions contains the optional parameters for the PrivateLinkServicesForSCCPowershellClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SCCPowershellServiceListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPrivateLinkServicesForSCCPowershellClient().NewListByResourceGroupPager("rgname", 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.PrivateLinkServicesForSCCPowershellDescriptionListResult = armm365securityandcompliance.PrivateLinkServicesForSCCPowershellDescriptionListResult{ // Value: []*armm365securityandcompliance.PrivateLinkServicesForSCCPowershellDescription{ // { // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell"), // Etag: to.Ptr("etagvalue"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/dddb8dcb-effb-4290-bb47-ce1e8440c729"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // }}, // } } }
Output:
func (*PrivateLinkServicesForSCCPowershellClient) NewListPager ¶
func (client *PrivateLinkServicesForSCCPowershellClient) NewListPager(options *PrivateLinkServicesForSCCPowershellClientListOptions) *runtime.Pager[PrivateLinkServicesForSCCPowershellClientListResponse]
NewListPager - Get all the privateLinkServicesForSCCPowershell instances in a subscription.
Generated from API version 2021-03-25-preview
- options - PrivateLinkServicesForSCCPowershellClientListOptions contains the optional parameters for the PrivateLinkServicesForSCCPowershellClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/SCCPowershellServiceList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPrivateLinkServicesForSCCPowershellClient().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.PrivateLinkServicesForSCCPowershellDescriptionListResult = armm365securityandcompliance.PrivateLinkServicesForSCCPowershellDescriptionListResult{ // Value: []*armm365securityandcompliance.PrivateLinkServicesForSCCPowershellDescription{ // { // Name: to.Ptr("service1"), // Type: to.Ptr("Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell"), // Etag: to.Ptr("etag"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/service1"), // Kind: to.Ptr(armm365securityandcompliance.KindFhirR4), // Location: to.Ptr("West US"), // Tags: map[string]*string{ // }, // Properties: &armm365securityandcompliance.ServicesProperties{ // AccessPolicies: []*armm365securityandcompliance.ServiceAccessPolicyEntry{ // { // ObjectID: to.Ptr("c487e7d1-3210-41a3-8ccc-e9372b78da47"), // }, // { // ObjectID: to.Ptr("5b307da8-43d4-492b-8b66-b0294ade872f"), // }}, // AuthenticationConfiguration: &armm365securityandcompliance.ServiceAuthenticationConfigurationInfo{ // Audience: to.Ptr("https://azurehealthcareapis.com"), // Authority: to.Ptr("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"), // SmartProxyEnabled: to.Ptr(true), // }, // CorsConfiguration: &armm365securityandcompliance.ServiceCorsConfigurationInfo{ // AllowCredentials: to.Ptr(false), // Headers: []*string{ // to.Ptr("*")}, // MaxAge: to.Ptr[int64](1440), // Methods: []*string{ // to.Ptr("DELETE"), // to.Ptr("GET"), // to.Ptr("OPTIONS"), // to.Ptr("PATCH"), // to.Ptr("POST"), // to.Ptr("PUT")}, // Origins: []*string{ // to.Ptr("*")}, // }, // CosmosDbConfiguration: &armm365securityandcompliance.ServiceCosmosDbConfigurationInfo{ // KeyVaultKeyURI: to.Ptr("https://my-vault.vault.azure.net/keys/my-key"), // OfferThroughput: to.Ptr[int64](1000), // }, // PrivateEndpointConnections: []*armm365securityandcompliance.PrivateEndpointConnection{ // }, // ProvisioningState: to.Ptr(armm365securityandcompliance.ProvisioningStateSucceeded), // PublicNetworkAccess: to.Ptr(armm365securityandcompliance.PublicNetworkAccessDisabled), // }, // }}, // } } }
Output:
type PrivateLinkServicesForSCCPowershellClientBeginCreateOrUpdateOptions ¶
type PrivateLinkServicesForSCCPowershellClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesForSCCPowershellClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateLinkServicesForSCCPowershellClient.BeginCreateOrUpdate method.
type PrivateLinkServicesForSCCPowershellClientBeginDeleteOptions ¶
type PrivateLinkServicesForSCCPowershellClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesForSCCPowershellClientBeginDeleteOptions contains the optional parameters for the PrivateLinkServicesForSCCPowershellClient.BeginDelete method.
type PrivateLinkServicesForSCCPowershellClientBeginUpdateOptions ¶
type PrivateLinkServicesForSCCPowershellClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkServicesForSCCPowershellClientBeginUpdateOptions contains the optional parameters for the PrivateLinkServicesForSCCPowershellClient.BeginUpdate method.
type PrivateLinkServicesForSCCPowershellClientCreateOrUpdateResponse ¶
type PrivateLinkServicesForSCCPowershellClientCreateOrUpdateResponse struct { // The description of the service. PrivateLinkServicesForSCCPowershellDescription }
PrivateLinkServicesForSCCPowershellClientCreateOrUpdateResponse contains the response from method PrivateLinkServicesForSCCPowershellClient.BeginCreateOrUpdate.
type PrivateLinkServicesForSCCPowershellClientDeleteResponse ¶
type PrivateLinkServicesForSCCPowershellClientDeleteResponse struct { }
PrivateLinkServicesForSCCPowershellClientDeleteResponse contains the response from method PrivateLinkServicesForSCCPowershellClient.BeginDelete.
type PrivateLinkServicesForSCCPowershellClientGetOptions ¶
type PrivateLinkServicesForSCCPowershellClientGetOptions struct { }
PrivateLinkServicesForSCCPowershellClientGetOptions contains the optional parameters for the PrivateLinkServicesForSCCPowershellClient.Get method.
type PrivateLinkServicesForSCCPowershellClientGetResponse ¶
type PrivateLinkServicesForSCCPowershellClientGetResponse struct { // The description of the service. PrivateLinkServicesForSCCPowershellDescription }
PrivateLinkServicesForSCCPowershellClientGetResponse contains the response from method PrivateLinkServicesForSCCPowershellClient.Get.
type PrivateLinkServicesForSCCPowershellClientListByResourceGroupOptions ¶
type PrivateLinkServicesForSCCPowershellClientListByResourceGroupOptions struct { }
PrivateLinkServicesForSCCPowershellClientListByResourceGroupOptions contains the optional parameters for the PrivateLinkServicesForSCCPowershellClient.NewListByResourceGroupPager method.
type PrivateLinkServicesForSCCPowershellClientListByResourceGroupResponse ¶
type PrivateLinkServicesForSCCPowershellClientListByResourceGroupResponse struct { // A list of service description objects with a next link. PrivateLinkServicesForSCCPowershellDescriptionListResult }
PrivateLinkServicesForSCCPowershellClientListByResourceGroupResponse contains the response from method PrivateLinkServicesForSCCPowershellClient.NewListByResourceGroupPager.
type PrivateLinkServicesForSCCPowershellClientListOptions ¶
type PrivateLinkServicesForSCCPowershellClientListOptions struct { }
PrivateLinkServicesForSCCPowershellClientListOptions contains the optional parameters for the PrivateLinkServicesForSCCPowershellClient.NewListPager method.
type PrivateLinkServicesForSCCPowershellClientListResponse ¶
type PrivateLinkServicesForSCCPowershellClientListResponse struct { // A list of service description objects with a next link. PrivateLinkServicesForSCCPowershellDescriptionListResult }
PrivateLinkServicesForSCCPowershellClientListResponse contains the response from method PrivateLinkServicesForSCCPowershellClient.NewListPager.
type PrivateLinkServicesForSCCPowershellClientUpdateResponse ¶
type PrivateLinkServicesForSCCPowershellClientUpdateResponse struct { // The description of the service. PrivateLinkServicesForSCCPowershellDescription }
PrivateLinkServicesForSCCPowershellClientUpdateResponse contains the response from method PrivateLinkServicesForSCCPowershellClient.BeginUpdate.
type PrivateLinkServicesForSCCPowershellDescription ¶
type PrivateLinkServicesForSCCPowershellDescription struct { // REQUIRED; The kind of the service. Kind *Kind // REQUIRED; The resource location. Location *string // An etag associated with the resource, used for optimistic concurrency when editing it. Etag *string // Setting indicating whether the service has a managed identity associated with it. Identity *ServicesResourceIdentity // The common properties of a service. Properties *ServicesProperties // The resource tags. Tags map[string]*string // READ-ONLY; The resource identifier. ID *string // READ-ONLY; The resource name. Name *string // READ-ONLY; Required property for system data SystemData *SystemData // READ-ONLY; The resource type. Type *string }
PrivateLinkServicesForSCCPowershellDescription - The description of the service.
func (PrivateLinkServicesForSCCPowershellDescription) MarshalJSON ¶
func (p PrivateLinkServicesForSCCPowershellDescription) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkServicesForSCCPowershellDescription.
func (*PrivateLinkServicesForSCCPowershellDescription) UnmarshalJSON ¶
func (p *PrivateLinkServicesForSCCPowershellDescription) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServicesForSCCPowershellDescription.
type PrivateLinkServicesForSCCPowershellDescriptionListResult ¶
type PrivateLinkServicesForSCCPowershellDescriptionListResult struct { // A list of service description objects. Value []*PrivateLinkServicesForSCCPowershellDescription // READ-ONLY; The link used to get the next page of service description objects. NextLink *string }
PrivateLinkServicesForSCCPowershellDescriptionListResult - A list of service description objects with a next link.
func (PrivateLinkServicesForSCCPowershellDescriptionListResult) MarshalJSON ¶
func (p PrivateLinkServicesForSCCPowershellDescriptionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkServicesForSCCPowershellDescriptionListResult.
func (*PrivateLinkServicesForSCCPowershellDescriptionListResult) UnmarshalJSON ¶
func (p *PrivateLinkServicesForSCCPowershellDescriptionListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServicesForSCCPowershellDescriptionListResult.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState - The provisioning state.
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateDeprovisioned ProvisioningState = "Deprovisioned" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" ProvisioningStateVerifying ProvisioningState = "Verifying" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type PublicNetworkAccess ¶
type PublicNetworkAccess string
PublicNetworkAccess - Control permission for data plane traffic coming from public networks while private endpoint is enabled.
const ( PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled" PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled" )
func PossiblePublicNetworkAccessValues ¶
func PossiblePublicNetworkAccessValues() []PublicNetworkAccess
PossiblePublicNetworkAccessValues returns the possible values for the PublicNetworkAccess const type.
type Resource ¶
type Resource struct { // 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; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
Resource - Common fields that are returned in the response for all Azure Resource Manager resources
func (Resource) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Resource.
func (*Resource) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Resource.
type ServiceAccessPolicyEntry ¶
type ServiceAccessPolicyEntry struct { // REQUIRED; An Azure AD object ID (User or Apps) that is allowed access to the FHIR service. ObjectID *string }
ServiceAccessPolicyEntry - An access policy entry.
func (ServiceAccessPolicyEntry) MarshalJSON ¶
func (s ServiceAccessPolicyEntry) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceAccessPolicyEntry.
func (*ServiceAccessPolicyEntry) UnmarshalJSON ¶
func (s *ServiceAccessPolicyEntry) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceAccessPolicyEntry.
type ServiceAuthenticationConfigurationInfo ¶
type ServiceAuthenticationConfigurationInfo struct { // The audience url for the service Audience *string // The authority url for the service Authority *string // If the SMART on FHIR proxy is enabled SmartProxyEnabled *bool }
ServiceAuthenticationConfigurationInfo - Authentication configuration information
func (ServiceAuthenticationConfigurationInfo) MarshalJSON ¶
func (s ServiceAuthenticationConfigurationInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceAuthenticationConfigurationInfo.
func (*ServiceAuthenticationConfigurationInfo) UnmarshalJSON ¶
func (s *ServiceAuthenticationConfigurationInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceAuthenticationConfigurationInfo.
type ServiceCorsConfigurationInfo ¶
type ServiceCorsConfigurationInfo struct { // If credentials are allowed via CORS. AllowCredentials *bool // The headers to be allowed via CORS. Headers []*string // The max age to be allowed via CORS. MaxAge *int64 // The methods to be allowed via CORS. Methods []*string // The origins to be allowed via CORS. Origins []*string }
ServiceCorsConfigurationInfo - The settings for the CORS configuration of the service instance.
func (ServiceCorsConfigurationInfo) MarshalJSON ¶
func (s ServiceCorsConfigurationInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceCorsConfigurationInfo.
func (*ServiceCorsConfigurationInfo) UnmarshalJSON ¶
func (s *ServiceCorsConfigurationInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceCorsConfigurationInfo.
type ServiceCosmosDbConfigurationInfo ¶
type ServiceCosmosDbConfigurationInfo struct { // The URI of the customer-managed key for the backing database. KeyVaultKeyURI *string // The provisioned throughput for the backing database. OfferThroughput *int64 }
ServiceCosmosDbConfigurationInfo - The settings for the Cosmos DB database backing the service.
func (ServiceCosmosDbConfigurationInfo) MarshalJSON ¶
func (s ServiceCosmosDbConfigurationInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceCosmosDbConfigurationInfo.
func (*ServiceCosmosDbConfigurationInfo) UnmarshalJSON ¶
func (s *ServiceCosmosDbConfigurationInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceCosmosDbConfigurationInfo.
type ServiceExportConfigurationInfo ¶
type ServiceExportConfigurationInfo struct { // The name of the default export storage account. StorageAccountName *string }
ServiceExportConfigurationInfo - Export operation configuration information
func (ServiceExportConfigurationInfo) MarshalJSON ¶
func (s ServiceExportConfigurationInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceExportConfigurationInfo.
func (*ServiceExportConfigurationInfo) UnmarshalJSON ¶
func (s *ServiceExportConfigurationInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceExportConfigurationInfo.
type ServicesClient ¶
type ServicesClient struct {
// contains filtered or unexported fields
}
ServicesClient contains the methods for the Services group. Don't use this type directly, use NewServicesClient() instead.
func NewServicesClient ¶
func NewServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ServicesClient, error)
NewServicesClient creates a new instance of ServicesClient with the specified values.
- subscriptionID - The subscription identifier.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ServicesClient) BeginDelete ¶
func (client *ServicesClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, options *ServicesClientBeginDeleteOptions) (*runtime.Poller[ServicesClientDeleteResponse], error)
BeginDelete - Delete a service instance. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-03-25-preview
- resourceGroupName - The name of the resource group that contains the service instance.
- resourceName - The name of the service instance.
- options - ServicesClientBeginDeleteOptions contains the optional parameters for the ServicesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/m365securityandcompliance/resource-manager/Microsoft.M365SecurityAndCompliance/preview/2021-03-25-preview/examples/EdmUploadServiceDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armm365securityandcompliance.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServicesClient().BeginDelete(ctx, "rg1", "service1", 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:
type ServicesClientBeginDeleteOptions ¶
type ServicesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ServicesClientBeginDeleteOptions contains the optional parameters for the ServicesClient.BeginDelete method.
type ServicesClientDeleteResponse ¶
type ServicesClientDeleteResponse struct { }
ServicesClientDeleteResponse contains the response from method ServicesClient.BeginDelete.
type ServicesPatchDescription ¶
type ServicesPatchDescription struct { // The properties for updating a service instance. Properties *ServicesPropertiesUpdateParameters // Instance tags Tags map[string]*string }
ServicesPatchDescription - The description of the service.
func (ServicesPatchDescription) MarshalJSON ¶
func (s ServicesPatchDescription) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServicesPatchDescription.
func (*ServicesPatchDescription) UnmarshalJSON ¶
func (s *ServicesPatchDescription) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServicesPatchDescription.
type ServicesProperties ¶
type ServicesProperties struct { // The access policies of the service instance. AccessPolicies []*ServiceAccessPolicyEntry // The authentication configuration for the service instance. AuthenticationConfiguration *ServiceAuthenticationConfigurationInfo // The settings for the CORS configuration of the service instance. CorsConfiguration *ServiceCorsConfigurationInfo // The settings for the Cosmos DB database backing the service. CosmosDbConfiguration *ServiceCosmosDbConfigurationInfo // The settings for the export operation of the service instance. ExportConfiguration *ServiceExportConfigurationInfo // The list of private endpoint connections that are set up for this resource. PrivateEndpointConnections []*PrivateEndpointConnection // Control permission for data plane traffic coming from public networks while private endpoint is enabled. PublicNetworkAccess *PublicNetworkAccess // READ-ONLY; The provisioning state. ProvisioningState *ProvisioningState }
ServicesProperties - The properties of a service instance.
func (ServicesProperties) MarshalJSON ¶
func (s ServicesProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServicesProperties.
func (*ServicesProperties) UnmarshalJSON ¶
func (s *ServicesProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServicesProperties.
type ServicesPropertiesUpdateParameters ¶
type ServicesPropertiesUpdateParameters struct { // Control permission for data plane traffic coming from public networks while private endpoint is enabled. PublicNetworkAccess *PublicNetworkAccess }
ServicesPropertiesUpdateParameters - The properties for updating a service instance.
func (ServicesPropertiesUpdateParameters) MarshalJSON ¶
func (s ServicesPropertiesUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServicesPropertiesUpdateParameters.
func (*ServicesPropertiesUpdateParameters) UnmarshalJSON ¶
func (s *ServicesPropertiesUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServicesPropertiesUpdateParameters.
type ServicesResource ¶
type ServicesResource struct { // REQUIRED; The kind of the service. Kind *Kind // REQUIRED; The resource location. Location *string // An etag associated with the resource, used for optimistic concurrency when editing it. Etag *string // Setting indicating whether the service has a managed identity associated with it. Identity *ServicesResourceIdentity // The resource tags. Tags map[string]*string // READ-ONLY; The resource identifier. ID *string // READ-ONLY; The resource name. Name *string // READ-ONLY; Required property for system data SystemData *SystemData // READ-ONLY; The resource type. Type *string }
ServicesResource - The common properties of a service.
func (ServicesResource) MarshalJSON ¶
func (s ServicesResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServicesResource.
func (*ServicesResource) UnmarshalJSON ¶
func (s *ServicesResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServicesResource.
type ServicesResourceIdentity ¶
type ServicesResourceIdentity struct { // Type of identity being specified, currently SystemAssigned and None are allowed. Type *ManagedServiceIdentityType // READ-ONLY; The principal ID of the resource identity. PrincipalID *string // READ-ONLY; The tenant ID of the resource. TenantID *string }
ServicesResourceIdentity - Setting indicating whether the service has a managed identity associated with it.
func (ServicesResourceIdentity) MarshalJSON ¶
func (s ServicesResourceIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServicesResourceIdentity.
func (*ServicesResourceIdentity) UnmarshalJSON ¶
func (s *ServicesResourceIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServicesResourceIdentity.
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.
Source Files ¶
- build.go
- client_factory.go
- constants.go
- models.go
- models_serde.go
- operationresults_client.go
- operations_client.go
- options.go
- privateendpointconnectionsadtapi_client.go
- privateendpointconnectionscomp_client.go
- privateendpointconnectionsforedm_client.go
- privateendpointconnectionsformippolicysync_client.go
- privateendpointconnectionsforsccpowershell_client.go
- privateendpointconnectionssec_client.go
- privatelinkresources_client.go
- privatelinkresourcesadtapi_client.go
- privatelinkresourcescomp_client.go
- privatelinkresourcesformippolicysync_client.go
- privatelinkresourcesforsccpowershell_client.go
- privatelinkresourcessec_client.go
- privatelinkservicesforedmupload_client.go
- privatelinkservicesform365compliancecenter_client.go
- privatelinkservicesform365securitycenter_client.go
- privatelinkservicesformippolicysync_client.go
- privatelinkservicesforo365managementactivityapi_client.go
- privatelinkservicesforsccpowershell_client.go
- response_types.go
- services_client.go
- time_rfc3339.go