google-cloud-vmware_engine-v1 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -664,7 +664,9 @@ module Google
664
664
  class Configuration
665
665
  extend ::Gapic::Config
666
666
 
667
- config_attr :endpoint, "vmwareengine.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "vmwareengine.googleapis.com"
668
+
669
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
670
  config_attr :credentials, nil do |value|
669
671
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
672
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -157,6 +157,46 @@ module Google
157
157
  "projects/#{project}/locations/#{location}/privateClouds/#{private_cloud}"
158
158
  end
159
159
 
160
+ ##
161
+ # Create a fully-qualified PrivateConnection resource string.
162
+ #
163
+ # The resource will be in the following format:
164
+ #
165
+ # `projects/{project}/locations/{location}/privateConnections/{private_connection}`
166
+ #
167
+ # @param project [String]
168
+ # @param location [String]
169
+ # @param private_connection [String]
170
+ #
171
+ # @return [::String]
172
+ def private_connection_path project:, location:, private_connection:
173
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
174
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
175
+
176
+ "projects/#{project}/locations/#{location}/privateConnections/#{private_connection}"
177
+ end
178
+
179
+ ##
180
+ # Create a fully-qualified Subnet resource string.
181
+ #
182
+ # The resource will be in the following format:
183
+ #
184
+ # `projects/{project}/locations/{location}/privateClouds/{private_cloud}/subnets/{subnet}`
185
+ #
186
+ # @param project [String]
187
+ # @param location [String]
188
+ # @param private_cloud [String]
189
+ # @param subnet [String]
190
+ #
191
+ # @return [::String]
192
+ def subnet_path project:, location:, private_cloud:, subnet:
193
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
194
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
195
+ raise ::ArgumentError, "private_cloud cannot contain /" if private_cloud.to_s.include? "/"
196
+
197
+ "projects/#{project}/locations/#{location}/privateClouds/#{private_cloud}/subnets/#{subnet}"
198
+ end
199
+
160
200
  ##
161
201
  # Create a fully-qualified VmwareEngineNetwork resource string.
162
202
  #