Class: Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoExternalTraffic

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

Overview

Represents external traffic type and id.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnterpriseCrmEventbusProtoExternalTraffic

Returns a new instance of EnterpriseCrmEventbusProtoExternalTraffic.



1057
1058
1059
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1057

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

Instance Attribute Details

#gcp_project_idString

User’s GCP project id the traffic is referring to. Corresponds to the JSON property gcpProjectId

Returns:

  • (String)


1038
1039
1040
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1038

def gcp_project_id
  @gcp_project_id
end

#gcp_project_numberString

User’s GCP project number the traffic is referring to. Corresponds to the JSON property gcpProjectNumber

Returns:

  • (String)


1043
1044
1045
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1043

def gcp_project_number
  @gcp_project_number
end

#locationString

Location for the user's request. Corresponds to the JSON property location

Returns:

  • (String)


1048
1049
1050
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1048

def location
  @location
end

#sourceString

LINT.ThenChange(//depot/google3/enterprise/crm/eventbus/proto/product.proto: product, //depot/google3/java/com/google/enterprise/crm/integrationplatform/ api/utils/ConverterUtils.java:source_to_product) Corresponds to the JSON property source

Returns:

  • (String)


1055
1056
1057
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1055

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1062
1063
1064
1065
1066
1067
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1062

def update!(**args)
  @gcp_project_id = args[:gcp_project_id] if args.key?(:gcp_project_id)
  @gcp_project_number = args[:gcp_project_number] if args.key?(:gcp_project_number)
  @location = args[:location] if args.key?(:location)
  @source = args[:source] if args.key?(:source)
end