armspringappdiscovery

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 14 Imported by: 4

README

Azure Springappdiscovery Module for Go

PkgGoDev

The armspringappdiscovery module provides operations for working with Azure Springappdiscovery.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Springappdiscovery module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Springappdiscovery. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Client Factory

Azure Springappdiscovery module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armspringappdiscovery.NewClientFactory(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armspringappdiscovery.NewClientFactory(<subscription ID>, cred, &options)

Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

client := clientFactory.NewErrorSummariesClient()

Fakes

The fake package contains types used for constructing in-memory fake servers used in unit tests. This allows writing tests to cover various success/error conditions without the need for connecting to a live service.

Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes.

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Springappdiscovery label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionType

type ActionType string

ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.

const (
	ActionTypeInternal ActionType = "Internal"
)

func PossibleActionTypeValues

func PossibleActionTypeValues() []ActionType

PossibleActionTypeValues returns the possible values for the ActionType const type.

type ClientFactory

type ClientFactory struct {
	// contains filtered or unexported fields
}

ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.

func NewClientFactory

func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)

NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ClientFactory) NewErrorSummariesClient

func (c *ClientFactory) NewErrorSummariesClient() *ErrorSummariesClient

NewErrorSummariesClient creates a new instance of ErrorSummariesClient.

func (*ClientFactory) NewOperationsClient

func (c *ClientFactory) NewOperationsClient() *OperationsClient

NewOperationsClient creates a new instance of OperationsClient.

func (*ClientFactory) NewSpringbootappsClient

func (c *ClientFactory) NewSpringbootappsClient() *SpringbootappsClient

NewSpringbootappsClient creates a new instance of SpringbootappsClient.

func (*ClientFactory) NewSpringbootserversClient

func (c *ClientFactory) NewSpringbootserversClient() *SpringbootserversClient

NewSpringbootserversClient creates a new instance of SpringbootserversClient.

func (*ClientFactory) NewSpringbootsitesClient

func (c *ClientFactory) NewSpringbootsitesClient() *SpringbootsitesClient

NewSpringbootsitesClient creates a new instance of SpringbootsitesClient.

func (*ClientFactory) NewSummariesClient

func (c *ClientFactory) NewSummariesClient() *SummariesClient

NewSummariesClient creates a new instance of SummariesClient.

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 Error

type Error struct {
	// The error code.
	Code *string

	// The error ID.
	ID *int64

	// The detailed error message.
	Message *string

	// The error possible causes.
	PossibleCauses *string

	// The error recommended action
	RecommendedAction *string

	// The account ID used to login.
	RunAsAccountID *string

	// The error severity
	Severity *string

	// The summarized error message.
	SummaryMessage *string

	// Time when this error was last updated.
	UpdatedTimeStamp *time.Time
}

Error - Defines the error.

func (Error) MarshalJSON

func (e Error) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Error.

func (*Error) UnmarshalJSON

func (e *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Error.

type ErrorSummariesClient

type ErrorSummariesClient struct {
	// contains filtered or unexported fields
}

ErrorSummariesClient contains the methods for the ErrorSummaries group. Don't use this type directly, use NewErrorSummariesClient() instead.

func NewErrorSummariesClient

func NewErrorSummariesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ErrorSummariesClient, error)

NewErrorSummariesClient creates a new instance of ErrorSummariesClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ErrorSummariesClient) Get

func (client *ErrorSummariesClient) Get(ctx context.Context, resourceGroupName string, siteName string, errorSummaryName string, options *ErrorSummariesClientGetOptions) (ErrorSummariesClientGetResponse, error)

Get - Gets the ErrorSummaries resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-01-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • siteName - The springbootsites name.
  • errorSummaryName - The name of error summary
  • options - ErrorSummariesClientGetOptions contains the optional parameters for the ErrorSummariesClient.Get method.
