google-cloud-ai_platform-v1 0.35.0 → 0.36.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +72 -99
  3. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +43 -17
  4. data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +28 -6
  5. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/client.rb +896 -0
  6. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/credentials.rb +47 -0
  7. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +809 -0
  8. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/paths.rb +83 -0
  9. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service.rb +50 -0
  10. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +43 -17
  11. data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +28 -6
  12. data/lib/google/cloud/ai_platform/v1/endpoint_service/paths.rb +19 -0
  13. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +46 -18
  14. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +28 -6
  15. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/client.rb +146 -17
  16. data/lib/google/cloud/ai_platform/v1/feature_online_store_service.rb +2 -0
  17. data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +44 -18
  18. data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +28 -6
  19. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +42 -17
  20. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +44 -18
  21. data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +28 -6
  22. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +43 -17
  23. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +28 -6
  24. data/lib/google/cloud/ai_platform/v1/index_service/client.rb +52 -18
  25. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +28 -6
  26. data/lib/google/cloud/ai_platform/v1/job_service/client.rb +43 -17
  27. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +28 -6
  28. data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +49 -18
  29. data/lib/google/cloud/ai_platform/v1/match_service/client.rb +42 -17
  30. data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +43 -17
  31. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +28 -6
  32. data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +43 -17
  33. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +28 -6
  34. data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +42 -17
  35. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +47 -21
  36. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +28 -6
  37. data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +43 -17
  38. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +28 -6
  39. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +544 -20
  40. data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +43 -17
  41. data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +28 -6
  42. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +43 -17
  43. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +28 -6
  44. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +43 -17
  45. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +28 -6
  46. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  47. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +43 -17
  48. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +28 -6
  49. data/lib/google/cloud/ai_platform/v1.rb +1 -0
  50. data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -1
  51. data/lib/google/cloud/aiplatform/v1/annotation_pb.rb +1 -1
  52. data/lib/google/cloud/aiplatform/v1/annotation_spec_pb.rb +1 -1
  53. data/lib/google/cloud/aiplatform/v1/artifact_pb.rb +1 -1
  54. data/lib/google/cloud/aiplatform/v1/batch_prediction_job_pb.rb +1 -1
  55. data/lib/google/cloud/aiplatform/v1/completion_stats_pb.rb +1 -1
  56. data/lib/google/cloud/aiplatform/v1/content_pb.rb +64 -0
  57. data/lib/google/cloud/aiplatform/v1/context_pb.rb +1 -1
  58. data/lib/google/cloud/aiplatform/v1/custom_job_pb.rb +2 -2
  59. data/lib/google/cloud/aiplatform/v1/data_item_pb.rb +1 -1
  60. data/lib/google/cloud/aiplatform/v1/data_labeling_job_pb.rb +1 -1
  61. data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +4 -2
  62. data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +4 -2
  63. data/lib/google/cloud/aiplatform/v1/dataset_version_pb.rb +1 -1
  64. data/lib/google/cloud/aiplatform/v1/deployed_index_ref_pb.rb +2 -2
  65. data/lib/google/cloud/aiplatform/v1/deployed_model_ref_pb.rb +1 -1
  66. data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_pb.rb +49 -0
  67. data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_service_pb.rb +65 -0
  68. data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_service_services_pb.rb +53 -0
  69. data/lib/google/cloud/aiplatform/v1/encryption_spec_pb.rb +1 -1
  70. data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +2 -2
  71. data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +2 -2
  72. data/lib/google/cloud/aiplatform/v1/entity_type_pb.rb +1 -1
  73. data/lib/google/cloud/aiplatform/v1/env_var_pb.rb +1 -1
  74. data/lib/google/cloud/aiplatform/v1/evaluated_annotation_pb.rb +1 -1
  75. data/lib/google/cloud/aiplatform/v1/event_pb.rb +1 -1
  76. data/lib/google/cloud/aiplatform/v1/execution_pb.rb +1 -1
  77. data/lib/google/cloud/aiplatform/v1/explanation_metadata_pb.rb +1 -1
  78. data/lib/google/cloud/aiplatform/v1/explanation_pb.rb +1 -1
  79. data/lib/google/cloud/aiplatform/v1/feature_group_pb.rb +2 -2
  80. data/lib/google/cloud/aiplatform/v1/feature_monitoring_stats_pb.rb +1 -1
  81. data/lib/google/cloud/aiplatform/v1/feature_online_store_admin_service_pb.rb +2 -2
  82. data/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb +2 -2
  83. data/lib/google/cloud/aiplatform/v1/feature_online_store_service_pb.rb +10 -2
  84. data/lib/google/cloud/aiplatform/v1/feature_online_store_service_services_pb.rb +5 -0
  85. data/lib/google/cloud/aiplatform/v1/feature_pb.rb +2 -2
  86. data/lib/google/cloud/aiplatform/v1/feature_registry_service_pb.rb +2 -2
  87. data/lib/google/cloud/aiplatform/v1/feature_selector_pb.rb +1 -1
  88. data/lib/google/cloud/aiplatform/v1/feature_view_pb.rb +2 -2
  89. data/lib/google/cloud/aiplatform/v1/feature_view_sync_pb.rb +2 -2
  90. data/lib/google/cloud/aiplatform/v1/featurestore_monitoring_pb.rb +1 -1
  91. data/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb +2 -2
  92. data/lib/google/cloud/aiplatform/v1/featurestore_pb.rb +1 -1
  93. data/lib/google/cloud/aiplatform/v1/featurestore_service_pb.rb +2 -2
  94. data/lib/google/cloud/aiplatform/v1/hyperparameter_tuning_job_pb.rb +1 -1
  95. data/lib/google/cloud/aiplatform/v1/index_endpoint_pb.rb +2 -2
  96. data/lib/google/cloud/aiplatform/v1/index_endpoint_service_pb.rb +2 -2
  97. data/lib/google/cloud/aiplatform/v1/index_pb.rb +1 -1
  98. data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +2 -2
  99. data/lib/google/cloud/aiplatform/v1/io_pb.rb +1 -1
  100. data/lib/google/cloud/aiplatform/v1/job_service_pb.rb +2 -2
  101. data/lib/google/cloud/aiplatform/v1/job_state_pb.rb +1 -1
  102. data/lib/google/cloud/aiplatform/v1/lineage_subgraph_pb.rb +1 -1
  103. data/lib/google/cloud/aiplatform/v1/llm_utility_service_pb.rb +2 -2
  104. data/lib/google/cloud/aiplatform/v1/machine_resources_pb.rb +1 -1
  105. data/lib/google/cloud/aiplatform/v1/manual_batch_tuning_parameters_pb.rb +1 -1
  106. data/lib/google/cloud/aiplatform/v1/match_service_pb.rb +1 -1
  107. data/lib/google/cloud/aiplatform/v1/metadata_schema_pb.rb +1 -1
  108. data/lib/google/cloud/aiplatform/v1/metadata_service_pb.rb +2 -2
  109. data/lib/google/cloud/aiplatform/v1/metadata_store_pb.rb +1 -1
  110. data/lib/google/cloud/aiplatform/v1/migratable_resource_pb.rb +1 -1
  111. data/lib/google/cloud/aiplatform/v1/migration_service_pb.rb +2 -2
  112. data/lib/google/cloud/aiplatform/v1/model_deployment_monitoring_job_pb.rb +2 -2
  113. data/lib/google/cloud/aiplatform/v1/model_evaluation_pb.rb +1 -1
  114. data/lib/google/cloud/aiplatform/v1/model_evaluation_slice_pb.rb +1 -1
  115. data/lib/google/cloud/aiplatform/v1/model_garden_service_pb.rb +2 -2
  116. data/lib/google/cloud/aiplatform/v1/model_monitoring_pb.rb +1 -1
  117. data/lib/google/cloud/aiplatform/v1/model_pb.rb +3 -2
  118. data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +2 -2
  119. data/lib/google/cloud/aiplatform/v1/nas_job_pb.rb +1 -1
  120. data/lib/google/cloud/aiplatform/v1/openapi_pb.rb +47 -0
  121. data/lib/google/cloud/aiplatform/v1/operation_pb.rb +1 -1
  122. data/lib/google/cloud/aiplatform/v1/pipeline_failure_policy_pb.rb +1 -1
  123. data/lib/google/cloud/aiplatform/v1/pipeline_job_pb.rb +1 -1
  124. data/lib/google/cloud/aiplatform/v1/pipeline_service_pb.rb +2 -2
  125. data/lib/google/cloud/aiplatform/v1/pipeline_state_pb.rb +1 -1
  126. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +16 -2
  127. data/lib/google/cloud/aiplatform/v1/prediction_service_services_pb.rb +16 -3
  128. data/lib/google/cloud/aiplatform/v1/publisher_model_pb.rb +6 -2
  129. data/lib/google/cloud/aiplatform/v1/saved_query_pb.rb +1 -1
  130. data/lib/google/cloud/aiplatform/v1/schedule_pb.rb +1 -1
  131. data/lib/google/cloud/aiplatform/v1/schedule_service_pb.rb +2 -2
  132. data/lib/google/cloud/aiplatform/v1/service_networking_pb.rb +4 -2
  133. data/lib/google/cloud/aiplatform/v1/specialist_pool_pb.rb +1 -1
  134. data/lib/google/cloud/aiplatform/v1/specialist_pool_service_pb.rb +2 -2
  135. data/lib/google/cloud/aiplatform/v1/study_pb.rb +1 -1
  136. data/lib/google/cloud/aiplatform/v1/tensorboard_data_pb.rb +1 -1
  137. data/lib/google/cloud/aiplatform/v1/tensorboard_experiment_pb.rb +1 -1
  138. data/lib/google/cloud/aiplatform/v1/tensorboard_pb.rb +1 -1
  139. data/lib/google/cloud/aiplatform/v1/tensorboard_run_pb.rb +1 -1
  140. data/lib/google/cloud/aiplatform/v1/tensorboard_service_pb.rb +2 -2
  141. data/lib/google/cloud/aiplatform/v1/tensorboard_time_series_pb.rb +1 -1
  142. data/lib/google/cloud/aiplatform/v1/tool_pb.rb +51 -0
  143. data/lib/google/cloud/aiplatform/v1/training_pipeline_pb.rb +1 -1
  144. data/lib/google/cloud/aiplatform/v1/types_pb.rb +1 -1
  145. data/lib/google/cloud/aiplatform/v1/unmanaged_container_model_pb.rb +1 -1
  146. data/lib/google/cloud/aiplatform/v1/user_action_reference_pb.rb +1 -1
  147. data/lib/google/cloud/aiplatform/v1/value_pb.rb +1 -1
  148. data/lib/google/cloud/aiplatform/v1/vizier_service_pb.rb +2 -2
  149. data/proto_docs/google/api/client.rb +1 -0
  150. data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +2 -2
  151. data/proto_docs/google/cloud/aiplatform/v1/content.rb +312 -0
  152. data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +15 -0
  153. data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +102 -0
  154. data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +12 -1
  155. data/proto_docs/google/cloud/aiplatform/v1/deployed_index_ref.rb +3 -0
  156. data/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool.rb +45 -0
  157. data/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool_service.rb +170 -0
  158. data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +6 -0
  159. data/proto_docs/google/cloud/aiplatform/v1/explanation.rb +8 -0
  160. data/proto_docs/google/cloud/aiplatform/v1/feature.rb +5 -1
  161. data/proto_docs/google/cloud/aiplatform/v1/feature_group.rb +2 -2
  162. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +2 -2
  163. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_admin_service.rb +3 -1
  164. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_service.rb +136 -0
  165. data/proto_docs/google/cloud/aiplatform/v1/feature_view.rb +3 -2
  166. data/proto_docs/google/cloud/aiplatform/v1/feature_view_sync.rb +2 -2
  167. data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +1 -1
  168. data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +5 -0
  169. data/proto_docs/google/cloud/aiplatform/v1/index_service.rb +28 -0
  170. data/proto_docs/google/cloud/aiplatform/v1/metadata_service.rb +1 -0
  171. data/proto_docs/google/cloud/aiplatform/v1/model.rb +55 -4
  172. data/proto_docs/google/cloud/aiplatform/v1/model_deployment_monitoring_job.rb +4 -0
  173. data/proto_docs/google/cloud/aiplatform/v1/model_evaluation.rb +1 -1
  174. data/proto_docs/google/cloud/aiplatform/v1/model_monitoring.rb +1 -0
  175. data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +4 -4
  176. data/proto_docs/google/cloud/aiplatform/v1/nas_job.rb +1 -0
  177. data/proto_docs/google/cloud/aiplatform/v1/openapi.rb +102 -0
  178. data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +1 -0
  179. data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +195 -0
  180. data/proto_docs/google/cloud/aiplatform/v1/publisher_model.rb +73 -1
  181. data/proto_docs/google/cloud/aiplatform/v1/service_networking.rb +16 -0
  182. data/proto_docs/google/cloud/aiplatform/v1/tool.rb +112 -0
  183. data/proto_docs/google/protobuf/any.rb +2 -1
  184. data/proto_docs/google/type/date.rb +53 -0
  185. metadata +26 -9
@@ -33,6 +33,9 @@ module Google
33
33
  # periodically launch shceudled runs to make API calls.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ DEFAULT_ENDPOINT_TEMPLATE = "aiplatform.$UNIVERSE_DOMAIN$"
38
+
36
39
  include Paths
37
40
 
38
41
  # @private
@@ -93,6 +96,15 @@ module Google
93
96
  @config
94
97
  end
95
98
 
99
+ ##
100
+ # The effective universe domain
101
+ #
102
+ # @return [String]
103
+ #
104
+ def universe_domain
105
+ @schedule_service_stub.universe_domain
106
+ end
107
+
96
108
  ##
97
109
  # Create a new ScheduleService client object.
98
110
  #
@@ -126,8 +138,9 @@ module Google
126
138
  credentials = @config.credentials
127
139
  # Use self-signed JWT if the endpoint is unchanged from default,
128
140
  # but only if the default endpoint does not have a region prefix.
129
- enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
130
- !@config.endpoint.split(".").first.include?("-")
141
+ enable_self_signed_jwt = @config.endpoint.nil? ||
142
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
143
+ !@config.endpoint.split(".").first.include?("-"))
131
144
  credentials ||= Credentials.default scope: @config.scope,
132
145
  enable_self_signed_jwt: enable_self_signed_jwt
133
146
  if credentials.is_a?(::String) || credentials.is_a?(::Hash)
@@ -140,28 +153,33 @@ module Google
140
153
  config.credentials = credentials
141
154
  config.quota_project = @quota_project_id
142
155
  config.endpoint = @config.endpoint
156
+ config.universe_domain = @config.universe_domain
143
157
  end
144
158
 
159
+ @schedule_service_stub = ::Gapic::ServiceStub.new(
160
+ ::Google::Cloud::AIPlatform::V1::ScheduleService::Stub,
161
+ credentials: credentials,
162
+ endpoint: @config.endpoint,
163
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
164
+ universe_domain: @config.universe_domain,
165
+ channel_args: @config.channel_args,
166
+ interceptors: @config.interceptors,
167
+ channel_pool_config: @config.channel_pool
168
+ )
169
+
145
170
  @location_client = Google::Cloud::Location::Locations::Client.new do |config|
146
171
  config.credentials = credentials
147
172
  config.quota_project = @quota_project_id
148
- config.endpoint = @config.endpoint
173
+ config.endpoint = @schedule_service_stub.endpoint
174
+ config.universe_domain = @schedule_service_stub.universe_domain
149
175
  end
150
176
 
151
177
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
152
178
  config.credentials = credentials
153
179
  config.quota_project = @quota_project_id
154
- config.endpoint = @config.endpoint
180
+ config.endpoint = @schedule_service_stub.endpoint
181
+ config.universe_domain = @schedule_service_stub.universe_domain
155
182
  end
156
-
157
- @schedule_service_stub = ::Gapic::ServiceStub.new(
158
- ::Google::Cloud::AIPlatform::V1::ScheduleService::Stub,
159
- credentials: credentials,
160
- endpoint: @config.endpoint,
161
- channel_args: @config.channel_args,
162
- interceptors: @config.interceptors,
163
- channel_pool_config: @config.channel_pool
164
- )
165
183
  end
166
184
 
167
185
  ##
@@ -926,9 +944,9 @@ module Google
926
944
  # end
927
945
  #
928
946
  # @!attribute [rw] endpoint
929
- # The hostname or hostname:port of the service endpoint.
930
- # Defaults to `"aiplatform.googleapis.com"`.
931
- # @return [::String]
947
+ # A custom service endpoint, as a hostname or hostname:port. The default is
948
+ # nil, indicating to use the default endpoint in the current universe domain.
949
+ # @return [::String,nil]
932
950
  # @!attribute [rw] credentials
933
951
  # Credentials to send with calls. You may provide any of the following types:
934
952
  # * (`String`) The path to a service account key file in JSON format
@@ -974,13 +992,20 @@ module Google
974
992
  # @!attribute [rw] quota_project
975
993
  # A separate project against which to charge quota.
976
994
  # @return [::String]
995
+ # @!attribute [rw] universe_domain
996
+ # The universe domain within which to make requests. This determines the
997
+ # default endpoint URL. The default value of nil uses the environment
998
+ # universe (usually the default "googleapis.com" universe).
999
+ # @return [::String,nil]
977
1000
  #
978
1001
  class Configuration
979
1002
  extend ::Gapic::Config
980
1003
 
1004
+ # @private
1005
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
981
1006
  DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
982
1007
 
983
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1008
+ config_attr :endpoint, nil, ::String, nil
984
1009
  config_attr :credentials, nil do |value|
985
1010
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
986
1011
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -995,6 +1020,7 @@ module Google
995
1020
  config_attr :metadata, nil, ::Hash, nil
996
1021
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
997
1022
  config_attr :quota_project, nil, ::String, nil
1023
+ config_attr :universe_domain, nil, ::String, nil
998
1024
 
999
1025
  # @private
1000
1026
  def initialize parent_config = nil
@@ -26,6 +26,9 @@ module Google
26
26
  module ScheduleService
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ DEFAULT_ENDPOINT_TEMPLATE = "aiplatform.$UNIVERSE_DOMAIN$"
31
+
29
32
  # @private
30
33
  attr_reader :operations_stub
31
34
 
@@ -60,6 +63,15 @@ module Google
60
63
  @config
61
64
  end
62
65
 
66
+ ##
67
+ # The effective universe domain
68
+ #
69
+ # @return [String]
70
+ #
71
+ def universe_domain
72
+ @operations_stub.universe_domain
73
+ end
74
+
63
75
  ##
64
76
  # Create a new Operations client object.
65
77
  #
@@ -90,8 +102,10 @@ module Google
90
102
 
91
103
  @operations_stub = ::Gapic::ServiceStub.new(
92
104
  ::Google::Longrunning::Operations::Stub,
93
- credentials: credentials,
94
- endpoint: @config.endpoint,
105
+ credentials: credentials,
106
+ endpoint: @config.endpoint,
107
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
108
+ universe_domain: @config.universe_domain,
95
109
  channel_args: @config.channel_args,
96
110
  interceptors: @config.interceptors,
97
111
  channel_pool_config: @config.channel_pool
@@ -621,9 +635,9 @@ module Google
621
635
  # end
622
636
  #
623
637
  # @!attribute [rw] endpoint
624
- # The hostname or hostname:port of the service endpoint.
625
- # Defaults to `"aiplatform.googleapis.com"`.
626
- # @return [::String]
638
+ # A custom service endpoint, as a hostname or hostname:port. The default is
639
+ # nil, indicating to use the default endpoint in the current universe domain.
640
+ # @return [::String,nil]
627
641
  # @!attribute [rw] credentials
628
642
  # Credentials to send with calls. You may provide any of the following types:
629
643
  # * (`String`) The path to a service account key file in JSON format
@@ -669,13 +683,20 @@ module Google
669
683
  # @!attribute [rw] quota_project
670
684
  # A separate project against which to charge quota.
671
685
  # @return [::String]
686
+ # @!attribute [rw] universe_domain
687
+ # The universe domain within which to make requests. This determines the
688
+ # default endpoint URL. The default value of nil uses the environment
689
+ # universe (usually the default "googleapis.com" universe).
690
+ # @return [::String,nil]
672
691
  #
673
692
  class Configuration
674
693
  extend ::Gapic::Config
675
694
 
695
+ # @private
696
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
676
697
  DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
677
698
 
678
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
699
+ config_attr :endpoint, nil, ::String, nil
679
700
  config_attr :credentials, nil do |value|
680
701
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
681
702
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -690,6 +711,7 @@ module Google
690
711
  config_attr :metadata, nil, ::Hash, nil
691
712
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
692
713
  config_attr :quota_project, nil, ::String, nil
714
+ config_attr :universe_domain, nil, ::String, nil
693
715
 
694
716
  # @private
695
717
  def initialize parent_config = nil
@@ -37,6 +37,9 @@ module Google
37
37
  # CrowdCompute console.
38
38
  #
39
39
  class Client
40
+ # @private
41
+ DEFAULT_ENDPOINT_TEMPLATE = "aiplatform.$UNIVERSE_DOMAIN$"
42
+
40
43
  include Paths
41
44
 
42
45
  # @private
@@ -97,6 +100,15 @@ module Google
97
100
  @config
98
101
  end
99
102
 
103
+ ##
104
+ # The effective universe domain
105
+ #
106
+ # @return [String]
107
+ #
108
+ def universe_domain
109
+ @specialist_pool_service_stub.universe_domain
110
+ end
111
+
100
112
  ##
101
113
  # Create a new SpecialistPoolService client object.
102
114
  #
@@ -130,8 +142,9 @@ module Google
130
142
  credentials = @config.credentials
131
143
  # Use self-signed JWT if the endpoint is unchanged from default,
132
144
  # but only if the default endpoint does not have a region prefix.
133
- enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
134
- !@config.endpoint.split(".").first.include?("-")
145
+ enable_self_signed_jwt = @config.endpoint.nil? ||
146
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
147
+ !@config.endpoint.split(".").first.include?("-"))
135
148
  credentials ||= Credentials.default scope: @config.scope,
136
149
  enable_self_signed_jwt: enable_self_signed_jwt
137
150
  if credentials.is_a?(::String) || credentials.is_a?(::Hash)
@@ -144,28 +157,33 @@ module Google
144
157
  config.credentials = credentials
145
158
  config.quota_project = @quota_project_id
146
159
  config.endpoint = @config.endpoint
160
+ config.universe_domain = @config.universe_domain
147
161
  end
148
162
 
163
+ @specialist_pool_service_stub = ::Gapic::ServiceStub.new(
164
+ ::Google::Cloud::AIPlatform::V1::SpecialistPoolService::Stub,
165
+ credentials: credentials,
166
+ endpoint: @config.endpoint,
167
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
168
+ universe_domain: @config.universe_domain,
169
+ channel_args: @config.channel_args,
170
+ interceptors: @config.interceptors,
171
+ channel_pool_config: @config.channel_pool
172
+ )
173
+
149
174
  @location_client = Google::Cloud::Location::Locations::Client.new do |config|
150
175
  config.credentials = credentials
151
176
  config.quota_project = @quota_project_id
152
- config.endpoint = @config.endpoint
177
+ config.endpoint = @specialist_pool_service_stub.endpoint
178
+ config.universe_domain = @specialist_pool_service_stub.universe_domain
153
179
  end
154
180
 
155
181
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
156
182
  config.credentials = credentials
157
183
  config.quota_project = @quota_project_id
158
- config.endpoint = @config.endpoint
184
+ config.endpoint = @specialist_pool_service_stub.endpoint
185
+ config.universe_domain = @specialist_pool_service_stub.universe_domain
159
186
  end
160
-
161
- @specialist_pool_service_stub = ::Gapic::ServiceStub.new(
162
- ::Google::Cloud::AIPlatform::V1::SpecialistPoolService::Stub,
163
- credentials: credentials,
164
- endpoint: @config.endpoint,
165
- channel_args: @config.channel_args,
166
- interceptors: @config.interceptors,
167
- channel_pool_config: @config.channel_pool
168
- )
169
187
  end
170
188
 
171
189
  ##
@@ -699,9 +717,9 @@ module Google
699
717
  # end
700
718
  #
701
719
  # @!attribute [rw] endpoint
702
- # The hostname or hostname:port of the service endpoint.
703
- # Defaults to `"aiplatform.googleapis.com"`.
704
- # @return [::String]
720
+ # A custom service endpoint, as a hostname or hostname:port. The default is
721
+ # nil, indicating to use the default endpoint in the current universe domain.
722
+ # @return [::String,nil]
705
723
  # @!attribute [rw] credentials
706
724
  # Credentials to send with calls. You may provide any of the following types:
707
725
  # * (`String`) The path to a service account key file in JSON format
@@ -747,13 +765,20 @@ module Google
747
765
  # @!attribute [rw] quota_project
748
766
  # A separate project against which to charge quota.
749
767
  # @return [::String]
768
+ # @!attribute [rw] universe_domain
769
+ # The universe domain within which to make requests. This determines the
770
+ # default endpoint URL. The default value of nil uses the environment
771
+ # universe (usually the default "googleapis.com" universe).
772
+ # @return [::String,nil]
750
773
  #
751
774
  class Configuration
752
775
  extend ::Gapic::Config
753
776
 
777
+ # @private
778
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
754
779
  DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
755
780
 
756
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
781
+ config_attr :endpoint, nil, ::String, nil
757
782
  config_attr :credentials, nil do |value|
758
783
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
759
784
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -768,6 +793,7 @@ module Google
768
793
  config_attr :metadata, nil, ::Hash, nil
769
794
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
770
795
  config_attr :quota_project, nil, ::String, nil
796
+ config_attr :universe_domain, nil, ::String, nil
771
797
 
772
798
  # @private
773
799
  def initialize parent_config = nil
@@ -26,6 +26,9 @@ module Google
26
26
  module SpecialistPoolService
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ DEFAULT_ENDPOINT_TEMPLATE = "aiplatform.$UNIVERSE_DOMAIN$"
31
+
29
32
  # @private
30
33
  attr_reader :operations_stub
31
34
 
@@ -60,6 +63,15 @@ module Google
60
63
  @config
61
64
  end
62
65
 
66
+ ##
67
+ # The effective universe domain
68
+ #
69
+ # @return [String]
70
+ #
71
+ def universe_domain
72
+ @operations_stub.universe_domain
73
+ end
74
+
63
75
  ##
64
76
  # Create a new Operations client object.
65
77
  #
@@ -90,8 +102,10 @@ module Google
90
102
 
