Skip to content

Commit 94f1701

Browse files
authored
Final* go rewrite services (#11593)
1 parent a418375 commit 94f1701

File tree

76 files changed

+5103
-248
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+5103
-248
lines changed

mmv1/products/activedirectory/go_Domain.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ virtual_fields:
6464
When the field is set to false, deleting the domain is allowed.
6565
custom_code:
6666
custom_import: 'templates/terraform/custom_import/go/self_link_as_name.tmpl'
67-
pre_delete: 'templates/terraform/pre_delete/go/active_directory_domain.tmpl'
67+
pre_delete: 'templates/terraform/pre_delete/go/active_directory_domain.go.tmpl'
6868
error_abort_predicates:
6969

7070
- 'transport_tpg.Is429QuotaError'

mmv1/products/compute/go_ForwardingRule.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async:
4747
message: 'message'
4848
collection_url_key: 'items'
4949
custom_code:
50-
pre_create: templates/terraform/pre_create/compute_forwarding_rule.go.tmpl
50+
pre_create: 'templates/terraform/pre_create/go/compute_forwarding_rule.go.tmpl'
5151
constants: 'templates/terraform/constants/go/compute_forwarding_rule.go.tmpl'
5252
post_create: 'templates/terraform/post_create/go/labels.tmpl'
5353
custom_diff:

mmv1/products/dlp/go_DiscoveryConfig.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ timeouts:
3232
insert_minutes: 20
3333
update_minutes: 20
3434
delete_minutes: 20
35+
skip_sweeper: true
3536
custom_code:
3637
encoder: 'templates/terraform/encoders/go/wrap_object.go.tmpl'
3738
update_encoder: 'templates/terraform/encoders/go/wrap_object.go.tmpl'

mmv1/products/netapp/activeDirectory.yaml renamed to mmv1/products/netapp/ActiveDirectory.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# limitations under the License.
1313

1414
--- !ruby/object:Api::Resource
15-
name: 'activeDirectory'
15+
name: 'ActiveDirectory'
1616
description: |
1717
ActiveDirectory is the public representation of the active directory config.
1818
references: !ruby/object:Api::Resource::ReferenceLinks

mmv1/products/netapp/Backup.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# limitations under the License.
1313

1414
--- !ruby/object:Api::Resource
15-
name: 'backup'
15+
name: 'Backup'
1616
description: |
1717
NetApp Volumes supports volume backups, which are copies of your volumes
1818
stored independently from the volume. Backups are stored in backup vaults,

mmv1/products/netapp/backupPolicy.yaml renamed to mmv1/products/netapp/BackupPolicy.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# limitations under the License.
1313

1414
--- !ruby/object:Api::Resource
15-
name: 'backupPolicy'
15+
name: 'BackupPolicy'
1616
description: |
1717
A backup policy is used to schedule backups at regular daily, weekly, or monthly intervals.
1818
Backup policies allow you to attach a backup schedule to a volume.

mmv1/products/netapp/backupVault.yaml renamed to mmv1/products/netapp/BackupVault.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# limitations under the License.
1313

1414
--- !ruby/object:Api::Resource
15-
name: 'backupVault'
15+
name: 'BackupVault'
1616
description: |
1717
A backup vault is the location where backups are stored. You can only create one backup vault per region.
1818
A vault can hold multiple backups for multiple volumes in that region.

mmv1/products/netapp/storagePool.yaml renamed to mmv1/products/netapp/StoragePool.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# limitations under the License.
1313

1414
--- !ruby/object:Api::Resource
15-
name: 'storagePool'
15+
name: 'StoragePool'
1616
description: |
1717
Storage pools act as containers for volumes. All volumes in a storage pool share the following information:
1818
* Location
File renamed without changes.

mmv1/products/netapp/go_activeDirectory.yaml renamed to mmv1/products/netapp/go_ActiveDirectory.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# Warning: This is a temporary file, and should not be edited directly
1515
---
16-
name: 'activeDirectory'
16+
name: 'ActiveDirectory'
1717
description: |
1818
ActiveDirectory is the public representation of the active directory config.
1919
references:
@@ -44,6 +44,7 @@ async:
4444
result:
4545
resource_inside_response: false
4646
custom_code:
47+
skip_sweeper: true
4748
examples:
4849
- name: 'netapp_active_directory_full'
4950
primary_resource_id: 'test_active_directory_full'

mmv1/products/netapp/go_backup.yaml renamed to mmv1/products/netapp/go_Backup.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# Warning: This is a temporary file, and should not be edited directly
1515
---
16-
name: 'backup'
16+
name: 'Backup'
1717
description: |
1818
NetApp Volumes supports volume backups, which are copies of your volumes
1919
stored independently from the volume. Backups are stored in backup vaults,
@@ -57,6 +57,7 @@ async:
5757
result:
5858
resource_inside_response: false
5959
custom_code:
60+
skip_sweeper: true
6061
examples:
6162
- name: 'netapp_backup'
6263
primary_resource_id: 'test_backup'

mmv1/products/netapp/go_backupPolicy.yaml renamed to mmv1/products/netapp/go_BackupPolicy.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# Warning: This is a temporary file, and should not be edited directly
1515
---
16-
name: 'backupPolicy'
16+
name: 'BackupPolicy'
1717
description: |
1818
A backup policy is used to schedule backups at regular daily, weekly, or monthly intervals.
1919
Backup policies allow you to attach a backup schedule to a volume.
@@ -46,6 +46,7 @@ async:
4646
result:
4747
resource_inside_response: false
4848
custom_code:
49+
skip_sweeper: true
4950
examples:
5051
- name: 'netapp_backup_policy_full'
5152
primary_resource_id: 'test_backup_policy_full'

mmv1/products/netapp/go_backupVault.yaml renamed to mmv1/products/netapp/go_BackupVault.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# Warning: This is a temporary file, and should not be edited directly
1515
---
16-
name: 'backupVault'
16+
name: 'BackupVault'
1717
description: |
1818
A backup vault is the location where backups are stored. You can only create one backup vault per region.
1919
A vault can hold multiple backups for multiple volumes in that region.
@@ -45,6 +45,7 @@ async:
4545
result:
4646
resource_inside_response: false
4747
custom_code:
48+
skip_sweeper: true
4849
examples:
4950
- name: 'netapp_backup_vault'
5051
primary_resource_id: 'test_backup_vault'

mmv1/products/netapp/go_storagePool.yaml renamed to mmv1/products/netapp/go_StoragePool.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# Warning: This is a temporary file, and should not be edited directly
1515
---
16-
name: 'storagePool'
16+
name: 'StoragePool'
1717
description: |
1818
Storage pools act as containers for volumes. All volumes in a storage pool share the following information:
1919
* Location
@@ -68,6 +68,7 @@ async:
6868
resource_inside_response: false
6969
custom_code:
7070
pre_update: 'templates/terraform/pre_update/go/netapp_storagepool.go.tmpl'
71+
skip_sweeper: true
7172
examples:
7273
- name: 'Storage_pool_create'
7374
primary_resource_id: 'test_pool'

mmv1/products/netapp/go_VolumeReplication.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,12 @@ properties:
204204
- name: 'transferBytes'
205205
type: String
206206
description: |
207-
Number of bytes transferred so far in current transfer.
207+
Cumulative bytes transferred so far for the replication relationship.
208208
output: true
209209
- name: 'totalTransferDuration'
210210
type: String
211211
description: |
212-
Total time taken so far during current transfer.
212+
Cumulative time taken across all transfers for the replication relationship.
213213
output: true
214214
- name: 'lastTransferBytes'
215215
type: String

mmv1/products/netapp/go_VolumeSnapshot.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ async:
4545
result:
4646
resource_inside_response: false
4747
custom_code:
48+
skip_sweeper: true
4849
examples:
4950
- name: 'volume_snapshot_create'
5051
primary_resource_id: 'test_snapshot'

mmv1/products/netapp/go_kmsconfig.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ async:
4646
resource_inside_response: false
4747
custom_code:
4848
post_create: 'templates/terraform/post_create/go/KMS_Verify.go.tmpl'
49+
skip_sweeper: true
4950
examples:
5051
- name: 'kmsConfig_create'
5152
primary_resource_id: 'kmsConfig'

mmv1/products/notebooks/Location.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,4 @@ properties:
2323
- !ruby/object:Api::Type::String
2424
name: 'name'
2525
description: 'Name of the Location resource.'
26-
2726
custom_flatten: templates/terraform/custom_flatten/name_from_self_link.erb

0 commit comments

Comments
 (0)