Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Osconfig resource (alpha) #10250

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/5266.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
4 changes: 2 additions & 2 deletions google/resource_assured_workloads_workload.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,12 +458,12 @@ func flattenAssuredWorkloadsWorkloadKmsSettings(obj *assuredworkloads.WorkloadKm
}
func expandAssuredWorkloadsWorkloadResourceSettingsArray(o interface{}) []assuredworkloads.WorkloadResourceSettings {
if o == nil {
return nil
return make([]assuredworkloads.WorkloadResourceSettings, 0)
}

objs := o.([]interface{})
if len(objs) == 0 {
return nil
return make([]assuredworkloads.WorkloadResourceSettings, 0)
}

items := make([]assuredworkloads.WorkloadResourceSettings, 0, len(objs))
Expand Down
4 changes: 2 additions & 2 deletions google/resource_compute_firewall_policy_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,12 +419,12 @@ func flattenComputeFirewallPolicyRuleMatch(obj *compute.FirewallPolicyRuleMatch)
}
func expandComputeFirewallPolicyRuleMatchLayer4ConfigsArray(o interface{}) []compute.FirewallPolicyRuleMatchLayer4Configs {
if o == nil {
return nil
return make([]compute.FirewallPolicyRuleMatchLayer4Configs, 0)
}

objs := o.([]interface{})
if len(objs) == 0 {
return nil
return make([]compute.FirewallPolicyRuleMatchLayer4Configs, 0)
}

items := make([]compute.FirewallPolicyRuleMatchLayer4Configs, 0, len(objs))
Expand Down
8 changes: 4 additions & 4 deletions google/resource_compute_global_forwarding_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,12 +445,12 @@ func resourceComputeGlobalForwardingRuleImport(d *schema.ResourceData, meta inte

func expandComputeGlobalForwardingRuleMetadataFilterArray(o interface{}) []compute.ForwardingRuleMetadataFilter {
if o == nil {
return nil
return make([]compute.ForwardingRuleMetadataFilter, 0)
}

objs := o.([]interface{})
if len(objs) == 0 {
return nil
return make([]compute.ForwardingRuleMetadataFilter, 0)
}

items := make([]compute.ForwardingRuleMetadataFilter, 0, len(objs))
Expand Down Expand Up @@ -502,12 +502,12 @@ func flattenComputeGlobalForwardingRuleMetadataFilter(obj *compute.ForwardingRul
}
func expandComputeGlobalForwardingRuleMetadataFilterFilterLabelArray(o interface{}) []compute.ForwardingRuleMetadataFilterFilterLabel {
if o == nil {
return nil
return make([]compute.ForwardingRuleMetadataFilterFilterLabel, 0)
}

objs := o.([]interface{})
if len(objs) == 0 {
return nil
return make([]compute.ForwardingRuleMetadataFilterFilterLabel, 0)
}

items := make([]compute.ForwardingRuleMetadataFilterFilterLabel, 0, len(objs))
Expand Down
12 changes: 6 additions & 6 deletions google/resource_dataproc_workflow_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -1920,12 +1920,12 @@ func resourceDataprocWorkflowTemplateImport(d *schema.ResourceData, meta interfa

func expandDataprocWorkflowTemplateJobsArray(o interface{}) []dataproc.WorkflowTemplateJobs {
if o == nil {
return nil
return make([]dataproc.WorkflowTemplateJobs, 0)
}

objs := o.([]interface{})
if len(objs) == 0 {
return nil
return make([]dataproc.WorkflowTemplateJobs, 0)
}

items := make([]dataproc.WorkflowTemplateJobs, 0, len(objs))
Expand Down Expand Up @@ -2701,12 +2701,12 @@ func flattenDataprocWorkflowTemplatePlacementManagedCluster(obj *dataproc.Workfl
}
func expandDataprocWorkflowTemplateParametersArray(o interface{}) []dataproc.WorkflowTemplateParameters {
if o == nil {
return nil
return make([]dataproc.WorkflowTemplateParameters, 0)
}

objs := o.([]interface{})
if len(objs) == 0 {
return nil
return make([]dataproc.WorkflowTemplateParameters, 0)
}

items := make([]dataproc.WorkflowTemplateParameters, 0, len(objs))
Expand Down Expand Up @@ -3214,12 +3214,12 @@ func flattenDataprocWorkflowTemplateClusterClusterConfigGceClusterConfigReservat
}
func expandDataprocWorkflowTemplateClusterClusterConfigInitializationActionsArray(o interface{}) []dataproc.ClusterClusterConfigInitializationActions {
if o == nil {
return nil
return make([]dataproc.ClusterClusterConfigInitializationActions, 0)
}

objs := o.([]interface{})
if len(objs) == 0 {
return nil
return make([]dataproc.ClusterClusterConfigInitializationActions, 0)
}

items := make([]dataproc.ClusterClusterConfigInitializationActions, 0, len(objs))
Expand Down
4 changes: 2 additions & 2 deletions google/resource_eventarc_trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -515,14 +515,14 @@ func flattenEventarcTriggerDestinationCloudRunService(obj *eventarc.TriggerDesti
}
func expandEventarcTriggerMatchingCriteriaArray(o interface{}) []eventarc.TriggerMatchingCriteria {
if o == nil {
return nil
return make([]eventarc.TriggerMatchingCriteria, 0)
}

o = o.(*schema.Set).List()

objs := o.([]interface{})
if len(objs) == 0 {
return nil
return make([]eventarc.TriggerMatchingCriteria, 0)
}

items := make([]eventarc.TriggerMatchingCriteria, 0, len(objs))
Expand Down
4 changes: 2 additions & 2 deletions google/resource_org_policy_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,12 +381,12 @@ func flattenOrgPolicyPolicySpec(obj *orgpolicy.PolicySpec) interface{} {
}
func expandOrgPolicyPolicySpecRulesArray(o interface{}) []orgpolicy.PolicySpecRules {
if o == nil {
return nil
return make([]orgpolicy.PolicySpecRules, 0)
}

objs := o.([]interface{})
if len(objs) == 0 {
return nil
return make([]orgpolicy.PolicySpecRules, 0)
}

items := make([]orgpolicy.PolicySpecRules, 0, len(objs))
Expand Down
16 changes: 8 additions & 8 deletions google/resource_privateca_certificate_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -774,12 +774,12 @@ func flattenPrivatecaCertificateTemplatePassthroughExtensions(obj *privateca.Cer
}
func expandPrivatecaCertificateTemplatePassthroughExtensionsAdditionalExtensionsArray(o interface{}) []privateca.CertificateTemplatePassthroughExtensionsAdditionalExtensions {
if o == nil {
return nil
return make([]privateca.CertificateTemplatePassthroughExtensionsAdditionalExtensions, 0)
}

objs := o.([]interface{})
if len(objs) == 0 {
return nil
return make([]privateca.CertificateTemplatePassthroughExtensionsAdditionalExtensions, 0)
}

items := make([]privateca.CertificateTemplatePassthroughExtensionsAdditionalExtensions, 0, len(objs))
Expand Down Expand Up @@ -863,12 +863,12 @@ func flattenPrivatecaCertificateTemplatePredefinedValues(obj *privateca.Certific
}
func expandPrivatecaCertificateTemplatePredefinedValuesAdditionalExtensionsArray(o interface{}) []privateca.CertificateTemplatePredefinedValuesAdditionalExtensions {
if o == nil {
return nil
return make([]privateca.CertificateTemplatePredefinedValuesAdditionalExtensions, 0)
}

objs := o.([]interface{})
if len(objs) == 0 {
return nil
return make([]privateca.CertificateTemplatePredefinedValuesAdditionalExtensions, 0)
}

items := make([]privateca.CertificateTemplatePredefinedValuesAdditionalExtensions, 0, len(objs))
Expand Down Expand Up @@ -1084,12 +1084,12 @@ func flattenPrivatecaCertificateTemplatePredefinedValuesKeyUsageExtendedKeyUsage
}
func expandPrivatecaCertificateTemplatePredefinedValuesKeyUsageUnknownExtendedKeyUsagesArray(o interface{}) []privateca.CertificateTemplatePredefinedValuesKeyUsageUnknownExtendedKeyUsages {
if o == nil {
return nil
return make([]privateca.CertificateTemplatePredefinedValuesKeyUsageUnknownExtendedKeyUsages, 0)
}

objs := o.([]interface{})
if len(objs) == 0 {
return nil
return make([]privateca.CertificateTemplatePredefinedValuesKeyUsageUnknownExtendedKeyUsages, 0)
}

items := make([]privateca.CertificateTemplatePredefinedValuesKeyUsageUnknownExtendedKeyUsages, 0, len(objs))
Expand Down Expand Up @@ -1139,12 +1139,12 @@ func flattenPrivatecaCertificateTemplatePredefinedValuesKeyUsageUnknownExtendedK
}
func expandPrivatecaCertificateTemplatePredefinedValuesPolicyIdsArray(o interface{}) []privateca.CertificateTemplatePredefinedValuesPolicyIds {
if o == nil {
return nil
return make([]privateca.CertificateTemplatePredefinedValuesPolicyIds, 0)
}

objs := o.([]interface{})
if len(objs) == 0 {
return nil
return make([]privateca.CertificateTemplatePredefinedValuesPolicyIds, 0)
}

items := make([]privateca.CertificateTemplatePredefinedValuesPolicyIds, 0, len(objs))
Expand Down