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, WorkerConfig

Instance Attribute Summary collapse

Instance Attribute Details

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

Returns Network configuration for the pool.

Returns:



2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 2180

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]
  #     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 2000. If `0` is specified, Cloud Build will use
  #     a standard disk size.
  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
end

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

Returns Machine configuration for the workers in the pool.

Returns:



2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 2180

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]
  #     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 2000. If `0` is specified, Cloud Build will use
  #     a standard disk size.
  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
end