Skip to content

Commit

Permalink
Updating based on 5e6b1d3ca
Browse files Browse the repository at this point in the history
  • Loading branch information
hc-github-team-tf-azure committed Nov 11, 2024
1 parent b730ec9 commit c79afc0
Show file tree
Hide file tree
Showing 921 changed files with 67,288 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,18 @@ package dataflowdebugsession
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type AzurePostgreSqlLinkedServiceTypeProperties struct {
ConnectionString *string `json:"connectionString,omitempty"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
Password *AzureKeyVaultSecretReference `json:"password,omitempty"`
CommandTimeout *int64 `json:"commandTimeout,omitempty"`
ConnectionString *string `json:"connectionString,omitempty"`
Database *string `json:"database,omitempty"`
Encoding *string `json:"encoding,omitempty"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
Password *AzureKeyVaultSecretReference `json:"password,omitempty"`
Port *int64 `json:"port,omitempty"`
ReadBufferSize *int64 `json:"readBufferSize,omitempty"`
Server *string `json:"server,omitempty"`
SslMode *int64 `json:"sslMode,omitempty"`
Timeout *int64 `json:"timeout,omitempty"`
Timezone *string `json:"timezone,omitempty"`
TrustServerCertificate *bool `json:"trustServerCertificate,omitempty"`
Username *string `json:"username,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,21 @@ package dataflowdebugsession
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type MySqlLinkedServiceTypeProperties struct {
AllowZeroDateTime *bool `json:"allowZeroDateTime,omitempty"`
ConnectionString *string `json:"connectionString,omitempty"`
ConnectionTimeout *int64 `json:"connectionTimeout,omitempty"`
ConvertZeroDateTime *bool `json:"convertZeroDateTime,omitempty"`
Database *string `json:"database,omitempty"`
DriverVersion *string `json:"driverVersion,omitempty"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
GuidFormat *string `json:"guidFormat,omitempty"`
Password *AzureKeyVaultSecretReference `json:"password,omitempty"`
Port *int64 `json:"port,omitempty"`
Server *string `json:"server,omitempty"`
SslCert *string `json:"sslCert,omitempty"`
SslKey *string `json:"sslKey,omitempty"`
SslMode *int64 `json:"sslMode,omitempty"`
TreatTinyAsBoolean *bool `json:"treatTinyAsBoolean,omitempty"`
UseSystemTrustStore *int64 `json:"useSystemTrustStore,omitempty"`
Username *string `json:"username,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,18 @@ package linkedservices
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type AzurePostgreSqlLinkedServiceTypeProperties struct {
ConnectionString *string `json:"connectionString,omitempty"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
Password *AzureKeyVaultSecretReference `json:"password,omitempty"`
CommandTimeout *int64 `json:"commandTimeout,omitempty"`
ConnectionString *string `json:"connectionString,omitempty"`
Database *string `json:"database,omitempty"`
Encoding *string `json:"encoding,omitempty"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
Password *AzureKeyVaultSecretReference `json:"password,omitempty"`
Port *int64 `json:"port,omitempty"`
ReadBufferSize *int64 `json:"readBufferSize,omitempty"`
Server *string `json:"server,omitempty"`
SslMode *int64 `json:"sslMode,omitempty"`
Timeout *int64 `json:"timeout,omitempty"`
Timezone *string `json:"timezone,omitempty"`
TrustServerCertificate *bool `json:"trustServerCertificate,omitempty"`
Username *string `json:"username,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,21 @@ package linkedservices
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type MySqlLinkedServiceTypeProperties struct {
AllowZeroDateTime *bool `json:"allowZeroDateTime,omitempty"`
ConnectionString *string `json:"connectionString,omitempty"`
ConnectionTimeout *int64 `json:"connectionTimeout,omitempty"`
ConvertZeroDateTime *bool `json:"convertZeroDateTime,omitempty"`
Database *string `json:"database,omitempty"`
DriverVersion *string `json:"driverVersion,omitempty"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
GuidFormat *string `json:"guidFormat,omitempty"`
Password *AzureKeyVaultSecretReference `json:"password,omitempty"`
Port *int64 `json:"port,omitempty"`
Server *string `json:"server,omitempty"`
SslCert *string `json:"sslCert,omitempty"`
SslKey *string `json:"sslKey,omitempty"`
SslMode *int64 `json:"sslMode,omitempty"`
TreatTinyAsBoolean *bool `json:"treatTinyAsBoolean,omitempty"`
UseSystemTrustStore *int64 `json:"useSystemTrustStore,omitempty"`
Username *string `json:"username,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ package registrymanagement

type AcrDetails struct {
SystemCreatedAcrAccount *SystemCreatedAcrAccount `json:"systemCreatedAcrAccount,omitempty"`
UserCreatedAcrAccount *UserCreatedAcrAccount `json:"userCreatedAcrAccount,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ package registrymanagement

type StorageAccountDetails struct {
SystemCreatedStorageAccount *SystemCreatedStorageAccount `json:"systemCreatedStorageAccount,omitempty"`
UserCreatedStorageAccount *UserCreatedStorageAccount `json:"userCreatedStorageAccount,omitempty"`
}
100 changes: 100 additions & 0 deletions resource-manager/recoveryservices/2024-10-01/client.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
package v2024_10_01

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

import (
"fmt"

"github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-10-01/getprivatelinkresources"
"github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-10-01/listprivatelinkresources"
"github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-10-01/recoveryservices"
"github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-10-01/registeredidentities"
"github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-10-01/replicationusages"
"github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-10-01/vaultcertificates"
"github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-10-01/vaultextendedinfo"
"github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-10-01/vaults"
"github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-10-01/vaultusages"
"github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager"
sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments"
)

type Client struct {
GetPrivateLinkResources *getprivatelinkresources.GetPrivateLinkResourcesClient
ListPrivateLinkResources *listprivatelinkresources.ListPrivateLinkResourcesClient
RecoveryServices *recoveryservices.RecoveryServicesClient
RegisteredIdentities *registeredidentities.RegisteredIdentitiesClient
ReplicationUsages *replicationusages.ReplicationUsagesClient
VaultCertificates *vaultcertificates.VaultCertificatesClient
VaultExtendedInfo *vaultextendedinfo.VaultExtendedInfoClient
VaultUsages *vaultusages.VaultUsagesClient
Vaults *vaults.VaultsClient
}

func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanager.Client)) (*Client, error) {
getPrivateLinkResourcesClient, err := getprivatelinkresources.NewGetPrivateLinkResourcesClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building GetPrivateLinkResources client: %+v", err)
}
configureFunc(getPrivateLinkResourcesClient.Client)

listPrivateLinkResourcesClient, err := listprivatelinkresources.NewListPrivateLinkResourcesClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building ListPrivateLinkResources client: %+v", err)
}
configureFunc(listPrivateLinkResourcesClient.Client)

recoveryServicesClient, err := recoveryservices.NewRecoveryServicesClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building RecoveryServices client: %+v", err)
}
configureFunc(recoveryServicesClient.Client)

registeredIdentitiesClient, err := registeredidentities.NewRegisteredIdentitiesClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building RegisteredIdentities client: %+v", err)
}
configureFunc(registeredIdentitiesClient.Client)

replicationUsagesClient, err := replicationusages.NewReplicationUsagesClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building ReplicationUsages client: %+v", err)
}
configureFunc(replicationUsagesClient.Client)

vaultCertificatesClient, err := vaultcertificates.NewVaultCertificatesClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building VaultCertificates client: %+v", err)
}
configureFunc(vaultCertificatesClient.Client)

vaultExtendedInfoClient, err := vaultextendedinfo.NewVaultExtendedInfoClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building VaultExtendedInfo client: %+v", err)
}
configureFunc(vaultExtendedInfoClient.Client)

vaultUsagesClient, err := vaultusages.NewVaultUsagesClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building VaultUsages client: %+v", err)
}
configureFunc(vaultUsagesClient.Client)

vaultsClient, err := vaults.NewVaultsClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building Vaults client: %+v", err)
}
configureFunc(vaultsClient.Client)

return &Client{
GetPrivateLinkResources: getPrivateLinkResourcesClient,
ListPrivateLinkResources: listPrivateLinkResourcesClient,
RecoveryServices: recoveryServicesClient,
RegisteredIdentities: registeredIdentitiesClient,
ReplicationUsages: replicationUsagesClient,
VaultCertificates: vaultCertificatesClient,
VaultExtendedInfo: vaultExtendedInfoClient,
VaultUsages: vaultUsagesClient,
Vaults: vaultsClient,
}, nil
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

## `github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-10-01/getprivatelinkresources` Documentation

The `getprivatelinkresources` SDK allows for interaction with Azure Resource Manager `recoveryservices` (API Version `2024-10-01`).

This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs).

### Import Path

```go
import "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-10-01/getprivatelinkresources"
```


### Client Initialization

```go
client := getprivatelinkresources.NewGetPrivateLinkResourcesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
```


### Example Usage: `GetPrivateLinkResourcesClient.PrivateLinkResourcesGet`

```go
ctx := context.TODO()
id := getprivatelinkresources.NewPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "privateLinkResourceName")

read, err := client.PrivateLinkResourcesGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package getprivatelinkresources

import (
"fmt"

"github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager"
sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments"
)

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type GetPrivateLinkResourcesClient struct {
Client *resourcemanager.Client
}

func NewGetPrivateLinkResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*GetPrivateLinkResourcesClient, error) {
client, err := resourcemanager.NewClient(sdkApi, "getprivatelinkresources", defaultApiVersion)
if err != nil {
return nil, fmt.Errorf("instantiating GetPrivateLinkResourcesClient: %+v", err)
}

return &GetPrivateLinkResourcesClient{
Client: client,
}, nil
}
Loading

0 comments on commit c79afc0

Please sign in to comment.