Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func init() {

var _ resourceids.ResourceId = &CustomIPPrefixId{}

// CustomIPPrefixId is a struct representing the Resource ID for a Custom I P Prefix
// CustomIPPrefixId is a struct representing the Resource ID for a Custom IP Prefix
type CustomIPPrefixId struct {
SubscriptionId string
ResourceGroupName string
Expand Down Expand Up @@ -84,7 +84,7 @@ func (id *CustomIPPrefixId) FromParseResult(input resourceids.ParseResult) error
return nil
}

// ValidateCustomIPPrefixID checks that 'input' can be parsed as a Custom I P Prefix ID
// ValidateCustomIPPrefixID checks that 'input' can be parsed as a Custom IP Prefix ID
func ValidateCustomIPPrefixID(input interface{}, key string) (warnings []string, errors []error) {
v, ok := input.(string)
if !ok {
Expand All @@ -99,13 +99,13 @@ func ValidateCustomIPPrefixID(input interface{}, key string) (warnings []string,
return
}

// ID returns the formatted Custom I P Prefix ID
// ID returns the formatted Custom IP Prefix ID
func (id CustomIPPrefixId) ID() string {
fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/customIPPrefixes/%s"
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.CustomIPPrefixName)
}

// Segments returns a slice of Resource ID Segments which comprise this Custom I P Prefix ID
// Segments returns a slice of Resource ID Segments which comprise this Custom IP Prefix ID
func (id CustomIPPrefixId) Segments() []resourceids.Segment {
return []resourceids.Segment{
resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"),
Expand All @@ -119,12 +119,12 @@ func (id CustomIPPrefixId) Segments() []resourceids.Segment {
}
}

// String returns a human-readable description of this Custom I P Prefix ID
// String returns a human-readable description of this Custom IP Prefix ID
func (id CustomIPPrefixId) String() string {
components := []string{
fmt.Sprintf("Subscription: %q", id.SubscriptionId),
fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName),
fmt.Sprintf("Custom I P Prefix Name: %q", id.CustomIPPrefixName),
fmt.Sprintf("Custom IP Prefix Name: %q", id.CustomIPPrefixName),
}
return fmt.Sprintf("Custom I P Prefix (%s)", strings.Join(components, "\n"))
return fmt.Sprintf("Custom IP Prefix (%s)", strings.Join(components, "\n"))
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func init() {

var _ resourceids.ResourceId = &IPAllocationId{}

// IPAllocationId is a struct representing the Resource ID for a I P Allocation
// IPAllocationId is a struct representing the Resource ID for a IP Allocation
type IPAllocationId struct {
SubscriptionId string
ResourceGroupName string
Expand Down Expand Up @@ -84,7 +84,7 @@ func (id *IPAllocationId) FromParseResult(input resourceids.ParseResult) error {
return nil
}

// ValidateIPAllocationID checks that 'input' can be parsed as a I P Allocation ID
// ValidateIPAllocationID checks that 'input' can be parsed as a IP Allocation ID
func ValidateIPAllocationID(input interface{}, key string) (warnings []string, errors []error) {
v, ok := input.(string)
if !ok {
Expand All @@ -99,13 +99,13 @@ func ValidateIPAllocationID(input interface{}, key string) (warnings []string, e
return
}

// ID returns the formatted I P Allocation ID
// ID returns the formatted IP Allocation ID
func (id IPAllocationId) ID() string {
fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/ipAllocations/%s"
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.IpAllocationName)
}

// Segments returns a slice of Resource ID Segments which comprise this I P Allocation ID
// Segments returns a slice of Resource ID Segments which comprise this IP Allocation ID
func (id IPAllocationId) Segments() []resourceids.Segment {
return []resourceids.Segment{
resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"),
Expand All @@ -119,12 +119,12 @@ func (id IPAllocationId) Segments() []resourceids.Segment {
}
}

// String returns a human-readable description of this I P Allocation ID
// String returns a human-readable description of this IP Allocation ID
func (id IPAllocationId) String() string {
components := []string{
fmt.Sprintf("Subscription: %q", id.SubscriptionId),
fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName),
fmt.Sprintf("Ip Allocation Name: %q", id.IpAllocationName),
}
return fmt.Sprintf("I P Allocation (%s)", strings.Join(components, "\n"))
return fmt.Sprintf("IP Allocation (%s)", strings.Join(components, "\n"))
}
12 changes: 6 additions & 6 deletions resource-manager/network/2023-09-01/ipgroups/id_ipgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func init() {

var _ resourceids.ResourceId = &IPGroupId{}

// IPGroupId is a struct representing the Resource ID for a I P Group
// IPGroupId is a struct representing the Resource ID for a IP Group
type IPGroupId struct {
SubscriptionId string
ResourceGroupName string
Expand Down Expand Up @@ -84,7 +84,7 @@ func (id *IPGroupId) FromParseResult(input resourceids.ParseResult) error {
return nil
}

// ValidateIPGroupID checks that 'input' can be parsed as a I P Group ID
// ValidateIPGroupID checks that 'input' can be parsed as a IP Group ID
func ValidateIPGroupID(input interface{}, key string) (warnings []string, errors []error) {
v, ok := input.(string)
if !ok {
Expand All @@ -99,13 +99,13 @@ func ValidateIPGroupID(input interface{}, key string) (warnings []string, errors
return
}

// ID returns the formatted I P Group ID
// ID returns the formatted IP Group ID
func (id IPGroupId) ID() string {
fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/ipGroups/%s"
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.IpGroupName)
}

// Segments returns a slice of Resource ID Segments which comprise this I P Group ID
// Segments returns a slice of Resource ID Segments which comprise this IP Group ID
func (id IPGroupId) Segments() []resourceids.Segment {
return []resourceids.Segment{
resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"),
Expand All @@ -119,12 +119,12 @@ func (id IPGroupId) Segments() []resourceids.Segment {
}
}

// String returns a human-readable description of this I P Group ID
// String returns a human-readable description of this IP Group ID
func (id IPGroupId) String() string {
components := []string{
fmt.Sprintf("Subscription: %q", id.SubscriptionId),
fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName),
fmt.Sprintf("Ip Group Name: %q", id.IpGroupName),
}
return fmt.Sprintf("I P Group (%s)", strings.Join(components, "\n"))
return fmt.Sprintf("IP Group (%s)", strings.Join(components, "\n"))
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func init() {

var _ resourceids.ResourceId = &FrontendIPConfigurationId{}

// FrontendIPConfigurationId is a struct representing the Resource ID for a Frontend I P Configuration
// FrontendIPConfigurationId is a struct representing the Resource ID for a Frontend IP Configuration
type FrontendIPConfigurationId struct {
SubscriptionId string
ResourceGroupName string
Expand Down Expand Up @@ -90,7 +90,7 @@ func (id *FrontendIPConfigurationId) FromParseResult(input resourceids.ParseResu
return nil
}

// ValidateFrontendIPConfigurationID checks that 'input' can be parsed as a Frontend I P Configuration ID
// ValidateFrontendIPConfigurationID checks that 'input' can be parsed as a Frontend IP Configuration ID
func ValidateFrontendIPConfigurationID(input interface{}, key string) (warnings []string, errors []error) {
v, ok := input.(string)
if !ok {
Expand All @@ -105,13 +105,13 @@ func ValidateFrontendIPConfigurationID(input interface{}, key string) (warnings
return
}

// ID returns the formatted Frontend I P Configuration ID
// ID returns the formatted Frontend IP Configuration ID
func (id FrontendIPConfigurationId) ID() string {
fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/loadBalancers/%s/frontendIPConfigurations/%s"
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.LoadBalancerName, id.FrontendIPConfigurationName)
}

// Segments returns a slice of Resource ID Segments which comprise this Frontend I P Configuration ID
// Segments returns a slice of Resource ID Segments which comprise this Frontend IP Configuration ID
func (id FrontendIPConfigurationId) Segments() []resourceids.Segment {
return []resourceids.Segment{
resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"),
Expand All @@ -127,13 +127,13 @@ func (id FrontendIPConfigurationId) Segments() []resourceids.Segment {
}
}

// String returns a human-readable description of this Frontend I P Configuration ID
// String returns a human-readable description of this Frontend IP Configuration ID
func (id FrontendIPConfigurationId) String() string {
components := []string{
fmt.Sprintf("Subscription: %q", id.SubscriptionId),
fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName),
fmt.Sprintf("Load Balancer Name: %q", id.LoadBalancerName),
fmt.Sprintf("Frontend I P Configuration Name: %q", id.FrontendIPConfigurationName),
fmt.Sprintf("Frontend IP Configuration Name: %q", id.FrontendIPConfigurationName),
}
return fmt.Sprintf("Frontend I P Configuration (%s)", strings.Join(components, "\n"))
return fmt.Sprintf("Frontend IP Configuration (%s)", strings.Join(components, "\n"))
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func init() {

var _ resourceids.ResourceId = &PublicIPPrefixId{}

// PublicIPPrefixId is a struct representing the Resource ID for a Public I P Prefix
// PublicIPPrefixId is a struct representing the Resource ID for a Public IP Prefix
type PublicIPPrefixId struct {
SubscriptionId string
ResourceGroupName string
Expand Down Expand Up @@ -84,7 +84,7 @@ func (id *PublicIPPrefixId) FromParseResult(input resourceids.ParseResult) error
return nil
}

// ValidatePublicIPPrefixID checks that 'input' can be parsed as a Public I P Prefix ID
// ValidatePublicIPPrefixID checks that 'input' can be parsed as a Public IP Prefix ID
func ValidatePublicIPPrefixID(input interface{}, key string) (warnings []string, errors []error) {
v, ok := input.(string)
if !ok {
Expand All @@ -99,13 +99,13 @@ func ValidatePublicIPPrefixID(input interface{}, key string) (warnings []string,
return
}

// ID returns the formatted Public I P Prefix ID
// ID returns the formatted Public IP Prefix ID
func (id PublicIPPrefixId) ID() string {
fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/publicIPPrefixes/%s"
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.PublicIPPrefixName)
}

// Segments returns a slice of Resource ID Segments which comprise this Public I P Prefix ID
// Segments returns a slice of Resource ID Segments which comprise this Public IP Prefix ID
func (id PublicIPPrefixId) Segments() []resourceids.Segment {
return []resourceids.Segment{
resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"),
Expand All @@ -119,12 +119,12 @@ func (id PublicIPPrefixId) Segments() []resourceids.Segment {
}
}

// String returns a human-readable description of this Public I P Prefix ID
// String returns a human-readable description of this Public IP Prefix ID
func (id PublicIPPrefixId) String() string {
components := []string{
fmt.Sprintf("Subscription: %q", id.SubscriptionId),
fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName),
fmt.Sprintf("Public I P Prefix Name: %q", id.PublicIPPrefixName),
fmt.Sprintf("Public IP Prefix Name: %q", id.PublicIPPrefixName),
}
return fmt.Sprintf("Public I P Prefix (%s)", strings.Join(components, "\n"))
return fmt.Sprintf("Public IP Prefix (%s)", strings.Join(components, "\n"))
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func init() {

var _ resourceids.ResourceId = &CustomIPPrefixId{}

// CustomIPPrefixId is a struct representing the Resource ID for a Custom I P Prefix
// CustomIPPrefixId is a struct representing the Resource ID for a Custom IP Prefix
type CustomIPPrefixId struct {
SubscriptionId string
ResourceGroupName string
Expand Down Expand Up @@ -84,7 +84,7 @@ func (id *CustomIPPrefixId) FromParseResult(input resourceids.ParseResult) error
return nil
}

// ValidateCustomIPPrefixID checks that 'input' can be parsed as a Custom I P Prefix ID
// ValidateCustomIPPrefixID checks that 'input' can be parsed as a Custom IP Prefix ID
func ValidateCustomIPPrefixID(input interface{}, key string) (warnings []string, errors []error) {
v, ok := input.(string)
if !ok {
Expand All @@ -99,13 +99,13 @@ func ValidateCustomIPPrefixID(input interface{}, key string) (warnings []string,
return
}

// ID returns the formatted Custom I P Prefix ID
// ID returns the formatted Custom IP Prefix ID
func (id CustomIPPrefixId) ID() string {
fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/customIPPrefixes/%s"
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.CustomIPPrefixName)
}

// Segments returns a slice of Resource ID Segments which comprise this Custom I P Prefix ID
// Segments returns a slice of Resource ID Segments which comprise this Custom IP Prefix ID
func (id CustomIPPrefixId) Segments() []resourceids.Segment {
return []resourceids.Segment{
resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"),
Expand All @@ -119,12 +119,12 @@ func (id CustomIPPrefixId) Segments() []resourceids.Segment {
}
}

// String returns a human-readable description of this Custom I P Prefix ID
// String returns a human-readable description of this Custom IP Prefix ID
func (id CustomIPPrefixId) String() string {
components := []string{
fmt.Sprintf("Subscription: %q", id.SubscriptionId),
fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName),
fmt.Sprintf("Custom I P Prefix Name: %q", id.CustomIPPrefixName),
fmt.Sprintf("Custom IP Prefix Name: %q", id.CustomIPPrefixName),
}
return fmt.Sprintf("Custom I P Prefix (%s)", strings.Join(components, "\n"))
return fmt.Sprintf("Custom IP Prefix (%s)", strings.Join(components, "\n"))
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func init() {

var _ resourceids.ResourceId = &IPAllocationId{}

// IPAllocationId is a struct representing the Resource ID for a I P Allocation
// IPAllocationId is a struct representing the Resource ID for a IP Allocation
type IPAllocationId struct {
SubscriptionId string
ResourceGroupName string
Expand Down Expand Up @@ -84,7 +84,7 @@ func (id *IPAllocationId) FromParseResult(input resourceids.ParseResult) error {
return nil
}

// ValidateIPAllocationID checks that 'input' can be parsed as a I P Allocation ID
// ValidateIPAllocationID checks that 'input' can be parsed as a IP Allocation ID
func ValidateIPAllocationID(input interface{}, key string) (warnings []string, errors []error) {
v, ok := input.(string)
if !ok {
Expand All @@ -99,13 +99,13 @@ func ValidateIPAllocationID(input interface{}, key string) (warnings []string, e
return
}

// ID returns the formatted I P Allocation ID
// ID returns the formatted IP Allocation ID
func (id IPAllocationId) ID() string {
fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/ipAllocations/%s"
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.IpAllocationName)
}

// Segments returns a slice of Resource ID Segments which comprise this I P Allocation ID
// Segments returns a slice of Resource ID Segments which comprise this IP Allocation ID
func (id IPAllocationId) Segments() []resourceids.Segment {
return []resourceids.Segment{
resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"),
Expand All @@ -119,12 +119,12 @@ func (id IPAllocationId) Segments() []resourceids.Segment {
}
}

// String returns a human-readable description of this I P Allocation ID
// String returns a human-readable description of this IP Allocation ID
func (id IPAllocationId) String() string {
components := []string{
fmt.Sprintf("Subscription: %q", id.SubscriptionId),
fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName),
fmt.Sprintf("Ip Allocation Name: %q", id.IpAllocationName),
}
return fmt.Sprintf("I P Allocation (%s)", strings.Join(components, "\n"))
return fmt.Sprintf("IP Allocation (%s)", strings.Join(components, "\n"))
}
12 changes: 6 additions & 6 deletions resource-manager/network/2023-11-01/ipgroups/id_ipgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func init() {

var _ resourceids.ResourceId = &IPGroupId{}

// IPGroupId is a struct representing the Resource ID for a I P Group
// IPGroupId is a struct representing the Resource ID for a IP Group
type IPGroupId struct {
SubscriptionId string
ResourceGroupName string
Expand Down Expand Up @@ -84,7 +84,7 @@ func (id *IPGroupId) FromParseResult(input resourceids.ParseResult) error {
return nil
}

// ValidateIPGroupID checks that 'input' can be parsed as a I P Group ID
// ValidateIPGroupID checks that 'input' can be parsed as a IP Group ID
func ValidateIPGroupID(input interface{}, key string) (warnings []string, errors []error) {
v, ok := input.(string)
if !ok {
Expand All @@ -99,13 +99,13 @@ func ValidateIPGroupID(input interface{}, key string) (warnings []string, errors
return
}

// ID returns the formatted I P Group ID
// ID returns the formatted IP Group ID
func (id IPGroupId) ID() string {
fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/ipGroups/%s"
return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.IpGroupName)
}

// Segments returns a slice of Resource ID Segments which comprise this I P Group ID
// Segments returns a slice of Resource ID Segments which comprise this IP Group ID
func (id IPGroupId) Segments() []resourceids.Segment {
return []resourceids.Segment{
resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"),
Expand All @@ -119,12 +119,12 @@ func (id IPGroupId) Segments() []resourceids.Segment {
}
}

// String returns a human-readable description of this I P Group ID
// String returns a human-readable description of this IP Group ID
func (id IPGroupId) String() string {
components := []string{
fmt.Sprintf("Subscription: %q", id.SubscriptionId),
fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName),
fmt.Sprintf("Ip Group Name: %q", id.IpGroupName),
}
return fmt.Sprintf("I P Group (%s)", strings.Join(components, "\n"))
return fmt.Sprintf("IP Group (%s)", strings.Join(components, "\n"))
}
Loading