diff options
author | Matija Čupić <matteeyah@gmail.com> | 2017-12-04 02:19:02 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2017-12-04 02:19:02 +0100 |
commit | 68b43f4d9c5dbc2d8264e5cadb7417e21ac0ed27 (patch) | |
tree | d8f5465f931f389b22e52e7e6e425310152caeb9 /lib | |
parent | 04c6d102616b48c95b09656efc720c7dfdc99d8a (diff) | |
download | gitlab-ce-68b43f4d9c5dbc2d8264e5cadb7417e21ac0ed27.tar.gz |
Test usage of custom user agent in GCP Client
Diffstat (limited to 'lib')
-rw-r--r-- | lib/google_api/cloud_platform/client.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/google_api/cloud_platform/client.rb b/lib/google_api/cloud_platform/client.rb index 15401057903..36be6b7e97a 100644 --- a/lib/google_api/cloud_platform/client.rb +++ b/lib/google_api/cloud_platform/client.rb @@ -44,7 +44,7 @@ module GoogleApi service = Google::Apis::ContainerV1::ContainerService.new service.authorization = access_token - service.get_zone_cluster(project_id, zone, cluster_id) + service.get_zone_cluster(project_id, zone, cluster_id, options: user_agent_header) end def projects_zones_clusters_create(project_id, zone, cluster_name, cluster_size, machine_type:) @@ -62,14 +62,14 @@ module GoogleApi } } ) - service.create_cluster(project_id, zone, request_body) + service.create_cluster(project_id, zone, request_body, options: user_agent_header) end def projects_zones_operations(project_id, zone, operation_id) service = Google::Apis::ContainerV1::ContainerService.new service.authorization = access_token - service.get_zone_operation(project_id, zone, operation_id) + service.get_zone_operation(project_id, zone, operation_id, options: user_agent_header) end def parse_operation_id(self_link) |