Example (ErrorSummariesGetMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/ErrorSummaries_Get_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewErrorSummariesClient().Get(ctx, "rgspringbootdiscovery", "xxkzlvbihwxunadjcpjpjmghmhxrqyvghtpfps", "K2lv", 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.ErrorSummary = armspringappdiscovery.ErrorSummary{
	// 	Name: to.Ptr("tfmbwokvgn"),
	// 	Type: to.Ptr("qfemnwktjpynmezppab"),
	// 	ID: to.Ptr("waudmuluqttorwxywyibbezvko"),
	// 	SystemData: &armspringappdiscovery.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-02-05T16:44:32.561Z"); return t}()),
	// 		CreatedBy: to.Ptr("ztjtyfhicmxcpqszeovgojwzceagbc"),
	// 		CreatedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-02-05T16:44:32.562Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("isjllzvqodp"),
	// 		LastModifiedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
	// 	},
	// 	Properties: &armspringappdiscovery.ErrorSummariesProperties{
	// 		DiscoveryScopeErrorSummaries: []*armspringappdiscovery.ErrorSummaryModel{
	// 			{
	// 				AffectedObjectsCount: to.Ptr[int64](2),
	// 				AffectedResourceType: to.Ptr("kprvjasvybficrqctgbjpaek"),
	// 		}},
	// 		Errors: []*armspringappdiscovery.Error{
	// 			{
	// 				Code: to.Ptr("czbrpdxmv"),
	// 				ID: to.Ptr[int64](13),
	// 				Message: to.Ptr("knjufnfkdpukqiuqzfviwnss"),
	// 				PossibleCauses: to.Ptr("knjufnfkdpukqiuqzfviwnss"),
	// 				RecommendedAction: to.Ptr("qpycieevlbrcomlwooiw"),
	// 				RunAsAccountID: to.Ptr("knjufnfkdpukqiuqzfviwnss"),
	// 				Severity: to.Ptr("wcusqqmqwo"),
	// 				SummaryMessage: to.Ptr("knjufnfkdpukqiuqzfviwnss"),
	// 				UpdatedTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:28:24.094Z"); return t}()),
	// 		}},
	// 		ProvisioningState: to.Ptr(armspringappdiscovery.ProvisioningStateSucceeded),
	// 	},
	// 	Tags: map[string]*string{
	// 		"key2085": to.Ptr("olljrx"),
	// 	},
	// }
}
Output:

Example (ErrorSummariesGetMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/ErrorSummaries_Get_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewErrorSummariesClient().Get(ctx, "rgspringbootdiscovery", "xxkzlvbihwxunadjcpjpjmghmhxrqyvghtpfps", "K2lv", 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.ErrorSummary = armspringappdiscovery.ErrorSummary{
	// 	ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.OffAzureSpringBoot/springbootsites/testsite1/errorsummaries/default"),
	// }
}
Output:

func (*ErrorSummariesClient) NewListBySitePager

func (client *ErrorSummariesClient) NewListBySitePager(resourceGroupName string, siteName string, options *ErrorSummariesClientListBySiteOptions) *runtime.Pager[ErrorSummariesClientListBySiteResponse]

NewListBySitePager - Lists the ErrorSummaries resource in springbootsites.

Generated from API version 2023-01-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • siteName - The springbootsites name.
  • options - ErrorSummariesClientListBySiteOptions contains the optional parameters for the ErrorSummariesClient.NewListBySitePager method.
Example (ErrorSummariesListBySiteMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/ErrorSummaries_ListBySite_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewErrorSummariesClient().NewListBySitePager("rgspringbootdiscovery", "xxkzlvbihwxunadjcpjpjmghmhxrqyvghtpfps", 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.ErrorSummaryList = armspringappdiscovery.ErrorSummaryList{
		// 	Value: []*armspringappdiscovery.ErrorSummary{
		// 		{
		// 			Name: to.Ptr("tfmbwokvgn"),
		// 			Type: to.Ptr("qfemnwktjpynmezppab"),
		// 			ID: to.Ptr("waudmuluqttorwxywyibbezvko"),
		// 			SystemData: &armspringappdiscovery.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-02-05T16:44:32.561Z"); return t}()),
		// 				CreatedBy: to.Ptr("ztjtyfhicmxcpqszeovgojwzceagbc"),
		// 				CreatedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-02-05T16:44:32.562Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("isjllzvqodp"),
		// 				LastModifiedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
		// 			},
		// 			Properties: &armspringappdiscovery.ErrorSummariesProperties{
		// 				DiscoveryScopeErrorSummaries: []*armspringappdiscovery.ErrorSummaryModel{
		// 					{
		// 						AffectedObjectsCount: to.Ptr[int64](2),
		// 						AffectedResourceType: to.Ptr("kprvjasvybficrqctgbjpaek"),
		// 				}},
		// 				Errors: []*armspringappdiscovery.Error{
		// 					{
		// 						Code: to.Ptr("czbrpdxmv"),
		// 						ID: to.Ptr[int64](13),
		// 						Message: to.Ptr("knjufnfkdpukqiuqzfviwnss"),
		// 						PossibleCauses: to.Ptr("knjufnfkdpukqiuqzfviwnss"),
		// 						RecommendedAction: to.Ptr("qpycieevlbrcomlwooiw"),
		// 						RunAsAccountID: to.Ptr("knjufnfkdpukqiuqzfviwnss"),
		// 						Severity: to.Ptr("wcusqqmqwo"),
		// 						SummaryMessage: to.Ptr("knjufnfkdpukqiuqzfviwnss"),
		// 						UpdatedTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:28:24.094Z"); return t}()),
		// 				}},
		// 				ProvisioningState: to.Ptr(armspringappdiscovery.ProvisioningStateSucceeded),
		// 			},
		// 			Tags: map[string]*string{
		// 				"key2085": to.Ptr("olljrx"),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (ErrorSummariesListBySiteMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/ErrorSummaries_ListBySite_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewErrorSummariesClient().NewListBySitePager("rgspringbootdiscovery", "xxkzlvbihwxunadjcpjpjmghmhxrqyvghtpfps", 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.ErrorSummaryList = armspringappdiscovery.ErrorSummaryList{
		// }
	}
}
Output:

type ErrorSummariesClientGetOptions

type ErrorSummariesClientGetOptions struct {
}

ErrorSummariesClientGetOptions contains the optional parameters for the ErrorSummariesClient.Get method.

type ErrorSummariesClientGetResponse

type ErrorSummariesClientGetResponse struct {
	// The error summary resource definition.
	ErrorSummary
}

ErrorSummariesClientGetResponse contains the response from method ErrorSummariesClient.Get.

type ErrorSummariesClientListBySiteOptions

type ErrorSummariesClientListBySiteOptions struct {
}

ErrorSummariesClientListBySiteOptions contains the optional parameters for the ErrorSummariesClient.NewListBySitePager method.

type ErrorSummariesClientListBySiteResponse

type ErrorSummariesClientListBySiteResponse struct {
	// The list of ErrorSummary.
	ErrorSummaryList
}

ErrorSummariesClientListBySiteResponse contains the response from method ErrorSummariesClient.NewListBySitePager.

type ErrorSummariesProperties

type ErrorSummariesProperties struct {
	// The list of ErrorSummary.
	DiscoveryScopeErrorSummaries []*ErrorSummaryModel

	// The list of errors.
	Errors []*Error

	// The resource provisioning state.
	ProvisioningState *ProvisioningState
}

ErrorSummariesProperties - Error summary properties

func (ErrorSummariesProperties) MarshalJSON

func (e ErrorSummariesProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ErrorSummariesProperties.

func (*ErrorSummariesProperties) UnmarshalJSON

func (e *ErrorSummariesProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorSummariesProperties.

type ErrorSummary

type ErrorSummary struct {
	// Resource properties.
	Properties *ErrorSummariesProperties

	// Resource tags
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

ErrorSummary - The error summary resource definition.

func (ErrorSummary) MarshalJSON

func (e ErrorSummary) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ErrorSummary.

func (*ErrorSummary) UnmarshalJSON

func (e *ErrorSummary) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorSummary.

type ErrorSummaryList

type ErrorSummaryList struct {
	// Url to follow for getting next page of resources.
	NextLink *string

	// The list of ErrorSummary.
	Value []*ErrorSummary
}

ErrorSummaryList - The list of ErrorSummary.

func (ErrorSummaryList) MarshalJSON

func (e ErrorSummaryList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ErrorSummaryList.

func (*ErrorSummaryList) UnmarshalJSON

func (e *ErrorSummaryList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorSummaryList.

type ErrorSummaryModel

type ErrorSummaryModel struct {
	// The count.
	AffectedObjectsCount *int64

	// The type of Object.
	AffectedResourceType *string
}

ErrorSummaryModel - ErrorSummary model.

func (ErrorSummaryModel) MarshalJSON

func (e ErrorSummaryModel) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ErrorSummaryModel.

func (*ErrorSummaryModel) UnmarshalJSON

func (e *ErrorSummaryModel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorSummaryModel.

type Operation

type Operation struct {
	// Localized display information for this particular operation.
	Display *OperationDisplay

	// READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
	ActionType *ActionType

	// READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane
	// operations.
	IsDataAction *bool

	// READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write",
	// "Microsoft.Compute/virtualMachines/capture/action"
	Name *string

	// READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
	// value is "user,system"
	Origin *Origin
}

Operation - Details of a REST API operation, returned from the Resource Provider Operations API

func (Operation) MarshalJSON

func (o Operation) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Operation.

func (*Operation) UnmarshalJSON

func (o *Operation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Operation.

type OperationDisplay

type OperationDisplay struct {
	// READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views.
	Description *string

	// READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual
	// Machine", "Restart Virtual Machine".
	Operation *string

	// READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft
	// Compute".
	Provider *string

	// READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job
	// Schedule Collections".
	Resource *string
}

OperationDisplay - Localized display information for this particular 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; URL to get the next set of operation list results (if there are any).
	NextLink *string

	// READ-ONLY; List of operations supported by the resource provider
	Value []*Operation
}

OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.

func (OperationListResult) MarshalJSON

func (o OperationListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationListResult.

func (*OperationListResult) UnmarshalJSON

func (o *OperationListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.

type OperationsClient

type OperationsClient struct {
	// contains filtered or unexported fields
}

OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.

func NewOperationsClient

func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)

NewOperationsClient creates a new instance of OperationsClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*OperationsClient) NewListPager

NewListPager - List operations.

Generated from API version 2023-01-01-preview

  • options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example (OperationsListMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/Operations_List_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.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 = armspringappdiscovery.OperationListResult{
		// 	Value: []*armspringappdiscovery.Operation{
		// 		{
		// 			Name: to.Ptr("lmpy"),
		// 			Display: &armspringappdiscovery.OperationDisplay{
		// 				Description: to.Ptr("hheiroxxlhavuv"),
		// 				Operation: to.Ptr("ffohgob"),
		// 				Provider: to.Ptr("thndcnzvcjndz"),
		// 				Resource: to.Ptr("fkifpgecyzhcbfkp"),
		// 			},
		// 			IsDataAction: to.Ptr(true),
		// 	}},
		// }
	}
}
Output:

Example (OperationsListMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/Operations_List_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.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 = armspringappdiscovery.OperationListResult{
		// }
	}
}
Output:

type OperationsClientListOptions

type OperationsClientListOptions struct {
}

OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.

type OperationsClientListResponse

type OperationsClientListResponse struct {
	// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.
	OperationListResult
}

OperationsClientListResponse contains the response from method OperationsClient.NewListPager.

type Origin

type Origin string

Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"

const (
	OriginSystem     Origin = "system"
	OriginUser       Origin = "user"
	OriginUserSystem Origin = "user,system"
)

func PossibleOriginValues

func PossibleOriginValues() []Origin

PossibleOriginValues returns the possible values for the Origin const type.

type ProvisioningState

type ProvisioningState string

ProvisioningState - The resource provisioning state.

const (
	ProvisioningStateAccepted     ProvisioningState = "Accepted"
	ProvisioningStateCanceled     ProvisioningState = "Canceled"
	ProvisioningStateDeleting     ProvisioningState = "Deleting"
	ProvisioningStateFailed       ProvisioningState = "Failed"
	ProvisioningStateProvisioning ProvisioningState = "Provisioning"
	ProvisioningStateSucceeded    ProvisioningState = "Succeeded"
	ProvisioningStateUnknown      ProvisioningState = "Unknown"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.

type SpringbootappsClient

type SpringbootappsClient struct {
	// contains filtered or unexported fields
}

SpringbootappsClient contains the methods for the Springbootapps group. Don't use this type directly, use NewSpringbootappsClient() instead.

func NewSpringbootappsClient

func NewSpringbootappsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SpringbootappsClient, error)

NewSpringbootappsClient creates a new instance of SpringbootappsClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*SpringbootappsClient) BeginUpdate

func (client *SpringbootappsClient) BeginUpdate(ctx context.Context, resourceGroupName string, siteName string, springbootappsName string, springbootapps SpringbootappsPatch, options *SpringbootappsClientBeginUpdateOptions) (*runtime.Poller[SpringbootappsClientUpdateResponse], error)

BeginUpdate - Update a springbootapps resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-01-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • siteName - The springbootsites name.
  • springbootappsName - The springbootapps name.
  • springbootapps - Update a springbootapps payload.
  • options - SpringbootappsClientBeginUpdateOptions contains the optional parameters for the SpringbootappsClient.BeginUpdate method.
Example (SpringbootappsUpdateMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootapps_Update_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewSpringbootappsClient().BeginUpdate(ctx, "rgspringbootapps", "pdfosfhtemfsaglvwjdyqlyeipucrd", "ofjeesoahqtnovlbuvflyknpbhcpeqqhekntvqxyemuwbcqnuxjgfhsf", armspringappdiscovery.SpringbootappsPatch{}, 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.SpringbootappsModel = armspringappdiscovery.SpringbootappsModel{
	// 	Name: to.Ptr("enyeyrgonjdauhscqy"),
	// 	Type: to.Ptr("hvtpwijptwksiyxdrmnpsv"),
	// 	ID: to.Ptr("ftbefgkqxhwszzienudx"),
	// 	SystemData: &armspringappdiscovery.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:28:24.094Z"); return t}()),
	// 		CreatedBy: to.Ptr("kmiwjeuplqvqwk"),
	// 		CreatedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:28:24.094Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("pmmzrztbtuuj"),
	// 		LastModifiedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
	// 	},
	// 	Properties: &armspringappdiscovery.SpringbootappsProperties{
	// 		AppName: to.Ptr("wrauwfegjfccym"),
	// 		AppPort: to.Ptr[int32](12),
	// 		AppType: to.Ptr("axzunlh"),
	// 		ApplicationConfigurations: []*armspringappdiscovery.SpringbootappsPropertiesApplicationConfigurationsItem{
	// 			{
	// 				Key: to.Ptr("wrbnwhqxjextxgdfbonuynvs"),
	// 				Value: to.Ptr("jnmaf"),
	// 		}},
	// 		ArtifactName: to.Ptr("wrauwfegjfccym"),
	// 		BindingPorts: []*int32{
	// 			to.Ptr[int32](11)},
	// 			BuildJdkVersion: to.Ptr("ipzruwqqulkpvhzymqegntz"),
	// 			Certificates: []*string{
	// 				to.Ptr("xpiqqob")},
	// 				Checksum: to.Ptr("gpzumvbzfnhhmuehveanctiamr"),
	// 				Dependencies: []*string{
	// 					to.Ptr("zrtted")},
	// 					Environments: []*string{
	// 						to.Ptr("afhprevtcx")},
	// 						InstanceCount: to.Ptr[int32](5),
	// 						Instances: []*armspringappdiscovery.SpringbootappsPropertiesInstancesItem{
	// 							{
	// 								InstanceCount: to.Ptr[int32](5),
	// 								JvmMemoryInMB: to.Ptr[int32](128),
	// 								MachineArmID: to.Ptr("lsstlommxuskyhnwyxh"),
	// 						}},
	// 						JarFileLocation: to.Ptr("wfptqclncaqycyfbfih"),
	// 						JvmMemoryInMB: to.Ptr[int32](1),
	// 						JvmOptions: []*string{
	// 							to.Ptr("nytejjoytevmvlgnfwb")},
	// 							MachineArmIDs: []*string{
	// 								to.Ptr("lsstlommxuskyhnwyxh")},
	// 								Miscs: []*armspringappdiscovery.SpringbootappsPropertiesMiscsItem{
	// 									{
	// 										Key: to.Ptr("fobsfetkynfmkziei"),
	// 										Value: to.Ptr("k"),
	// 								}},
	// 								ProvisioningState: to.Ptr(armspringappdiscovery.ProvisioningStateSucceeded),
	// 								RuntimeJdkVersion: to.Ptr("eblzujbsulpeilykqyjso"),
	// 								Servers: []*string{
	// 									to.Ptr("gvfhsohasdx")},
	// 									SiteName: to.Ptr("nzzyrevhsz"),
	// 									SpringBootVersion: to.Ptr("euggigfiii"),
	// 									StaticContentLocations: []*string{
	// 										to.Ptr("wvvajfkbtmjftir")},
	// 									},
	// 								}
}
Output:

Example (SpringbootappsUpdateMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootapps_Update_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewSpringbootappsClient().BeginUpdate(ctx, "rgspringbootapps", "pdfosfhtemfsaglvwjdyqlyeipucrd", "ofjeesoahqtnovlbuvflyknpbhcpeqqhekntvqxyemuwbcqnuxjgfhsf", armspringappdiscovery.SpringbootappsPatch{}, 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.SpringbootappsModel = armspringappdiscovery.SpringbootappsModel{
	// }
}
Output:

func (*SpringbootappsClient) Get

func (client *SpringbootappsClient) Get(ctx context.Context, resourceGroupName string, siteName string, springbootappsName string, options *SpringbootappsClientGetOptions) (SpringbootappsClientGetResponse, error)

Get - Get a springbootapps resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-01-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • siteName - The springbootsites name.
  • springbootappsName - The springbootapps name.
  • options - SpringbootappsClientGetOptions contains the optional parameters for the SpringbootappsClient.Get method.
Example (SpringbootappsGetMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootapps_Get_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSpringbootappsClient().Get(ctx, "rgspringbootapps", "pdfosfhtemfsaglvwjdyqlyeipucrd", "ofjeesoahqtnovlbuvflyknpbhcpeqqhekntvqxyemuwbcqnuxjgfhsf", 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.SpringbootappsModel = armspringappdiscovery.SpringbootappsModel{
	// 	Name: to.Ptr("enyeyrgonjdauhscqy"),
	// 	Type: to.Ptr("hvtpwijptwksiyxdrmnpsv"),
	// 	ID: to.Ptr("ftbefgkqxhwszzienudx"),
	// 	SystemData: &armspringappdiscovery.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:28:24.094Z"); return t}()),
	// 		CreatedBy: to.Ptr("kmiwjeuplqvqwk"),
	// 		CreatedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:28:24.094Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("pmmzrztbtuuj"),
	// 		LastModifiedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
	// 	},
	// 	Properties: &armspringappdiscovery.SpringbootappsProperties{
	// 		AppName: to.Ptr("wrauwfegjfccym"),
	// 		AppPort: to.Ptr[int32](12),
	// 		AppType: to.Ptr("axzunlh"),
	// 		ApplicationConfigurations: []*armspringappdiscovery.SpringbootappsPropertiesApplicationConfigurationsItem{
	// 			{
	// 				Key: to.Ptr("wrbnwhqxjextxgdfbonuynvs"),
	// 				Value: to.Ptr("jnmaf"),
	// 		}},
	// 		ArtifactName: to.Ptr("wrauwfegjfccym"),
	// 		BindingPorts: []*int32{
	// 			to.Ptr[int32](11)},
	// 			BuildJdkVersion: to.Ptr("ipzruwqqulkpvhzymqegntz"),
	// 			Certificates: []*string{
	// 				to.Ptr("xpiqqob")},
	// 				Checksum: to.Ptr("gpzumvbzfnhhmuehveanctiamr"),
	// 				Dependencies: []*string{
	// 					to.Ptr("zrtted")},
	// 					Environments: []*string{
	// 						to.Ptr("afhprevtcx")},
	// 						InstanceCount: to.Ptr[int32](5),
	// 						Instances: []*armspringappdiscovery.SpringbootappsPropertiesInstancesItem{
	// 							{
	// 								InstanceCount: to.Ptr[int32](5),
	// 								JvmMemoryInMB: to.Ptr[int32](128),
	// 								MachineArmID: to.Ptr("lsstlommxuskyhnwyxh"),
	// 						}},
	// 						JarFileLocation: to.Ptr("wfptqclncaqycyfbfih"),
	// 						JvmMemoryInMB: to.Ptr[int32](1),
	// 						JvmOptions: []*string{
	// 							to.Ptr("nytejjoytevmvlgnfwb")},
	// 							LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:28:24.094Z"); return t}()),
	// 							LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:28:24.094Z"); return t}()),
	// 							MachineArmIDs: []*string{
	// 								to.Ptr("lsstlommxuskyhnwyxh")},
	// 								Miscs: []*armspringappdiscovery.SpringbootappsPropertiesMiscsItem{
	// 									{
	// 										Key: to.Ptr("fobsfetkynfmkziei"),
	// 										Value: to.Ptr("k"),
	// 								}},
	// 								ProvisioningState: to.Ptr(armspringappdiscovery.ProvisioningStateSucceeded),
	// 								RuntimeJdkVersion: to.Ptr("eblzujbsulpeilykqyjso"),
	// 								Servers: []*string{
	// 									to.Ptr("gvfhsohasdx")},
	// 									SiteName: to.Ptr("nzzyrevhsz"),
	// 									SpringBootVersion: to.Ptr("euggigfiii"),
	// 									StaticContentLocations: []*string{
	// 										to.Ptr("wvvajfkbtmjftir")},
	// 									},
	// 								}
}
Output:

Example (SpringbootappsGetMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootapps_Get_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSpringbootappsClient().Get(ctx, "rgspringbootapps", "pdfosfhtemfsaglvwjdyqlyeipucrd", "ofjeesoahqtnovlbuvflyknpbhcpeqqhekntvqxyemuwbcqnuxjgfhsf", 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.SpringbootappsModel = armspringappdiscovery.SpringbootappsModel{
	// 	ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.OffAzureSpringBoot/springbootsites/testsite1/springbootapps/app1"),
	// }
}
Output:

func (*SpringbootappsClient) NewListByResourceGroupPager

func (client *SpringbootappsClient) NewListByResourceGroupPager(resourceGroupName string, siteName string, options *SpringbootappsClientListByResourceGroupOptions) *runtime.Pager[SpringbootappsClientListByResourceGroupResponse]

NewListByResourceGroupPager - List springbootapps resource by resourceGroup

Generated from API version 2023-01-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • siteName - The springbootsites name.
  • options - SpringbootappsClientListByResourceGroupOptions contains the optional parameters for the SpringbootappsClient.NewListByResourceGroupPager method.
Example (SpringbootappsListByResourceGroupMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootapps_ListByResourceGroup_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSpringbootappsClient().NewListByResourceGroupPager("rgspringbootapps", "pdfosfhtemfsaglvwjdyqlyeipucrd", 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.SpringbootappsListResult = armspringappdiscovery.SpringbootappsListResult{
		// 	Value: []*armspringappdiscovery.SpringbootappsModel{
		// 		{
		// 			Name: to.Ptr("enyeyrgonjdauhscqy"),
		// 			Type: to.Ptr("hvtpwijptwksiyxdrmnpsv"),
		// 			ID: to.Ptr("ftbefgkqxhwszzienudx"),
		// 			SystemData: &armspringappdiscovery.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:28:24.094Z"); return t}()),
		// 				CreatedBy: to.Ptr("kmiwjeuplqvqwk"),
		// 				CreatedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:28:24.094Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("pmmzrztbtuuj"),
		// 				LastModifiedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
		// 			},
		// 			Properties: &armspringappdiscovery.SpringbootappsProperties{
		// 				AppName: to.Ptr("wrauwfegjfccym"),
		// 				AppPort: to.Ptr[int32](12),
		// 				AppType: to.Ptr("axzunlh"),
		// 				ApplicationConfigurations: []*armspringappdiscovery.SpringbootappsPropertiesApplicationConfigurationsItem{
		// 					{
		// 						Key: to.Ptr("wrbnwhqxjextxgdfbonuynvs"),
		// 						Value: to.Ptr("jnmaf"),
		// 				}},
		// 				ArtifactName: to.Ptr("wrauwfegjfccym"),
		// 				BindingPorts: []*int32{
		// 					to.Ptr[int32](11)},
		// 					BuildJdkVersion: to.Ptr("ipzruwqqulkpvhzymqegntz"),
		// 					Certificates: []*string{
		// 						to.Ptr("xpiqqob")},
		// 						Checksum: to.Ptr("gpzumvbzfnhhmuehveanctiamr"),
		// 						Dependencies: []*string{
		// 							to.Ptr("zrtted")},
		// 							Environments: []*string{
		// 								to.Ptr("afhprevtcx")},
		// 								InstanceCount: to.Ptr[int32](5),
		// 								Instances: []*armspringappdiscovery.SpringbootappsPropertiesInstancesItem{
		// 									{
		// 										InstanceCount: to.Ptr[int32](5),
		// 										JvmMemoryInMB: to.Ptr[int32](128),
		// 										MachineArmID: to.Ptr("lsstlommxuskyhnwyxh"),
		// 								}},
		// 								JarFileLocation: to.Ptr("wfptqclncaqycyfbfih"),
		// 								JvmMemoryInMB: to.Ptr[int32](1),
		// 								JvmOptions: []*string{
		// 									to.Ptr("nytejjoytevmvlgnfwb")},
		// 									LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:28:24.094Z"); return t}()),
		// 									LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:28:24.094Z"); return t}()),
		// 									MachineArmIDs: []*string{
		// 										to.Ptr("lsstlommxuskyhnwyxh")},
		// 										Miscs: []*armspringappdiscovery.SpringbootappsPropertiesMiscsItem{
		// 											{
		// 												Key: to.Ptr("fobsfetkynfmkziei"),
		// 												Value: to.Ptr("k"),
		// 										}},
		// 										ProvisioningState: to.Ptr(armspringappdiscovery.ProvisioningStateSucceeded),
		// 										RuntimeJdkVersion: to.Ptr("eblzujbsulpeilykqyjso"),
		// 										Servers: []*string{
		// 											to.Ptr("gvfhsohasdx")},
		// 											SiteName: to.Ptr("nzzyrevhsz"),
		// 											SpringBootVersion: to.Ptr("euggigfiii"),
		// 											StaticContentLocations: []*string{
		// 												to.Ptr("wvvajfkbtmjftir")},
		// 											},
		// 									}},
		// 								}
	}
}
Output:

Example (SpringbootappsListByResourceGroupMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootapps_ListByResourceGroup_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSpringbootappsClient().NewListByResourceGroupPager("rgspringbootapps", "pdfosfhtemfsaglvwjdyqlyeipucrd", 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.SpringbootappsListResult = armspringappdiscovery.SpringbootappsListResult{
		// }
	}
}
Output:

func (*SpringbootappsClient) NewListBySubscriptionPager

NewListBySubscriptionPager - List springbootapps resource by subscription

Generated from API version 2023-01-01-preview

  • siteName - The springbootsites name.
  • options - SpringbootappsClientListBySubscriptionOptions contains the optional parameters for the SpringbootappsClient.NewListBySubscriptionPager method.
Example (SpringbootappsListBySubscriptionMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootapps_ListBySubscription_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSpringbootappsClient().NewListBySubscriptionPager("pdfosfhtemfsaglvwjdyqlyeipucrd", 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.SpringbootappsListResult = armspringappdiscovery.SpringbootappsListResult{
		// 	Value: []*armspringappdiscovery.SpringbootappsModel{
		// 		{
		// 			Name: to.Ptr("enyeyrgonjdauhscqy"),
		// 			Type: to.Ptr("hvtpwijptwksiyxdrmnpsv"),
		// 			ID: to.Ptr("ftbefgkqxhwszzienudx"),
		// 			SystemData: &armspringappdiscovery.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:28:24.094Z"); return t}()),
		// 				CreatedBy: to.Ptr("kmiwjeuplqvqwk"),
		// 				CreatedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:28:24.094Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("pmmzrztbtuuj"),
		// 				LastModifiedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
		// 			},
		// 			Properties: &armspringappdiscovery.SpringbootappsProperties{
		// 				AppName: to.Ptr("wrauwfegjfccym"),
		// 				AppPort: to.Ptr[int32](12),
		// 				AppType: to.Ptr("axzunlh"),
		// 				ApplicationConfigurations: []*armspringappdiscovery.SpringbootappsPropertiesApplicationConfigurationsItem{
		// 					{
		// 						Key: to.Ptr("wrbnwhqxjextxgdfbonuynvs"),
		// 						Value: to.Ptr("jnmaf"),
		// 				}},
		// 				ArtifactName: to.Ptr("wrauwfegjfccym"),
		// 				BindingPorts: []*int32{
		// 					to.Ptr[int32](11)},
		// 					BuildJdkVersion: to.Ptr("ipzruwqqulkpvhzymqegntz"),
		// 					Certificates: []*string{
		// 						to.Ptr("xpiqqob")},
		// 						Checksum: to.Ptr("gpzumvbzfnhhmuehveanctiamr"),
		// 						Dependencies: []*string{
		// 							to.Ptr("zrtted")},
		// 							Environments: []*string{
		// 								to.Ptr("afhprevtcx")},
		// 								InstanceCount: to.Ptr[int32](5),
		// 								Instances: []*armspringappdiscovery.SpringbootappsPropertiesInstancesItem{
		// 									{
		// 										InstanceCount: to.Ptr[int32](5),
		// 										JvmMemoryInMB: to.Ptr[int32](128),
		// 										MachineArmID: to.Ptr("lsstlommxuskyhnwyxh"),
		// 								}},
		// 								JarFileLocation: to.Ptr("wfptqclncaqycyfbfih"),
		// 								JvmMemoryInMB: to.Ptr[int32](1),
		// 								JvmOptions: []*string{
		// 									to.Ptr("nytejjoytevmvlgnfwb")},
		// 									LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:28:24.094Z"); return t}()),
		// 									LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:28:24.094Z"); return t}()),
		// 									MachineArmIDs: []*string{
		// 										to.Ptr("lsstlommxuskyhnwyxh")},
		// 										Miscs: []*armspringappdiscovery.SpringbootappsPropertiesMiscsItem{
		// 											{
		// 												Key: to.Ptr("fobsfetkynfmkziei"),
		// 												Value: to.Ptr("k"),
		// 										}},
		// 										ProvisioningState: to.Ptr(armspringappdiscovery.ProvisioningStateSucceeded),
		// 										RuntimeJdkVersion: to.Ptr("eblzujbsulpeilykqyjso"),
		// 										Servers: []*string{
		// 											to.Ptr("gvfhsohasdx")},
		// 											SiteName: to.Ptr("nzzyrevhsz"),
		// 											SpringBootVersion: to.Ptr("euggigfiii"),
		// 											StaticContentLocations: []*string{
		// 												to.Ptr("wvvajfkbtmjftir")},
		// 											},
		// 									}},
		// 								}
	}
}
Output:

Example (SpringbootappsListBySubscriptionMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootapps_ListBySubscription_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSpringbootappsClient().NewListBySubscriptionPager("pdfosfhtemfsaglvwjdyqlyeipucrd", 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.SpringbootappsListResult = armspringappdiscovery.SpringbootappsListResult{
		// }
	}
}
Output:

type SpringbootappsClientBeginUpdateOptions

type SpringbootappsClientBeginUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

SpringbootappsClientBeginUpdateOptions contains the optional parameters for the SpringbootappsClient.BeginUpdate method.

type SpringbootappsClientGetOptions

type SpringbootappsClientGetOptions struct {
}

SpringbootappsClientGetOptions contains the optional parameters for the SpringbootappsClient.Get method.

type SpringbootappsClientGetResponse

type SpringbootappsClientGetResponse struct {
	// The springbootapps envelope resource definition.
	SpringbootappsModel
}

SpringbootappsClientGetResponse contains the response from method SpringbootappsClient.Get.

type SpringbootappsClientListByResourceGroupOptions

type SpringbootappsClientListByResourceGroupOptions struct {
}

SpringbootappsClientListByResourceGroupOptions contains the optional parameters for the SpringbootappsClient.NewListByResourceGroupPager method.

type SpringbootappsClientListByResourceGroupResponse

type SpringbootappsClientListByResourceGroupResponse struct {
	// The springbootapps list resource definition.
	SpringbootappsListResult
}

SpringbootappsClientListByResourceGroupResponse contains the response from method SpringbootappsClient.NewListByResourceGroupPager.

type SpringbootappsClientListBySubscriptionOptions

type SpringbootappsClientListBySubscriptionOptions struct {
}

SpringbootappsClientListBySubscriptionOptions contains the optional parameters for the SpringbootappsClient.NewListBySubscriptionPager method.

type SpringbootappsClientListBySubscriptionResponse

type SpringbootappsClientListBySubscriptionResponse struct {
	// The springbootapps list resource definition.
	SpringbootappsListResult
}

SpringbootappsClientListBySubscriptionResponse contains the response from method SpringbootappsClient.NewListBySubscriptionPager.

type SpringbootappsClientUpdateResponse

type SpringbootappsClientUpdateResponse struct {
	// The springbootapps envelope resource definition.
	SpringbootappsModel
}

SpringbootappsClientUpdateResponse contains the response from method SpringbootappsClient.BeginUpdate.

type SpringbootappsListResult

type SpringbootappsListResult struct {
	// The link used to get the next page of springbootapps resources list.
	NextLink *string

	// The springbootsites list.
	Value []*SpringbootappsModel
}

SpringbootappsListResult - The springbootapps list resource definition.

func (SpringbootappsListResult) MarshalJSON

func (s SpringbootappsListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SpringbootappsListResult.

func (*SpringbootappsListResult) UnmarshalJSON

func (s *SpringbootappsListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SpringbootappsListResult.

type SpringbootappsModel

type SpringbootappsModel struct {
	// The springbootapps resource definition.
	Properties *SpringbootappsProperties

	// Resource tags
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

SpringbootappsModel - The springbootapps envelope resource definition.

func (SpringbootappsModel) MarshalJSON

func (s SpringbootappsModel) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SpringbootappsModel.

func (*SpringbootappsModel) UnmarshalJSON

func (s *SpringbootappsModel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SpringbootappsModel.

type SpringbootappsPatch

type SpringbootappsPatch struct {
	// The springbootapps resource definition.
	Properties *SpringbootappsProperties

	// Resource tags
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

SpringbootappsPatch - The springbootapps resource patch definition.

func (SpringbootappsPatch) MarshalJSON

func (s SpringbootappsPatch) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SpringbootappsPatch.

func (*SpringbootappsPatch) UnmarshalJSON

func (s *SpringbootappsPatch) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SpringbootappsPatch.

type SpringbootappsProperties

type SpringbootappsProperties struct {
	// The name of SpringBootApp.
	AppName *string

	// The application port.
	AppPort *int32

	// The application type, whether it is a SpringBoot app.
	AppType *string

	// The application configuration file list.
	ApplicationConfigurations []*SpringbootappsPropertiesApplicationConfigurationsItem

	// The artifact name of SpringBootApp.
	ArtifactName *string

	// The application binding port list.
	BindingPorts []*int32

	// The jdk version in build.
	BuildJdkVersion *string

	// The certificate file list.
	Certificates []*string

	// The checksum of jar file.
	Checksum *string

	// The connection string list.
	ConnectionStrings []*string

	// The dependency list.
	Dependencies []*string

	// The environment variable list.
	Environments []*string

	// The list of errors.
	Errors []*Error

	// The total instance count the app deployed.
	InstanceCount *int32

	// The breakdown info for app instances on all the servers
	Instances []*SpringbootappsPropertiesInstancesItem

	// The jar file location on the server.
	JarFileLocation *string

	// The jvm heap memory allocated.
	JvmMemoryInMB *int32

	// The jvm options.
	JvmOptions []*string

	// Time when this springbootapps jar file was last modified.
	LastModifiedTime *time.Time

	// Time when this springbootapps instance was last refreshed.
	LastUpdatedTime *time.Time

	// The machine ARM id list the app belongs to.
	MachineArmIDs []*string

	// The other types of date collected.
	Miscs []*SpringbootappsPropertiesMiscsItem

	// The resource provisioning state.
	ProvisioningState *ProvisioningState

	// The jdk version installed on server
	RuntimeJdkVersion *string

	// The server list the app installed
	Servers []*string

	// The site name.
	SiteName *string

	// The spring boot version.
	SpringBootVersion *string

	// The static content location list.
	StaticContentLocations []*string
}

SpringbootappsProperties - The springbootapps resource definition.

func (SpringbootappsProperties) MarshalJSON

func (s SpringbootappsProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SpringbootappsProperties.

func (*SpringbootappsProperties) UnmarshalJSON

func (s *SpringbootappsProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SpringbootappsProperties.

type SpringbootappsPropertiesApplicationConfigurationsItem

type SpringbootappsPropertiesApplicationConfigurationsItem struct {
	// REQUIRED; The application config file name.
	Key *string

	// The application config file content, only contains config keys.
	Value *string
}

func (SpringbootappsPropertiesApplicationConfigurationsItem) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type SpringbootappsPropertiesApplicationConfigurationsItem.

func (*SpringbootappsPropertiesApplicationConfigurationsItem) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type SpringbootappsPropertiesApplicationConfigurationsItem.

type SpringbootappsPropertiesInstancesItem

type SpringbootappsPropertiesInstancesItem struct {
	// REQUIRED; The machine ARM resource Id of this app instance
	MachineArmID *string

	// The instance count of this app instance
	InstanceCount *int32

	// The jvm heap memory allocated of this app instance
	JvmMemoryInMB *int32
}

func (SpringbootappsPropertiesInstancesItem) MarshalJSON

func (s SpringbootappsPropertiesInstancesItem) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SpringbootappsPropertiesInstancesItem.

func (*SpringbootappsPropertiesInstancesItem) UnmarshalJSON

func (s *SpringbootappsPropertiesInstancesItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SpringbootappsPropertiesInstancesItem.

type SpringbootappsPropertiesMiscsItem

type SpringbootappsPropertiesMiscsItem struct {
	// REQUIRED; The miscs. key.
	Key *string

	// The miscs. value.
	Value *string
}

func (SpringbootappsPropertiesMiscsItem) MarshalJSON

func (s SpringbootappsPropertiesMiscsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SpringbootappsPropertiesMiscsItem.

func (*SpringbootappsPropertiesMiscsItem) UnmarshalJSON

func (s *SpringbootappsPropertiesMiscsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SpringbootappsPropertiesMiscsItem.

type SpringbootserversClient

type SpringbootserversClient struct {
	// contains filtered or unexported fields
}

SpringbootserversClient contains the methods for the Springbootservers group. Don't use this type directly, use NewSpringbootserversClient() instead.

func NewSpringbootserversClient

func NewSpringbootserversClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SpringbootserversClient, error)

NewSpringbootserversClient creates a new instance of SpringbootserversClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*SpringbootserversClient) BeginDelete

func (client *SpringbootserversClient) BeginDelete(ctx context.Context, resourceGroupName string, siteName string, springbootserversName string, options *SpringbootserversClientBeginDeleteOptions) (*runtime.Poller[SpringbootserversClientDeleteResponse], error)

BeginDelete - Delete springbootservers resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-01-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • siteName - The springbootsites name.
  • springbootserversName - The springbootservers name.
  • options - SpringbootserversClientBeginDeleteOptions contains the optional parameters for the SpringbootserversClient.BeginDelete method.
Example (SpringbootserversDeleteMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootservers_Delete_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewSpringbootserversClient().BeginDelete(ctx, "rgspringbootservers", "hlkrzldhyobavtabgpubtjbhlslnjmsvkthwcfboriwyxndacjypzbj", "zkarbqnwnxeozvjrkpdqmgnwedwgtwcmmyqwaijkn", 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:

Example (SpringbootserversDeleteMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootservers_Delete_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewSpringbootserversClient().BeginDelete(ctx, "rgspringbootservers", "hlkrzldhyobavtabgpubtjbhlslnjmsvkthwcfboriwyxndacjypzbj", "zkarbqnwnxeozvjrkpdqmgnwedwgtwcmmyqwaijkn", 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 (*SpringbootserversClient) BeginUpdate

func (client *SpringbootserversClient) BeginUpdate(ctx context.Context, resourceGroupName string, siteName string, springbootserversName string, springbootservers SpringbootserversPatch, options *SpringbootserversClientBeginUpdateOptions) (*runtime.Poller[SpringbootserversClientUpdateResponse], error)

BeginUpdate - Update springbootservers resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-01-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • siteName - The springbootsites name.
  • springbootserversName - The springbootservers name.
  • springbootservers - Update a springbootservers payload.
  • options - SpringbootserversClientBeginUpdateOptions contains the optional parameters for the SpringbootserversClient.BeginUpdate method.
Example (SpringbootserversUpdateMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootservers_Update_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewSpringbootserversClient().BeginUpdate(ctx, "rgspringbootservers", "hlkrzldhyobavtabgpubtjbhlslnjmsvkthwcfboriwyxndacjypzbj", "zkarbqnwnxeozvjrkpdqmgnwedwgtwcmmyqwaijkn", armspringappdiscovery.SpringbootserversPatch{}, 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.SpringbootserversModel = armspringappdiscovery.SpringbootserversModel{
	// 	Name: to.Ptr("licrobomiqalwnrti"),
	// 	Type: to.Ptr("wlmmljjoqbqnhbotk"),
	// 	ID: to.Ptr("xsfjeazznmryzgjsuvymj"),
	// 	SystemData: &armspringappdiscovery.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:00:31.448Z"); return t}()),
	// 		CreatedBy: to.Ptr("wnkpkjmpusyo"),
	// 		CreatedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:00:31.448Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("pbpaajxtbivcftbnhqtngytbx"),
	// 		LastModifiedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
	// 	},
	// 	Properties: &armspringappdiscovery.SpringbootserversProperties{
	// 		Errors: []*armspringappdiscovery.Error{
	// 		},
	// 		FqdnAndIPAddressList: []*string{
	// 		},
	// 		MachineArmID: to.Ptr("fvfkiapbqsprnbzczdfmuryknrna"),
	// 		Port: to.Ptr[int32](10),
	// 		ProvisioningState: to.Ptr(armspringappdiscovery.ProvisioningStateSucceeded),
	// 		Server: to.Ptr("thhuxocfyqpeluqcgnypi"),
	// 		SpringBootApps: to.Ptr[int32](17),
	// 		TotalApps: to.Ptr[int32](5),
	// 	},
	// }
}
Output:

Example (SpringbootserversUpdateMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootservers_Update_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewSpringbootserversClient().BeginUpdate(ctx, "rgspringbootservers", "hlkrzldhyobavtabgpubtjbhlslnjmsvkthwcfboriwyxndacjypzbj", "zkarbqnwnxeozvjrkpdqmgnwedwgtwcmmyqwaijkn", armspringappdiscovery.SpringbootserversPatch{}, 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.SpringbootserversModel = armspringappdiscovery.SpringbootserversModel{
	// }
}
Output:

func (*SpringbootserversClient) CreateOrUpdate

func (client *SpringbootserversClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, siteName string, springbootserversName string, springbootservers SpringbootserversModel, options *SpringbootserversClientCreateOrUpdateOptions) (SpringbootserversClientCreateOrUpdateResponse, error)

CreateOrUpdate - Create springbootservers resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-01-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • siteName - The springbootsites name.
  • springbootserversName - The springbootservers name.
  • springbootservers - Create a springbootservers payload.
  • options - SpringbootserversClientCreateOrUpdateOptions contains the optional parameters for the SpringbootserversClient.CreateOrUpdate method.
Example (SpringbootserversCreateOrUpdateMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootservers_CreateOrUpdate_MaximumSet_Gen.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/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSpringbootserversClient().CreateOrUpdate(ctx, "rgspringbootservers", "hlkrzldhyobavtabgpubtjbhlslnjmsvkthwcfboriwyxndacjypzbj", "zkarbqnwnxeozvjrkpdqmgnwedwgtwcmmyqwaijkn", armspringappdiscovery.SpringbootserversModel{
		Properties: &armspringappdiscovery.SpringbootserversProperties{
			Errors:               []*armspringappdiscovery.Error{},
			FqdnAndIPAddressList: []*string{},
			MachineArmID:         to.Ptr("fvfkiapbqsprnbzczdfmuryknrna"),
			Port:                 to.Ptr[int32](10),
			Server:               to.Ptr("thhuxocfyqpeluqcgnypi"),
			SpringBootApps:       to.Ptr[int32](17),
			TotalApps:            to.Ptr[int32](5),
		},
	}, 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.SpringbootserversModel = armspringappdiscovery.SpringbootserversModel{
	// 	Name: to.Ptr("licrobomiqalwnrti"),
	// 	Type: to.Ptr("wlmmljjoqbqnhbotk"),
	// 	ID: to.Ptr("xsfjeazznmryzgjsuvymj"),
	// 	SystemData: &armspringappdiscovery.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:00:31.448Z"); return t}()),
	// 		CreatedBy: to.Ptr("wnkpkjmpusyo"),
	// 		CreatedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:00:31.448Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("pbpaajxtbivcftbnhqtngytbx"),
	// 		LastModifiedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
	// 	},
	// 	Properties: &armspringappdiscovery.SpringbootserversProperties{
	// 		Errors: []*armspringappdiscovery.Error{
	// 		},
	// 		FqdnAndIPAddressList: []*string{
	// 		},
	// 		MachineArmID: to.Ptr("fvfkiapbqsprnbzczdfmuryknrna"),
	// 		Port: to.Ptr[int32](10),
	// 		ProvisioningState: to.Ptr(armspringappdiscovery.ProvisioningStateSucceeded),
	// 		Server: to.Ptr("thhuxocfyqpeluqcgnypi"),
	// 		SpringBootApps: to.Ptr[int32](17),
	// 		TotalApps: to.Ptr[int32](5),
	// 	},
	// }
}
Output:

Example (SpringbootserversCreateOrUpdateMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootservers_CreateOrUpdate_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSpringbootserversClient().CreateOrUpdate(ctx, "rgspringbootservers", "hlkrzldhyobavtabgpubtjbhlslnjmsvkthwcfboriwyxndacjypzbj", "zkarbqnwnxeozvjrkpdqmgnwedwgtwcmmyqwaijkn", armspringappdiscovery.SpringbootserversModel{}, 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.SpringbootserversModel = armspringappdiscovery.SpringbootserversModel{
	// 	ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.OffAzureSpringBoot/springbootsites/testsite1/springbootservers/server1"),
	// }
}
Output:

func (*SpringbootserversClient) Get

func (client *SpringbootserversClient) Get(ctx context.Context, resourceGroupName string, siteName string, springbootserversName string, options *SpringbootserversClientGetOptions) (SpringbootserversClientGetResponse, error)

Get - List springbootservers resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-01-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • siteName - The springbootsites name.
  • springbootserversName - The springbootservers name.
  • options - SpringbootserversClientGetOptions contains the optional parameters for the SpringbootserversClient.Get method.
Example (SpringbootserversGetMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootservers_Get_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSpringbootserversClient().Get(ctx, "rgspringbootservers", "hlkrzldhyobavtabgpubtjbhlslnjmsvkthwcfboriwyxndacjypzbj", "zkarbqnwnxeozvjrkpdqmgnwedwgtwcmmyqwaijkn", 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.SpringbootserversModel = armspringappdiscovery.SpringbootserversModel{
	// 	Name: to.Ptr("licrobomiqalwnrti"),
	// 	Type: to.Ptr("wlmmljjoqbqnhbotk"),
	// 	ID: to.Ptr("xsfjeazznmryzgjsuvymj"),
	// 	SystemData: &armspringappdiscovery.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:00:31.448Z"); return t}()),
	// 		CreatedBy: to.Ptr("wnkpkjmpusyo"),
	// 		CreatedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:00:31.448Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("pbpaajxtbivcftbnhqtngytbx"),
	// 		LastModifiedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
	// 	},
	// 	Properties: &armspringappdiscovery.SpringbootserversProperties{
	// 		Errors: []*armspringappdiscovery.Error{
	// 		},
	// 		FqdnAndIPAddressList: []*string{
	// 		},
	// 		MachineArmID: to.Ptr("fvfkiapbqsprnbzczdfmuryknrna"),
	// 		Port: to.Ptr[int32](10),
	// 		ProvisioningState: to.Ptr(armspringappdiscovery.ProvisioningStateSucceeded),
	// 		Server: to.Ptr("thhuxocfyqpeluqcgnypi"),
	// 		SpringBootApps: to.Ptr[int32](17),
	// 		TotalApps: to.Ptr[int32](5),
	// 	},
	// }
}
Output:

Example (SpringbootserversGetMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootservers_Get_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSpringbootserversClient().Get(ctx, "rgspringbootservers", "hlkrzldhyobavtabgpubtjbhlslnjmsvkthwcfboriwyxndacjypzbj", "zkarbqnwnxeozvjrkpdqmgnwedwgtwcmmyqwaijkn", 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.SpringbootserversModel = armspringappdiscovery.SpringbootserversModel{
	// 	ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.OffAzureSpringBoot/springbootsites/testsite1/springbootservers/server1"),
	// }
}
Output:

func (*SpringbootserversClient) NewListByResourceGroupPager

NewListByResourceGroupPager - List springbootservers resource by resourceGroup

Generated from API version 2023-01-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • siteName - The springbootsites name.
  • options - SpringbootserversClientListByResourceGroupOptions contains the optional parameters for the SpringbootserversClient.NewListByResourceGroupPager method.
Example (SpringbootserversListByResourceGroupMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootservers_ListByResourceGroup_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSpringbootserversClient().NewListByResourceGroupPager("rgspringbootservers", "hlkrzldhyobavtabgpubtjbhlslnjmsvkthwcfboriwyxndacjypzbj", 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.SpringbootserversListResult = armspringappdiscovery.SpringbootserversListResult{
		// 	Value: []*armspringappdiscovery.SpringbootserversModel{
		// 		{
		// 			Name: to.Ptr("licrobomiqalwnrti"),
		// 			Type: to.Ptr("wlmmljjoqbqnhbotk"),
		// 			ID: to.Ptr("xsfjeazznmryzgjsuvymj"),
		// 			SystemData: &armspringappdiscovery.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:00:31.448Z"); return t}()),
		// 				CreatedBy: to.Ptr("wnkpkjmpusyo"),
		// 				CreatedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:00:31.448Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("pbpaajxtbivcftbnhqtngytbx"),
		// 				LastModifiedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
		// 			},
		// 			Properties: &armspringappdiscovery.SpringbootserversProperties{
		// 				Errors: []*armspringappdiscovery.Error{
		// 				},
		// 				FqdnAndIPAddressList: []*string{
		// 				},
		// 				MachineArmID: to.Ptr("fvfkiapbqsprnbzczdfmuryknrna"),
		// 				Port: to.Ptr[int32](10),
		// 				ProvisioningState: to.Ptr(armspringappdiscovery.ProvisioningStateSucceeded),
		// 				Server: to.Ptr("thhuxocfyqpeluqcgnypi"),
		// 				SpringBootApps: to.Ptr[int32](17),
		// 				TotalApps: to.Ptr[int32](5),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (SpringbootserversListByResourceGroupMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootservers_ListByResourceGroup_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSpringbootserversClient().NewListByResourceGroupPager("rgspringbootservers", "hlkrzldhyobavtabgpubtjbhlslnjmsvkthwcfboriwyxndacjypzbj", 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.SpringbootserversListResult = armspringappdiscovery.SpringbootserversListResult{
		// }
	}
}
Output:

func (*SpringbootserversClient) NewListBySubscriptionPager

NewListBySubscriptionPager - List springbootservers resource by subscription

Generated from API version 2023-01-01-preview

  • siteName - The springbootsites name.
  • options - SpringbootserversClientListBySubscriptionOptions contains the optional parameters for the SpringbootserversClient.NewListBySubscriptionPager method.
Example (SpringbootserversListBySubscriptionMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootservers_ListBySubscription_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSpringbootserversClient().NewListBySubscriptionPager("hlkrzldhyobavtabgpubtjbhlslnjmsvkthwcfboriwyxndacjypzbj", 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.SpringbootserversListResult = armspringappdiscovery.SpringbootserversListResult{
		// 	Value: []*armspringappdiscovery.SpringbootserversModel{
		// 		{
		// 			Name: to.Ptr("licrobomiqalwnrti"),
		// 			Type: to.Ptr("wlmmljjoqbqnhbotk"),
		// 			ID: to.Ptr("xsfjeazznmryzgjsuvymj"),
		// 			SystemData: &armspringappdiscovery.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:00:31.448Z"); return t}()),
		// 				CreatedBy: to.Ptr("wnkpkjmpusyo"),
		// 				CreatedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T09:00:31.448Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("pbpaajxtbivcftbnhqtngytbx"),
		// 				LastModifiedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
		// 			},
		// 			Properties: &armspringappdiscovery.SpringbootserversProperties{
		// 				Errors: []*armspringappdiscovery.Error{
		// 				},
		// 				FqdnAndIPAddressList: []*string{
		// 				},
		// 				MachineArmID: to.Ptr("fvfkiapbqsprnbzczdfmuryknrna"),
		// 				Port: to.Ptr[int32](10),
		// 				ProvisioningState: to.Ptr(armspringappdiscovery.ProvisioningStateSucceeded),
		// 				Server: to.Ptr("thhuxocfyqpeluqcgnypi"),
		// 				SpringBootApps: to.Ptr[int32](17),
		// 				TotalApps: to.Ptr[int32](5),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (SpringbootserversListBySubscriptionMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootservers_ListBySubscription_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSpringbootserversClient().NewListBySubscriptionPager("hlkrzldhyobavtabgpubtjbhlslnjmsvkthwcfboriwyxndacjypzbj", 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.SpringbootserversListResult = armspringappdiscovery.SpringbootserversListResult{
		// }
	}
}
Output:

type SpringbootserversClientBeginDeleteOptions

type SpringbootserversClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

SpringbootserversClientBeginDeleteOptions contains the optional parameters for the SpringbootserversClient.BeginDelete method.

type SpringbootserversClientBeginUpdateOptions

type SpringbootserversClientBeginUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

SpringbootserversClientBeginUpdateOptions contains the optional parameters for the SpringbootserversClient.BeginUpdate method.

type SpringbootserversClientCreateOrUpdateOptions

type SpringbootserversClientCreateOrUpdateOptions struct {
}

SpringbootserversClientCreateOrUpdateOptions contains the optional parameters for the SpringbootserversClient.CreateOrUpdate method.

type SpringbootserversClientCreateOrUpdateResponse

type SpringbootserversClientCreateOrUpdateResponse struct {
	// The springbootservers envelope resource definition.
	SpringbootserversModel
}

SpringbootserversClientCreateOrUpdateResponse contains the response from method SpringbootserversClient.CreateOrUpdate.

type SpringbootserversClientDeleteResponse

type SpringbootserversClientDeleteResponse struct {
}

SpringbootserversClientDeleteResponse contains the response from method SpringbootserversClient.BeginDelete.

type SpringbootserversClientGetOptions

type SpringbootserversClientGetOptions struct {
}

SpringbootserversClientGetOptions contains the optional parameters for the SpringbootserversClient.Get method.

type SpringbootserversClientGetResponse

type SpringbootserversClientGetResponse struct {
	// The springbootservers envelope resource definition.
	SpringbootserversModel
}

SpringbootserversClientGetResponse contains the response from method SpringbootserversClient.Get.

type SpringbootserversClientListByResourceGroupOptions

type SpringbootserversClientListByResourceGroupOptions struct {
}

SpringbootserversClientListByResourceGroupOptions contains the optional parameters for the SpringbootserversClient.NewListByResourceGroupPager method.

type SpringbootserversClientListByResourceGroupResponse

type SpringbootserversClientListByResourceGroupResponse struct {
	// The springbootservers list resource definition.
	SpringbootserversListResult
}

SpringbootserversClientListByResourceGroupResponse contains the response from method SpringbootserversClient.NewListByResourceGroupPager.

type SpringbootserversClientListBySubscriptionOptions

type SpringbootserversClientListBySubscriptionOptions struct {
}

SpringbootserversClientListBySubscriptionOptions contains the optional parameters for the SpringbootserversClient.NewListBySubscriptionPager method.

type SpringbootserversClientListBySubscriptionResponse

type SpringbootserversClientListBySubscriptionResponse struct {
	// The springbootservers list resource definition.
	SpringbootserversListResult
}

SpringbootserversClientListBySubscriptionResponse contains the response from method SpringbootserversClient.NewListBySubscriptionPager.

type SpringbootserversClientUpdateResponse

type SpringbootserversClientUpdateResponse struct {
	// The springbootservers envelope resource definition.
	SpringbootserversModel
}

SpringbootserversClientUpdateResponse contains the response from method SpringbootserversClient.BeginUpdate.

type SpringbootserversListResult

type SpringbootserversListResult struct {
	// The link used to get the next page of springbootservers resources list.
	NextLink *string

	// The springbootsites list.
	Value []*SpringbootserversModel
}

SpringbootserversListResult - The springbootservers list resource definition.

func (SpringbootserversListResult) MarshalJSON

func (s SpringbootserversListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SpringbootserversListResult.

func (*SpringbootserversListResult) UnmarshalJSON

func (s *SpringbootserversListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SpringbootserversListResult.

type SpringbootserversModel

type SpringbootserversModel struct {
	// The springbootservers resource definition.
	Properties *SpringbootserversProperties

	// Resource tags
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

SpringbootserversModel - The springbootservers envelope resource definition.

func (SpringbootserversModel) MarshalJSON

func (s SpringbootserversModel) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SpringbootserversModel.

func (*SpringbootserversModel) UnmarshalJSON

func (s *SpringbootserversModel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SpringbootserversModel.

type SpringbootserversPatch

type SpringbootserversPatch struct {
	// The springbootsites resource definition.
	Properties *SpringbootserversProperties

	// Resource tags
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

SpringbootserversPatch - The springbootservers resource patch definition.

func (SpringbootserversPatch) MarshalJSON

func (s SpringbootserversPatch) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SpringbootserversPatch.

func (*SpringbootserversPatch) UnmarshalJSON

func (s *SpringbootserversPatch) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SpringbootserversPatch.

type SpringbootserversProperties

type SpringbootserversProperties struct {
	// REQUIRED; Server is the target server name or ip address to discover of SpringBootServer.
	Server *string

	// The list of errors.
	Errors []*Error

	// The alternative FQDN or IP addresses to discover for this server
	FqdnAndIPAddressList []*string

	// The machine Id from ARM
	MachineArmID *string

	// Target server port for remote login
	Port *int32

	// The resource provisioning state.
	ProvisioningState *ProvisioningState

	// The total number of spring boot apps been discovered
	SpringBootApps *int32

	// The total number of apps been discovered
	TotalApps *int32
}

SpringbootserversProperties - The springbootservers resource definition.

func (SpringbootserversProperties) MarshalJSON

func (s SpringbootserversProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SpringbootserversProperties.

func (*SpringbootserversProperties) UnmarshalJSON

func (s *SpringbootserversProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SpringbootserversProperties.

type SpringbootsitesClient

type SpringbootsitesClient struct {
	// contains filtered or unexported fields
}

SpringbootsitesClient contains the methods for the Springbootsites group. Don't use this type directly, use NewSpringbootsitesClient() instead.

func NewSpringbootsitesClient

func NewSpringbootsitesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SpringbootsitesClient, error)

NewSpringbootsitesClient creates a new instance of SpringbootsitesClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*SpringbootsitesClient) BeginDelete

func (client *SpringbootsitesClient) BeginDelete(ctx context.Context, resourceGroupName string, springbootsitesName string, options *SpringbootsitesClientBeginDeleteOptions) (*runtime.Poller[SpringbootsitesClientDeleteResponse], error)

BeginDelete - Delete a springbootsites resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-01-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • springbootsitesName - The springbootsites name.
  • options - SpringbootsitesClientBeginDeleteOptions contains the optional parameters for the SpringbootsitesClient.BeginDelete method.
Example (SpringbootsitesDeleteMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootsites_Delete_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewSpringbootsitesClient().BeginDelete(ctx, "rgspringbootsites", "xrmzlavpewxtfeitghdrj", 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:

Example (SpringbootsitesDeleteMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootsites_Delete_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewSpringbootsitesClient().BeginDelete(ctx, "rgspringbootsites", "xrmzlavpewxtfeitghdrj", 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 (*SpringbootsitesClient) BeginTriggerRefreshSite

func (client *SpringbootsitesClient) BeginTriggerRefreshSite(ctx context.Context, resourceGroupName string, springbootsitesName string, options *SpringbootsitesClientBeginTriggerRefreshSiteOptions) (*runtime.Poller[SpringbootsitesClientTriggerRefreshSiteResponse], error)

BeginTriggerRefreshSite - Trigger refresh springbootsites action If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-01-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • springbootsitesName - The springbootsites name.
  • options - SpringbootsitesClientBeginTriggerRefreshSiteOptions contains the optional parameters for the SpringbootsitesClient.BeginTriggerRefreshSite method.
Example (SpringbootsitesTriggerRefreshSiteMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootsites_TriggerRefreshSite_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewSpringbootsitesClient().BeginTriggerRefreshSite(ctx, "rgspringbootsites", "czarpuxwoafaqsuptutcwyu", 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:

Example (SpringbootsitesTriggerRefreshSiteMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootsites_TriggerRefreshSite_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewSpringbootsitesClient().BeginTriggerRefreshSite(ctx, "rgspringbootsites", "czarpuxwoafaqsuptutcwyu", 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 (*SpringbootsitesClient) BeginUpdate

func (client *SpringbootsitesClient) BeginUpdate(ctx context.Context, resourceGroupName string, springbootsitesName string, springbootsites SpringbootsitesPatch, options *SpringbootsitesClientBeginUpdateOptions) (*runtime.Poller[SpringbootsitesClientUpdateResponse], error)

BeginUpdate - Update a springbootsites resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-01-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • springbootsitesName - The springbootsites name.
  • springbootsites - Update a springbootsites payload.
  • options - SpringbootsitesClientBeginUpdateOptions contains the optional parameters for the SpringbootsitesClient.BeginUpdate method.
Example (SpringbootsitesUpdateMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootsites_Update_MaximumSet_Gen.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/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewSpringbootsitesClient().BeginUpdate(ctx, "rgspringbootsites", "xrmzlavpewxtfeitghdrj", armspringappdiscovery.SpringbootsitesPatch{
		Location: to.Ptr("icnumzvzzeqhuxtcefuqdcro"),
		Tags: map[string]*string{
			"key9581": to.Ptr("cgdqvbknjrwcwuesquddsxu"),
		},
	}, 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.SpringbootsitesModel = armspringappdiscovery.SpringbootsitesModel{
	// 	Name: to.Ptr("jjyngfg"),
	// 	Type: to.Ptr("jnhikchnunglggvsuyy"),
	// 	ID: to.Ptr("dynfdywpzysyqnfgdddj"),
	// 	SystemData: &armspringappdiscovery.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T11:53:09.096Z"); return t}()),
	// 		CreatedBy: to.Ptr("cqwftvyr"),
	// 		CreatedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T11:53:09.096Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("yezjizjfobybuslq"),
	// 		LastModifiedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
	// 	},
	// 	Location: to.Ptr("tgobtvxktootwhhvjtsmpddvlqlrq"),
	// 	Tags: map[string]*string{
	// 		"key3558": to.Ptr("xeuhtglamqzj"),
	// 	},
	// 	ExtendedLocation: &armspringappdiscovery.SpringbootsitesModelExtendedLocation{
	// 		Name: to.Ptr("rywvpbfsqovhlfirtwisugsdsfsgf"),
	// 		Type: to.Ptr("lvsb"),
	// 	},
	// 	Properties: &armspringappdiscovery.SpringbootsitesProperties{
	// 		MasterSiteID: to.Ptr("xsoimrgshsactearljwuljmi"),
	// 		MigrateProjectID: to.Ptr("wwuattybgco"),
	// 		ProvisioningState: to.Ptr(armspringappdiscovery.ProvisioningStateSucceeded),
	// 	},
	// }
}
Output:

Example (SpringbootsitesUpdateMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootsites_Update_MinimumSet_Gen.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/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewSpringbootsitesClient().BeginUpdate(ctx, "rgspringbootsites", "xrmzlavpewxtfeitghdrj", armspringappdiscovery.SpringbootsitesPatch{
		Location: to.Ptr("icnumzvzzeqhuxtcefuqdcro"),
	}, 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.SpringbootsitesModel = armspringappdiscovery.SpringbootsitesModel{
	// 	Location: to.Ptr("tgobtvxktootwhhvjtsmpddvlqlrq"),
	// }
}
Output:

func (*SpringbootsitesClient) CreateOrUpdate

func (client *SpringbootsitesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, springbootsitesName string, springbootsites SpringbootsitesModel, options *SpringbootsitesClientCreateOrUpdateOptions) (SpringbootsitesClientCreateOrUpdateResponse, error)

CreateOrUpdate - Create a springbootsites resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-01-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • springbootsitesName - The springbootsites name.
  • springbootsites - Create a springbootsites payload.
  • options - SpringbootsitesClientCreateOrUpdateOptions contains the optional parameters for the SpringbootsitesClient.CreateOrUpdate method.
Example (SpringbootsitesCreateOrUpdateMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootsites_CreateOrUpdate_MaximumSet_Gen.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/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSpringbootsitesClient().CreateOrUpdate(ctx, "rgspringbootsites", "xrmzlavpewxtfeitghdrj", armspringappdiscovery.SpringbootsitesModel{
		Location: to.Ptr("tgobtvxktootwhhvjtsmpddvlqlrq"),
		Tags: map[string]*string{
			"key3558": to.Ptr("xeuhtglamqzj"),
		},
		ExtendedLocation: &armspringappdiscovery.SpringbootsitesModelExtendedLocation{
			Name: to.Ptr("rywvpbfsqovhlfirtwisugsdsfsgf"),
			Type: to.Ptr("lvsb"),
		},
		Properties: &armspringappdiscovery.SpringbootsitesProperties{
			MasterSiteID:     to.Ptr("xsoimrgshsactearljwuljmi"),
			MigrateProjectID: to.Ptr("wwuattybgco"),
		},
	}, 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.SpringbootsitesModel = armspringappdiscovery.SpringbootsitesModel{
	// 	Name: to.Ptr("jjyngfg"),
	// 	Type: to.Ptr("jnhikchnunglggvsuyy"),
	// 	ID: to.Ptr("dynfdywpzysyqnfgdddj"),
	// 	SystemData: &armspringappdiscovery.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T11:53:09.096Z"); return t}()),
	// 		CreatedBy: to.Ptr("cqwftvyr"),
	// 		CreatedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T11:53:09.096Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("yezjizjfobybuslq"),
	// 		LastModifiedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
	// 	},
	// 	Location: to.Ptr("tgobtvxktootwhhvjtsmpddvlqlrq"),
	// 	Tags: map[string]*string{
	// 		"key3558": to.Ptr("xeuhtglamqzj"),
	// 	},
	// 	ExtendedLocation: &armspringappdiscovery.SpringbootsitesModelExtendedLocation{
	// 		Name: to.Ptr("rywvpbfsqovhlfirtwisugsdsfsgf"),
	// 		Type: to.Ptr("lvsb"),
	// 	},
	// 	Properties: &armspringappdiscovery.SpringbootsitesProperties{
	// 		MasterSiteID: to.Ptr("xsoimrgshsactearljwuljmi"),
	// 		MigrateProjectID: to.Ptr("wwuattybgco"),
	// 		ProvisioningState: to.Ptr(armspringappdiscovery.ProvisioningStateSucceeded),
	// 	},
	// }
}
Output:

Example (SpringbootsitesCreateOrUpdateMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootsites_CreateOrUpdate_MinimumSet_Gen.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/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSpringbootsitesClient().CreateOrUpdate(ctx, "rgspringbootsites", "xrmzlavpewxtfeitghdrj", armspringappdiscovery.SpringbootsitesModel{
		Location: to.Ptr("tgobtvxktootwhhvjtsmpddvlqlrq"),
	}, 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.SpringbootsitesModel = armspringappdiscovery.SpringbootsitesModel{
	// 	ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.OffAzureSpringBoot/springbootsites/testsite1"),
	// 	Location: to.Ptr("tgobtvxktootwhhvjtsmpddvlqlrq"),
	// }
}
Output:

func (*SpringbootsitesClient) Get

func (client *SpringbootsitesClient) Get(ctx context.Context, resourceGroupName string, springbootsitesName string, options *SpringbootsitesClientGetOptions) (SpringbootsitesClientGetResponse, error)

Get - Get a springbootsites resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-01-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • springbootsitesName - The springbootsites name.
  • options - SpringbootsitesClientGetOptions contains the optional parameters for the SpringbootsitesClient.Get method.
Example (SpringbootsitesGetMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootsites_Get_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSpringbootsitesClient().Get(ctx, "rgspringbootsites", "xrmzlavpewxtfeitghdrj", 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.SpringbootsitesModel = armspringappdiscovery.SpringbootsitesModel{
	// 	Name: to.Ptr("jjyngfg"),
	// 	Type: to.Ptr("jnhikchnunglggvsuyy"),
	// 	ID: to.Ptr("dynfdywpzysyqnfgdddj"),
	// 	SystemData: &armspringappdiscovery.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T11:53:09.096Z"); return t}()),
	// 		CreatedBy: to.Ptr("cqwftvyr"),
	// 		CreatedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T11:53:09.096Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("yezjizjfobybuslq"),
	// 		LastModifiedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
	// 	},
	// 	Location: to.Ptr("tgobtvxktootwhhvjtsmpddvlqlrq"),
	// 	Tags: map[string]*string{
	// 		"key3558": to.Ptr("xeuhtglamqzj"),
	// 	},
	// 	ExtendedLocation: &armspringappdiscovery.SpringbootsitesModelExtendedLocation{
	// 		Name: to.Ptr("rywvpbfsqovhlfirtwisugsdsfsgf"),
	// 		Type: to.Ptr("lvsb"),
	// 	},
	// 	Properties: &armspringappdiscovery.SpringbootsitesProperties{
	// 		MasterSiteID: to.Ptr("xsoimrgshsactearljwuljmi"),
	// 		MigrateProjectID: to.Ptr("wwuattybgco"),
	// 		ProvisioningState: to.Ptr(armspringappdiscovery.ProvisioningStateSucceeded),
	// 	},
	// }
}
Output:

Example (SpringbootsitesGetMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootsites_Get_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSpringbootsitesClient().Get(ctx, "rgspringbootsites", "xrmzlavpewxtfeitghdrj", 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.SpringbootsitesModel = armspringappdiscovery.SpringbootsitesModel{
	// 	ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.OffAzureSpringBoot/springbootsites/testsite1"),
	// 	Location: to.Ptr("tgobtvxktootwhhvjtsmpddvlqlrq"),
	// }
}
Output:

func (*SpringbootsitesClient) NewListByResourceGroupPager

NewListByResourceGroupPager - List springbootsites resource by resourceGroup.

Generated from API version 2023-01-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • options - SpringbootsitesClientListByResourceGroupOptions contains the optional parameters for the SpringbootsitesClient.NewListByResourceGroupPager method.
Example (SpringbootsitesListByResourceGroupMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootsites_ListByResourceGroup_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSpringbootsitesClient().NewListByResourceGroupPager("rgspringbootsites", 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.SpringbootsitesListResult = armspringappdiscovery.SpringbootsitesListResult{
		// 	Value: []*armspringappdiscovery.SpringbootsitesModel{
		// 		{
		// 			Name: to.Ptr("jjyngfg"),
		// 			Type: to.Ptr("jnhikchnunglggvsuyy"),
		// 			ID: to.Ptr("dynfdywpzysyqnfgdddj"),
		// 			SystemData: &armspringappdiscovery.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T11:53:09.096Z"); return t}()),
		// 				CreatedBy: to.Ptr("cqwftvyr"),
		// 				CreatedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T11:53:09.096Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("yezjizjfobybuslq"),
		// 				LastModifiedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
		// 			},
		// 			Location: to.Ptr("tgobtvxktootwhhvjtsmpddvlqlrq"),
		// 			Tags: map[string]*string{
		// 				"key3558": to.Ptr("xeuhtglamqzj"),
		// 			},
		// 			ExtendedLocation: &armspringappdiscovery.SpringbootsitesModelExtendedLocation{
		// 				Name: to.Ptr("rywvpbfsqovhlfirtwisugsdsfsgf"),
		// 				Type: to.Ptr("lvsb"),
		// 			},
		// 			Properties: &armspringappdiscovery.SpringbootsitesProperties{
		// 				MasterSiteID: to.Ptr("xsoimrgshsactearljwuljmi"),
		// 				MigrateProjectID: to.Ptr("wwuattybgco"),
		// 				ProvisioningState: to.Ptr(armspringappdiscovery.ProvisioningStateSucceeded),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (SpringbootsitesListByResourceGroupMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootsites_ListByResourceGroup_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSpringbootsitesClient().NewListByResourceGroupPager("rgspringbootsites", 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.SpringbootsitesListResult = armspringappdiscovery.SpringbootsitesListResult{
		// }
	}
}
Output:

func (*SpringbootsitesClient) NewListBySubscriptionPager

NewListBySubscriptionPager - List springbootsites resource by subscription

Generated from API version 2023-01-01-preview

  • options - SpringbootsitesClientListBySubscriptionOptions contains the optional parameters for the SpringbootsitesClient.NewListBySubscriptionPager method.
Example (SpringbootsitesListBySubscriptionMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootsites_ListBySubscription_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSpringbootsitesClient().NewListBySubscriptionPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.SpringbootsitesListResult = armspringappdiscovery.SpringbootsitesListResult{
		// 	Value: []*armspringappdiscovery.SpringbootsitesModel{
		// 		{
		// 			Name: to.Ptr("jjyngfg"),
		// 			Type: to.Ptr("jnhikchnunglggvsuyy"),
		// 			ID: to.Ptr("dynfdywpzysyqnfgdddj"),
		// 			SystemData: &armspringappdiscovery.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T11:53:09.096Z"); return t}()),
		// 				CreatedBy: to.Ptr("cqwftvyr"),
		// 				CreatedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-02T11:53:09.096Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("yezjizjfobybuslq"),
		// 				LastModifiedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
		// 			},
		// 			Location: to.Ptr("tgobtvxktootwhhvjtsmpddvlqlrq"),
		// 			Tags: map[string]*string{
		// 				"key3558": to.Ptr("xeuhtglamqzj"),
		// 			},
		// 			ExtendedLocation: &armspringappdiscovery.SpringbootsitesModelExtendedLocation{
		// 				Name: to.Ptr("rywvpbfsqovhlfirtwisugsdsfsgf"),
		// 				Type: to.Ptr("lvsb"),
		// 			},
		// 			Properties: &armspringappdiscovery.SpringbootsitesProperties{
		// 				MasterSiteID: to.Ptr("xsoimrgshsactearljwuljmi"),
		// 				MigrateProjectID: to.Ptr("wwuattybgco"),
		// 				ProvisioningState: to.Ptr(armspringappdiscovery.ProvisioningStateSucceeded),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (SpringbootsitesListBySubscriptionMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/springbootsites_ListBySubscription_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSpringbootsitesClient().NewListBySubscriptionPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.SpringbootsitesListResult = armspringappdiscovery.SpringbootsitesListResult{
		// }
	}
}
Output:

type SpringbootsitesClientBeginDeleteOptions

type SpringbootsitesClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

SpringbootsitesClientBeginDeleteOptions contains the optional parameters for the SpringbootsitesClient.BeginDelete method.

type SpringbootsitesClientBeginTriggerRefreshSiteOptions

type SpringbootsitesClientBeginTriggerRefreshSiteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

SpringbootsitesClientBeginTriggerRefreshSiteOptions contains the optional parameters for the SpringbootsitesClient.BeginTriggerRefreshSite method.

type SpringbootsitesClientBeginUpdateOptions

type SpringbootsitesClientBeginUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

SpringbootsitesClientBeginUpdateOptions contains the optional parameters for the SpringbootsitesClient.BeginUpdate method.

type SpringbootsitesClientCreateOrUpdateOptions

type SpringbootsitesClientCreateOrUpdateOptions struct {
}

SpringbootsitesClientCreateOrUpdateOptions contains the optional parameters for the SpringbootsitesClient.CreateOrUpdate method.

type SpringbootsitesClientCreateOrUpdateResponse

type SpringbootsitesClientCreateOrUpdateResponse struct {
	// The springbootsites envelope resource definition.
	SpringbootsitesModel
}

SpringbootsitesClientCreateOrUpdateResponse contains the response from method SpringbootsitesClient.CreateOrUpdate.

type SpringbootsitesClientDeleteResponse

type SpringbootsitesClientDeleteResponse struct {
}

SpringbootsitesClientDeleteResponse contains the response from method SpringbootsitesClient.BeginDelete.

type SpringbootsitesClientGetOptions

type SpringbootsitesClientGetOptions struct {
}

SpringbootsitesClientGetOptions contains the optional parameters for the SpringbootsitesClient.Get method.

type SpringbootsitesClientGetResponse

type SpringbootsitesClientGetResponse struct {
	// The springbootsites envelope resource definition.
	SpringbootsitesModel
}

SpringbootsitesClientGetResponse contains the response from method SpringbootsitesClient.Get.

type SpringbootsitesClientListByResourceGroupOptions

type SpringbootsitesClientListByResourceGroupOptions struct {
}

SpringbootsitesClientListByResourceGroupOptions contains the optional parameters for the SpringbootsitesClient.NewListByResourceGroupPager method.

type SpringbootsitesClientListByResourceGroupResponse

type SpringbootsitesClientListByResourceGroupResponse struct {
	// The springbootsites list resource definition.
	SpringbootsitesListResult
}

SpringbootsitesClientListByResourceGroupResponse contains the response from method SpringbootsitesClient.NewListByResourceGroupPager.

type SpringbootsitesClientListBySubscriptionOptions

type SpringbootsitesClientListBySubscriptionOptions struct {
}

SpringbootsitesClientListBySubscriptionOptions contains the optional parameters for the SpringbootsitesClient.NewListBySubscriptionPager method.

type SpringbootsitesClientListBySubscriptionResponse

type SpringbootsitesClientListBySubscriptionResponse struct {
	// The springbootsites list resource definition.
	SpringbootsitesListResult
}

SpringbootsitesClientListBySubscriptionResponse contains the response from method SpringbootsitesClient.NewListBySubscriptionPager.

type SpringbootsitesClientTriggerRefreshSiteResponse

type SpringbootsitesClientTriggerRefreshSiteResponse struct {
}

SpringbootsitesClientTriggerRefreshSiteResponse contains the response from method SpringbootsitesClient.BeginTriggerRefreshSite.

type SpringbootsitesClientUpdateResponse

type SpringbootsitesClientUpdateResponse struct {
	// The springbootsites envelope resource definition.
	SpringbootsitesModel
}

SpringbootsitesClientUpdateResponse contains the response from method SpringbootsitesClient.BeginUpdate.

type SpringbootsitesListResult

type SpringbootsitesListResult struct {
	// The link used to get the next page of springbootsites resources list.
	NextLink *string

	// The springbootsites list.
	Value []*SpringbootsitesModel
}

SpringbootsitesListResult - The springbootsites list resource definition.

func (SpringbootsitesListResult) MarshalJSON

func (s SpringbootsitesListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SpringbootsitesListResult.

func (*SpringbootsitesListResult) UnmarshalJSON

func (s *SpringbootsitesListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SpringbootsitesListResult.

type SpringbootsitesModel

type SpringbootsitesModel struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string

	// The extended location definition.
	ExtendedLocation *SpringbootsitesModelExtendedLocation

	// The springbootsites resource definition.
	Properties *SpringbootsitesProperties

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

SpringbootsitesModel - The springbootsites envelope resource definition.

func (SpringbootsitesModel) MarshalJSON

func (s SpringbootsitesModel) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SpringbootsitesModel.

func (*SpringbootsitesModel) UnmarshalJSON

func (s *SpringbootsitesModel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SpringbootsitesModel.

type SpringbootsitesModelExtendedLocation

type SpringbootsitesModelExtendedLocation struct {
	// The extended location name.
	Name *string

	// The extended location type.
	Type *string
}

SpringbootsitesModelExtendedLocation - The extended location definition.

func (SpringbootsitesModelExtendedLocation) MarshalJSON

func (s SpringbootsitesModelExtendedLocation) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SpringbootsitesModelExtendedLocation.

func (*SpringbootsitesModelExtendedLocation) UnmarshalJSON

func (s *SpringbootsitesModelExtendedLocation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SpringbootsitesModelExtendedLocation.

type SpringbootsitesPatch

type SpringbootsitesPatch struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string

	// The springbootsites resource definition.
	Properties *SpringbootsitesProperties

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

SpringbootsitesPatch - The springbootsites resource patch definition.

func (SpringbootsitesPatch) MarshalJSON

func (s SpringbootsitesPatch) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SpringbootsitesPatch.

func (*SpringbootsitesPatch) UnmarshalJSON

func (s *SpringbootsitesPatch) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SpringbootsitesPatch.

type SpringbootsitesProperties

type SpringbootsitesProperties struct {
	// The master site ID from Azure Migrate.
	MasterSiteID *string

	// The migrate project ID from Azure Migrate.
	MigrateProjectID *string

	// The resource provisioning state.
	ProvisioningState *ProvisioningState
}

SpringbootsitesProperties - The springbootsites resource definition.

func (SpringbootsitesProperties) MarshalJSON

func (s SpringbootsitesProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SpringbootsitesProperties.

func (*SpringbootsitesProperties) UnmarshalJSON

func (s *SpringbootsitesProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SpringbootsitesProperties.

type SummariesClient

type SummariesClient struct {
	// contains filtered or unexported fields
}

SummariesClient contains the methods for the Summaries group. Don't use this type directly, use NewSummariesClient() instead.

func NewSummariesClient

func NewSummariesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SummariesClient, error)

NewSummariesClient creates a new instance of SummariesClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*SummariesClient) Get

func (client *SummariesClient) Get(ctx context.Context, resourceGroupName string, siteName string, summaryName string, options *SummariesClientGetOptions) (SummariesClientGetResponse, error)

Get - Gets the Summaries resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-01-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • siteName - The springbootsites name.
  • summaryName - The name of summary
  • options - SummariesClientGetOptions contains the optional parameters for the SummariesClient.Get method.
Example (SummariesGetMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/Summaries_Get_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSummariesClient().Get(ctx, "rgspringbootdiscovery", "xxkzlvbihwxunadjcpjpjmghmhxrqyvghtpfps", "vjB", 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.Summary = armspringappdiscovery.Summary{
	// 	Name: to.Ptr("gntlsuizarosogjemzapadnhu"),
	// 	Type: to.Ptr("patxegcogfdxwobof"),
	// 	ID: to.Ptr("flpga"),
	// 	SystemData: &armspringappdiscovery.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-02-05T16:44:32.561Z"); return t}()),
	// 		CreatedBy: to.Ptr("ztjtyfhicmxcpqszeovgojwzceagbc"),
	// 		CreatedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-02-05T16:44:32.562Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("isjllzvqodp"),
	// 		LastModifiedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
	// 	},
	// 	Properties: &armspringappdiscovery.SummariesProperties{
	// 		DiscoveredApps: to.Ptr[int64](24),
	// 		DiscoveredServers: to.Ptr[int64](22),
	// 		ProvisioningState: to.Ptr(armspringappdiscovery.ProvisioningStateSucceeded),
	// 	},
	// 	Tags: map[string]*string{
	// 		"key9287": to.Ptr("utoxkd"),
	// 	},
	// }
}
Output:

Example (SummariesGetMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/Summaries_Get_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSummariesClient().Get(ctx, "rgspringbootdiscovery", "xxkzlvbihwxunadjcpjpjmghmhxrqyvghtpfps", "vjB", 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.Summary = armspringappdiscovery.Summary{
	// 	ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.OffAzureSpringBoot/springbootsites/testsite1/summaries/default"),
	// }
}
Output:

func (*SummariesClient) NewListBySitePager

func (client *SummariesClient) NewListBySitePager(resourceGroupName string, siteName string, options *SummariesClientListBySiteOptions) *runtime.Pager[SummariesClientListBySiteResponse]

NewListBySitePager - Lists the Summaries resource in springbootsites.

Generated from API version 2023-01-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • siteName - The springbootsites name.
  • options - SummariesClientListBySiteOptions contains the optional parameters for the SummariesClient.NewListBySitePager method.
Example (SummariesListBySiteMaximumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/Summaries_ListBySite_MaximumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSummariesClient().NewListBySitePager("rgspringbootdiscovery", "xxkzlvbihwxunadjcpjpjmghmhxrqyvghtpfps", 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.SummaryList = armspringappdiscovery.SummaryList{
		// 	Value: []*armspringappdiscovery.Summary{
		// 		{
		// 			Name: to.Ptr("gntlsuizarosogjemzapadnhu"),
		// 			Type: to.Ptr("patxegcogfdxwobof"),
		// 			ID: to.Ptr("flpga"),
		// 			SystemData: &armspringappdiscovery.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-02-05T16:44:32.561Z"); return t}()),
		// 				CreatedBy: to.Ptr("ztjtyfhicmxcpqszeovgojwzceagbc"),
		// 				CreatedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-02-05T16:44:32.562Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("isjllzvqodp"),
		// 				LastModifiedByType: to.Ptr(armspringappdiscovery.CreatedByTypeUser),
		// 			},
		// 			Properties: &armspringappdiscovery.SummariesProperties{
		// 				DiscoveredApps: to.Ptr[int64](24),
		// 				DiscoveredServers: to.Ptr[int64](22),
		// 				ProvisioningState: to.Ptr(armspringappdiscovery.ProvisioningStateSucceeded),
		// 			},
		// 			Tags: map[string]*string{
		// 				"key9287": to.Ptr("utoxkd"),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (SummariesListBySiteMinimumSetGen)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/offazurespringboot/resource-manager/Microsoft.OffAzureSpringBoot/preview/2023-01-01-preview/examples/Summaries_ListBySite_MinimumSet_Gen.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armspringappdiscovery.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSummariesClient().NewListBySitePager("rgspringbootdiscovery", "xxkzlvbihwxunadjcpjpjmghmhxrqyvghtpfps", 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.SummaryList = armspringappdiscovery.SummaryList{
		// }
	}
}
Output:

type SummariesClientGetOptions

type SummariesClientGetOptions struct {
}

SummariesClientGetOptions contains the optional parameters for the SummariesClient.Get method.

type SummariesClientGetResponse

type SummariesClientGetResponse struct {
	// The summary resource definition.
	Summary
}

SummariesClientGetResponse contains the response from method SummariesClient.Get.

type SummariesClientListBySiteOptions

type SummariesClientListBySiteOptions struct {
}

SummariesClientListBySiteOptions contains the optional parameters for the SummariesClient.NewListBySitePager method.

type SummariesClientListBySiteResponse

type SummariesClientListBySiteResponse struct {
	// List of Sites.
	SummaryList
}

SummariesClientListBySiteResponse contains the response from method SummariesClient.NewListBySitePager.

type SummariesProperties

type SummariesProperties struct {
	// The of number discovered spring boot apps.
	DiscoveredApps *int64

	// The of number discovered spring boot servers.
	DiscoveredServers *int64

	// The list of errors.
	Errors []*Error

	// The resource provisioning state.
	ProvisioningState *ProvisioningState
}

SummariesProperties - Summaries properties

func (SummariesProperties) MarshalJSON

func (s SummariesProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SummariesProperties.

func (*SummariesProperties) UnmarshalJSON

func (s *SummariesProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SummariesProperties.

type Summary

type Summary struct {
	// Resource properties.
	Properties *SummariesProperties

	// Resource tags
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

Summary - The summary resource definition.

func (Summary) MarshalJSON

func (s Summary) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Summary.

func (*Summary) UnmarshalJSON

func (s *Summary) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Summary.

type SummaryList

type SummaryList struct {
	// Url to follow for getting next page of resources.
	NextLink *string

	// List of Sites.
	Value []*Summary
}

SummaryList - List of Sites.

func (SummaryList) MarshalJSON

func (s SummaryList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SummaryList.

func (*SummaryList) UnmarshalJSON

func (s *SummaryList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SummaryList.

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL