Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Add specs for private link service #118

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions specs/networkloadbalancer/examples/terraform/basic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
--- !ruby/object:Provider::Azure::Example
resource: azurerm_lb
prerequisites:
- !ruby/object:Provider::Azure::ExampleReference
product: resourcegroup
example: basic
- !ruby/object:Provider::Azure::ExampleReference
product: networkpublicip
example: basic
properties:
name: "<%= get_resource_name('publicip', 'pip') -%>"
sku: "Standard"
location: "${azurerm_resource_group.<%= resource_id_hint -%>.location}"
resource_group_name: "${azurerm_resource_group.<%= resource_id_hint -%>.name}"
frontend_ip_configuration:
name: "${azurerm_public_ip.<%= resource_id_hint -%>.name}"
public_ip_address_id: "${azurerm_public_ip.<%= resource_id_hint -%>.id}"
12 changes: 12 additions & 0 deletions specs/networkpublicip/examples/terraform/basic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- !ruby/object:Provider::Azure::Example
resource: azurerm_public_ip
prerequisites:
- !ruby/object:Provider::Azure::ExampleReference
product: resourcegroup
example: basic
properties:
name: "<%= get_resource_name('publicip', 'pip') -%>"
sku: "Standard"
location: "${azurerm_resource_group.<%= resource_id_hint -%>.location}"
resource_group_name: "${azurerm_resource_group.<%= resource_id_hint -%>.name}"
allocation_method: "Static"
6 changes: 6 additions & 0 deletions specs/privatelinkservice/ansible.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--- !ruby/object:Provider::Azure::Ansible::Config
author: audevbot
version_added: "2.9"
overrides: !ruby/object:Overrides::ResourceOverrides
PrivateLinkService: !ruby/object:Provider::Azure::Ansible::ResourceOverride
examples: []
1,541 changes: 1,541 additions & 0 deletions specs/privatelinkservice/api.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--- !ruby/object:Provider::Ansible::Example
task: !ruby/object:Provider::Ansible::Task
name: azure_rm_privatelinkservice
description: Delete private link service
code:
resource_group: myResourceGroup
name: myPrivateLinkService
state: absent

Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
--- !ruby/object:Provider::Ansible::Example
task: !ruby/object:Provider::Ansible::Task
name: azure_rm_privatelinkservice
description: Create private link service
code:
resource_group: myResourceGroup
name: myPrivateLinkService
location: eastus
load_balancer_frontend_ip_configurations:
- id: >-
/subscriptions/{{ subscription_id }}/resourceGroups/{{ resource_group
}}/providers/Microsoft.Network/loadBalancers/{{ load_balancer_name
}}/frontendIPConfigurations/{{ frontend_ipconfiguration_name }}
ip_configurations:
- private_ip_address: 10.0.1.4
private_ipallocation_method: Static
subnet:
id: >-
/subscriptions/{{ subscription_id }}/resourceGroups/{{ resource_group
}}/providers/Microsoft.Network/virtualNetworks/{{ virtual_network_name
}}/subnets/{{ subnet_name }}
private_ip_address_version: IPv4
name: fe-lb
visibility:
subscriptions:
- subscription1
- subscription2
- subscription3
auto_approval:
subscriptions:
- subscription1
- subscription2
fqdns:
- fqdn1
- fqdn2
- fqdn3

32 changes: 32 additions & 0 deletions specs/privatelinkservice/examples/terraform/basic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
--- !ruby/object:Provider::Azure::Example
resource: azurerm_private_link_service
prerequisites:
- !ruby/object:Provider::Azure::ExampleReference
product: resourcegroup
example: basic
- !ruby/object:Provider::Azure::ExampleReference
product: networkvirtualnetwork
example: basic
- !ruby/object:Provider::Azure::ExampleReference
product: networksubnet
example: basic
- !ruby/object:Provider::Azure::ExampleReference
product: networkpublicip
example: basic
- !ruby/object:Provider::Azure::ExampleReference
product: networkloadbalancer
example: basic
properties:
name: "<%= get_resource_name('virtualHubs', 'virtualhub') -%>"
location: "${azurerm_resource_group.<%= resource_id_hint -%>.location}"
resource_group: "${azurerm_resource_group.<%= resource_id_hint -%>.name}"
fqdns: ["testFqdns"]
ip_configurations:
name: "${azurerm_public_ip.<%= resource_id_hint -%>.name}"
subnet:
id: "${azurerm_subnet.<%= resource_id_hint -%>.id}"
private_ip_address: "10.5.1.17"
private_ip_address_version: "IPv4"
private_ipallocation_method: "Static"
load_balancer_frontend_ip_configurations:
id: "${azurerm_lb.<%= resource_id_hint -%>.frontend_ip_configuration.0.id}"
34 changes: 34 additions & 0 deletions specs/privatelinkservice/examples/terraform/complete.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
--- !ruby/object:Provider::Azure::Example
resource: azurerm_private_link_service
prerequisites:
- !ruby/object:Provider::Azure::ExampleReference
product: resourcegroup
example: basic
- !ruby/object:Provider::Azure::ExampleReference
product: networkvirtualnetwork
example: basic
- !ruby/object:Provider::Azure::ExampleReference
product: networksubnet
example: basic
- !ruby/object:Provider::Azure::ExampleReference
product: networkpublicip
example: basic
- !ruby/object:Provider::Azure::ExampleReference
product: networkloadbalancer
example: basic
properties:
name: "<%= get_resource_name('virtualHubs', 'virtualhub') -%>"
location: "${azurerm_resource_group.<%= resource_id_hint -%>.location}"
resource_group: "${azurerm_resource_group.<%= resource_id_hint -%>.name}"
fqdns: ["testFqdns2"]
ip_configurations:
name: "${azurerm_public_ip.<%= resource_id_hint -%>.name}"
subnet:
id: "${azurerm_subnet.<%= resource_id_hint -%>.id}"
private_ip_address: "10.5.1.17"
private_ip_address_version: "IPv4"
private_ipallocation_method: "Static"
load_balancer_frontend_ip_configurations:
id: "${azurerm_lb.<%= resource_id_hint -%>.frontend_ip_configuration.0.id}"
tags:
env: "test"
88 changes: 88 additions & 0 deletions specs/privatelinkservice/terraform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
--- !ruby/object:Provider::Azure::Terraform::Config
overrides: !ruby/object:Overrides::ResourceOverrides
PrivateLinkService: !ruby/object:Provider::Azure::Terraform::ResourceOverride
azure_sdk_definition: !ruby/object:Api::Azure::SDKDefinitionOverride
create: !ruby/object:Api::Azure::SDKOperationDefinitionOverride
request:
'/properties': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PrivateLinkServiceProperties
'/properties/ipConfigurations': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: IPConfigurations
'/properties/loadBalancerFrontendIpConfigurations': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: LoadBalancerFrontendIPConfigurations
'/properties/ipConfigurations/properties': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PrivateLinkServiceIPConfigurationProperties
'/properties/loadBalancerFrontendIpConfigurations/properties': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: FrontendIPConfigurationPropertiesFormat
'/properties/privateEndpointConnections/properties': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PrivateEndpointConnectionProperties
'/properties/loadBalancerFrontendIpConfigurations/properties/privateIPAddress': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PrivateIPAddress
'/properties/ipConfigurations/properties/privateIPAddressVersion': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PrivateIPAddressVersion
'/properties/loadBalancerFrontendIpConfigurations/properties/privateIPAllocationMethod': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PrivateIPAllocationMethod
'/properties/loadBalancerFrontendIpConfigurations/properties/publicIPAddress': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PublicIPAddress
'/properties/loadBalancerFrontendIpConfigurations/properties/publicIPPrefix': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PublicIPPrefix
'/properties/ipConfigurations/properties/privateIPAddress': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PrivateIPAddress
'/properties/ipConfigurations/properties/privateIPAllocationMethod': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PrivateIPAllocationMethod
'/properties/loadBalancerFrontendIpConfigurations/properties/privateIPAddressVersion': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PrivateIPAddressVersion
read: !ruby/object:Api::Azure::SDKOperationDefinitionOverride
response:
'/properties': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PrivateLinkServiceProperties
'/properties/ipConfigurations': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: IPConfigurations
'/properties/loadBalancerFrontendIpConfigurations': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: LoadBalancerFrontendIPConfigurations
'/properties/ipConfigurations/properties': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PrivateLinkServiceIPConfigurationProperties
'/properties/loadBalancerFrontendIpConfigurations/properties': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: FrontendIPConfigurationPropertiesFormat
'/properties/privateEndpointConnections/properties': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PrivateEndpointConnectionProperties
'/properties/loadBalancerFrontendIpConfigurations/properties/privateIPAddress': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PrivateIPAddress
'/properties/ipConfigurations/properties/privateIPAddressVersion': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PrivateIPAddressVersion
'/properties/loadBalancerFrontendIpConfigurations/properties/privateIPAllocationMethod': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PrivateIPAllocationMethod
'/properties/loadBalancerFrontendIpConfigurations/properties/publicIPAddress': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PublicIPAddress
'/properties/loadBalancerFrontendIpConfigurations/properties/publicIPPrefix': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PublicIPPrefix
'/properties/ipConfigurations/properties/privateIPAddress': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PrivateIPAddress
'/properties/ipConfigurations/properties/privateIPAllocationMethod': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PrivateIPAllocationMethod
'/properties/loadBalancerFrontendIpConfigurations/properties/privateIPAddressVersion': !ruby/object:Api::Azure::SDKTypeDefinitionOverride
go_field_name: PrivateIPAddressVersion
properties: {}
acctests:
- !ruby/object:Provider::Azure::Terraform::AccTestDefinition
name: basic
steps: [basic]
- !ruby/object:Provider::Azure::Terraform::AccTestDefinition
name: update
steps: [basic, complete]
document_examples:
- !ruby/object:Provider::Azure::Terraform::DocumentExampleReference
title: Private Link Service Usage
example_name: basic
resource_name_hints:
resourceGroups: acctestRG
location: Eastus2
datasources: !ruby/object:Overrides::ResourceOverrides
PrivateLinkService: !ruby/object:Provider::Azure::Terraform::ResourceOverride
properties: {}
acctests:
- !ruby/object:Provider::Azure::Terraform::AccTestDefinition
name: basic
steps: [basic]
datasource_example_outputs:
private_link_service_id: id