Ejemplo n.º 1
0
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.CustomerCampaignAssetFieldType: return(s_customerCampaignAssetFieldType.Expand(CustomerId, $"{CampaignId}~{AssetId}~{FieldTypeId}"));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
Ejemplo n.º 2
0
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.CustomerCampaignBudget: return(s_customerCampaignBudget.Expand(CustomerId, CampaignBudgetId));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
Ejemplo n.º 3
0
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.GoogleAdsField: return(s_googleAdsField.Expand(GoogleAdsFieldId));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.CustomerAdGroupAudienceView: return(s_customerAdGroupAudienceView.Expand(CustomerId, AdGroupAudienceViewId));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.CustomerPlaceholderChainDistanceBucket: return(s_customerPlaceholderChainDistanceBucket.Expand(CustomerId, $"{PlaceholderChainId}~{DistanceBucketId}"));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.ProjectPhoneNumberInstance: return(s_projectPhoneNumberInstance.Expand(ProjectId, PhoneNumberInstanceId));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
Ejemplo n.º 7
0
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.GeoTargetConstant: return(s_geoTargetConstant.Expand(GeoTargetConstantId));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
Ejemplo n.º 8
0
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.CustomerKeywordPlanNegativeKeyword: return(s_customerKeywordPlanNegativeKeyword.Expand(CustomerId, KeywordPlanNegativeKeywordId));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
Ejemplo n.º 9
0
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.OrganizationSource: return(s_organizationSource.Expand(OrganizationId, SourceId));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.CustomerCampaignAdGroupBase64SearchTerm: return(s_customerCampaignAdGroupBase64SearchTerm.Expand(CustomerId, $"{CampaignId}~{AdGroupId}~{Base64SearchTermId}"));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.AccountOffer: return(s_accountOffer.Expand(AccountId, OfferId));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
Ejemplo n.º 12
0
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.CustomerClientCustomerManagerLink: return(s_customerClientCustomerManagerLink.Expand(CustomerId, $"{ClientCustomerId}~{ManagerLinkId}"));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.CustomerTimestampMicrosCommandIndexMutateIndex: return(s_customerTimestampMicrosCommandIndexMutateIndex.Expand(CustomerId, $"{TimestampMicrosId}~{CommandIndexId}~{MutateIndexId}"));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
Ejemplo n.º 14
0
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.CustomerThirdPartyAppAnalyticsLink: return(s_customerThirdPartyAppAnalyticsLink.Expand(CustomerId, ThirdPartyAppAnalyticsLinkId));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
Ejemplo n.º 15
0
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.CustomerOfflineUserDataJob: return(s_customerOfflineUserDataJob.Expand(CustomerId, OfflineUserDataJobId));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
Ejemplo n.º 16
0
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.CustomerAdGroupCriterion: return(s_customerAdGroupCriterion.Expand(CustomerId, $"{AdGroupId}~{CriterionId}"));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.ProjectLocationGlossary: return(s_projectLocationGlossary.Expand(ProjectId, LocationId, GlossaryId));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
Ejemplo n.º 18
0
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.ProjectServiceAccount: return(s_projectServiceAccount.Expand(ProjectId, ServiceAccountId));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.ProjectKnowledgeBaseDocument: return(s_projectKnowledgeBaseDocument.Expand(ProjectId, KnowledgeBaseId, DocumentId));

            case ResourceNameType.ProjectLocationKnowledgeBaseDocument: return(s_projectLocationKnowledgeBaseDocument.Expand(ProjectId, LocationId, KnowledgeBaseId, DocumentId));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.RootAItem: return(s_rootAItem.Expand(RootAId, ItemId));

            case ResourceNameType.RootBItem: return(s_rootBItem.Expand(RootBId, ItemId));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.ProjectLocationAgentSession: return(s_projectLocationAgentSession.Expand(ProjectId, LocationId, AgentId, SessionId));

            case ResourceNameType.ProjectLocationAgentEnvironmentSession: return(s_projectLocationAgentEnvironmentSession.Expand(ProjectId, LocationId, AgentId, EnvironmentId, SessionId));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
Ejemplo n.º 22
0
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.ItemAItemBDetailsADetailsBDetailsCExtra: return(s_itemAItemBDetailsADetailsBDetailsCExtra.Expand($"{ItemAId}.{ItemBId}", $"{DetailsAId}_{DetailsBId}-{DetailsCId}", ExtraId));

            case ResourceNameType.AB1B2B3: return(s_aB1B2B3.Expand(AId, $"{B1Id}~{B2Id}~{B3Id}"));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
Ejemplo n.º 23
0
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.ProjectTopic: return(s_projectTopic.Expand(ProjectId, TopicId));

            case ResourceNameType.DeletedTopic: return(s_deletedTopic.Expand());

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
Ejemplo n.º 24
0
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.Metadata: return(s_metadata.Expand());

            case ResourceNameType.Property: return(s_property.Expand(PropertyId));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.ProjectGroup: return(s_projectGroup.Expand(ProjectId, GroupId));

            case ResourceNameType.OrganizationGroup: return(s_organizationGroup.Expand(OrganizationId, GroupId));

            case ResourceNameType.FolderGroup: return(s_folderGroup.Expand(FolderId, GroupId));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
Ejemplo n.º 26
0
        /// <summary>The string representation of the resource name.</summary>
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.OrganizationSourceFindingExternalsystem: return(s_organizationSourceFindingExternalsystem.Expand(OrganizationId, SourceId, FindingId, ExternalsystemId));

            case ResourceNameType.FolderSourceFindingExternalsystem: return(s_folderSourceFindingExternalsystem.Expand(FolderId, SourceId, FindingId, ExternalsystemId));

            case ResourceNameType.ProjectSourceFindingExternalsystem: return(s_projectSourceFindingExternalsystem.Expand(ProjectId, SourceId, FindingId, ExternalsystemId));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }
        /// <inheritdoc/>
        public override string ToString()
        {
            switch (Type)
            {
            case ResourceNameType.Unparsed: return(UnparsedResource.ToString());

            case ResourceNameType.Organization: return(s_organization.Expand(OrganizationId));

            case ResourceNameType.Folder: return(s_folder.Expand(FolderId));

            case ResourceNameType.Project: return(s_project.Expand(ProjectId));

            case ResourceNameType.ProjectLocationCluster: return(s_projectLocationCluster.Expand(ProjectId, LocationId, ClusterId));

            case ResourceNameType.ProjectRegionCluster: return(s_projectRegionCluster.Expand(ProjectId, RegionId, ClusterId));

            case ResourceNameType.ProjectZoneCluster: return(s_projectZoneCluster.Expand(ProjectId, ZoneId, ClusterId));

            default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }