fog-google 1.19.0 → 1.24.1
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.
- checksums.yaml +4 -4
- data/.github/workflows/integration-compute-core.yml +54 -0
- data/.github/workflows/integration-compute-instance_groups.yml +55 -0
- data/.github/workflows/integration-compute-loadbalancing.yml +54 -0
- data/.github/workflows/integration-compute-networking.yml +53 -0
- data/.github/workflows/integration-monitoring.yml +54 -0
- data/.github/workflows/integration-pubsub.yml +54 -0
- data/.github/workflows/integration-sql.yml +54 -0
- data/.github/workflows/integration-storage.yml +55 -0
- data/.github/workflows/stale.yml +2 -2
- data/.github/workflows/unit.yml +7 -2
- data/.ruby-version +1 -0
- data/CHANGELOG.md +112 -0
- data/README.md +3 -3
- data/examples/create_instance.rb +1 -1
- data/examples/create_instance_and_attach_disk_later.rb +86 -0
- data/examples/create_instance_with_attached_disk.rb +1 -1
- data/examples/get_list_images.rb +1 -1
- data/examples/load-balance.rb +1 -1
- data/examples/metadata.rb +1 -1
- data/examples/network.rb +1 -1
- data/fog-google.gemspec +12 -10
- data/lib/fog/compute/google/models/addresses.rb +17 -8
- data/lib/fog/compute/google/models/disk_types.rb +17 -7
- data/lib/fog/compute/google/models/disks.rb +23 -8
- data/lib/fog/compute/google/models/firewalls.rb +11 -2
- data/lib/fog/compute/google/models/forwarding_rules.rb +16 -10
- data/lib/fog/compute/google/models/global_addresses.rb +11 -2
- data/lib/fog/compute/google/models/global_forwarding_rules.rb +11 -2
- data/lib/fog/compute/google/models/http_health_checks.rb +12 -3
- data/lib/fog/compute/google/models/images.rb +15 -8
- data/lib/fog/compute/google/models/instance_group_managers.rb +17 -9
- data/lib/fog/compute/google/models/instance_groups.rb +16 -8
- data/lib/fog/compute/google/models/instance_templates.rb +12 -3
- data/lib/fog/compute/google/models/machine_types.rb +17 -8
- data/lib/fog/compute/google/models/networks.rb +12 -3
- data/lib/fog/compute/google/models/operations.rb +22 -8
- data/lib/fog/compute/google/models/regions.rb +12 -3
- data/lib/fog/compute/google/models/routes.rb +12 -3
- data/lib/fog/compute/google/models/server.rb +4 -4
- data/lib/fog/compute/google/models/servers.rb +23 -9
- data/lib/fog/compute/google/models/ssl_certificates.rb +12 -3
- data/lib/fog/compute/google/models/subnetworks.rb +16 -8
- data/lib/fog/compute/google/models/target_http_proxies.rb +12 -3
- data/lib/fog/compute/google/models/target_https_proxies.rb +12 -3
- data/lib/fog/compute/google/models/target_instances.rb +16 -8
- data/lib/fog/compute/google/models/target_pools.rb +16 -8
- data/lib/fog/compute/google/models/url_maps.rb +12 -3
- data/lib/fog/compute/google/models/zones.rb +12 -3
- data/lib/fog/compute/google/requests/insert_server.rb +1 -1
- data/lib/fog/compute/google/requests/stop_server.rb +2 -2
- data/lib/fog/google/shared.rb +9 -8
- data/lib/fog/google/version.rb +1 -1
- data/lib/fog/storage/google_json/models/file.rb +7 -2
- data/lib/fog/storage/google_json/real.rb +16 -7
- data/lib/fog/storage/google_json/utils.rb +3 -4
- data/lib/fog/storage/google_json.rb +1 -1
- data/test/helpers/integration_test_helper.rb +3 -3
- data/test/integration/compute/core_compute/test_servers.rb +86 -0
- data/test/integration/monitoring/test_timeseries.rb +29 -14
- data/test/integration/storage/test_objects.rb +1 -0
- data/test/unit/compute/test_common_collections.rb +1 -1
- data/test/unit/compute/test_common_models.rb +1 -1
- data/test/unit/compute/test_disk.rb +26 -0
- data/test/unit/compute/test_server.rb +1 -1
- data/test/unit/dns/test_common_collections.rb +1 -1
- data/test/unit/monitoring/test_comon_collections.rb +1 -1
- data/test/unit/pubsub/test_common_collections.rb +1 -1
- data/test/unit/sql/test_common_collections.rb +1 -1
- data/test/unit/storage/test_common_json_collections.rb +1 -1
- data/test/unit/storage/test_common_xml_collections.rb +1 -1
- data/test/unit/storage/test_json_requests.rb +9 -1
- data/test/unit/storage/test_xml_requests.rb +1 -1
- metadata +63 -26
- data/.github/workflows/integration.yml +0 -225
@@ -1,225 +0,0 @@
|
|
1
|
-
name: integration-tests
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches: [ master ]
|
6
|
-
pull_request:
|
7
|
-
branches: [ master ]
|
8
|
-
types: [ assigned, opened, synchronize, reopened, labeled ]
|
9
|
-
|
10
|
-
jobs:
|
11
|
-
test-compute-core:
|
12
|
-
runs-on: self-hosted
|
13
|
-
strategy:
|
14
|
-
matrix:
|
15
|
-
ruby-version: [ '2.7', '3.0', '3.1' ]
|
16
|
-
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
17
|
-
max-parallel: 1
|
18
|
-
|
19
|
-
steps:
|
20
|
-
- uses: actions/checkout@v2.4.0
|
21
|
-
- name: Set up Ruby
|
22
|
-
uses: ruby/setup-ruby@v1
|
23
|
-
env:
|
24
|
-
# Needs to be set up for self-hosted runners, see:
|
25
|
-
# https://github.com/ruby/setup-ruby#using-self-hosted-runners
|
26
|
-
# Image used in runners: summerwind/actions-runner
|
27
|
-
ImageOS: ubuntu20
|
28
|
-
with:
|
29
|
-
ruby-version: ${{ matrix.ruby-version }}
|
30
|
-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
31
|
-
- name: Install dependencies
|
32
|
-
run: bundle install
|
33
|
-
- name: Run tests
|
34
|
-
run: >-
|
35
|
-
./.github/scripts/setup_creds.sh &&
|
36
|
-
bundle exec rake test:compute-core_compute
|
37
|
-
|
38
|
-
test-compute-networking:
|
39
|
-
runs-on: self-hosted
|
40
|
-
strategy:
|
41
|
-
matrix:
|
42
|
-
ruby-version: [ '2.7', '3.0', '3.1' ]
|
43
|
-
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
44
|
-
max-parallel: 1
|
45
|
-
|
46
|
-
steps:
|
47
|
-
- uses: actions/checkout@v2.4.0
|
48
|
-
- name: Set up Ruby
|
49
|
-
uses: ruby/setup-ruby@v1
|
50
|
-
env:
|
51
|
-
# Needs to be set up for self-hosted runners, see:
|
52
|
-
# https://github.com/ruby/setup-ruby#using-self-hosted-runners
|
53
|
-
# Image used in runners: summerwind/actions-runner
|
54
|
-
ImageOS: ubuntu20
|
55
|
-
with:
|
56
|
-
ruby-version: ${{ matrix.ruby-version }}
|
57
|
-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
58
|
-
- name: Install dependencies
|
59
|
-
run: bundle install
|
60
|
-
- name: Run tests
|
61
|
-
run: >-
|
62
|
-
./.github/scripts/setup_creds.sh &&
|
63
|
-
bundle exec rake test:compute-core_networking
|
64
|
-
|
65
|
-
test-compute-instance_groups:
|
66
|
-
runs-on: self-hosted
|
67
|
-
strategy:
|
68
|
-
matrix:
|
69
|
-
ruby-version: [ '2.7', '3.0', '3.1' ]
|
70
|
-
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
71
|
-
max-parallel: 1
|
72
|
-
|
73
|
-
steps:
|
74
|
-
- uses: actions/checkout@v2.4.0
|
75
|
-
- name: Set up Ruby
|
76
|
-
uses: ruby/setup-ruby@v1
|
77
|
-
env:
|
78
|
-
# Needs to be set up for self-hosted runners, see:
|
79
|
-
# https://github.com/ruby/setup-ruby#using-self-hosted-runners
|
80
|
-
# Image used in runners: summerwind/actions-runner
|
81
|
-
ImageOS: ubuntu20
|
82
|
-
with:
|
83
|
-
ruby-version: ${{ matrix.ruby-version }}
|
84
|
-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
85
|
-
- name: Install dependencies
|
86
|
-
run: bundle install
|
87
|
-
- name: Run tests
|
88
|
-
run: >-
|
89
|
-
./.github/scripts/setup_creds.sh &&
|
90
|
-
bundle exec rake test:compute-instance_groups
|
91
|
-
|
92
|
-
test-compute-loadbalancing:
|
93
|
-
runs-on: self-hosted
|
94
|
-
strategy:
|
95
|
-
matrix:
|
96
|
-
ruby-version: [ '2.7', '3.0', '3.1' ]
|
97
|
-
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
98
|
-
max-parallel: 1
|
99
|
-
|
100
|
-
steps:
|
101
|
-
- uses: actions/checkout@v2.4.0
|
102
|
-
- name: Set up Ruby
|
103
|
-
uses: ruby/setup-ruby@v1
|
104
|
-
env:
|
105
|
-
# Needs to be set up for self-hosted runners, see:
|
106
|
-
# https://github.com/ruby/setup-ruby#using-self-hosted-runners
|
107
|
-
# Image used in runners: summerwind/actions-runner
|
108
|
-
ImageOS: ubuntu20
|
109
|
-
with:
|
110
|
-
ruby-version: ${{ matrix.ruby-version }}
|
111
|
-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
112
|
-
- name: Install dependencies
|
113
|
-
run: bundle install
|
114
|
-
- name: Run tests
|
115
|
-
run: >-
|
116
|
-
./.github/scripts/setup_creds.sh &&
|
117
|
-
bundle exec rake test:compute-loadbalancing
|
118
|
-
|
119
|
-
test-monitoring:
|
120
|
-
runs-on: self-hosted
|
121
|
-
strategy:
|
122
|
-
matrix:
|
123
|
-
ruby-version: [ '2.7', '3.0', '3.1' ]
|
124
|
-
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
125
|
-
max-parallel: 1
|
126
|
-
|
127
|
-
steps:
|
128
|
-
- uses: actions/checkout@v2.4.0
|
129
|
-
- name: Set up Ruby
|
130
|
-
uses: ruby/setup-ruby@v1
|
131
|
-
env:
|
132
|
-
# Needs to be set up for self-hosted runners, see:
|
133
|
-
# https://github.com/ruby/setup-ruby#using-self-hosted-runners
|
134
|
-
# Image used in runners: summerwind/actions-runner
|
135
|
-
ImageOS: ubuntu20
|
136
|
-
with:
|
137
|
-
ruby-version: ${{ matrix.ruby-version }}
|
138
|
-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
139
|
-
- name: Install dependencies
|
140
|
-
run: bundle install
|
141
|
-
- name: Run tests
|
142
|
-
run: >-
|
143
|
-
./.github/scripts/setup_creds.sh &&
|
144
|
-
bundle exec rake test:monitoring
|
145
|
-
|
146
|
-
test-storage:
|
147
|
-
runs-on: self-hosted
|
148
|
-
strategy:
|
149
|
-
matrix:
|
150
|
-
ruby-version: [ '2.7', '3.0', '3.1' ]
|
151
|
-
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
152
|
-
max-parallel: 1
|
153
|
-
|
154
|
-
steps:
|
155
|
-
- uses: actions/checkout@v2.4.0
|
156
|
-
- name: Set up Ruby
|
157
|
-
uses: ruby/setup-ruby@v1
|
158
|
-
env:
|
159
|
-
# Needs to be set up for self-hosted runners, see:
|
160
|
-
# https://github.com/ruby/setup-ruby#using-self-hosted-runners
|
161
|
-
# Image used in runners: summerwind/actions-runner
|
162
|
-
ImageOS: ubuntu20
|
163
|
-
with:
|
164
|
-
ruby-version: ${{ matrix.ruby-version }}
|
165
|
-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
166
|
-
- name: Install dependencies
|
167
|
-
run: bundle install
|
168
|
-
- name: Run tests
|
169
|
-
run: >-
|
170
|
-
./.github/scripts/setup_creds.sh &&
|
171
|
-
bundle exec rake test:storage
|
172
|
-
|
173
|
-
test-pubsub:
|
174
|
-
runs-on: self-hosted
|
175
|
-
strategy:
|
176
|
-
matrix:
|
177
|
-
ruby-version: [ '2.7', '3.0', '3.1' ]
|
178
|
-
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
179
|
-
max-parallel: 1
|
180
|
-
|
181
|
-
steps:
|
182
|
-
- uses: actions/checkout@v2.4.0
|
183
|
-
- name: Set up Ruby
|
184
|
-
uses: ruby/setup-ruby@v1
|
185
|
-
env:
|
186
|
-
# Needs to be set up for self-hosted runners, see:
|
187
|
-
# https://github.com/ruby/setup-ruby#using-self-hosted-runners
|
188
|
-
# Image used in runners: summerwind/actions-runner
|
189
|
-
ImageOS: ubuntu20
|
190
|
-
with:
|
191
|
-
ruby-version: ${{ matrix.ruby-version }}
|
192
|
-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
193
|
-
- name: Install dependencies
|
194
|
-
run: bundle install
|
195
|
-
- name: Run tests
|
196
|
-
run: >-
|
197
|
-
./.github/scripts/setup_creds.sh &&
|
198
|
-
bundle exec rake test:pubsub
|
199
|
-
|
200
|
-
test-sql:
|
201
|
-
runs-on: self-hosted
|
202
|
-
strategy:
|
203
|
-
matrix:
|
204
|
-
ruby-version: [ '2.7', '3.0', '3.1' ]
|
205
|
-
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
206
|
-
max-parallel: 1
|
207
|
-
|
208
|
-
steps:
|
209
|
-
- uses: actions/checkout@v2.4.0
|
210
|
-
- name: Set up Ruby
|
211
|
-
uses: ruby/setup-ruby@v1
|
212
|
-
env:
|
213
|
-
# Needs to be set up for self-hosted runners, see:
|
214
|
-
# https://github.com/ruby/setup-ruby#using-self-hosted-runners
|
215
|
-
# Image used in runners: summerwind/actions-runner
|
216
|
-
ImageOS: ubuntu20
|
217
|
-
with:
|
218
|
-
ruby-version: ${{ matrix.ruby-version }}
|
219
|
-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
220
|
-
- name: Install dependencies
|
221
|
-
run: bundle install
|
222
|
-
- name: Run tests
|
223
|
-
run: >-
|
224
|
-
./.github/scripts/setup_creds.sh &&
|
225
|
-
bundle exec rake test:sql
|