Class: Google::Apis::ServicenetworkingV1::ValidateConsumerConfigRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/servicenetworking_v1/classes.rb,
lib/google/apis/servicenetworking_v1/representations.rb,
lib/google/apis/servicenetworking_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ValidateConsumerConfigRequest

Returns a new instance of ValidateConsumerConfigRequest.



4315
4316
4317
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 4315

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#check_service_networking_use_permissionBoolean Also known as: check_service_networking_use_permission?

Optional. The IAM permission check determines whether the consumer project has 'servicenetworking.services.use' permission or not. Corresponds to the JSON property checkServiceNetworkingUsePermission

Returns:

  • (Boolean)


4284
4285
4286
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 4284

def check_service_networking_use_permission
  @check_service_networking_use_permission
end

#consumer_networkString

Required. The network that the consumer is using to connect with services. Must be in the form of projects/project/global/networks/network project is a project number, as in '12345' network is network name. Corresponds to the JSON property consumerNetwork

Returns:

  • (String)


4292
4293
4294
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 4292

def consumer_network
  @consumer_network
end

#consumer_projectGoogle::Apis::ServicenetworkingV1::ConsumerProject

Represents a consumer project. Corresponds to the JSON property consumerProject



4297
4298
4299
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 4297

def consumer_project
  @consumer_project
end

#range_reservationGoogle::Apis::ServicenetworkingV1::RangeReservation

Represents a range reservation. Corresponds to the JSON property rangeReservation



4302
4303
4304
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 4302

def range_reservation
  @range_reservation
end

#validate_networkBoolean Also known as: validate_network?

The validations will be performed in the order listed in the ValidationError enum. The first failure will return. If a validation is not requested, then the next one will be performed. SERVICE_NETWORKING_NOT_ENABLED and NETWORK_NOT_PEERED checks are performed for all requests where validation is requested. NETWORK_NOT_FOUND and NETWORK_DISCONNECTED checks are done for requests that have validate_network set to true. Corresponds to the JSON property validateNetwork

Returns:

  • (Boolean)


4312
4313
4314
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 4312

def validate_network
  @validate_network
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4320
4321
4322
4323
4324
4325
4326
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 4320

def update!(**args)
  @check_service_networking_use_permission = args[:check_service_networking_use_permission] if args.key?(:check_service_networking_use_permission)
  @consumer_network = args[:consumer_network] if args.key?(:consumer_network)
  @consumer_project = args[:consumer_project] if args.key?(:consumer_project)
  @range_reservation = args[:range_reservation] if args.key?(:range_reservation)
  @validate_network = args[:validate_network] if args.key?(:validate_network)
end