All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.sqladmin.model.IpConfiguration.html Maven / Gradle / Ivy

The newest version!






IpConfiguration (Cloud SQL Admin API v1-rev20241108-2.0.0)












com.google.api.services.sqladmin.model

Class IpConfiguration

    • Constructor Detail

      • IpConfiguration

        public IpConfiguration()
    • Method Detail

      • getAllocatedIpRange

        public String getAllocatedIpRange()
        The name of the allocated ip range for the private ip Cloud SQL instance. For example: "google- managed-services-default". If set, the instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
        Returns:
        value or null for none
      • setAllocatedIpRange

        public IpConfiguration setAllocatedIpRange(String allocatedIpRange)
        The name of the allocated ip range for the private ip Cloud SQL instance. For example: "google- managed-services-default". If set, the instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
        Parameters:
        allocatedIpRange - allocatedIpRange or null for none
      • getAuthorizedNetworks

        public List<AclEntry> getAuthorizedNetworks()
        The list of external networks that are allowed to connect to the instance using the IP. In 'CIDR' notation, also known as 'slash' notation (for example: `157.197.200.0/24`).
        Returns:
        value or null for none
      • setAuthorizedNetworks

        public IpConfiguration setAuthorizedNetworks(List<AclEntry> authorizedNetworks)
        The list of external networks that are allowed to connect to the instance using the IP. In 'CIDR' notation, also known as 'slash' notation (for example: `157.197.200.0/24`).
        Parameters:
        authorizedNetworks - authorizedNetworks or null for none
      • getEnablePrivatePathForGoogleCloudServices

        public Boolean getEnablePrivatePathForGoogleCloudServices()
        Controls connectivity to private IP instances from Google services, such as BigQuery.
        Returns:
        value or null for none
      • setEnablePrivatePathForGoogleCloudServices

        public IpConfiguration setEnablePrivatePathForGoogleCloudServices(Boolean enablePrivatePathForGoogleCloudServices)
        Controls connectivity to private IP instances from Google services, such as BigQuery.
        Parameters:
        enablePrivatePathForGoogleCloudServices - enablePrivatePathForGoogleCloudServices or null for none
      • getIpv4Enabled

        public Boolean getIpv4Enabled()
        Whether the instance is assigned a public IP address or not.
        Returns:
        value or null for none
      • setIpv4Enabled

        public IpConfiguration setIpv4Enabled(Boolean ipv4Enabled)
        Whether the instance is assigned a public IP address or not.
        Parameters:
        ipv4Enabled - ipv4Enabled or null for none
      • getPrivateNetwork

        public String getPrivateNetwork()
        The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. This setting can be updated, but it cannot be removed after it is set.
        Returns:
        value or null for none
      • setPrivateNetwork

        public IpConfiguration setPrivateNetwork(String privateNetwork)
        The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. This setting can be updated, but it cannot be removed after it is set.
        Parameters:
        privateNetwork - privateNetwork or null for none
      • getPscConfig

        public PscConfig getPscConfig()
        PSC settings for this instance.
        Returns:
        value or null for none
      • setPscConfig

        public IpConfiguration setPscConfig(PscConfig pscConfig)
        PSC settings for this instance.
        Parameters:
        pscConfig - pscConfig or null for none
      • getRequireSsl

        public Boolean getRequireSsl()
        Use `ssl_mode` instead. Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the `require_ssl` flag.
        Returns:
        value or null for none
      • setRequireSsl

        public IpConfiguration setRequireSsl(Boolean requireSsl)
        Use `ssl_mode` instead. Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the `require_ssl` flag.
        Parameters:
        requireSsl - requireSsl or null for none
      • getServerCaMode

        public String getServerCaMode()
        Specify what type of CA is used for the server certificate.
        Returns:
        value or null for none
      • setServerCaMode

        public IpConfiguration setServerCaMode(String serverCaMode)
        Specify what type of CA is used for the server certificate.
        Parameters:
        serverCaMode - serverCaMode or null for none
      • getSslMode

        public String getSslMode()
        Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while `require_ssl=false` means accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL connections.
        Returns:
        value or null for none
      • setSslMode

        public IpConfiguration setSslMode(String sslMode)
        Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while `require_ssl=false` means accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL connections.
        Parameters:
        sslMode - sslMode or null for none
      • clone

        public IpConfiguration clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy