Class: Google::Apis::ServicenetworkingV1::AddRolesRequest

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

Overview

Request for AddRoles to allow Service Producers to add roles in the shared VPC host project for them to use.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AddRolesRequest

Returns a new instance of AddRolesRequest.



58
59
60
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 58

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

Instance Attribute Details

#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 a network name. Corresponds to the JSON property consumerNetwork

Returns:

  • (String)


51
52
53
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 51

def consumer_network
  @consumer_network
end

#policy_bindingArray<Google::Apis::ServicenetworkingV1::PolicyBinding>

Required. List of policy bindings to add to shared VPC host project. Corresponds to the JSON property policyBinding



56
57
58
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 56

def policy_binding
  @policy_binding
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



63
64
65
66
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 63

def update!(**args)
  @consumer_network = args[:consumer_network] if args.key?(:consumer_network)
  @policy_binding = args[:policy_binding] if args.key?(:policy_binding)
end