Class: Google::Cloud::Build::V1::PrivatePoolV1Config

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb

Overview

Configuration for a V1 PrivatePool.

Defined Under Namespace

Classes: NetworkConfig, PrivateServiceConnect, WorkerConfig

Instance Attribute Summary collapse

Instance Attribute Details

#network_config::Google::Cloud::Build::V1::PrivatePoolV1Config::NetworkConfig

Returns Network configuration for the pool.

Returns:



2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 2401

class PrivatePoolV1Config
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Defines the configuration to be used for creating workers in
  # the pool.
  # @!attribute [rw] machine_type
  #   @return [::String]
  #     Optional. Machine type of a worker, such as `e2-medium`.
  #     See [Worker pool config
  #     file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema).
  #     If left blank, Cloud Build will use a sensible default.
  # @!attribute [rw] disk_size_gb
  #   @return [::Integer]
  #     Size of the disk attached to the worker, in GB.
  #     See [Worker pool config
  #     file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema).
  #     Specify a value of up to 4000. If `0` is specified, Cloud Build will use
  #     a standard disk size.
  # @!attribute [rw] enable_nested_virtualization
  #   @return [::Boolean]
  #     Optional. Enable nested virtualization on the worker, if supported by the
  #     machine type. By default, nested virtualization is disabled.
  class WorkerConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Defines the network configuration for the pool.
  # @!attribute [rw] peered_network
  #   @return [::String]
  #     Required. Immutable. The network definition that the workers are peered
  #     to. If this section is left empty, the workers will be peered to
  #     `WorkerPool.project_id` on the service producer network. Must be in the
  #     format `projects/{project}/global/networks/{network}`, where `{project}`
  #     is a project number, such as `12345`, and `{network}` is the name of a
  #     VPC network in the project. See
  #     [Understanding network configuration
  #     options](https://cloud.google.com/build/docs/private-pools/set-up-private-pool-environment)
  # @!attribute [rw] egress_option
  #   @return [::Google::Cloud::Build::V1::PrivatePoolV1Config::NetworkConfig::EgressOption]
  #     Option to configure network egress for the workers.
  # @!attribute [rw] peered_network_ip_range
  #   @return [::String]
  #     Immutable. Subnet IP range within the peered network. This is specified
  #     in CIDR notation with a slash and the subnet prefix size. You can
  #     optionally specify an IP address before the subnet prefix value. e.g.
  #     `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a
  #     prefix size of 29 bits.
  #     `/16` would specify a prefix size of 16 bits, with an automatically
  #     determined IP within the peered VPC.
  #     If unspecified, a value of `/24` will be used.
  class NetworkConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Defines the egress option for the pool.
    module EgressOption
      # If set, defaults to PUBLIC_EGRESS.
      EGRESS_OPTION_UNSPECIFIED = 0

      # If set, workers are created without any public address, which prevents
      # network egress to public IPs unless a network proxy is configured.
      NO_PUBLIC_EGRESS = 1

      # If set, workers are created with a public address which allows for
      # public internet egress.
      PUBLIC_EGRESS = 2
    end
  end

  # Defines the Private Service Connect network configuration for the pool.
  # @!attribute [rw] network_attachment
  #   @return [::String]
  #     Required. Immutable. The network attachment that the worker network
  #     interface is peered to. Must be in the format
  #     `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
  #     The region of network attachment must be the same as the worker pool.
  #     See [Network
  #     Attachments](https://cloud.google.com/vpc/docs/about-network-attachments)
  # @!attribute [rw] public_ip_address_disabled
  #   @return [::Boolean]
  #     Required. Immutable. Disable public IP on the primary network interface.
  #
  #     If true, workers are created without any public address, which prevents
  #     network egress to public IPs unless a network proxy is configured.
  #     If false, workers are created with a public address which allows for
  #     public internet egress. The public address only applies to traffic
  #     through the primary network interface.
  #     If `route_all_traffic` is set to true, all traffic will go through the
  #     non-primary network interface, this boolean has no effect.
  # @!attribute [rw] route_all_traffic
  #   @return [::Boolean]
  #     Immutable. Route all traffic through PSC interface. Enable this if you
  #     want full control of traffic in the private pool. Configure Cloud NAT for
  #     the subnet of network attachment if you need to access public Internet.
  #
  #     If false, Only route RFC 1918 (10.0.0.0/8, 172.16.0.0/12, and
  #     192.168.0.0/16) and RFC 6598 (100.64.0.0/10) through PSC interface.
  class PrivateServiceConnect
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#private_service_connect::Google::Cloud::Build::V1::PrivatePoolV1Config::PrivateServiceConnect

Returns Immutable. Private Service Connect(PSC) Network configuration for the pool.

Returns:



2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 2401

class PrivatePoolV1Config
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Defines the configuration to be used for creating workers in
  # the pool.
  # @!attribute [rw] machine_type
  #   @return [::String]
  #     Optional. Machine type of a worker, such as `e2-medium`.
  #     See [Worker pool config
  #     file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema).
  #     If left blank, Cloud Build will use a sensible default.
  # @!attribute [rw] disk_size_gb
  #   @return [::Integer]
  #     Size of the disk attached to the worker, in GB.
  #     See [Worker pool config
  #     file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema).
  #     Specify a value of up to 4000. If `0` is specified, Cloud Build will use
  #     a standard disk size.
  # @!attribute [rw] enable_nested_virtualization
  #   @return [::Boolean]
  #     Optional. Enable nested virtualization on the worker, if supported by the
  #     machine type. By default, nested virtualization is disabled.
  class WorkerConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Defines the network configuration for the pool.
  # @!attribute [rw] peered_network
  #   @return [::String]
  #     Required. Immutable. The network definition that the workers are peered
  #     to. If this section is left empty, the workers will be peered to
  #     `WorkerPool.project_id` on the service producer network. Must be in the
  #     format `projects/{project}/global/networks/{network}`, where `{project}`
  #     is a project number, such as `12345`, and `{network}` is the name of a
  #     VPC network in the project. See
  #     [Understanding network configuration
  #     options](https://cloud.google.com/build/docs/private-pools/set-up-private-pool-environment)
  # @!attribute [rw] egress_option
  #   @return [::Google::Cloud::Build::V1::PrivatePoolV1Config::NetworkConfig::EgressOption]
  #     Option to configure network egress for the workers.
  # @!attribute [rw] peered_network_ip_range
  #   @return [::String]
  #     Immutable. Subnet IP range within the peered network. This is specified
  #     in CIDR notation with a slash and the subnet prefix size. You can
  #     optionally specify an IP address before the subnet prefix value. e.g.
  #     `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a
  #     prefix size of 29 bits.
  #     `/16` would specify a prefix size of 16 bits, with an automatically
  #     determined IP within the peered VPC.
  #     If unspecified, a value of `/24` will be used.
  class NetworkConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Defines the egress option for the pool.
    module EgressOption
      # If set, defaults to PUBLIC_EGRESS.
      EGRESS_OPTION_UNSPECIFIED = 0

      # If set, workers are created without any public address, which prevents
      # network egress to public IPs unless a network proxy is configured.
      NO_PUBLIC_EGRESS = 1

      # If set, workers are created with a public address which allows for
      # public internet egress.
      PUBLIC_EGRESS = 2
    end
  end

  # Defines the Private Service Connect network configuration for the pool.
  # @!attribute [rw] network_attachment
  #   @return [::String]
  #     Required. Immutable. The network attachment that the worker network
  #     interface is peered to. Must be in the format
  #     `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
  #     The region of network attachment must be the same as the worker pool.
  #     See [Network
  #     Attachments](https://cloud.google.com/vpc/docs/about-network-attachments)
  # @!attribute [rw] public_ip_address_disabled
  #   @return [::Boolean]
  #     Required. Immutable. Disable public IP on the primary network interface.
  #
  #     If true, workers are created without any public address, which prevents
  #     network egress to public IPs unless a network proxy is configured.
  #     If false, workers are created with a public address which allows for
  #     public internet egress. The public address only applies to traffic
  #     through the primary network interface.
  #     If `route_all_traffic` is set to true, all traffic will go through the
  #     non-primary network interface, this boolean has no effect.
  # @!attribute [rw] route_all_traffic
  #   @return [::Boolean]
  #     Immutable. Route all traffic through PSC interface. Enable this if you
  #     want full control of traffic in the private pool. Configure Cloud NAT for
  #     the subnet of network attachment if you need to access public Internet.
  #
  #     If false, Only route RFC 1918 (10.0.0.0/8, 172.16.0.0/12, and
  #     192.168.0.0/16) and RFC 6598 (100.64.0.0/10) through PSC interface.
  class PrivateServiceConnect
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#worker_config::Google::Cloud::Build::V1::PrivatePoolV1Config::WorkerConfig

Returns Machine configuration for the workers in the pool.

Returns:



2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 2401

class PrivatePoolV1Config
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Defines the configuration to be used for creating workers in
  # the pool.
  # @!attribute [rw] machine_type
  #   @return [::String]
  #     Optional. Machine type of a worker, such as `e2-medium`.
  #     See [Worker pool config
  #     file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema).
  #     If left blank, Cloud Build will use a sensible default.
  # @!attribute [rw] disk_size_gb
  #   @return [::Integer]
  #     Size of the disk attached to the worker, in GB.
  #     See [Worker pool config
  #     file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema).
  #     Specify a value of up to 4000. If `0` is specified, Cloud Build will use
  #     a standard disk size.
  # @!attribute [rw] enable_nested_virtualization
  #   @return [::Boolean]
  #     Optional. Enable nested virtualization on the worker, if supported by the
  #     machine type. By default, nested virtualization is disabled.
  class WorkerConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Defines the network configuration for the pool.
  # @!attribute [rw] peered_network
  #   @return [::String]
  #     Required. Immutable. The network definition that the workers are peered
  #     to. If this section is left empty, the workers will be peered to
  #     `WorkerPool.project_id` on the service producer network. Must be in the
  #     format `projects/{project}/global/networks/{network}`, where `{project}`
  #     is a project number, such as `12345`, and `{network}` is the name of a
  #     VPC network in the project. See
  #     [Understanding network configuration
  #     options](https://cloud.google.com/build/docs/private-pools/set-up-private-pool-environment)
  # @!attribute [rw] egress_option
  #   @return [::Google::Cloud::Build::V1::PrivatePoolV1Config::NetworkConfig::EgressOption]
  #     Option to configure network egress for the workers.
  # @!attribute [rw] peered_network_ip_range
  #   @return [::String]
  #     Immutable. Subnet IP range within the peered network. This is specified
  #     in CIDR notation with a slash and the subnet prefix size. You can
  #     optionally specify an IP address before the subnet prefix value. e.g.
  #     `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a
  #     prefix size of 29 bits.
  #     `/16` would specify a prefix size of 16 bits, with an automatically
  #     determined IP within the peered VPC.
  #     If unspecified, a value of `/24` will be used.
  class NetworkConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Defines the egress option for the pool.
    module EgressOption
      # If set, defaults to PUBLIC_EGRESS.
      EGRESS_OPTION_UNSPECIFIED = 0

      # If set, workers are created without any public address, which prevents
      # network egress to public IPs unless a network proxy is configured.
      NO_PUBLIC_EGRESS = 1

      # If set, workers are created with a public address which allows for
      # public internet egress.
      PUBLIC_EGRESS = 2
    end
  end

  # Defines the Private Service Connect network configuration for the pool.
  # @!attribute [rw] network_attachment
  #   @return [::String]
  #     Required. Immutable. The network attachment that the worker network
  #     interface is peered to. Must be in the format
  #     `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
  #     The region of network attachment must be the same as the worker pool.
  #     See [Network
  #     Attachments](https://cloud.google.com/vpc/docs/about-network-attachments)
  # @!attribute [rw] public_ip_address_disabled
  #   @return [::Boolean]
  #     Required. Immutable. Disable public IP on the primary network interface.
  #
  #     If true, workers are created without any public address, which prevents
  #     network egress to public IPs unless a network proxy is configured.
  #     If false, workers are created with a public address which allows for
  #     public internet egress. The public address only applies to traffic
  #     through the primary network interface.
  #     If `route_all_traffic` is set to true, all traffic will go through the
  #     non-primary network interface, this boolean has no effect.
  # @!attribute [rw] route_all_traffic
  #   @return [::Boolean]
  #     Immutable. Route all traffic through PSC interface. Enable this if you
  #     want full control of traffic in the private pool. Configure Cloud NAT for
  #     the subnet of network attachment if you need to access public Internet.
  #
  #     If false, Only route RFC 1918 (10.0.0.0/8, 172.16.0.0/12, and
  #     192.168.0.0/16) and RFC 6598 (100.64.0.0/10) through PSC interface.
  class PrivateServiceConnect
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end