91
103
  @operations_stub = ::Gapic::ServiceStub.new(
92
104
  ::Google::Longrunning::Operations::Stub,
93
- credentials: credentials,
94
- endpoint: @config.endpoint,
105
+ credentials: credentials,
106
+ endpoint: @config.endpoint,
107
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
108
+ universe_domain: @config.universe_domain,
95
109
  channel_args: @config.channel_args,
96
110
  interceptors: @config.interceptors,
97
111
  channel_pool_config: @config.channel_pool
@@ -621,9 +635,9 @@ module Google
621
635
  # end
622
636
  #
623
637
  # @!attribute [rw] endpoint
624
- # The hostname or hostname:port of the service endpoint.
625
- # Defaults to `"aiplatform.googleapis.com"`.
626
- # @return [::String]
638
+ # A custom service endpoint, as a hostname or hostname:port. The default is
639
+ # nil, indicating to use the default endpoint in the current universe domain.
640
+ # @return [::String,nil]
627
641
  # @!attribute [rw] credentials
628
642
  # Credentials to send with calls. You may provide any of the following types:
629
643
  # * (`String`) The path to a service account key file in JSON format
@@ -669,13 +683,20 @@ module Google
669
683
  # @!attribute [rw] quota_project
670
684
  # A separate project against which to charge quota.
671
685
  # @return [::String]
686
+ # @!attribute [rw] universe_domain
687
+ # The universe domain within which to make requests. This determines the
688
+ # default endpoint URL. The default value of nil uses the environment
689
+ # universe (usually the default "googleapis.com" universe).
690
+ # @return [::String,nil]
672
691
  #
673
692
  class Configuration
674
693
  extend ::Gapic::Config
675
694
 
695
+ # @private
696
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
676
697
  DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
677
698
 
678
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
699
+ config_attr :endpoint, nil, ::String, nil
679
700
  config_attr :credentials, nil do |value|
680
701
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
681
702
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -690,6 +711,7 @@ module Google
690
711
  config_attr :metadata, nil, ::Hash, nil
691
712
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
692
713
  config_attr :quota_project, nil, ::String, nil
714
+ config_attr :universe_domain, nil, ::String, nil
693
715
 
694
716
  # @private
695
717
  def initialize parent_config = nil
@@ -32,6 +32,9 @@ module Google
32
32
  # TensorboardService
33
33
  #
34
34
  class Client
35
+ # @private
36
+ DEFAULT_ENDPOINT_TEMPLATE = "aiplatform.$UNIVERSE_DOMAIN$"
37
+
35
38
  include Paths
36
39
 
37
40
  # @private
@@ -92,6 +95,15 @@ module Google
92
95
  @config
93
96
  end
94
97
 
98
+ ##
99
+ # The effective universe domain
100
+ #
101
+ # @return [String]
102
+ #
103
+ def universe_domain
104
+ @tensorboard_service_stub.universe_domain
105
+ end
106
+
95
107
  ##
96
108
  # Create a new TensorboardService client object.
97
109
  #
@@ -125,8 +137,9 @@ module Google
125
137
  credentials = @config.credentials
126
138
  # Use self-signed JWT if the endpoint is unchanged from default,
127
139
  # but only if the default endpoint does not have a region prefix.
128
- enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
129
- !@config.endpoint.split(".").first.include?("-")
140
+ enable_self_signed_jwt = @config.endpoint.nil? ||
141
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
142
+ !@config.endpoint.split(".").first.include?("-"))
130
143
  credentials ||= Credentials.default scope: @config.scope,
131
144
  enable_self_signed_jwt: enable_self_signed_jwt
132
145
  if credentials.is_a?(::String) || credentials.is_a?(::Hash)
@@ -139,28 +152,33 @@ module Google
139
152
  config.credentials = credentials
140
153
  config.quota_project = @quota_project_id
141
154
  config.endpoint = @config.endpoint
155
+ config.universe_domain = @config.universe_domain
142
156
  end
143
157
 
158
+ @tensorboard_service_stub = ::Gapic::ServiceStub.new(
159
+ ::Google::Cloud::AIPlatform::V1::TensorboardService::Stub,
160
+ credentials: credentials,
161
+ endpoint: @config.endpoint,
162
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
163
+ universe_domain: @config.universe_domain,
164
+ channel_args: @config.channel_args,
165
+ interceptors: @config.interceptors,
166
+ channel_pool_config: @config.channel_pool
167
+ )
168
+
144
169
  @location_client = Google::Cloud::Location::Locations::Client.new do |config|
145
170
  config.credentials = credentials
146
171
  config.quota_project = @quota_project_id
147
- config.endpoint = @config.endpoint
172
+ config.endpoint = @tensorboard_service_stub.endpoint
173
+ config.universe_domain = @tensorboard_service_stub.universe_domain
148
174
  end
149
175
 
150
176
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
151
177
  config.credentials = credentials
152
178
  config.quota_project = @quota_project_id
153
- config.endpoint = @config.endpoint
179
+ config.endpoint = @tensorboard_service_stub.endpoint
180
+ config.universe_domain = @tensorboard_service_stub.universe_domain
154
181
  end
155
-
156
- @tensorboard_service_stub = ::Gapic::ServiceStub.new(
157
- ::Google::Cloud::AIPlatform::V1::TensorboardService::Stub,
158
- credentials: credentials,
159
- endpoint: @config.endpoint,
160
- channel_args: @config.channel_args,
161
- interceptors: @config.interceptors,
162
- channel_pool_config: @config.channel_pool
163
- )
164
182
  end
165
183
 
166
184
  ##
@@ -3100,9 +3118,9 @@ module Google
3100
3118
  # end
3101
3119
  #
3102
3120
  # @!attribute [rw] endpoint
3103
- # The hostname or hostname:port of the service endpoint.
3104
- # Defaults to `"aiplatform.googleapis.com"`.
3105
- # @return [::String]
3121
+ # A custom service endpoint, as a hostname or hostname:port. The default is
3122
+ # nil, indicating to use the default endpoint in the current universe domain.
3123
+ # @return [::String,nil]
3106
3124
  # @!attribute [rw] credentials
3107
3125
  # Credentials to send with calls. You may provide any of the following types:
3108
3126
  # * (`String`) The path to a service account key file in JSON format
@@ -3148,13 +3166,20 @@ module Google
3148
3166
  # @!attribute [rw] quota_project
3149
3167
  # A separate project against which to charge quota.
3150
3168
  # @return [::String]
3169
+ # @!attribute [rw] universe_domain
3170
+ # The universe domain within which to make requests. This determines the
3171
+ # default endpoint URL. The default value of nil uses the environment
3172
+ # universe (usually the default "googleapis.com" universe).
3173
+ # @return [::String,nil]
3151
3174
  #
3152
3175
  class Configuration
3153
3176
  extend ::Gapic::Config
3154
3177
 
3178
+ # @private
3179
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
3155
3180
  DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
3156
3181
 
3157
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
3182
+ config_attr :endpoint, nil, ::String, nil
3158
3183
  config_attr :credentials, nil do |value|
3159
3184
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3160
3185
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -3169,6 +3194,7 @@ module Google
3169
3194
  config_attr :metadata, nil, ::Hash, nil
3170
3195
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
3171
3196
  config_attr :quota_project, nil, ::String, nil
3197
+ config_attr :universe_domain, nil, ::String, nil
3172
3198
 
3173
3199
  # @private
3174
3200
  def initialize parent_config = nil
@@ -26,6 +26,9 @@ module Google
26
26
  module TensorboardService
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ DEFAULT_ENDPOINT_TEMPLATE = "aiplatform.$UNIVERSE_DOMAIN$"
31
+
29
32
  # @private
30
33
  attr_reader :operations_stub
31
34
 
@@ -60,6 +63,15 @@ module Google
60
63
  @config
61
64
  end
62
65
 
66
+ ##
67
+ # The effective universe domain
68
+ #
69
+ # @return [String]
70
+ #
71
+ def universe_domain
72
+ @operations_stub.universe_domain
73
+ end
74
+
63
75
  ##
64
76
  # Create a new Operations client object.
65
77
  #
@@ -90,8 +102,10 @@ module Google
90
102
 
91
103
  @operations_stub = ::Gapic::ServiceStub.new(
92
104
  ::Google::Longrunning::Operations::Stub,
93
- credentials: credentials,
94
- endpoint: @config.endpoint,
105
+ credentials: credentials,
106
+ endpoint: @config.endpoint,
107
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
108
+ universe_domain: @config.universe_domain,
95
109
  channel_args: @config.channel_args,
96
110
  interceptors: @config.interceptors,
97
111
  channel_pool_config: @config.channel_pool
@@ -621,9 +635,9 @@ module Google
621
635
  # end
622
636
  #
623
637
  # @!attribute [rw] endpoint
624
- # The hostname or hostname:port of the service endpoint.
625
- # Defaults to `"aiplatform.googleapis.com"`.
626
- # @return [::String]
638
+ # A custom service endpoint, as a hostname or hostname:port. The default is
639
+ # nil, indicating to use the default endpoint in the current universe domain.
640
+ # @return [::String,nil]
627
641
  # @!attribute [rw] credentials
628
642
  # Credentials to send with calls. You may provide any of the following types:
629
643
  # * (`String`) The path to a service account key file in JSON format
@@ -669,13 +683,20 @@ module Google
669
683
  # @!attribute [rw] quota_project
670
684
  # A separate project against which to charge quota.
671
685
  # @return [::String]
686
+ # @!attribute [rw] universe_domain
687
+ # The universe domain within which to make requests. This determines the
688
+ # default endpoint URL. The default value of nil uses the environment
689
+ # universe (usually the default "googleapis.com" universe).
690
+ # @return [::String,nil]
672
691
  #
673
692
  class Configuration
674
693
  extend ::Gapic::Config
675
694
 
695
+ # @private
696
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
676
697
  DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
677
698
 
678
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
699
+ config_attr :endpoint, nil, ::String, nil
679
700
  config_attr :credentials, nil do |value|
680
701
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
681
702
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -690,6 +711,7 @@ module Google
690
711
  config_attr :metadata, nil, ::Hash, nil
691
712
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
692
713
  config_attr :quota_project, nil, ::String, nil
714
+ config_attr :universe_domain, nil, ::String, nil
693
715
 
694
716
  # @private
695
717
  def initialize parent_config = nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AIPlatform
23
23
  module V1
24
- VERSION = "0.35.0"
24
+ VERSION = "0.36.0"
25
25
  end
26
26
  end
27
27
  end