Skip to content

Commit

Permalink
Updating based on 111d22058
Browse files Browse the repository at this point in the history
  • Loading branch information
hc-github-team-tf-azure committed Aug 2, 2023
1 parent e6e8e2b commit dc46d08
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 566 deletions.
105 changes: 48 additions & 57 deletions resource-manager/automation/2022-08-08/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/jobschedule"
"github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/jobstream"
"github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/linkedworkspace"
"github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/listallhybridrunbookworkergroupinautomationaccount"
"github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/listkeys"
"github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/module"
"github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/objectdatatypes"
Expand All @@ -46,41 +45,40 @@ import (
)

type Client struct {
Activity *activity.ActivityClient
AutomationAccount *automationaccount.AutomationAccountClient
Certificate *certificate.CertificateClient
Connection *connection.ConnectionClient
ConnectionType *connectiontype.ConnectionTypeClient
Credential *credential.CredentialClient
DscConfiguration *dscconfiguration.DscConfigurationClient
DscNodeConfiguration *dscnodeconfiguration.DscNodeConfigurationClient
HybridRunbookWorker *hybridrunbookworker.HybridRunbookWorkerClient
HybridRunbookWorkerGroup *hybridrunbookworkergroup.HybridRunbookWorkerGroupClient
Job *job.JobClient
JobSchedule *jobschedule.JobScheduleClient
JobStream *jobstream.JobStreamClient
LinkedWorkspace *linkedworkspace.LinkedWorkspaceClient
ListAllHybridRunbookWorkerGroupInAutomationAccount *listallhybridrunbookworkergroupinautomationaccount.ListAllHybridRunbookWorkerGroupInAutomationAccountClient
ListKeys *listkeys.ListKeysClient
Module *module.ModuleClient
ObjectDataTypes *objectdatatypes.ObjectDataTypesClient
Operations *operations.OperationsClient
Python2Package *python2package.Python2PackageClient
Python3Package *python3package.Python3PackageClient
Runbook *runbook.RunbookClient
RunbookDraft *runbookdraft.RunbookDraftClient
Schedule *schedule.ScheduleClient
SoftwareUpdateConfigurationMachineRun *softwareupdateconfigurationmachinerun.SoftwareUpdateConfigurationMachineRunClient
SoftwareUpdateConfigurationRun *softwareupdateconfigurationrun.SoftwareUpdateConfigurationRunClient
SourceControl *sourcecontrol.SourceControlClient
SourceControlSyncJob *sourcecontrolsyncjob.SourceControlSyncJobClient
SourceControlSyncJobStreams *sourcecontrolsyncjobstreams.SourceControlSyncJobStreamsClient
Statistics *statistics.StatisticsClient
TestJob *testjob.TestJobClient
TestJobStream *testjobstream.TestJobStreamClient
TypeFields *typefields.TypeFieldsClient
Usages *usages.UsagesClient
Variable *variable.VariableClient
Activity *activity.ActivityClient
AutomationAccount *automationaccount.AutomationAccountClient
Certificate *certificate.CertificateClient
Connection *connection.ConnectionClient
ConnectionType *connectiontype.ConnectionTypeClient
Credential *credential.CredentialClient
DscConfiguration *dscconfiguration.DscConfigurationClient
DscNodeConfiguration *dscnodeconfiguration.DscNodeConfigurationClient
HybridRunbookWorker *hybridrunbookworker.HybridRunbookWorkerClient
HybridRunbookWorkerGroup *hybridrunbookworkergroup.HybridRunbookWorkerGroupClient
Job *job.JobClient
JobSchedule *jobschedule.JobScheduleClient
JobStream *jobstream.JobStreamClient
LinkedWorkspace *linkedworkspace.LinkedWorkspaceClient
ListKeys *listkeys.ListKeysClient
Module *module.ModuleClient
ObjectDataTypes *objectdatatypes.ObjectDataTypesClient
Operations *operations.OperationsClient
Python2Package *python2package.Python2PackageClient
Python3Package *python3package.Python3PackageClient
Runbook *runbook.RunbookClient
RunbookDraft *runbookdraft.RunbookDraftClient
Schedule *schedule.ScheduleClient
SoftwareUpdateConfigurationMachineRun *softwareupdateconfigurationmachinerun.SoftwareUpdateConfigurationMachineRunClient
SoftwareUpdateConfigurationRun *softwareupdateconfigurationrun.SoftwareUpdateConfigurationRunClient
SourceControl *sourcecontrol.SourceControlClient
SourceControlSyncJob *sourcecontrolsyncjob.SourceControlSyncJobClient
SourceControlSyncJobStreams *sourcecontrolsyncjobstreams.SourceControlSyncJobStreamsClient
Statistics *statistics.StatisticsClient
TestJob *testjob.TestJobClient
TestJobStream *testjobstream.TestJobStreamClient
TypeFields *typefields.TypeFieldsClient
Usages *usages.UsagesClient
Variable *variable.VariableClient
}

