func (c *ComputeUtil) staticAddress() (string, error) {
	// is the address a name?
	isName, err := regexp.MatchString("[a-z]([-a-z0-9]*[a-z0-9])?", c.address)
	if err != nil {
		return "", err
	}

	if !isName {
		return c.address, nil
	}

	// resolve the address by name
	externalAddress, err := c.service.Addresses.Get(c.project, c.region(), c.address).Do()
	if err != nil {
		return "", err
	}

	return externalAddress.Address, nil
}
func (c *ComputeUtil) staticAddress() (string, error) {
	// is the address a name?
	isName, err := regexp.MatchString("[a-z]([-a-z0-9]*[a-z0-9])?", c.address)
	if err != nil {
		return "", err
	}

	if !isName {
		return c.address, nil
	}

	// resolve the address by name
	externalAddress, err := c.service.Addresses.Get(c.project, c.region(), c.address).Do()
	if err != nil {
		return "", err
	}

	return externalAddress.Address, nil
}
func ( c * ComputeUtil ) staticAddress ( ) ( string , error ) { // is the address a name? isName , err := regexp . MatchString ( " " , c . address ) if err != nil { return " " , err } if ! isName { return c . address , nil } // resolve the address by name externalAddress , err := c . service . Addresses . Get ( c . project , c . region ( ) , c . address ) . Do ( ) if err != nil { return " " , err } return externalAddress . Address , nil }
// staticAddress returns the external static IP address.
staticAddress returns the external static IP address .