@@ -87,26 +87,26 @@ func (i ResourceGroupType) String() string {
8787// NOTE: This function must be used by any ResourceGroup type.
8888//
8989// Basic usage: Initialize a new ContainerResourceGroup struct, then
90- // use the new instance to do CRUD operations
9190//
92- // client, err := api.NewClient("account")
93- // if err != nil {
94- // return err
95- // }
91+ // use the new instance to do CRUD operations
9692//
97- // group := api.NewResourceGroup("container resource group",
98- // api.ContainerResourceGroup,
99- // api.ContainerResourceGroupData{
100- // Props: api.ContainerResourceGroupProps{
101- // Description: "all containers,
102- // ContainerLabels: ContainerResourceGroupAllLabels,
103- // ContainerTags: ContainerResourceGroupAllTags,
104- // },
105- // },
106- // )
93+ // client, err := api.NewClient("account")
94+ // if err != nil {
95+ // return err
96+ // }
10797//
108- // client.V2.ResourceGroups.Create(group)
98+ // group := api.NewResourceGroup("container resource group",
99+ // api.ContainerResourceGroup,
100+ // api.ContainerResourceGroupData{
101+ // Props: api.ContainerResourceGroupProps{
102+ // Description: "all containers,
103+ // ContainerLabels: ContainerResourceGroupAllLabels,
104+ // ContainerTags: ContainerResourceGroupAllTags,
105+ // },
106+ // },
107+ // )
109108//
109+ // client.V2.ResourceGroups.Create(group)
110110func NewResourceGroup (name string , iType ResourceGroupType , props interface {}) ResourceGroupData {
111111 return ResourceGroupData {
112112 Name : name ,
@@ -250,9 +250,9 @@ func (svc *ResourceGroupsService) Delete(guid string) error {
250250// To return a more specific Go struct of a Resource Group, use the proper
251251// method such as GetContainerResourceGroup() where the function name is composed by:
252252//
253- // Get<Type>(guid)
253+ // Get<Type>(guid)
254254//
255- // Where <Type> is the Resource Group type.
255+ // Where <Type> is the Resource Group type.
256256func (svc * ResourceGroupsService ) Get (guid string , response interface {}) error {
257257 var rawResponse resourceGroupWorkaroundResponse
258258 err := svc .get (guid , & rawResponse )
0 commit comments