func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanager.Client)) (*Client, error) {
Expand Down Expand Up @@ -168,12 +166,6 @@ func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanag
}
configureFunc(linkedWorkspaceClient.Client)

listAllHybridRunbookWorkerGroupInAutomationAccountClient, err := listallhybridrunbookworkergroupinautomationaccount.NewListAllHybridRunbookWorkerGroupInAutomationAccountClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building ListAllHybridRunbookWorkerGroupInAutomationAccount client: %+v", err)
}
configureFunc(listAllHybridRunbookWorkerGroupInAutomationAccountClient.Client)

listKeysClient, err := listkeys.NewListKeysClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building ListKeys client: %+v", err)
Expand Down Expand Up @@ -295,21 +287,20 @@ func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanag
configureFunc(variableClient.Client)

return &Client{
Activity: activityClient,
AutomationAccount: automationAccountClient,
Certificate: certificateClient,
Connection: connectionClient,
ConnectionType: connectionTypeClient,
Credential: credentialClient,
DscConfiguration: dscConfigurationClient,
DscNodeConfiguration: dscNodeConfigurationClient,
HybridRunbookWorker: hybridRunbookWorkerClient,
HybridRunbookWorkerGroup: hybridRunbookWorkerGroupClient,
Job: jobClient,
JobSchedule: jobScheduleClient,
JobStream: jobStreamClient,
LinkedWorkspace: linkedWorkspaceClient,
ListAllHybridRunbookWorkerGroupInAutomationAccount: listAllHybridRunbookWorkerGroupInAutomationAccountClient,
Activity: activityClient,
AutomationAccount: automationAccountClient,
Certificate: certificateClient,
Connection: connectionClient,
ConnectionType: connectionTypeClient,
Credential: credentialClient,
DscConfiguration: dscConfigurationClient,
DscNodeConfiguration: dscNodeConfigurationClient,
HybridRunbookWorker: hybridRunbookWorkerClient,
HybridRunbookWorkerGroup: hybridRunbookWorkerGroupClient,
Job: jobClient,
JobSchedule: jobScheduleClient,
JobStream: jobStreamClient,
LinkedWorkspace: linkedWorkspaceClient,
ListKeys: listKeysClient,
Module: moduleClient,
ObjectDataTypes: objectDataTypesClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,22 @@ if model := read.Model; model != nil {
```


### Example Usage: `HybridRunbookWorkerGroupClient.Delete`

```go
ctx := context.TODO()
id := hybridrunbookworkergroup.NewHybridRunbookWorkerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "hybridRunbookWorkerGroupValue")

read, err := client.Delete(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
```


### Example Usage: `HybridRunbookWorkerGroupClient.Get`

```go
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package listallhybridrunbookworkergroupinautomationaccount
package hybridrunbookworkergroup

import (
"context"
Expand All @@ -11,13 +11,13 @@ import (
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type HybridRunbookWorkerGroupDeleteOperationResponse struct {
type DeleteOperationResponse struct {
HttpResponse *http.Response
OData *odata.OData
}

// HybridRunbookWorkerGroupDelete ...
func (c ListAllHybridRunbookWorkerGroupInAutomationAccountClient) HybridRunbookWorkerGroupDelete(ctx context.Context, id HybridRunbookWorkerGroupId) (result HybridRunbookWorkerGroupDeleteOperationResponse, err error) {
// Delete ...
func (c HybridRunbookWorkerGroupClient) Delete(ctx context.Context, id HybridRunbookWorkerGroupId) (result DeleteOperationResponse, err error) {
opts := client.RequestOptions{
ContentType: "application/json; charset=utf-8",
ExpectedStatusCodes: []int{
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit dc46d08

Please sign in to comment.