summaryrefslogtreecommitdiff
path: root/lib/google_api
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-09-26 02:11:26 +0900
committerShinya Maeda <shinya@gitlab.com>2017-09-26 02:11:26 +0900
commitbdc618c289b8c2b996a3ef92b7748966c311d28a (patch)
tree62fbc8778f67c14c907b50504c051433bd4536f8 /lib/google_api
parentcf8140a752afe9a00197b11c9f9d38098717e6df (diff)
downloadgitlab-ce-bdc618c289b8c2b996a3ef92b7748966c311d28a.tar.gz
ok
Diffstat (limited to 'lib/google_api')
-rw-r--r--lib/google_api/cloud_platform/client.rb19
1 files changed, 17 insertions, 2 deletions
diff --git a/lib/google_api/cloud_platform/client.rb b/lib/google_api/cloud_platform/client.rb
index 2c2aefc542c..f2305eab3b7 100644
--- a/lib/google_api/cloud_platform/client.rb
+++ b/lib/google_api/cloud_platform/client.rb
@@ -2,6 +2,13 @@ module GoogleApi
module CloudPlatform
class Client < GoogleApi::Authentication
# Google::Apis::ContainerV1::ContainerService.new
+
+ class << self
+ def token_in_session
+ :cloud_platform_access_token
+ end
+ end
+
def scope
'https://www.googleapis.com/auth/cloud-platform'
end
@@ -16,8 +23,16 @@ module GoogleApi
response
end
- def projects_zones_clusters_create
- # TODO
+ def projects_zones_clusters_create(gcp_project_id, cluster_zone, cluster_name, cluster_size)
+ # TODO: Google::Apis::ContainerV1::ContainerService.new
+
+ # TODO: Debug
+ {
+ 'end_point' => '111.111.111.111',
+ 'ca_cert' => 'XXXXXXXXXXXXXXXXXX',
+ 'username' => 'AAA',
+ 'password' => 'BBB'
+ }
end
end
end